GNU bug report logs - #3136
23.0.92; Customized variables include state string

Previous Next

Package: emacs;

Reported by: Cameron Horsburgh <cammo <at> netcall.com.au>

Date: Mon, 27 Apr 2009 21:35:03 UTC

Severity: serious

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

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 3136 in the body.
You can then email your comments to 3136 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#3136; Package emacs. (Mon, 27 Apr 2009 21:35:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Cameron Horsburgh <cammo <at> netcall.com.au>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Mon, 27 Apr 2009 21:35:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Cameron Horsburgh <cammo <at> netcall.com.au>
To: emacs-pretest-bug <at> gnu.org
Cc: rfrancoise <at> debian.org
Subject: 23.0.92; Customized variables include state string
Date: Tue, 28 Apr 2009 07:24:48 +1000
When I change a string variable using the customize interface, the
line after the entry point for the string is included in the
string. So, customising the variable 'twitter-username' to 'fred' leads to:

,----
| 
|  '(twitter-username "fred
|    [State]: EDITED, shown value does not take effect until you set or save it.")
| 
`----

This behaviour has occurred for variables in several modes I have
tried to customise and is readily reproducible.


In GNU Emacs 23.0.92.1 (i486-pc-linux-gnu, GTK+ Version 2.16.1)
 of 2009-04-24 on elegiac, modified by Debian
 (emacs-snapshot package, version 1:20090423-1)
Windowing system distributor `The X.Org Foundation', version 11.0.10601000
configured using `configure  '--build' 'i486-linux-gnu' '--host' 'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/23.0.92/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.0.92/site-lisp:/usr/share/emacs/site-lisp' '--with-x=yes' '--with-x-toolkit=gtk' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' 'LDFLAGS=-g -Wl,--as-needed' 'CPPFLAGS=''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_AU.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: Custom

Minor modes in effect:
  rcirc-track-minor-mode: t
  diff-auto-refine-mode: t
  desktop-save-mode: t
  shell-dirtrack-mode: t
  recentf-mode: t
  display-time-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
c t o r i a SPC f o r SPC s c h o o l SPC c h a m p 
s . <backspace> <backspace> . <return> SPC <tab> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> SPC SPC SPC SPC SPC A s s <backspace> 
<backspace> <backspace> E x p <tab> <down-mouse-5> 
<mouse-5> <down-mouse-5> <mouse-5> <down-mouse-5> <mouse-5> 
O t h e r : S c h o o l SPC C h a m p i o n s h i p 
s : T e a m SPC f e e <return> <tab> <home> SPC SPC 
SPC SPC SPC <end> <tab> <up> <end> <tab> SPC SPC SPC 
SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC <backspace> 
$ 1 4 0 . 0 0 C-x C-s <up> <down> C-x C-s <up> <up> 
<up> <up> <up> <up> <down> <down> <down> <down> <down> 
<home> C-SPC <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <up> <up> <up> <down> M-x 
<up> <up> <up> <return> ; <return> C-x C-s M-/ C-/ 
C-x C-s M-x c u s t o m <tab> - g r <tab> <return> 
t w i t t e r <return> <down-mouse-5> <mouse-5> <double-down-mouse-5> 
<double-mouse-5> <down-mouse-4> <mouse-4> <help-echo> 
<help-echo> <down-mouse-1> <help-echo> <mouse-movement> 
<mouse-1> <help-echo> <help-echo> <help-echo> <down-mouse-1> 
<mouse-1> <help-echo> <down-mouse-1> <mouse-1> <help-echo> 
<down-mouse-1> <mouse-1> <help-echo> <down-mouse-1> 
<mouse-1> <help-echo> <help-echo> <down-mouse-1> <help-echo> 
<mouse-movement> <mouse-1> <help-echo> <down-mouse-1> 
<down-mouse-2> <help-echo> <help-echo> <help-echo> 
<help-echo> <down-mouse-1> <down-mouse-5> <mouse-5> 
<help-echo> <help-echo> <down-mouse-1> <help-echo> 
<mouse-movement> <mouse-2> <down-mouse-4> <mouse-4> 
<help-echo> <down-mouse-1> <mouse-2> <help-echo> <down-mouse-5> 
<mouse-5> <double-down-mouse-5> <double-mouse-5> <triple-down-mouse-5> 
<triple-mouse-5> <down-mouse-4> <mouse-4> <double-down-mouse-4> 
<double-mouse-4> <triple-down-mouse-4> <triple-mouse-4> 
<down-mouse-5> <mouse-5> <down-mouse-4> <mouse-4> <down-mouse-4> 
<mouse-4> C-x C-s <help-echo> <help-echo> <help-echo> 
y e s <return> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <menu-bar> <help-menu> <se
nd-emacs-bug-report>

Recent messages:
Creating group members... 75%
Creating group magic...
Creating group state...
Creating group... done
Creating customization items ...done
Resetting customization items...done
Creating customization setup...done
byte-code: Beginning of buffer [2 times]
Saving file /home/cameron/.emacs...
Wrote /home/cameron/.emacs




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#3136; Package emacs. (Tue, 28 Apr 2009 04:25:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Chong Yidong <cyd <at> stupidchicken.com>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Tue, 28 Apr 2009 04:25:04 GMT) Full text and rfc822 format available.

Message #10 received at 3136 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Cameron Horsburgh <cammo <at> netcall.com.au>
Cc: 3136 <at> debbugs.gnu.org, rfrancoise <at> debian.org
Subject: Re: 23.0.92; Customized variables include state string
Date: Tue, 28 Apr 2009 00:16:17 -0400
> When I change a string variable using the customize interface, the
> line after the entry point for the string is included in the
> string. So, customising the variable 'twitter-username' to 'fred' leads
> to:
>
> ,----
> | 
> |  '(twitter-username "fred
> |    [State]: EDITED, shown value does not take effect until you set or
> |    save it.")
> | 
> `----
>
> This behaviour has occurred for variables in several modes I have
> tried to customise and is readily reproducible.

