emacs-devel
[Top][All Lists]
Advanced

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

customize face-font-family-alternatives detroys it's value


From: Sebastian Rose
Subject: customize face-font-family-alternatives detroys it's value
Date: Sun, 07 Sep 2008 16:36:22 +0200
User-agent: Mozilla-Thunderbird 2.0.0.16 (X11/20080724)

Hi list,


M-x customize RET face-font-alternatives

distorts the value.


It always displayes and saves

'((DejaVu\ Sans\ Mono Courier\ New)
  (Arial Verdana Helvetica fixed))

I can set it to a correct value

'(("DejaVu Sans Mono" "Courier New")
  ("Arial" "Verdana" "Helvetica" "fixed"))

and save it correctly. But when I customize the same value again,
and refuse to save it.

Then I get this warning:

>>>>
Error setting face-font-family-alternatives: (wrong-type-argument stringp DejaVu\ Sans\ Mono)
<<<<


BTW: the documentation in customize for "face-font-family-alternatives"
is wrong??

This is what it is (emacs-23 CVS, two days ago:

   Alist of alternative font family names. Hide Rest
   Each element has the form (FAMILY ALTERNATIVE1 ALTERNATIVE2 ...).
   If fonts of family FAMILY can't be loaded, try ALTERNATIVE1, then
   ALTERNATIVE2 etc.

This is misleading as a value like that triggers the same message
(missing quotes).




M-x emacs-version

GNU Emacs 23.0.60.1 (i686-pc-linux-gnu, GTK+ Version 2.12.11) of 2008-09-06 on orgon


Patch for the doc string:


--- faces.el    2008-09-07 15:16:03.000000000 +0200
+++ lisp/faces.el       2008-09-07 15:16:38.000000000 +0200
@@ -74,7 +74,7 @@
     ("Sans Serif" "helv" "helvetica" "arial" "fixed")
     ("helv" "helvetica" "arial" "fixed"))
   "*Alist of alternative font family names.
-Each element has the form (FAMILY ALTERNATIVE1 ALTERNATIVE2 ...).
+Each element has the form (\"FAMILY\" \"ALTERNATIVE1\" \"ALTERNATIVE2\" ...).
 If fonts of family FAMILY can't be loaded, try ALTERNATIVE1, then
 ALTERNATIVE2 etc."
   :tag "Alternative font families to try"





reply via email to

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