GNU bug report logs - #9337
24.0.50; M-x customize-create-theme not behaving as expected

Previous Next

Package: emacs;

Reported by: Jambunathan K <kjambunathan <at> gmail.com>

Date: Sun, 21 Aug 2011 17:41:02 UTC

Severity: normal

Found in version 24.0.50

Done: Chong Yidong <cyd <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 9337 in the body.
You can then email your comments to 9337 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 owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#9337; Package emacs. (Sun, 21 Aug 2011 17:41:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jambunathan K <kjambunathan <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 21 Aug 2011 17:41:02 GMT) Full text and rfc822 format available.

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

From: Jambunathan K <kjambunathan <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.0.50; M-x customize-create-theme not behaving as expected
Date: Sun, 21 Aug 2011 23:07:32 +0530
Summary:

M-x customize-create-theme followed by "Save Theme" is not dumping all
my face configurations.

Details:
1. Start emacs for regular use.
2. M-x customizec-create-theme RET (when prompted say y)
3. Note that it dumps face definitions that are currently active. (My
   face definitions belongs to pre-theme era and is handcrafted and
   saved through the regular customize interface)
4. Make no changes to the offered faces and click on "Save Theme"
5. Visit the theme file so created.
6. Note that the theme file contains ZERO face definitions.

Here is a dump of M-x list-command-history RET

,----
| (find-file "c:/Documents and Settings/kjambunathan/My Documents/My Data/.emacs.d/xyz-theme.el")
| (customize-create-theme)
`----

Here is a dump of C-h e as I go through the above motions (shows only
the relevant portions)

,----
| Recent messages:
| Include basic face customizations in this theme? (y or n)  y
| Saving file c:/Documents and Settings/kjambunathan/My Documents/My Data/.emacs.d/xyz-theme.el...
| Wrote c:/Documents and Settings/kjambunathan/My Documents/My Data/.emacs.d/xyz-theme.el
| Theme written to c:/Documents and Settings/kjambunathan/My Documents/My Data/.emacs.d/xyz-theme.el
`----

Here is a dump of xyz-theme.el

,----[ xyz-theme.el ]
| (deftheme xyz
|   "Created 2011-08-21.")
| 
| (custom-theme-set-faces
|  'xyz
|  )
| 
| (provide-theme 'xyz)
`----

I expect to see all my face configurations saved in the above
file. Unfortunately I see ZERO face definitions. FWIW, I use a
green-on-black as my default face along with other configurations. So I
do have local changes to my faces.

In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600)
 of 2011-08-09 on 3249CTO
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.5) --no-opt'

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: ENG
  value of $XMODIFIERS: nil
  locale-coding-system: cp1252
  default enable-multibyte-characters: t

Quit
Making completion list...
Quit
Mark set
Quit
Making completion list...





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9337; Package emacs. (Sun, 25 Mar 2012 13:26:02 GMT) Full text and rfc822 format available.

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

From: Chong Yidong <cyd <at> gnu.org>
To: Jambunathan K <kjambunathan <at> gmail.com>
Cc: 9337 <at> debbugs.gnu.org
Subject: Re: bug#9337: 24.0.50;
	M-x customize-create-theme not behaving as expected
Date: Sun, 25 Mar 2012 20:53:24 +0800
Jambunathan K <kjambunathan <at> gmail.com> writes:

> 1. Start emacs for regular use.
> 2. M-x customizec-create-theme RET (when prompted say y)
> 3. Note that it dumps face definitions that are currently active. (My
>    face definitions belongs to pre-theme era and is handcrafted and
>    saved through the regular customize interface)
> 4. Make no changes to the offered faces and click on "Save Theme"
> 5. Visit the theme file so created.
> 6. Note that the theme file contains ZERO face definitions.

Thanks, I've committed a fix.




bug closed, send any further explanations to 9337 <at> debbugs.gnu.org and Jambunathan K <kjambunathan <at> gmail.com> Request was from Chong Yidong <cyd <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 25 Mar 2012 13:26:03 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9337; Package emacs. (Tue, 03 Apr 2012 05:02:01 GMT) Full text and rfc822 format available.

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

From: Jambunathan K <kjambunathan <at> gmail.com>
To: Chong Yidong <cyd <at> gnu.org>
Cc: 9337 <at> debbugs.gnu.org
Subject: Re: bug#9337: 24.0.50;
	M-x customize-create-theme not behaving as expected
Date: Tue, 03 Apr 2012 10:31:05 +0530
Chong Yidong <cyd <at> gnu.org> writes:

> Jambunathan K <kjambunathan <at> gmail.com> writes:
>
>> 1. Start emacs for regular use.
>> 2. M-x customizec-create-theme RET (when prompted say y)
>> 3. Note that it dumps face definitions that are currently active. (My
>>    face definitions belongs to pre-theme era and is handcrafted and
>>    saved through the regular customize interface)
>> 4. Make no changes to the offered faces and click on "Save Theme"
>> 5. Visit the theme file so created.
>> 6. Note that the theme file contains ZERO face definitions.
>
> Thanks, I've committed a fix.

Fix verified with the following pretest build -
GNU Emacs 24.0.95.1 (i386-mingw-nt5.1.2600) of 2012-04-03 on MARVIN




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 01 May 2012 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 7 days ago.

Previous Next


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