I can't reproduce this.  Please provide a precise recipe for reproducing
this, starting with `emacs -Q'.




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#3136; Package emacs. (Tue, 28 Apr 2009 10:25:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Cameron Horsburgh <cammo <at> netcall.com.au>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Tue, 28 Apr 2009 10:25:04 GMT) Full text and rfc822 format available.

Message #15 received at 3136 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Cameron Horsburgh <cammo <at> netcall.com.au>
To: Chong Yidong <cyd <at> stupidchicken.com>
Cc: Cameron Horsburgh <cammo <at> netcall.com.au>, 3136 <at> debbugs.gnu.org,
        rfrancoise <at> debian.org
Subject: Re: 23.0.92; Customized variables include state string
Date: Tue, 28 Apr 2009 20:12:35 +1000
On Tue, Apr 28, 2009 at 12:16:17AM -0400, Chong Yidong wrote:
> > When I change a string variable using the customize interface, the
> > line after the entry point for the string is included in the
> > string. So, customising the variable 'twitter-username' to 'fred' leads
> > to:
> >
> > ,----
> > | 
> > |  '(twitter-username "fred
> > |    [State]: EDITED, shown value does not take effect until you set or
> > |    save it.")
> > | 
> > `----
> >
> > This behaviour has occurred for variables in several modes I have
> > tried to customise and is readily reproducible.
> 
> I can't reproduce this.  Please provide a precise recipe for reproducing
> this, starting with `emacs -Q'.
> 

Thanks for your reply. Here's a blow by blow reproduction of trying
this with emacs -Q.

I move my existing .emacs out of the way, stop all running emacs
processes and call emacs -Q. Then I run M-x customize-variable. I need
to choose one that can be set to a string but has no initial value,
because I can change existing values without the problem behaviour
occurring. A good candidate is fill-prefix:

M-x customize-variable fill-prefix

I choose the option to set the variable to a string. I am given an
area to type my customisation. However, the input area also appears to
include the line immediately following, which refers to the state of
the variable. I enter a string (say, NonsenseString) into the
appropriate place and save with C-x C-s.

Then I look at my .emacs file:

C-x C-f ~/.emacs 

and I find:

,----
| 
| (custom-set-variables
|   ;; custom-set-variables was added by Custom.
|   ;; If you edit it by hand, you could mess it up, so be careful.
|   ;; Your init file should contain only one such instance.
|   ;; If there is more than one, they won't work right.
|  '(fill-prefix "NonsenseString
|    State: EDITED, shown value does not take effect until you set or save it."))
| (custom-set-faces
|   ;; custom-set-faces was added by Custom.
|   ;; If you edit it by hand, you could mess it up, so be careful.
|   ;; Your init file should contain only one such instance.
|   ;; If there is more than one, they won't work right.
|  )
| 
`----

