From unknown Thu Jun 19 14:19:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41361: Fwd: Re: python.el: improve sexp-based navigation or make it optional? Resent-From: Andreas =?UTF-8?Q?R=C3=B6hler?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 17 May 2020 14:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 41361 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 41361@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.158972431610569 (code B ref -1); Sun, 17 May 2020 14:06:01 +0000 Received: (at submit) by debbugs.gnu.org; 17 May 2020 14:05:16 +0000 Received: from localhost ([127.0.0.1]:44210 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaJum-0002kP-CU for submit@debbugs.gnu.org; Sun, 17 May 2020 10:05:16 -0400 Received: from lists.gnu.org ([209.51.188.17]:40574) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaJuk-0002kI-Ve for submit@debbugs.gnu.org; Sun, 17 May 2020 10:05:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41046) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jaJuk-0007GU-Nv for bug-gnu-emacs@gnu.org; Sun, 17 May 2020 10:05:14 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:46861) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jaJuj-00057K-H0 for bug-gnu-emacs@gnu.org; Sun, 17 May 2020 10:05:14 -0400 Received: from [192.168.178.39] ([94.134.177.135]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MtO06-1inRqz1ls6-00up4m for ; Sun, 17 May 2020 16:05:11 +0200 References: From: Andreas =?UTF-8?Q?R=C3=B6hler?= X-Forwarded-Message-Id: Message-ID: <7e0e2951-a346-4d4f-421e-7a59ab1dd4ae@online.de> Date: Sun, 17 May 2020 16:12:45 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------090EFF54015ED832D80EB3BA" Content-Language: en-US X-Provags-ID: V03:K1:kbBizrlX2rrsEIPt3mTR9rwObStUlh/8XA90WNbr2DjYx2gf7vF ZUR/ahSTgGW7ZDrGd62/fff9aOUj8n/MVH5g8+vTs1TBGc5h9x5Ajq9lBlu14PwdFFIn3rR 83T+R/xaGH4PhsS7KbsGSFO8lVFS41AaR1G0UiBe9gPOj7riGhZgsVGjhHWLgnhyUUTa1fM lj0HIb9HKmh15sNwZsvjA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Ho6O2hjeK7I=:Sr9TfGdSTA6mZCRYwiA5T0 b2RkUs60jNkhAQy0q614ierZgNg2CUfcNq2jLffRHXvCYds1vLY6cRhDpDA4j9abymKxMKYoE 0wi3TnmWzXgK+0NmzUJHZBgtUaWPKZHXe3Y/otKe9K5qvpE5qfpHkRguRZCikXnGjwCz5X1Ow g8aafgcXd4872QPsAXt1PbuXt1GOFmpWQj0Br8yFHqiLkl5AUD7gKifGI/b+2xPWJUstJ1Sm+ P5CaQPSypAToREiCrugaZjNGsK+6yh2GRmXJJqw2nMYfbWtvgc8Ns7YqJfNbKqjHTYoJ8c9q0 e5XAQ2e5sx4T/2uzJj1jJVsVLekAWyQzxk5+AoKdsPREqXOd7fWBTRFDOaot/c+XMRnTv5N0r CQ+bVS1gBpB3R2poPIQg6wUPqGeJGmvE1Lij1x+esPx/fNnmyGYbUlEy9TwnAcx3Ur8evjECA 8M2ym58KjThWsEW0tFB/01+xn5aiCE6pnD0sUqGnS0/jVxKPmZDYqiQUYr6dyylmhkY9uzUR8 EpntNNCgokzmqsAVKrnxmPZ0jjXzctjE/NcSMHVbXeWqycQEa7LGa0iodsZ5LRAbK0Noa/jOt SwTu9LqA/m3h6bNvYyQ4xq7hACTFBr+XsH4TuHNOLn3jgGbhwCfM0vMxe0dJvA9S7uwBjUcpC ep7TMVBN79imtUIZuUgM3Sk2dKOd4e9rfuSeWSCKj8ALrDugE/L9/HHFV814/ypadhRYc25OX MghcyIU4lQPiV1WC6g5hIca+zv5u2mUSaqoAoeB2jGXI+tHSDtYXkIufrdaINCzNbPe8W63zg 0wCED1S+7m0gsWqfQskf5SCw9LwxCggz5t+d5MIE9dV8BxmV4PsAU70gD3N64ltQWDpC1jH Received-SPF: pass client-ip=212.227.126.130; envelope-from=andreas.roehler@online.de; helo=mout.kundenserver.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/17 10:05:11 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) This is a multi-part message in MIME format. --------------090EFF54015ED832D80EB3BA Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Hi, maybe make forward-sexp-function customizable. Currently that var is set inside the derived mode:   (set (make-local-variable 'forward-sexp-function)        'python-nav-forward-sexp) and comment section in python.el head contains: If you prefer `cc-mode'-like ;; `forward-sexp' movement, setting `forward-sexp-function' to nil is ;; enough, You can do that using the `python-mode-hook': ;; (add-hook 'python-mode-hook ;;           (lambda () (setq forward-sexp-function nil))) Thread is here: https://lists.gnu.org/archive/html/emacs-devel/2020-05/msg02196.html Thanks, Andreas -------- Forwarded Message -------- Subject: Re: python.el: improve sexp-based navigation or make it optional? Date: Sat, 16 May 2020 21:11:51 +0200 From: Andreas Röhler To: emacs-devel@gnu.org CC: immerrr again , Stefan Kangas On 16.05.20 15:16, immerrr again wrote: > In absence of such mode, I wonder if it would be a welcome addition to > introduce a configuration parameter that at least disables the smart > navigation, making sexp skip one symbol or explicitly > parenthesized/bracketed expression at a time. Maybe that does it?: (from python.el) If you prefer `cc-mode'-like ;; `forward-sexp' movement, setting `forward-sexp-function' to nil is ;; enough, You can do that using the `python-mode-hook': ;; (add-hook 'python-mode-hook ;;           (lambda () (setq forward-sexp-function nil))) --------------090EFF54015ED832D80EB3BA Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

Hi,

maybe make forward-sexp-function customizable. Currently that var is set inside the derived mode:

  (set (make-local-variable 'forward-sexp-function)
       'python-nav-forward-sexp)

and comment section in python.el head contains:


If you prefer `cc-mode'-like
;; `forward-sexp' movement, setting `forward-sexp-function' to nil is
;; enough, You can do that using the `python-mode-hook':

;; (add-hook 'python-mode-hook
;;           (lambda () (setq forward-sexp-function nil)))

Thread is here:


Thanks,
Andreas

-------- Forwarded Message --------
Subject: Re: python.el: improve sexp-based navigation or make it optional?
Date: Sat, 16 May 2020 21:11:51 +0200
From: Andreas Röhler <andreas.roehler@online.de>
To: emacs-devel@gnu.org
CC: immerrr again <immerrr@gmail.com>, Stefan Kangas <stefankangas@gmail.com>



On 16.05.20 15:16, immerrr again wrote:
In absence of such mode, I wonder if it would be a welcome addition to
introduce a configuration parameter that at least disables the smart
navigation, making sexp skip one symbol or explicitly
parenthesized/bracketed expression at a time.

Maybe that does it?: (from python.el)

If you prefer `cc-mode'-like
;; `forward-sexp' movement, setting `forward-sexp-function' to nil is
;; enough, You can do that using the `python-mode-hook':

;; (add-hook 'python-mode-hook
;;           (lambda () (setq forward-sexp-function nil)))


--------------090EFF54015ED832D80EB3BA-- From unknown Thu Jun 19 14:19:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41361: Fwd: Re: python.el: improve sexp-based navigation or make it optional? Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 May 2020 01:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41361 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Andreas =?UTF-8?Q?R=C3=B6hler?= Cc: 41361@debbugs.gnu.org Received: via spool by 41361-submit@debbugs.gnu.org id=B41361.158993680314141 (code B ref 41361); Wed, 20 May 2020 01:07:02 +0000 Received: (at 41361) by debbugs.gnu.org; 20 May 2020 01:06:43 +0000 Received: from localhost ([127.0.0.1]:51622 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jbDBz-0003g1-Dt for submit@debbugs.gnu.org; Tue, 19 May 2020 21:06:43 -0400 Received: from mail-yb1-f193.google.com ([209.85.219.193]:37167) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jbDBx-0003fn-CC for 41361@debbugs.gnu.org; Tue, 19 May 2020 21:06:42 -0400 Received: by mail-yb1-f193.google.com with SMTP id b123so120358yba.4 for <41361@debbugs.gnu.org>; Tue, 19 May 2020 18:06:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc :content-transfer-encoding; bh=k3purVFG+rpWatxXMO2iW1VSlvWDKthMQRJOppXiHzE=; b=fHjtN1OsZXBTDOiurbL9D4w96FjaYtIqZKKZg4YghdjH78H5liSTHrB9/FQPRwDJAE hPbtn9R1PqAJlk0EwidGLLKQw0b8U0UtRNVAMVaMlM4cWlH59f7YiqDGMA9AgUyvn5Gf cbfVjh0jLLXTVpPD7kmZ6/21C4abvLkTtThPEpFoiGigMwFl8VpZ/j/qNFYKc5C2Yvd8 nLdurJTc8Vbl5JXIuoGaEuG9PbBaypvRdtGURoMSKNzketPkFxkjS2Tvl3XrnwubRmr1 DVT1BwTszUNCry3mpWt0C9eNJiHxxHcUfk6AlluH6ylXLLvrshjWXkOMrNorBrCFQu2t H90g== X-Gm-Message-State: AOAM530P4fNSfjc285a8+3cpABNLoNaODPAl6eSaHkj9WWDIXeoEGZ0R j+6Y6xEWeVztlLJNDmVDn3ZBRrIpmDsw1gWyHTg= X-Google-Smtp-Source: ABdhPJwQLMKDRQ0WtB9Ih0o2rDtBHLTnuxZR4eQFSbTPkM/6eblXUKg/x38xPwk9BvBspuaL7BiQX3vjDu4i+Zsma6c= X-Received: by 2002:a25:4c04:: with SMTP id z4mr3490725yba.466.1589936795962; Tue, 19 May 2020 18:06:35 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 19 May 2020 18:06:35 -0700 From: Stefan Kangas In-Reply-To: <7e0e2951-a346-4d4f-421e-7a59ab1dd4ae@online.de> ("Andreas =?UTF-8?Q?R=C3=B6hler?="'s message of "Sun, 17 May 2020 16:12:45 +0200") References: <7e0e2951-a346-4d4f-421e-7a59ab1dd4ae@online.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Date: Tue, 19 May 2020 18:06:35 -0700 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) Andreas R=C3=B6hler writes: > maybe make forward-sexp-function customizable. Currently that var is > set inside the derived mode: I agree that this should be customizable. Best regards, Stefan Kangas From unknown Thu Jun 19 14:19:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41361: Fwd: Re: python.el: improve sexp-based navigation or make it optional? Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 May 2020 13:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41361 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Kangas Cc: 41361@debbugs.gnu.org, immerrr@gmail.com, Andreas =?UTF-8?Q?R=C3=B6hler?= Received: via spool by 41361-submit@debbugs.gnu.org id=B41361.15900685669858 (code B ref 41361); Thu, 21 May 2020 13:43:01 +0000 Received: (at 41361) by debbugs.gnu.org; 21 May 2020 13:42:46 +0000 Received: from localhost ([127.0.0.1]:55716 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jblTB-0002Yw-R7 for submit@debbugs.gnu.org; Thu, 21 May 2020 09:42:46 -0400 Received: from mail-wm1-f46.google.com ([209.85.128.46]:54803) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jblTA-0002Yk-Bg for 41361@debbugs.gnu.org; Thu, 21 May 2020 09:42:44 -0400 Received: by mail-wm1-f46.google.com with SMTP id h4so5609332wmb.4 for <41361@debbugs.gnu.org>; Thu, 21 May 2020 06:42:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=S+NVG6e1W6CuhU5JKFf/qtgpaktSw7ct5qXEYUb100w=; b=tfj8AsrPVdsT/ARbWn4xbfP/6pdpTypngX4y4+6TwMTvgL4tqPAdQI6AEzeANNTieQ OAcJyV5HIlCe11PKD0tGlGZN1IRB3eXSlRnAxmmplX0gkgq8Ze98y3Er/Zuw6tKUUWDo 1yFsOYAi2/E9iNqvmnsT3O7JojmLQI3MopTjfQcRtZul+I/zCIgfmAlspndzrKBP9ik9 w6iMHGlY9OBB8dO4R+Lep9S/aFMyyi8PN8xFisZJVUzHQz0YOckfB42t5O2n8GtLZN7F IfK7xcRDB8/NF4Dx4KmeNKMFy46XupdkXkJgDTTFydsWKvemLKzeMbYT4Xt7Ld6fr8XU AwYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=S+NVG6e1W6CuhU5JKFf/qtgpaktSw7ct5qXEYUb100w=; b=qNhlqKiiGzNISQHxyZQN1q/ylT0bIhTNKJ6/+eEBUv5mzFnbGoMXWVjjHAswUWXnUF rTLAPANVkLhCTJ9uzUX1T32YbVQ3xbRNry3Rr4e3pZMNeRMb6vWmEzXQFVo7gSJrVPyv aQAVr2PTyI4LXVT/sxnfVBP6GUn5bg6/5qVpTzSrmFh4SQw/xkKHY5KP2wfHcld269mW eKlj6qSiaJ1sgDg2t4p+oof7xzGWTyLR7zWg0KAjh/yn+GcsfvuEpmaKo47hkCqWHfG3 4OBW2OPH7VKR+871qidL5nAtSPOFP3GwZlxZz56kJvs3gexCoJ6PqRNmJzxc4xlW7cfL aAXA== X-Gm-Message-State: AOAM531LjrA3CjNbfeRkvt1FlsHC/clVQfcE7ia2Vcav0VrnhCrtdHSy 2SJYDHIotZLPN1ejq9VSIxs= X-Google-Smtp-Source: ABdhPJxZ5JnCra9gOKtjRdlq+Qnxo3A9ikAkF2MdSDfcLJACPxh6nN1PS0S/J+fLz7ur5L6mOGkC5g== X-Received: by 2002:a7b:c41a:: with SMTP id k26mr9241808wmi.85.1590068558248; Thu, 21 May 2020 06:42:38 -0700 (PDT) Received: from krug ([89.180.155.44]) by smtp.gmail.com with ESMTPSA id i15sm2764557wml.47.2020.05.21.06.42.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 May 2020 06:42:36 -0700 (PDT) From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= References: <7e0e2951-a346-4d4f-421e-7a59ab1dd4ae@online.de> Date: Thu, 21 May 2020 14:42:35 +0100 In-Reply-To: (Stefan Kangas's message of "Tue, 19 May 2020 18:06:35 -0700") Message-ID: <87y2pl2ylw.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Stefan Kangas writes: > Andreas =?UTF-8?Q?R=C3=B6hler?= writes: > >> maybe make forward-sexp-function customizable. Currently that var is >> set inside the derived mode: > > I agree that this should be customizable. Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (joaotavora[at]gmail.com) 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: online.de] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 1.5 RCVD_IN_SORBS_WEB RBL: SORBS: sender is an abusable web server [89.180.155.44 listed in dnsbl.sorbs.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.128.46 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.128.46 listed in wl.mailspike.net] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) Stefan Kangas writes: > Andreas R=C3=B6hler writes: > >> maybe make forward-sexp-function customizable. Currently that var is >> set inside the derived mode: > > I agree that this should be customizable. I too am a fan of sexp navigation (C-M-f, C-M-b, etc.) If this navigation in indeed superior, we could consider making it the default for python-mode? Something similar thing was done recently for nxml-mode, by changing nxml-sexp-element-flag from nil to t. I liked this change very much. Jo=C3=A3o From unknown Thu Jun 19 14:19:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41361: Fwd: Re: python.el: improve sexp-based navigation or make it optional? Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 20 Mar 2021 02:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41361 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Cc: 41361@debbugs.gnu.org, Andreas =?UTF-8?Q?R=C3=B6hler?= , immerrr@gmail.com Received: via spool by 41361-submit@debbugs.gnu.org id=B41361.16162087204261 (code B ref 41361); Sat, 20 Mar 2021 02:52:01 +0000 Received: (at 41361) by debbugs.gnu.org; 20 Mar 2021 02:52:00 +0000 Received: from localhost ([127.0.0.1]:51271 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lNRiZ-00016f-VY for submit@debbugs.gnu.org; Fri, 19 Mar 2021 22:52:00 -0400 Received: from mail-pj1-f46.google.com ([209.85.216.46]:53117) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lNRiY-00016Q-8t for 41361@debbugs.gnu.org; Fri, 19 Mar 2021 22:51:58 -0400 Received: by mail-pj1-f46.google.com with SMTP id ha17so5558423pjb.2 for <41361@debbugs.gnu.org>; Fri, 19 Mar 2021 19:51:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc :content-transfer-encoding; bh=R3lHEOCfCoDhS8XmncTtZqfGX0CZXPhAmvzxUFJI+zE=; b=AhCU+OFI5K16zLdH2o0D6ipFxFzWE4AJtoTicgNM26GDfuE+jp5VdwWIA2mE5yDqhU 8fdcDxgsJL6McCHKW4JoPHVkBhZC0newGtGEnJ1gPFdUG+SPX17i/Ay25VpmrWDlQZLQ +BevGoq1cLf5NIjLRrxIsmkkSWMMyI/1qqnNQAl4CNFgrbFHhGuH951FW1GioxtrvN+z 7+iN1X1In0TmZp8LtU0dohVtaYK3NdrENHhAY1vn4bm1ih7n1TcfNmB9ik8ENIKEOvIZ rFt6TgyAeYEnOMeNL/oRAtDxXbl8XqZKkkByBaI/0gmlQTayk4/Eq8bOZRib/+FZ7KrS miYQ== X-Gm-Message-State: AOAM533CPBVNE3Xzpeiky4vslCVKVm8/gL31WvLTyUvTDsEr8y8m3A9m kZVrKhprMnU5jtNe+fNbHUU8y7Fylej+gj9fadA= X-Google-Smtp-Source: ABdhPJxl9+cLOY7fuiBo12zDfEJgbe7UOfTfu2GcWuXe9iY8+sp5hm42Z7dYOAagddnVrLthdwH8FZJJuD0MIH4vKO4= X-Received: by 2002:a17:90a:f986:: with SMTP id cq6mr1526639pjb.175.1616208712454; Fri, 19 Mar 2021 19:51:52 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 19 Mar 2021 21:51:52 -0500 From: Stefan Kangas In-Reply-To: <87y2pl2ylw.fsf@gmail.com> ("=?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?="'s message of "Thu, 21 May 2020 14:42:35 +0100") References: <7e0e2951-a346-4d4f-421e-7a59ab1dd4ae@online.de> <87y2pl2ylw.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Date: Fri, 19 Mar 2021 21:51:52 -0500 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) Jo=C3=A3o T=C3=A1vora writes: > Stefan Kangas writes: > >> Andreas R=C3=B6hler writes: >> >>> maybe make forward-sexp-function customizable. Currently that var is >>> set inside the derived mode: >> >> I agree that this should be customizable. > > I too am a fan of sexp navigation (C-M-f, C-M-b, etc.) If this > navigation in indeed superior, we could consider making it the default > for python-mode? Something similar thing was done recently for > nxml-mode, by changing nxml-sexp-element-flag from nil to t. I liked > this change very much. I have been back to coding a bunch of Python lately, and having experimented with this I think making it the default behavior is indeed a good idea. In the linked emacs-devel thread, I said that the old behavior was fine, which I guess is true. I have now come to the conclusion that it is also worse than the alternative. :-) From unknown Thu Jun 19 14:19:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41361: Fwd: Re: python.el: improve sexp-based navigation or make it optional? Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 31 Jul 2021 16:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41361 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Andreas =?UTF-8?Q?R=C3=B6hler?= Cc: 41361@debbugs.gnu.org Received: via spool by 41361-submit@debbugs.gnu.org id=B41361.162774989812229 (code B ref 41361); Sat, 31 Jul 2021 16:45:02 +0000 Received: (at 41361) by debbugs.gnu.org; 31 Jul 2021 16:44:58 +0000 Received: from localhost ([127.0.0.1]:34728 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9s6c-0003BA-08 for submit@debbugs.gnu.org; Sat, 31 Jul 2021 12:44:58 -0400 Received: from quimby.gnus.org ([95.216.78.240]:55356) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9s6Z-0003Aw-IY for 41361@debbugs.gnu.org; Sat, 31 Jul 2021 12:44:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=dtIxNwyj+nayLkXGjhWR3ekSb2tPUa3lZcTzhGibuSQ=; b=NXUkK2D7GnjsoJ1CGMXMlZOd1D YJP21aBxMh36LZMS8x5WcpljtxFzZjzNn0WDa1J2UWmkUqIzx4HsOb+AP8CtKaX8f7/JvFgycJjIt RWN3DXs6bSgr29H3Qd5XVyTZlRBaBBZbbjcdxC0Qgg1Hpyx22COctGR8ZFmPBmiAoV2c=; Received: from 2.149.45.105.tmi.telenormobil.no ([2.149.45.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m9s6Q-0005ZE-2f; Sat, 31 Jul 2021 18:44:48 +0200 From: Lars Ingebrigtsen References: <7e0e2951-a346-4d4f-421e-7a59ab1dd4ae@online.de> Date: Sat, 31 Jul 2021 18:44:44 +0200 In-Reply-To: <7e0e2951-a346-4d4f-421e-7a59ab1dd4ae@online.de> ("Andreas =?UTF-8?Q?R=C3=B6hler?="'s message of "Sun, 17 May 2020 16:12:45 +0200") Message-ID: <874kcacu0z.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Andreas =?UTF-8?Q?R=C3=B6hler?= writes: > maybe make forward-sexp-function customizable. Makes sense to me, so I've now added that to Emacs 28. It was also suggested to change the default to nil, but that seems too annoying, so I didn't do that. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.0 TVD_RCVD_IP Message was received from an IP address -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Andreas R=C3=B6hler writes: > maybe make forward-sexp-function customizable. Makes sense to me, so I've now added that to Emacs 28. It was also suggested to change the default to nil, but that seems too annoying, so I didn't do that. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 31 12:45:03 2021 Received: (at control) by debbugs.gnu.org; 31 Jul 2021 16:45:03 +0000 Received: from localhost ([127.0.0.1]:34732 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9s6h-0003DF-98 for submit@debbugs.gnu.org; Sat, 31 Jul 2021 12:45:03 -0400 Received: from quimby.gnus.org ([95.216.78.240]:55370) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9s6f-0003B4-Eb for control@debbugs.gnu.org; Sat, 31 Jul 2021 12:45:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=6s1MS07CLuwo5BPXpzkEfPKuerMERavHAeEjk64ZduY=; b=tpy2eDSLdRKO1ihyuHbNrvYmJx zMiRkoxo1fWPFNV72/OU7MwUxUmKTMtE5AoeAp74cL93p5ryO0evilSF9kVR+buCNJSq/nzCPDvuf 7a+DQydGbRSA70xbHgIyxfXjOpyOhztodEO+3PRE31fEG7tbXOSiCcli4tFyQETY/ddM=; Received: from 2.149.45.105.tmi.telenormobil.no ([2.149.45.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m9s6X-0005ZM-BN for control@debbugs.gnu.org; Sat, 31 Jul 2021 18:44:55 +0200 Date: Sat, 31 Jul 2021 18:44:51 +0200 Message-Id: <8735rucu0s.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #41361 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 41361 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.0 TVD_RCVD_IP Message was received from an IP address -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 41361 28.1 quit