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


Message #11 received at 6744 <at> debbugs.gnu.org (full text, mbox):

From: Johan Bockgård <bojohan <at> gnu.org>
To: Juanma Barranquero <lekktu <at> gmail.com>
Cc: 6744 <at> debbugs.gnu.org
Subject: Re: bug#6744: 24.0.50;
	[PATCH] local-variable-p: Handle variable  aliases correctly
Date: Wed, 28 Jul 2010 05:20:45 +0200
Juanma Barranquero <lekktu <at> gmail.com> writes:

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

It is? I thought this problem only existed in the trunk, and I can't
reproduce it in the emacs-23 branch.




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.