From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thorsten Jolitz Newsgroups: gmane.emacs.devel Subject: Calling 'org-babel-mark-block' with 'M-x cmd' and 'M-: (cmd)' Date: Fri, 15 Feb 2013 14:55:01 +0100 Message-ID: <871uchk7gq.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1360938604 19317 80.91.229.3 (15 Feb 2013 14:30:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Feb 2013 14:30:04 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 15 15:30:27 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U6MJ0-00064z-Rd for ged-emacs-devel@m.gmane.org; Fri, 15 Feb 2013 15:30:26 +0100 Original-Received: from localhost ([::1]:36030 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6MId-0005kw-LZ for ged-emacs-devel@m.gmane.org; Fri, 15 Feb 2013 09:30:03 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:58009) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6MIU-0005g5-UC for emacs-devel@gnu.org; Fri, 15 Feb 2013 09:30:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U6MIN-0004OX-Oz for emacs-devel@gnu.org; Fri, 15 Feb 2013 09:29:54 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:43640) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6MIN-0004NU-HA for emacs-devel@gnu.org; Fri, 15 Feb 2013 09:29:47 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1U6MIe-0005uH-5O for emacs-devel@gnu.org; Fri, 15 Feb 2013 15:30:04 +0100 Original-Received: from g231235230.adsl.alicedsl.de ([92.231.235.230]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 15 Feb 2013 15:30:04 +0100 Original-Received: from tjolitz by g231235230.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 15 Feb 2013 15:30:04 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 52 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: g231235230.adsl.alicedsl.de User-Agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.2 (gnu/linux) Cancel-Lock: sha1:wwx+h5DVa67kt9ll2EWam1AfqsY= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:157049 Archived-At: 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