I should also add that I have been able to follow this recipe in an
xterm and in the GTK GUI version of emacs. Thanks for your time in
helping get to the bottom of this!

-- 

Cameron Horsburgh

Blog: http://spiritcry.wordpress.com/




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#3136; Package emacs. (Tue, 28 Apr 2009 17:25:06 GMT) Full text and rfc822 format available.

Message #18 received at 3136 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Cameron Horsburgh <cammo <at> netcall.com.au>
Cc: 3136 <at> debbugs.gnu.org, Chong Yidong <cyd <at> stupidchicken.com>,
        rfrancoise <at> debian.org
Subject: Re: bug#3136: 23.0.92; Customized variables include state string
Date: Tue, 28 Apr 2009 13:16:01 -0400
Cameron Horsburgh wrote:

> processes and call emacs -Q. Then I run M-x customize-variable. I need
> to choose one that can be set to a string but has no initial value,

Looks like my 2009-03-24 changes to wid-edit.el are to blame.




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#3136; Package emacs. (Wed, 29 Apr 2009 03:30:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Wed, 29 Apr 2009 03:30:04 GMT) Full text and rfc822 format available.

Message #23 received at 3136 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 3136 <at> debbugs.gnu.org, Cameron Horsburgh <cammo <at> netcall.com.au>,
        Chong Yidong <cyd <at> stupidchicken.com>, rfrancoise <at> debian.org
Subject: Re: bug#3136: 23.0.92; Customized variables include state string
Date: Tue, 28 Apr 2009 23:22:23 -0400
>> processes and call emacs -Q. Then I run M-x customize-variable. I need
>> to choose one that can be set to a string but has no initial value,
> Looks like my 2009-03-24 changes to wid-edit.el are to blame.

Shame on them,


        Stefan





Severity set to `serious' from `normal' Request was from Chong Yidong <cyd <at> stupidchicken.com> to control <at> emacsbugs.donarmstrong.com. (Thu, 30 Apr 2009 15:25:08 GMT) Full text and rfc822 format available.

Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Sat, 02 May 2009 23:50:03 GMT) Full text and rfc822 format available.

Notification sent to Cameron Horsburgh <cammo <at> netcall.com.au>:
bug acknowledged by developer. (Sat, 02 May 2009 23:50:03 GMT) Full text and rfc822 format available.

Message #30 received at 3136-done <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 3136-done <at> debbugs.gnu.org
Subject: Re: bug#3136: 23.0.92; Customized variables include state string
Date: Sat, 02 May 2009 19:45:39 -0400
2009-05-02  Glenn Morris  <rgm at gnu.org>

  * wid-edit.el (widget-specify-field, widget-field-value-get, character):
  Revert 2009-03-24 change, since it causes a more serious problem than
  the one it solves.  (Closes Bug#3136, reopens Bug#2689.)




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> emacsbugs.donarmstrong.com. (Sun, 31 May 2009 14:24:09 GMT) Full text and rfc822 format available.

This bug report was last modified 16 years and 24 days ago.

Previous Next


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