all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* customize face-font-family-alternatives detroys it's value
@ 2008-09-07 14:36 Sebastian Rose
  2008-09-14 18:00 ` martin rudalics
  0 siblings, 1 reply; 2+ messages in thread
From: Sebastian Rose @ 2008-09-07 14:36 UTC (permalink / raw)
  To: [emacs.devel]

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"





^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: customize face-font-family-alternatives detroys it's value
  2008-09-07 14:36 customize face-font-family-alternatives detroys it's value Sebastian Rose
@ 2008-09-14 18:00 ` martin rudalics
  0 siblings, 0 replies; 2+ messages in thread
From: martin rudalics @ 2008-09-14 18:00 UTC (permalink / raw)
  To: sebastian_rose; +Cc: [emacs.devel]

 > M-x customize RET face-font-alternatives

You mean

M-x customize-option RET face-font-family-alternatives

here?

 > 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.

What does C-h v face-font-family-alternatives say at this time?

 > But when I customize the same value again,

What do you do precisely here?

 > and refuse to save it.

What does "refuse to save it" mean?

 > 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).

In the customization buffer you don't need any quotes.  Please start
Emacs without any customizations for this, customize it to trigger the
bug, and post the value reported by C-h v face-font-family-alternatives
before and after each customization step here.

Thank you, martin.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-09-14 18:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-07 14:36 customize face-font-family-alternatives detroys it's value Sebastian Rose
2008-09-14 18:00 ` martin rudalics

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.