From unknown Wed Aug 20 06:40:31 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#13724 <13724@debbugs.gnu.org> To: bug#13724 <13724@debbugs.gnu.org> Subject: Status: Calling 'org-babel-mark-block' with 'M-x cmd' and 'M-: (cmd)' Reply-To: bug#13724 <13724@debbugs.gnu.org> Date: Wed, 20 Aug 2025 13:40:31 +0000 retitle 13724 Calling 'org-babel-mark-block' with 'M-x cmd' and 'M-: (cmd)' reassign 13724 emacs,org-mode submitter 13724 Stefan Monnier severity 13724 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 15 15:05:24 2013 Received: (at submit) by debbugs.gnu.org; 15 Feb 2013 20:05:24 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-102.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, USER_IN_WHITELIST autolearn=unavailable version=3.3.2 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 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 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 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" 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 Received: by pastel.home (Postfix, from userid 20848) id 579316F8CF; Fri, 15 Feb 2013 12:30:55 -0500 (EST) From: Stefan Monnier To: bug-gnu-emacs@gnu.org Subject: Calling 'org-babel-mark-block' with 'M-x cmd' and 'M-: (cmd)' Message-ID: X-debbugs-cc: Thorsten Jolitz Date: Fri, 15 Feb 2013 12:30:55 -0500 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" 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-Received-From: 208.118.235.17 X-Spam-Score: -4.3 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.2 (------) --=-=-= 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 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 15 15:42:05 2013 Received: (at 13724) by debbugs.gnu.org; 15 Feb 2013 20:42:05 +0000 Received: from localhost ([127.0.0.1]:58164 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U6S6e-0003NW-PG for submit@debbugs.gnu.org; Fri, 15 Feb 2013 15:42:04 -0500 Received: from mail-wi0-f180.google.com ([209.85.212.180]:41044) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U6S6Y-0003N2-Ne for 13724@debbugs.gnu.org; Fri, 15 Feb 2013 15:42:03 -0500 Received: by mail-wi0-f180.google.com with SMTP id hi8so1648811wib.13 for <13724@debbugs.gnu.org>; Fri, 15 Feb 2013 12:41:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:cc:subject:in-reply-to:references :user-agent:date:message-id:mime-version:content-type; bh=+EaCv3aAQYx8oivVrgbcncHm1spRj7Ne9d3YIutDK5g=; b=eBMRU8WrWSXr2Qy6AlWOm7nWL+CDXkV/5NuGibaRy3gbeo3gjlGgKUsUOtNVPbwqPG grPUhVLpgbtAeARadIyNj+4kLcgJaBNu3MqzbF0vkA11RtqtKKDz0XKLjaGcHDoQ5OD+ zNwTPQKcCocQ3Fe5gt1ZjR5p/alFBlRjMH+3v14nX0aKKVuxUglM1n1VfLC7cZp2VHZS Jjuaei7FfqFbRk5TlzJQIYS7kpNRUeP0UFIFoef6gZ/pd6Rxsl+IpPHdS6nusyLHtSnV 8JbPUD/8M9T81WpXrXEcWJChdtQBLbKoCiciukJNci3cewEaac9lfa9OF7prFrpeq1+H 5D4Q== X-Received: by 10.194.92.231 with SMTP id cp7mr6798506wjb.19.1360960873619; Fri, 15 Feb 2013 12:41:13 -0800 (PST) Received: from bzg.localdomain (mar75-2-81-56-68-112.fbx.proxad.net. [81.56.68.112]) by mx.google.com with ESMTPS id dw1sm7496531wib.5.2013.02.15.12.41.10 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 15 Feb 2013 12:41:12 -0800 (PST) Received: by bzg.localdomain (Postfix, from userid 1000) id 29F581C20D15; Fri, 15 Feb 2013 21:41:09 +0100 (CET) From: Bastien To: Stefan Monnier Subject: Re: bug#13724: Calling 'org-babel-mark-block' with 'M-x cmd' and 'M-: (cmd)' In-Reply-To: (Stefan Monnier's message of "Fri, 15 Feb 2013 12:30:55 -0500") References: User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux) Date: Fri, 15 Feb 2013 21:41:09 +0100 Message-ID: <87ip5te2e2.fsf@bzg.ath.cx> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 13724 Cc: Thorsten Jolitz , 13724@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) Let me restate the issue: M-x mark-word RET will highlight the word at point. M-: (mark-word) RET will *not* highlight the word at point. My understanding was that interactive call of mark-word highlight the region, while non-interactive call do not highlight it. Is this wrong? `org-mark-element' and `org-babel-mark-block' are not different to `mark-word' here. -- Bastien From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 15 18:50:52 2013 Received: (at 13724) by debbugs.gnu.org; 15 Feb 2013 23:50:52 +0000 Received: from localhost ([127.0.0.1]:58272 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U6V3K-0000Dd-VD for submit@debbugs.gnu.org; Fri, 15 Feb 2013 18:50:52 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.182]:62332) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U6V3I-0000DW-Jr for 13724@debbugs.gnu.org; Fri, 15 Feb 2013 18:50:49 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EABK/CFFFxKjI/2dsb2JhbABEuzWDWRdzgh8BBVYjEAs0EhQYDYhIwS2NYYMpA4hhnBmBXoMV X-IPAS-Result: Av8EABK/CFFFxKjI/2dsb2JhbABEuzWDWRdzgh8BBVYjEAs0EhQYDYhIwS2NYYMpA4hhnBmBXoMV X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="1539098" 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 18:50:02 -0500 Received: by pastel.home (Postfix, from userid 20848) id 969106F7D2; Fri, 15 Feb 2013 18:50:02 -0500 (EST) From: Stefan Monnier To: 13724@debbugs.gnu.org Subject: Re: bug#13724: Calling 'org-babel-mark-block' with 'M-x cmd' and 'M-: (cmd)' Message-ID: References: Date: Fri, 15 Feb 2013 18:50:02 -0500 In-Reply-To: (Stefan Monnier's message of "Fri, 15 Feb 2013 12:30:55 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 13724 Cc: Thorsten Jolitz X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) > ,------------------------- > | 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. Indeed, thank you. Should be fixed now, thanks to the patch below, Stefan --- lisp/simple.el 2013-02-12 04:46:18 +0000 +++ lisp/simple.el 2013-02-15 17:35:00 +0000 @@ -1328,7 +1327,8 @@ (setq debug-on-error new-value)))) (let ((print-length eval-expression-print-length) - (print-level eval-expression-print-level)) + (print-level eval-expression-print-level) + (deactivate-mark)) (if eval-expression-insert-value (with-no-warnings (let ((standard-output (current-buffer))) From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 15 18:52:40 2013 Received: (at control) by debbugs.gnu.org; 15 Feb 2013 23:52:40 +0000 Received: from localhost ([127.0.0.1]:58276 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U6V55-0000Gh-Ag for submit@debbugs.gnu.org; Fri, 15 Feb 2013 18:52:40 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.182]:56272) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U6V53-0000Gb-QR for control@debbugs.gnu.org; Fri, 15 Feb 2013 18:52:38 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EABK/CFFFxKjI/2dsb2JhbABEvw4Xc4IfAQVWMws0EhQYDYhIwS2NYYMpA4hhnBmBXoMV X-IPAS-Result: Av0EABK/CFFFxKjI/2dsb2JhbABEvw4Xc4IfAQVWMws0EhQYDYhIwS2NYYMpA4hhnBmBXoMV X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="1539173" 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 18:51:51 -0500 Received: by pastel.home (Postfix, from userid 20848) id 0A2736F7D2; Fri, 15 Feb 2013 18:51:52 -0500 (EST) From: Stefan Monnier To: control@debbugs.gnu.org Subject: Re: bug#13724: Calling 'org-babel-mark-block' with 'M-x cmd' and 'M-: (cmd)' Message-ID: References: Date: Fri, 15 Feb 2013 18:51:51 -0500 In-Reply-To: (Stefan Monnier's message of "Fri, 15 Feb 2013 12:30:55 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) close 13724 thanks From unknown Wed Aug 20 06:40:31 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 16 Mar 2013 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator