+2006-11-04 Yoni Rabkin Katzenell <yoni-r@actcom.com> (tiny change)
+
+ * faces.el (faces-sample-overlay, describe-face): Revert last
+ changes.
+ (faces-sample-overlay): Remove variable.
+ (describe-face): Insert sample text in the face being described.
+
2006-11-04 Martin Rudalics <rudalics@gmx.at>
* whitespace.el (whitespace-indent-regexp): Make this match any
;; Warning suppression -- can't require x-win in batch:
(autoload 'xw-defined-colors "x-win"))
-(defvar faces-sample-overlay nil
- "Overlay for showing an example of a face.")
-
(defvar help-xref-stack-item)
\f
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(copy-face (car faces) (car faces) frame disp-frame)
(setq faces (cdr faces)))))))
-(defun faces-sample-overlay (face)
- "Insert sample text with FACE.
-
-If FACE is not a face or nil, use the default face."
- (let ((f (if (facep face) face 'default))
- (start (+ (point) 2))) ;; skip face and paren
- (insert " (sample)")
- (setq faces-sample-overlay (make-overlay start (1- (point))))
- (overlay-put faces-sample-overlay 'face f)))
-
(defun describe-face (face &optional frame)
"Display the properties of face FACE on FRAME.
(insert " undefined face.\n")
(let ((customize-label "customize this face")
file-name)
- (faces-sample-overlay f)
+ (insert (concat " (" (propertize "sample" 'font-lock-face f) ")"))
(princ (concat " (" customize-label ")\n"))
(insert "Documentation: "
(or (face-documentation f)