From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan Rehders Newsgroups: gmane.emacs.bugs Subject: bug#420: Customize not saving faces whose values are hidden Date: Sun, 15 Jun 2008 20:19:19 +0200 Message-ID: Reply-To: Jan Rehders , 420@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v919.2) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1213556450 13249 80.91.229.12 (15 Jun 2008 19:00:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 15 Jun 2008 19:00:50 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 15 21:01:33 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K7xTk-0006s6-Gx for geb-bug-gnu-emacs@m.gmane.org; Sun, 15 Jun 2008 21:01:28 +0200 Original-Received: from localhost ([127.0.0.1]:46025 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K7xSw-0004Cp-GK for geb-bug-gnu-emacs@m.gmane.org; Sun, 15 Jun 2008 15:00:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K7wwZ-0006R0-CI for bug-gnu-emacs@gnu.org; Sun, 15 Jun 2008 14:27:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K7wwY-0006QU-QN for bug-gnu-emacs@gnu.org; Sun, 15 Jun 2008 14:27:10 -0400 Original-Received: from [199.232.76.173] (port=54232 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K7wwY-0006QR-GH for bug-gnu-emacs@gnu.org; Sun, 15 Jun 2008 14:27:10 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:35057) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K7wwY-0004Qj-A0 for bug-gnu-emacs@gnu.org; Sun, 15 Jun 2008 14:27:10 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m5FIR87t014616; Sun, 15 Jun 2008 11:27:08 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m5FIP4L2013517; Sun, 15 Jun 2008 11:25:04 -0700 X-Loop: don@donarmstrong.com Resent-From: Jan Rehders Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 15 Jun 2008 18:25:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 420 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.121355397012279 (code B ref -1); Sun, 15 Jun 2008 18:25:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 15 Jun 2008 18:19:30 +0000 Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m5FIJQGu012273 for ; Sun, 15 Jun 2008 11:19:27 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K7wp3-0003B5-GI for bug-gnu-emacs@gnu.org; Sun, 15 Jun 2008 14:19:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K7wp1-00039X-Rm for bug-gnu-emacs@gnu.org; Sun, 15 Jun 2008 14:19:25 -0400 Original-Received: from [199.232.76.173] (port=53011 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K7wp1-00039S-Om for bug-gnu-emacs@gnu.org; Sun, 15 Jun 2008 14:19:23 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:54151) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1K7wp1-00032f-Mf for bug-gnu-emacs@gnu.org; Sun, 15 Jun 2008 14:19:24 -0400 Original-Received: (qmail invoked by alias); 15 Jun 2008 18:19:20 -0000 Original-Received: from e178107239.adsl.alicedsl.de (EHLO [192.168.2.177]) [85.178.107.239] by mail.gmx.net (mp053) with SMTP; 15 Jun 2008 20:19:20 +0200 X-Authenticated: #6007662 X-Provags-ID: V01U2FsdGVkX19Q5LA6J2VQ+Fo+GwO3KgMdE9uRFYom98h3ExkYx0 6h67btGIrTyler X-Mailer: Apple Mail (2.919.2) X-Y-GMX-Trusted: 0 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Sun, 15 Jun 2008 14:27:10 -0400 X-Mailman-Approved-At: Sun, 15 Jun 2008 15:00:23 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:18411 Archived-At: From: Jan Rehders To: bug-gnu-emacs@gnu.org Subject: customize faces not saving hidden faces --text follows this line-- Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: Hello, I have the following issue when customizing faces: On C-x,C-s customize will only save those faces whose values are currently shown. Faces which have been applied for the current session and then been hidden using the "Hide Face" widget will not be saved to .emacs Reproduction: 1. M-x, customize-group, RET, font-lock-faces, RET 2. C-s, Show Face, C-b, RET (show the font lock comment face's value) 3. Change the "Foreground" field to "blue" 4. C-c,C-c, y, RET (call 'Custom-set) 5. C-x,C-s, yes, RET (call 'Custom-save) Check .emacs if changes have been saved (see step 9/10) 6. Change the "Foreground" field to "red" 7. C-c,C-c, y, RET (call 'Custom-set) 8. C-r, Hide Face, RET, RET (hide the font lock comment face's value) 9. C-x,C-s, yes, RET (call 'Custom-save) 10. Open your ~/.emacs and locate "custom-set-faces" 11. Have a look at font-lock-comment-face It's :foreground field will not have the value we just set I would expect that faces will also be saved by `Custom-save' if their value is not displayed Apart from this problem it would also be nice to be able to get a confirmation when closing a customize buffer if there are unsaved changes like with modified files. Otherwise those thoughtless people like me might forget to save from time to time. keep up the great work, Jan If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /Applications/Tools/Emacs.app/Contents/Resources/etc/DEBUG for instructions. In GNU Emacs 22.2.1 (i386-apple-darwin8.11.1, Carbon Version 1.6.0) of 2008-04-02 on seijiz.local Windowing system distributor `Apple Inc.', version 10.5.2 configured using `configure '--prefix=/Applications/Emacs.app/ Contents/Resources' '--with-carbon' '--without-x' '--libexecdir=/ Volumes/Emacs/Emacs.app/Contents/MacOS/libexec' 'CFLAGS=-Os -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -DUSE_ATSUI - DUSE_MAC_TSM'' 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: nil locale-coding-system: iso-latin-1 default-enable-multibyte-characters: t Major mode: Zomp Minor modes in effect: encoded-kbd-mode: t TeX-PDF-mode: t reveal-mode: t which-function-mode: t show-paren-mode: t partial-completion-mode: t global-hl-line-mode: t global-auto-revert-mode: t icomplete-mode: t desktop-save-mode: t cua-mode: t hl-sexp-mode: t eldoc-mode: t yas/minor-mode: t iswitchb-mode: t recentf-mode: t mac-print-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 blink-cursor-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t hs-minor-mode: t Recent input: C-n C-n C-n C-l A-3 C-` C-` C-` C-` C-o . z o m p RET C-p C-l C-x d RET ) n n n n n n n n n n n n n n n n p p p p p p p p p n n n n n n n n C-s t e m p C-n C-p r f o o C-c C-c C-_ r C-g C-n C-p C-p C-n r C-g C-g C-g C-c C-c C-n C-p C-p C-n r C-c C-n C-p C-p C-n C-n C-p C-p C-n C-l C-n C-p C-p C-n C-l s e t C-g C-n C-p C-p C-n C-l r C-d C-d C-d C-c C-c C-n C-p r C-n f o o x x x C-g C-c C-c C-p C-p C-n r C-n C-f C-f C-d C-c C-c q C-n C-p C-p C-n C-l r e p C-_ A-s C-a C-n r e p o r t SPC e m a c s SPC b u g RET Recent messages: Mark set C-?:help M-p:pad M-o:open M-c:close M-b:blank M-s:string M-f:fill M- i:incr M-n:seq if: Text is read-only Press C-c C-c when finished or C-c ESC to abort changes Mark set C-?:help M-p:pad M-o:open M-c:close M-b:blank M-s:string M-f:fill M- i:incr M-n:seq Undo... Undo! (No changes need to be saved) Loading emacsbug...done