Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
a4992f73
Commit
a4992f73
authored
May 28, 2003
by
Richard M. Stallman
Browse files
(custom-face-state-set): non-nil `face-modified'
means face was set outside of Custom.
parent
fc237647
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
22 deletions
+28
-22
lisp/cus-edit.el
lisp/cus-edit.el
+28
-22
No files found.
lisp/cus-edit.el
View file @
a4992f73
...
...
@@ -2982,28 +2982,34 @@ widget. If FILTER is nil, ACTION is always valid.")
"
Set
the
state
of
WIDGET.
"
(let* ((symbol (widget-value widget))
(comment (get symbol 'face-comment))
tmp temp)
(widget-put widget :custom-state
(cond ((progn
(setq tmp (get symbol 'customized-face))
(setq temp (get symbol 'customized-face-comment))
(or tmp temp))
(if (equal temp comment)
'set
'changed))
((progn
(setq tmp (get symbol 'saved-face))
(setq temp (get symbol 'saved-face-comment))
(or tmp temp))
(if (equal temp comment)
'saved
'changed))
((get symbol 'face-defface-spec)
(if (equal comment nil)
'standard
'changed))
(t
'rogue)))))
tmp temp
(state
(cond ((progn
(setq tmp (get symbol 'customized-face))
(setq temp (get symbol 'customized-face-comment))
(or tmp temp))
(if (equal temp comment)
'set
'changed))
((progn
(setq tmp (get symbol 'saved-face))
(setq temp (get symbol 'saved-face-comment))
(or tmp temp))
(if (equal temp comment)
'saved
'changed))
((get symbol 'face-defface-spec)
(if (equal comment nil)
'standard
'changed))
(t
'rogue))))
;; If the user called set-face-attribute to change the default
;; for new frames, this face is "
set
outside
of
Customize
".
(if (and (not (eq state 'rogue))
(get symbol 'face-modified))
(setq state 'changed))
(widget-put widget :custom-state state)))
(defun custom-face-action (widget &optional event)
"
Show
the
menu
for
`
custom-face
'
WIDGET.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment