From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#13724: Calling 'org-babel-mark-block' with 'M-x cmd' and 'M-: (cmd)' Date: Fri, 15 Feb 2013 12:30:55 -0500 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1360959574 3561 80.91.229.3 (15 Feb 2013 20:19:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Feb 2013 20:19:34 +0000 (UTC) Cc: Thorsten Jolitz To: 13724@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 15 21:19:55 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1U6RlC-0000xz-LA for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Feb 2013 21:19:54 +0100 Original-Received: from localhost ([::1]:55740 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6Rks-0001Kr-U6 for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Feb 2013 15:19:34 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:60883) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6Rkl-0001Jl-3V for bug-gnu-emacs@gnu.org; Fri, 15 Feb 2013 15:19:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U6RX5-0004SM-1b for bug-gnu-emacs@gnu.org; Fri, 15 Feb 2013 15:05:27 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52615) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6RX4-0004SF-Tx for bug-gnu-emacs@gnu.org; Fri, 15 Feb 2013 15:05:18 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1U6RXm-0001Zo-BT; Fri, 15 Feb 2013 15:06:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: tjolitz@gmail.com, bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Feb 2013 20:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 13724 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org X-Debbugs-Original-Xcc: Thorsten Jolitz Original-Received: via spool by submit@debbugs.gnu.org id=B.13609587246005 (code B ref -1); Fri, 15 Feb 2013 20:06:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Feb 2013 20:05:24 +0000 Original-Received: from localhost ([127.0.0.1]:58077 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U6RX9-0001Yn-O2 for submit@debbugs.gnu.org; Fri, 15 Feb 2013 15:05:24 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:45590) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U6RX6-0001Yf-RA for submit@debbugs.gnu.org; Fri, 15 Feb 2013 15:05:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U6RWJ-00041E-N5 for submit@debbugs.gnu.org; Fri, 15 Feb 2013 15:04:36 -0500 Original-Received: from lists.gnu.org ([208.118.235.17]:59141) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6RWJ-00040t-Jq for submit@debbugs.gnu.org; Fri, 15 Feb 2013 15:04:31 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:56879) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6RWD-0005hO-IW for bug-gnu-emacs@gnu.org; Fri, 15 Feb 2013 15:04:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U6P7h-0008At-4K for bug-gnu-emacs@gnu.org; Fri, 15 Feb 2013 12:31:16 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:32673) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6P7g-0008Af-Rz for bug-gnu-emacs@gnu.org; Fri, 15 Feb 2013 12:30:56 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsoGABK/CFFFxKjI/2dsb2JhbABEtyKHbBdzgnsYWiYYDYhIoAuhIo1hgykDiGGcGYFegxU X-IPAS-Result: AsoGABK/CFFFxKjI/2dsb2JhbABEtyKHbBdzgnsYWiYYDYhIoAuhIo1hgykDiGGcGYFegxU X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="1513906" Original-Received: from 69-196-168-200.dsl.teksavvy.com (HELO pastel.home) ([69.196.168.200]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 15 Feb 2013 12:30:55 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 579316F8CF; Fri, 15 Feb 2013 12:30:55 -0500 (EST) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:71349 Archived-At: --=-=-= Content-Type: text/plain Get a bug-number for it. --=-=-= Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 8bit Return-Path: X-Original-To: monnier@iro.umontreal.ca Delivered-To: monnier@iro.umontreal.ca Received: from perlin.iro.umontreal.ca (perlin.iro.umontreal.ca [132.204.24.51]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id E88E184560 for ; Fri, 15 Feb 2013 09:30:36 -0500 (EST) Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by perlin.iro.umontreal.ca (Postfix) with ESMTP id E9E0D830005 for ; Fri, 15 Feb 2013 09:30:11 -0500 (EST) Received: from localhost ([::1]:36030 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6MIf-0005kw-N0 for monnier@iro.umontreal.ca; Fri, 15 Feb 2013 09:30:05 -0500 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 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 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 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 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 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/ To: emacs-devel@gnu.org From: Thorsten Jolitz Subject: Calling 'org-babel-mark-block' with 'M-x cmd' and 'M-: (cmd)' Date: Fri, 15 Feb 2013 14:55:01 +0100 Lines: 52 Message-ID: <871uchk7gq.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain 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+monnier=iro.umontreal.ca@gnu.org Sender: emacs-devel-bounces+monnier=iro.umontreal.ca@gnu.org X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-1.94, requis 5, BAYES_00 -2.60, MC_TSTLAST 0.00, RECEIVED_FROM_NOUNK 0.66, SPF_HELO_PASS -0.00) X-DIRO-MailScanner-From: emacs-devel-bounces+monnier=iro.umontreal.ca@gnu.org X-Spam-Status: No 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 --=-=-=--