bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: customize-face


From: Alex Schroeder
Subject: Re: customize-face
Date: Tue, 06 Nov 2001 23:02:35 +0100
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1 (i686-pc-linux-gnu)

address@hidden (Per Abrahamsen) writes:

>> Hm, even so -- what happens is "reset to standard value and show Lisp
>> expression".  I was surprised by the reset that happened.
> 
> Didn't the "reset" only happen when you pressed "set" while it was
> displaying the initial value?

Ok, this is what I did:

1. Show all display specs
2. Add a new entry
3. Save for future session

(get 'default 'saved-face)

  => some stuff

4. Show as Lisp expression

(get 'default 'saved-face)

  => some stuff (the same as above)

This is correct.  Then:

5. Erase customization
6. Show all display specs
7. Add a new entry
8. Set for current session (no save)

M-x apropos RET ^default$ and look at the plist of default:

  ...
  face-defface-spec ((((type x)) (nil)))
  ...
  saved-face nil
  customized-face ((((type tty)) (:foreground "black")) (t (:stipple nil 
:background "#304020" :foreground "navajo white" :inverse-video nil :box nil 
:strike-through nil :overline nil :underline nil :slant normal :weight normal 
:height 135 :width normal :family "misc-fixed")))
  ...

9. Show as Lisp expression

M-x apropos RET ^default$ and look at the plist of default:

  ...
  face-defface-spec ((((type x)) (nil)))
  ...
  saved-face nil
  customized-face ((((type tty)) (:foreground "black")) (t (:stipple nil 
:background "#304020" :foreground "navajo white" :inverse-video nil :box nil 
:strike-through nil :overline nil :underline nil :slant normal :weight normal 
:height 135 :width normal :family "misc-fixed")))
  ...

  (the same as above)

It seems that the settings are still around.  The custom buffer shows
the wrong settings, however:

Lisp expression: 
((t
  (:family "misc-fixed" :width normal :height 135 :weight normal :slant normal 
:underline off :overline off :strike-through off :box off :inverse-video off 
:foreground "navajo white" :background "#304020" :stipple off)))

And when I revert to the old display:

10. Show all display specs -- my customizations seem to be gone.
11. Kill the customize face buffer and M-x customize-face RET default
    RET shows the same ol' buffer and my customizations seem to be
    missing.

The real value seems to be around, though.

Alex.
-- 
http://www.emacswiki.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]