all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Calling 'org-babel-mark-block' with 'M-x cmd' and 'M-: (cmd)'
@ 2013-02-15 13:55 Thorsten Jolitz
  2013-02-15 15:21 ` Xue Fuqiao
  0 siblings, 1 reply; 9+ messages in thread
From: Thorsten Jolitz @ 2013-02-15 13:55 UTC (permalink / raw
  To: emacs-devel


Hi List, 

this was posted and discussed on the Org-mode mailing list, but without
any real conclusion if it is a Bug in Emacs - or something else. So it
was suggested to repost it here. 

Say point is behind the closing parenthesis of the sexp in this Org-mode source
block:

,-------------------------------------
| #+begin_src emacs-lisp
| (+ 3 4)          # point behind sexp
| #+end_src
`-------------------------------------

Now, when I call

,-----------------------------
| M-x org-babel-mark-block RET
`-----------------------------

or

,-------------------------
| M-x org-mark-element RET
`-------------------------

the body of the source block (or the whole source-block) is (visibly)
marked as expected (transient-mark-mode is on), and 'M-w' puts the
active region into the kill-ring. 

But with the point at the same position, doing

,-----------------------------
| M-: (org-babel-mark-block) RET
`-----------------------------

or

,-------------------------
| 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.
There is no region activated, 'M-w' puts nothing in the kill-ring. 

-- 
cheers,
Thorsten





^ permalink raw reply	[flat|nested] 9+ messages in thread
* Calling 'org-babel-mark-block' with 'M-x cmd' and 'M-: (cmd)'
@ 2013-02-03 19:10 Thorsten Jolitz
  2013-02-03 19:43 ` Nick Dokos
  0 siblings, 1 reply; 9+ messages in thread
From: Thorsten Jolitz @ 2013-02-03 19:10 UTC (permalink / raw
  To: emacs-orgmode


Hi List, 

just wondering (and curious) if this is a bug or (in some way) expected
behaviour:

Say point is at the beginning of the first line of an Org-mode source
block:

,------------------------------------------------
| #+begin_src plantuml :file er-class-diagram.png
| scale 600 width ...           # point at beg-of-line
`------------------------------------------------

Now, when I call interactive command org-babel-mark-block' either with
'M-x org-babel-mark-block' or 'C-c C-v C-M-h', the body of the source
block is (visibly) marked as expected (transient-mark-mode is on). 

But with the point at the same position, evaluating with  'M-:' 

,--------------------------------------
| Eval: (org-babel-mark-block)
`--------------------------------------

returns the position of point without (visibly) marking the source-block
body. 

-- 
cheers,
Thorsten

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

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

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-15 13:55 Calling 'org-babel-mark-block' with 'M-x cmd' and 'M-: (cmd)' Thorsten Jolitz
2013-02-15 15:21 ` Xue Fuqiao
2013-02-15 16:53   ` Thorsten Jolitz
  -- strict thread matches above, loose matches on Subject: below --
2013-02-03 19:10 Thorsten Jolitz
2013-02-03 19:43 ` Nick Dokos
2013-02-03 20:01   ` Thorsten Jolitz
2013-02-11 14:43     ` Bastien
2013-02-12 16:55       ` Thorsten Jolitz
2013-02-12 21:32         ` Bastien

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.