emacs-diffs
[Top][All Lists]
Advanced

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

master bd8f4b0: Fix customizing user options of type face


From: Mauro Aranda
Subject: master bd8f4b0: Fix customizing user options of type face
Date: Tue, 3 Nov 2020 08:09:33 -0500 (EST)

branch: master
commit bd8f4b04d51083bd61350c70c09daff4fd8bb61d
Author: Mauro Aranda <maurooaranda@gmail.com>
Commit: Mauro Aranda <maurooaranda@gmail.com>

    Fix customizing user options of type face
    
    * lisp/cus-edit.el (face): Move the %f escape after the tag, because
    otherwise customizing a face user option doesn't work:
    custom-variable-value-create thinks that everything up until the first
    ":" is part of the tag, and the item widget doesn't know how to handle
    the %f escape.
---
 lisp/cus-edit.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el
index 3eef446..34d76bf 100644
--- a/lisp/cus-edit.el
+++ b/lisp/cus-edit.el
@@ -4021,7 +4021,7 @@ restoring it to the state of a face that has never been 
customized."
 
 (define-widget 'face 'symbol
   "A Lisp face name (with sample)."
-  :format "%f %{%t%}: (%{sample%}) %v"
+  :format "%{%t%}: %f (%{sample%}) %v"
   :tag "Face"
   :value 'default
   :sample-face-get 'widget-face-sample-face-get



reply via email to

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