From unknown Sun Jun 22 08:01:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13501: 24.3.50; mark-defun and friends don't work correctly in python-mode Resent-From: Ivan Andrus Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Jan 2013 21:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 13501 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 13501@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.13586305724566 (code B ref -1); Sat, 19 Jan 2013 21:23:02 +0000 Received: (at submit) by debbugs.gnu.org; 19 Jan 2013 21:22:52 +0000 Received: from localhost ([127.0.0.1]:40603 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TwfsK-0001Ba-74 for submit@debbugs.gnu.org; Sat, 19 Jan 2013 16:22:52 -0500 Received: from eggs.gnu.org ([208.118.235.92]:39672) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TwfsH-0001BT-Q4 for submit@debbugs.gnu.org; Sat, 19 Jan 2013 16:22:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TwfrO-00085a-7Q for submit@debbugs.gnu.org; Sat, 19 Jan 2013 16:21:55 -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,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, T_DKIM_INVALID, USER_IN_WHITELIST autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:53767) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwfrO-00085V-3v for submit@debbugs.gnu.org; Sat, 19 Jan 2013 16:21:54 -0500 Received: from eggs.gnu.org ([208.118.235.92]:51011) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwfrK-0002rP-PA for bug-gnu-emacs@gnu.org; Sat, 19 Jan 2013 16:21:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TwfrJ-00084m-Bx for bug-gnu-emacs@gnu.org; Sat, 19 Jan 2013 16:21:50 -0500 Received: from mail-ee0-f47.google.com ([74.125.83.47]:62033) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwfrJ-000837-62 for bug-gnu-emacs@gnu.org; Sat, 19 Jan 2013 16:21:49 -0500 Received: by mail-ee0-f47.google.com with SMTP id e52so2244755eek.6 for ; Sat, 19 Jan 2013 13:21:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:content-type:content-transfer-encoding:subject :message-id:date:to:mime-version:x-mailer; bh=oRjpFpoEk/A3tIbtMrDeCKz4jxE5dBw0xjGZ6UJRs2s=; b=kmVxwoEDOoooKtdiEI21+XsFZacbmhnsiB/4+OEYOGQ7nV3XpO6HUsGEWqLEKjBvW3 YciWHUY1Ey5sDmjKhsJw35KzewtuKyFEsdtWkA3KI58GD8PoknxoAGCZaMvQ/zBdOyyT Ti4ZA60Wgn7gxsmSkWOGH8bVaz5guiN0tPrIPlKGXTs8RiobGbZWx1JcuPql6xbqkPLh A/Ih/ai+IUXWzv/ri4SW42XzypzkfA6WJS9iRKpyH49APrnxQ8FW7vHt7NaBw2cAoz6z ouqPrOPg+H5iRJ0ia/11AaBiuwJi4CEEt5EnyMahviKbKHAGhDd3GsSiPovn66m7+Bav pXLQ== X-Received: by 10.14.207.6 with SMTP id m6mr41695578eeo.10.1358630501186; Sat, 19 Jan 2013 13:21:41 -0800 (PST) Received: from [10.0.2.25] (catv-80-99-48-145.catv.broadband.hu. [80.99.48.145]) by mx.google.com with ESMTPS id 43sm14236840eed.10.2013.01.19.13.21.40 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 19 Jan 2013 13:21:40 -0800 (PST) From: Ivan Andrus Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <0BBAE91B-DA74-46AD-9BB6-4095E9DD1C09@gmail.com> Date: Sat, 19 Jan 2013 22:21:38 +0100 Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) X-Mailer: Apple Mail (2.1499) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) 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.1 (------) Starting from emacs -Q create a buffer in python-mode with contents with open('someFile') as f: data = f.read() Place the cursor (say) after some and before File. Then run mark-defun (e.g. with C-M-h). It will set mark at the end of the line and not move point. Instead, it should select the entire block. This also happens on the Emacs 24 branch. -Ivan In GNU Emacs 24.3.50.16 (i386-apple-darwin12.2.0, NS apple-appkit-1187.34) of 2013-01-19 on oroszlan.local Bzr revision: 111557 eggert@cs.ucla.edu-20130119122910-o562t7gzs8ju4mah Windowing system distributor `Apple', version 10.3.1187 Configured using: `configure --with-ns --no-create --no-recursion' Important settings: value of $LC_CTYPE: UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Python Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-k C-k C-k C-k C-k M-x p y h t h o C-y s-x C-/ M-x m a r k d - d e f u M-x r e p o r Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Can't guess python-indent-offset, using defaults: 4 Mark set Undo! Mark set [2 times] You can run the command `mark-defun' with C-M-h Mark set Making completion list... Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr dabbrev emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils help-mode python rx easymenu comint ring ansi-color time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process ns multi-tty emacs) From unknown Sun Jun 22 08:01:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13501: 24.3.50; mark-defun and friends don't work correctly in python-mode References: <0BBAE91B-DA74-46AD-9BB6-4095E9DD1C09@gmail.com> In-Reply-To: <0BBAE91B-DA74-46AD-9BB6-4095E9DD1C09@gmail.com> Resent-From: =?UTF-8?Q?Fabi=C3=A1n?= Ezequiel Gallina Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 23 Jan 2013 22:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13501 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 13501@debbugs.gnu.org Received: via spool by 13501-submit@debbugs.gnu.org id=B13501.13589786635432 (code B ref 13501); Wed, 23 Jan 2013 22:05:01 +0000 Received: (at 13501) by debbugs.gnu.org; 23 Jan 2013 22:04:23 +0000 Received: from localhost ([127.0.0.1]:46840 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ty8Qg-0001PZ-Sv for submit@debbugs.gnu.org; Wed, 23 Jan 2013 17:04:23 -0500 Received: from mail-gg0-f172.google.com ([209.85.161.172]:49644) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ty8Qf-0001PS-TU for 13501@debbugs.gnu.org; Wed, 23 Jan 2013 17:04:22 -0500 Received: by mail-gg0-f172.google.com with SMTP id f4so967539ggn.31 for <13501@debbugs.gnu.org>; Wed, 23 Jan 2013 14:03:04 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding:x-gm-message-state; bh=fiaAIE2lh2kvIWlgAo6UfWvCqum9jgLTHyMhUHrTLYs=; b=oPh+rl4qrn2QiJjeXz3H3Ai/1DfDFMMRS5D20+qdjwMeOIKH+6dG8G55pz8Q3uOx5x faHNgG4Is5BaTlhLMTABkrBZSfWfyeqYB705zDNnlQTwV5huS15AhjDF4JvQa6uqQXnS KlKaXC1+DODWw4dBRlBwa4lS/sBy7netL9yArjKg+c9mZ0OJzcjIQiT9FC9on2Qw8n4k YGBwpj856DiBv0tlJF+KpTTMxWL4W/ogLq/ydB7mHP/YAwn3puYoub5Dm5UqWvFwbeGr vXEPPYNir5ruyiD4ph5QO7wC66TM4m5KHJWX32OZw8JFxBtDDMNE5ZgwtmadUryUinZL /bcA== X-Received: by 10.236.147.166 with SMTP id t26mr3329148yhj.0.1358978584485; Wed, 23 Jan 2013 14:03:04 -0800 (PST) Received: from [192.168.1.102] ([190.192.49.157]) by mx.google.com with ESMTPS id d30sm21391400yhc.4.2013.01.23.14.03.03 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 23 Jan 2013 14:03:03 -0800 (PST) Message-ID: <51005E6A.2080204@anue.biz> Date: Wed, 23 Jan 2013 19:04:26 -0300 From: =?UTF-8?Q?Fabi=C3=A1n?= Ezequiel Gallina User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130109 Thunderbird/17.0.2 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQmlRzIpKk6YMksHJ+VP0yBPj0BxrLJmKDEDM3vYFjmjLl9vygjx4cqc48Zv9rSP3LTJlrgX X-Spam-Score: 0.1 (/) 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 (--) A block is not a defun. In that sense, mark defun is doing the right thing. From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 23 20:57:08 2013 Received: (at control) by debbugs.gnu.org; 24 Jan 2013 01:57:08 +0000 Received: from localhost ([127.0.0.1]:47029 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TyC3v-0000Gs-Tc for submit@debbugs.gnu.org; Wed, 23 Jan 2013 20:57:08 -0500 Received: from mail-yh0-f52.google.com ([209.85.213.52]:52053) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TyC3t-0000Gl-MR for control@debbugs.gnu.org; Wed, 23 Jan 2013 20:57:05 -0500 Received: by mail-yh0-f52.google.com with SMTP id q46so247687yhf.11 for ; Wed, 23 Jan 2013 17:55:47 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to :content-type:content-transfer-encoding:x-gm-message-state; bh=d/EslLywKuoIVTrlK8mc2eYcIHCX4AA5ExTA7hYyBLc=; b=KKcP3RY4H6Mf05kUAJe9bye11tJ1lU0reBKiloUMrnuHcOIwtZlmyjhIbuPlbDHK8G Z7It5ltqnkiMkZb4EK+vkjFlxgLStPVkKhASR7Tx7dIVA0G5Ru1EFqe3q3S63P1U0jyn 7KbhC2NcXo80XduqFAlWOtxQ2iHXSYE9o6nPNCMYGbzlByiwKtNT2lliVadYeoPxOpYF 7OQpccfRA/buVcjj3KFi4tNiIbmrylajEsoVVYpLkKOOlRJSW1OPzkmGPzAaRBgRAq5D Zuvo1MJN2UCp+it63Pc5ameQ5ZtQVLg7ZzRqhX0FHo7KDopPuY+/xSCUyDKr9spszWJB IjUA== X-Received: by 10.100.82.3 with SMTP id f3mr82680anb.38.1358992547298; Wed, 23 Jan 2013 17:55:47 -0800 (PST) Received: from [192.168.1.102] ([190.192.49.157]) by mx.google.com with ESMTPS id a43sm21965299yhl.0.2013.01.23.17.55.46 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 23 Jan 2013 17:55:46 -0800 (PST) Message-ID: <510094F4.8020707@anue.biz> Date: Wed, 23 Jan 2013 22:57:08 -0300 From: =?ISO-8859-1?Q?Fabi=E1n_Ezequiel_Gallina?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130109 Thunderbird/17.0.2 MIME-Version: 1.0 To: control@debbugs.gnu.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQnaEj6Tg7enx++FMOi2YKQUV7l4bd+ReSmwKVbcQfQ1o2slGu+uf/RF+s/nqtpQnojtExkW X-Spam-Score: 2.1 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: tags 13501 invalid close 13501 [...] Content analysis details: (2.1 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.213.52 listed in list.dnswl.org] 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.4994] 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject 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.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: tags 13501 invalid close 13501 [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.213.52 listed in list.dnswl.org] -0.0 BAYES_40 BODY: Bayes spam probability is 20 to 40% [score: 0.3019] 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject tags 13501 invalid close 13501 From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 23 20:59:50 2013 Received: (at control) by debbugs.gnu.org; 24 Jan 2013 01:59:50 +0000 Received: from localhost ([127.0.0.1]:47035 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TyC6V-0000L6-Ib for submit@debbugs.gnu.org; Wed, 23 Jan 2013 20:59:49 -0500 Received: from mail-gh0-f171.google.com ([209.85.160.171]:47416) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TyC6O-0000Ku-M2 for control@debbugs.gnu.org; Wed, 23 Jan 2013 20:59:45 -0500 Received: by mail-gh0-f171.google.com with SMTP id r17so729159ghr.30 for ; Wed, 23 Jan 2013 17:58:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to :content-type:content-transfer-encoding:x-gm-message-state; bh=rSaOaRgmcI662mFvYHBB94+Ug+/1+9BWQnRk72/kVCs=; b=Xv0a/P8MDBlWndankmOI902B3Mu+3vwMSPV8SDet6DBFw/1VAaMAliL0hCjOyL37Ot l1kgcBxGdMGujqbV7pjrfwIPwiUeckAs05tGOd8Xhwm2hteAdGxVGF3uay+DGrJj+mk+ +8eETVGG4fFI29+LFzG1QIzZ5wTEJFQ6YMlVNB4B3ewASAiOIxSSFJnpV8r9yJpUg7uQ KRZB/ZQrUvl06tKHtYjyJqSXZbtVI4mfgsRdkn/VWqyDZ5g2NYEFUwTDN1j4sNtmn8b2 OQnhQ1UsJRX9MII7ygSKOEVCrK3DDpinZfN7lwIxdKeJlkTf01mcInrxweFy29czmqW8 PASQ== X-Received: by 10.101.134.12 with SMTP id l12mr60721ann.88.1358992702439; Wed, 23 Jan 2013 17:58:22 -0800 (PST) Received: from [192.168.1.102] ([190.192.49.157]) by mx.google.com with ESMTPS id s30sm21950793yhl.21.2013.01.23.17.58.21 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 23 Jan 2013 17:58:21 -0800 (PST) Message-ID: <5100958F.6080208@anue.biz> Date: Wed, 23 Jan 2013 22:59:43 -0300 From: =?ISO-8859-1?Q?Fabi=E1n_Ezequiel_Gallina?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130109 Thunderbird/17.0.2 MIME-Version: 1.0 To: control@debbugs.gnu.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQnrdMngjPenU5HX6s6PXgATqnzaan493zOu1qsNQExcdlBNQn9DEeN4D5IFcw2rY5igiFHE X-Spam-Score: 2.1 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: tags 13501 notabug [...] Content analysis details: (2.1 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.160.171 listed in list.dnswl.org] 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.4991] 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject 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.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: tags 13501 notabug [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.160.171 listed in list.dnswl.org] -0.0 BAYES_40 BODY: Bayes spam probability is 20 to 40% [score: 0.2807] 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject tags 13501 notabug