--- Begin Message ---
Subject: |
Suggest warning: forward-sexp not from program |
Date: |
Thu, 13 Jun 2013 18:14:54 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 |
Hi,
as `forward-sexp-function' might be set by users, `forward-sexp' is susceptible
to fail when built into a program - which executes then set new binding.
Just came across that mistake.
Suggest a warning in it's docstring, saying something like: "Don't use..."
While pointing at core-function `scan-sexp' resp. `forward-sexp-function'.
Thanks,
Andreas
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#14611: Suggest warning: forward-sexp not from program |
Date: |
Thu, 13 Jun 2013 12:41:18 -0400 |
User-agent: |
Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) |
Andreas Röhler wrote:
> as `forward-sexp-function' might be set by users, `forward-sexp' is
> susceptible to fail when built into a program - which executes then
> set new binding. Just came across that mistake.
So let-bind forward-sexp-function around any calls where you think that
might happen.
forward-sexp is user in 100s of places in lisp/.
--- End Message ---