unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#12667: 24.2; defcustom changed in lexical-binding
@ 2012-10-18  2:15 Leo
  2012-10-23 18:52 ` Stefan Monnier
  0 siblings, 1 reply; 4+ messages in thread
From: Leo @ 2012-10-18  2:15 UTC (permalink / raw)
  To: 12667

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

1. Load the attached bigbug.el

2. open it in emacs and edit the definition of
   clang-project-default-settings, for example, remove "-v"

3. C-M-x the defcustom

4. C-h v clang-project-default-settings to show:

,----
| clang-project-default-settings is a variable defined in `bigbug.el'.
| Its value is (("SDKROOT" . "iphoneos")
|  ("OTHER_CFLAGS" "-ferror-limit=0" "-ObjC" "-DDEBUG=1" "-v"))
| 
| Original value was 
| (("SDKROOT" . "iphoneos")
|  ("OTHER_CFLAGS" "-ferror-limit=0" "-ObjC" "-DDEBUG=1"))
| 
| 
| Documentation:
| FIXME
| 
| You can customize this variable.
`----

i.e. C-M-x doesn't change the value of clang-project-default-settings,
this is opposite to the behaviour when lexical-binding is nil or in
previous emacsen.

Leo


[-- Attachment #2: bigbug.el --]
[-- Type: application/emacs-lisp, Size: 202 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#12667: 24.2; defcustom changed in lexical-binding
  2012-10-18  2:15 bug#12667: 24.2; defcustom changed in lexical-binding Leo
@ 2012-10-23 18:52 ` Stefan Monnier
  2012-10-24 17:54   ` Leo
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Monnier @ 2012-10-23 18:52 UTC (permalink / raw)
  To: Leo; +Cc: 12667

> 1. Load the attached bigbug.el
> 2. open it in emacs and edit the definition of
>    clang-project-default-settings, for example, remove "-v"
> 3. C-M-x the defcustom
> 4. C-h v clang-project-default-settings to show:

> ,----
> | clang-project-default-settings is a variable defined in `bigbug.el'.
> | Its value is (("SDKROOT" . "iphoneos")
> |  ("OTHER_CFLAGS" "-ferror-limit=0" "-ObjC" "-DDEBUG=1" "-v"))
> | 
> | Original value was 
> | (("SDKROOT" . "iphoneos")
> |  ("OTHER_CFLAGS" "-ferror-limit=0" "-ObjC" "-DDEBUG=1"))
> | 
> | 
> | Documentation:
> | FIXME
> | 
> | You can customize this variable.
> `----

I can't reproduce it here.
I did "src/emacs -Q -l ~/tmp/bigbug.el ~/tmp/bigbug.el"
then removed the "-v" and did C-M-x and then C-h v and it showed the
value did not have "-v" any more (and the original value was not
displayed because it's equal to the current value).

Can you try and figure out what's the difference between me test case
and your test case, to see what triggers the problem?


        Stefan





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#12667: 24.2; defcustom changed in lexical-binding
  2012-10-23 18:52 ` Stefan Monnier
@ 2012-10-24 17:54   ` Leo
  2012-10-24 18:50     ` Stefan Monnier
  0 siblings, 1 reply; 4+ messages in thread
From: Leo @ 2012-10-24 17:54 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 12667

On 2012-10-24 02:52 +0800, Stefan Monnier wrote:
> I can't reproduce it here.
> I did "src/emacs -Q -l ~/tmp/bigbug.el ~/tmp/bigbug.el"
> then removed the "-v" and did C-M-x and then C-h v and it showed the
> value did not have "-v" any more (and the original value was not
> displayed because it's equal to the current value).
>
> Can you try and figure out what's the difference between me test case
> and your test case, to see what triggers the problem?

I built bzr trunk and this bug doesn't happen there.

I could only reproduce it with 24.2 from the emacs-24 branch
(2012-09-29).

Leo





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#12667: 24.2; defcustom changed in lexical-binding
  2012-10-24 17:54   ` Leo
@ 2012-10-24 18:50     ` Stefan Monnier
  0 siblings, 0 replies; 4+ messages in thread
From: Stefan Monnier @ 2012-10-24 18:50 UTC (permalink / raw)
  To: Leo; +Cc: 12667-done

> I built bzr trunk and this bug doesn't happen there.
> I could only reproduce it with 24.2 from the emacs-24 branch
> (2012-09-29).

Great, so it's fixed, closing,


        Stefan





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-10-24 18:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-18  2:15 bug#12667: 24.2; defcustom changed in lexical-binding Leo
2012-10-23 18:52 ` Stefan Monnier
2012-10-24 17:54   ` Leo
2012-10-24 18:50     ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).