unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Change in face-spec-set
@ 2007-10-19 17:42 Richard Stallman
  2007-10-19 20:10 ` Glenn Morris
  0 siblings, 1 reply; 9+ messages in thread
From: Richard Stallman @ 2007-10-19 17:42 UTC (permalink / raw)
  To: emacs-devel

I wrote the following patch to fix one of the bugs in `face-spec-set'
which was introduced by my first change there.  Other changes have
been made subsequently, and I don't know whether this patch is still
needed, or whether any problems remain there.  Can someone tell me
the situation?

diff -c -c -r1.381 faces.el
*** faces.el	18 Oct 2007 19:02:22 -0000	1.381
--- faces.el	19 Oct 2007 17:25:59 -0000
***************
*** 1472,1477 ****
--- 1472,1483 ----
      ;; When we reset the face based on its spec, then it is unmodified
      ;; as far as Custom is concerned.
      (put (or (get face 'face-alias) face) 'face-modified nil)
+     ;; Clear all the new-frame defaults for this face.
+     ;; face-spec-reset-face won't do it right.
+     (let ((facevec (cdr (assq face face-new-frame-defaults))))
+       (dotimes (i (length facevec))
+ 	(unless (= i 0)
+ 	  (aset facevec i 'unspecified))))
      ;; Set each frame according to the rules implied by SPEC.
      (dolist (frame (frame-list))
        (face-spec-set face spec frame))))

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

end of thread, other threads:[~2007-10-29 23:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-19 17:42 Change in face-spec-set Richard Stallman
2007-10-19 20:10 ` Glenn Morris
2007-10-19 21:12   ` Glenn Morris
2007-10-20 23:47     ` Johan Bockgård
2007-10-20 14:57   ` Richard Stallman
2007-10-27 23:41   ` Richard Stallman
2007-10-29  6:39     ` Glenn Morris
2007-10-29 14:02       ` Johan Bockgård
2007-10-29 23:35       ` Richard Stallman

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).