emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* bug#13724: Calling 'org-babel-mark-block' with 'M-x cmd' and 'M-: (cmd)'
       [not found] <jwvr4kh32y7.fsf-monnier+emacs@gnu.org>
@ 2013-02-15 20:41 ` Bastien
  2013-02-15 23:50 ` Stefan Monnier
  1 sibling, 0 replies; 2+ messages in thread
From: Bastien @ 2013-02-15 20:41 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: Thorsten Jolitz, 13724

Let me restate the issue:

M-x mark-word RET will highlight the word at point.
M-: (mark-word) RET will *not* highlight the word at point.

My understanding was that interactive call of mark-word
highlight the region, while non-interactive call do not
highlight it.

Is this wrong?

`org-mark-element' and `org-babel-mark-block' are not
different to `mark-word' here.

-- 
 Bastien

^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#13724: Calling 'org-babel-mark-block' with 'M-x cmd' and 'M-: (cmd)'
       [not found] <jwvr4kh32y7.fsf-monnier+emacs@gnu.org>
  2013-02-15 20:41 ` bug#13724: Calling 'org-babel-mark-block' with 'M-x cmd' and 'M-: (cmd)' Bastien
@ 2013-02-15 23:50 ` Stefan Monnier
  1 sibling, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2013-02-15 23:50 UTC (permalink / raw)
  To: 13724; +Cc: Thorsten Jolitz

> ,-------------------------
> | M-: (org-mark-element) RET
> `-------------------------
> moves point to the beginning of source-block (body) and returns the
> position of point without (visibly) marking the source-block body.

Indeed, thank you.  Should be fixed now, thanks to the patch below,


        Stefan


--- lisp/simple.el	2013-02-12 04:46:18 +0000
+++ lisp/simple.el	2013-02-15 17:35:00 +0000
@@ -1328,7 +1327,8 @@
 	(setq debug-on-error new-value))))
 
   (let ((print-length eval-expression-print-length)
-	(print-level eval-expression-print-level))
+	(print-level eval-expression-print-level)
+        (deactivate-mark))
     (if eval-expression-insert-value
 	(with-no-warnings
 	 (let ((standard-output (current-buffer)))

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-02-15 23:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <jwvr4kh32y7.fsf-monnier+emacs@gnu.org>
2013-02-15 20:41 ` bug#13724: Calling 'org-babel-mark-block' with 'M-x cmd' and 'M-: (cmd)' Bastien
2013-02-15 23:50 ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).