From: Thorsten Jolitz <tjolitz@gmail.com>
To: emacs-devel@gnu.org
Subject: Calling 'org-babel-mark-block' with 'M-x cmd' and 'M-: (cmd)'
Date: Fri, 15 Feb 2013 14:55:01 +0100 [thread overview]
Message-ID: <871uchk7gq.fsf@gmail.com> (raw)
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
next reply other threads:[~2013-02-15 13:55 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-15 13:55 Thorsten Jolitz [this message]
2013-02-15 15:21 ` Calling 'org-babel-mark-block' with 'M-x cmd' and 'M-: (cmd)' 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871uchk7gq.fsf@gmail.com \
--to=tjolitz@gmail.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.