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 18:50:02 -0500 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1360972240 18757 80.91.229.3 (15 Feb 2013 23:50:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Feb 2013 23:50:40 +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 Sat Feb 16 00:51:01 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 1U6V3V-0001DP-PE for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Feb 2013 00:51:01 +0100 Original-Received: from localhost ([::1]:47727 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6V3C-0001aF-4B for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Feb 2013 18:50:42 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:60170) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6V37-0001SE-UM for bug-gnu-emacs@gnu.org; Fri, 15 Feb 2013 18:50:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U6V32-0000i7-Ql for bug-gnu-emacs@gnu.org; Fri, 15 Feb 2013 18:50:37 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52808) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6V2o-0000f5-AX; Fri, 15 Feb 2013 18:50:18 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1U6V3V-0000E2-Gs; Fri, 15 Feb 2013 18:51:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, emacs-orgmode@gnu.org Resent-Date: Fri, 15 Feb 2013 23:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13724 X-GNU-PR-Package: emacs,org-mode X-GNU-PR-Keywords: Original-Received: via spool by 13724-submit@debbugs.gnu.org id=B13724.1360972252849 (code B ref 13724); Fri, 15 Feb 2013 23:51:01 +0000 Original-Received: (at 13724) by debbugs.gnu.org; 15 Feb 2013 23:50:52 +0000 Original-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 Original-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" 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 18:50:02 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 969106F7D2; Fri, 15 Feb 2013 18:50:02 -0500 (EST) 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) 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:71364 Archived-At: > ,------------------------- > | 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)))