emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/lisp/emacs-lisp/lisp-mode.el


From: Juri Linkov
Subject: [Emacs-diffs] Changes to emacs/lisp/emacs-lisp/lisp-mode.el
Date: Tue, 21 Jun 2005 11:59:34 -0400

Index: emacs/lisp/emacs-lisp/lisp-mode.el
diff -c emacs/lisp/emacs-lisp/lisp-mode.el:1.176 
emacs/lisp/emacs-lisp/lisp-mode.el:1.177
*** emacs/lisp/emacs-lisp/lisp-mode.el:1.176    Tue Jun  7 10:51:36 2005
--- emacs/lisp/emacs-lisp/lisp-mode.el  Tue Jun 21 15:59:33 2005
***************
*** 617,626 ****
        ;; `defface' is macroexpanded to `custom-declare-face'.
        ((eq (car form) 'custom-declare-face)
         ;; Reset the face.
-        (put (eval (nth 1 form)) 'face-defface-spec nil)
         (setq face-new-frame-defaults
               (assq-delete-all (eval (nth 1 form)) face-new-frame-defaults))
!        form)
        ((eq (car form) 'progn)
         (cons 'progn (mapcar 'eval-defun-1 (cdr form))))
        (t form)))
--- 617,639 ----
        ;; `defface' is macroexpanded to `custom-declare-face'.
        ((eq (car form) 'custom-declare-face)
         ;; Reset the face.
         (setq face-new-frame-defaults
               (assq-delete-all (eval (nth 1 form)) face-new-frame-defaults))
!        (put (eval (nth 1 form)) 'face-defface-spec nil)
!        ;; Setting `customized-face' to the new spec after calling
!        ;; the form, but preserving the old saved spec in `saved-face',
!        ;; imitates the situation when the new face spec is set
!        ;; temporarily for the current session in the customize
!        ;; buffer, thus allowing `face-user-default-spec' to use the
!        ;; new customized spec instead of the saved spec.
!        ;; Resetting `saved-face' temporarily to nil is needed to let
!        ;; `defface' change the spec, regardless of a saved spec.
!        (prog1 `(prog1 ,form
!                  (put ',(eval (nth 1 form)) 'saved-face
!                       ',(get (eval (nth 1 form)) 'saved-face))
!                  (put ',(eval (nth 1 form)) 'customized-face
!                       ',(eval (nth 2 form))))
!          (put (eval (nth 1 form)) 'saved-face nil)))
        ((eq (car form) 'progn)
         (cons 'progn (mapcar 'eval-defun-1 (cdr form))))
        (t form)))




reply via email to

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