all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Andreas Röhler" <andreas.roehler@online.de>
To: 41361@debbugs.gnu.org
Subject: bug#41361: Fwd: Re: python.el: improve sexp-based navigation or make it optional?
Date: Sun, 17 May 2020 16:12:45 +0200	[thread overview]
Message-ID: <7e0e2951-a346-4d4f-421e-7a59ab1dd4ae@online.de> (raw)
In-Reply-To: <f2aea052-8802-e77d-aae9-7a6445850604@online.de>

[-- Attachment #1: Type: text/plain, Size: 1510 bytes --]

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 <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)))



[-- Attachment #2: Type: text/html, Size: 3798 bytes --]

  parent reply	other threads:[~2020-05-17 14:12 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-16 13:16 python.el: improve sexp-based navigation or make it optional? immerrr again
2020-05-16 14:05 ` Stefan Kangas
2020-05-16 19:11 ` Andreas Röhler
2020-05-16 20:46   ` immerrr again
2020-05-17 14:12   ` Andreas Röhler [this message]
2020-05-20  1:06     ` bug#41361: Fwd: " Stefan Kangas
2020-05-21 13:42       ` João Távora
2021-03-20  2:51         ` Stefan Kangas
2021-07-31 16:44     ` Lars Ingebrigtsen
2020-05-17  3:04 ` Stefan Monnier
2020-05-20  1:06 ` Stefan Kangas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7e0e2951-a346-4d4f-421e-7a59ab1dd4ae@online.de \
    --to=andreas.roehler@online.de \
    --cc=41361@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.