GNU bug report logs - #6744
24.0.50; [PATCH] local-variable-p: Handle variable aliases correctly

Previous Next

Package: emacs;

Reported by: "Johan Bockg\=e5rd" <bojohan <at> gnu.org>

Date: Wed, 28 Jul 2010 00:16:02 UTC

Severity: normal

Tags: patch

Found in version 24.0.50

Done: Johan Bockgård <bojohan <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Juanma Barranquero <lekktu <at> gmail.com>
To: "Johan Bockg=e5rd" <bojohan <at> gnu.org>
Cc: 6744 <at> debbugs.gnu.org
Subject: bug#6744: 24.0.50; [PATCH] local-variable-p: Handle variable  aliases correctly
Date: Wed, 28 Jul 2010 02:57:14 +0200
On Wed, Jul 28, 2010 at 02:15, Johan Bockg=e5rd <bojohan <at> gnu.org> wrote:

>    (defvar foo nil)
>    (defvaralias 'bar 'foo)
>    (make-local-variable 'bar)
>    (local-variable-p 'bar)
>
> returns nil or may crash if checking is enabled. (trunk)

On the trunk, setting the forms inside a progn and evaluating it at
once with C-x C-e, I get nil on first try, and a crash on second try.

On emacs-23 there's no crash, but (local-variable-p 'bar) => nil.

> +       XSETSYMBOL (variable, sym); /* Update in case of aliasing.  */

Does this fix work also for emacs-23?

    Juanma




This bug report was last modified 14 years and 292 days ago.

Previous Next


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