GNU bug report logs - #14611
Suggest warning: forward-sexp not from program

Previous Next

Package: emacs;

Reported by: Andreas Röhler <andreas.roehler <at> easy-emacs.de>

Date: Thu, 13 Jun 2013 16:15:02 UTC

Severity: wishlist

Tags: notabug, wontfix

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Glenn Morris <rgm <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#14611: closed (Suggest warning: forward-sexp not from program)
Date: Thu, 13 Jun 2013 16:42:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Thu, 13 Jun 2013 12:41:18 -0400
with message-id <joy5aearpt.fsf <at> fencepost.gnu.org>
and subject line Re: bug#14611: Suggest warning: forward-sexp not from program
has caused the debbugs.gnu.org bug report #14611,
regarding Suggest warning: forward-sexp not from program
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
14611: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14611
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
To: bug-gnu-emacs <at> gnu.org
Subject: Suggest warning: forward-sexp not from program
Date: Thu, 13 Jun 2013 18:14:54 +0200
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


[Message part 3 (message/rfc822, inline)]
From: Glenn Morris <rgm <at> gnu.org>
To: 14611-done <at> debbugs.gnu.org
Subject: Re: bug#14611: Suggest warning: forward-sexp not from program
Date: Thu, 13 Jun 2013 12:41:18 -0400
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/.


This bug report was last modified 11 years and 348 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.