From: Xue Fuqiao <xfq.free@gmail.com>
To: Thorsten Jolitz <tjolitz@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Calling 'org-babel-mark-block' with 'M-x cmd' and 'M-: (cmd)'
Date: Fri, 15 Feb 2013 23:21:55 +0800 [thread overview]
Message-ID: <20130215232155.2339410d425e1b9dd479b67d@gmail.com> (raw)
In-Reply-To: <871uchk7gq.fsf@gmail.com>
On Fri, 15 Feb 2013 14:55:01 +0100
Thorsten Jolitz <tjolitz@gmail.com> wrote:
> 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.
You probably should not use this function in Lisp programs;
it is usually a mistake for a Lisp function to use any subroutine
that uses or sets the mark.
> cheers,
> Thorsten
--
Best regards, Xue Fuqiao.
http://www.emacswiki.org/emacs/XueFuqiao
next prev parent reply other threads:[~2013-02-15 15:21 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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=20130215232155.2339410d425e1b9dd479b67d@gmail.com \
--to=xfq.free@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=tjolitz@gmail.com \
/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.