diff options
| author | Eli Zaretskii | 2006-11-04 11:02:27 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2006-11-04 11:02:27 +0000 |
| commit | 1b2b899883f19661b56ae01e166c05651eb0a81a (patch) | |
| tree | d68693af226be3f32d72d56eed06f61a41c244f7 | |
| parent | 113fa448472fbbe5be5aee0cf5547cda29540060 (diff) | |
| download | emacs-1b2b899883f19661b56ae01e166c05651eb0a81a.tar.gz emacs-1b2b899883f19661b56ae01e166c05651eb0a81a.zip | |
(faces-sample-overlay, describe-face): Revert last changes.
(faces-sample-overlay): Remove variable.
(describe-face): Insert sample text in the face being described.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/faces.el | 15 |
2 files changed, 8 insertions, 14 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a026c80deb5..81b30408954 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2006-11-04 Yoni Rabkin Katzenell <yoni-r@actcom.com> (tiny change) | ||
| 2 | |||
| 3 | * faces.el (faces-sample-overlay, describe-face): Revert last | ||
| 4 | changes. | ||
| 5 | (faces-sample-overlay): Remove variable. | ||
| 6 | (describe-face): Insert sample text in the face being described. | ||
| 7 | |||
| 1 | 2006-11-04 Martin Rudalics <rudalics@gmx.at> | 8 | 2006-11-04 Martin Rudalics <rudalics@gmx.at> |
| 2 | 9 | ||
| 3 | * whitespace.el (whitespace-indent-regexp): Make this match any | 10 | * whitespace.el (whitespace-indent-regexp): Make this match any |
diff --git a/lisp/faces.el b/lisp/faces.el index f0f3b1a8ce0..c44bee322a2 100644 --- a/lisp/faces.el +++ b/lisp/faces.el | |||
| @@ -32,9 +32,6 @@ | |||
| 32 | ;; Warning suppression -- can't require x-win in batch: | 32 | ;; Warning suppression -- can't require x-win in batch: |
| 33 | (autoload 'xw-defined-colors "x-win")) | 33 | (autoload 'xw-defined-colors "x-win")) |
| 34 | 34 | ||
| 35 | (defvar faces-sample-overlay nil | ||
| 36 | "Overlay for showing an example of a face.") | ||
| 37 | |||
| 38 | (defvar help-xref-stack-item) | 35 | (defvar help-xref-stack-item) |
| 39 | 36 | ||
| 40 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 37 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| @@ -1255,16 +1252,6 @@ arg, prompt for a regular expression." | |||
| 1255 | (copy-face (car faces) (car faces) frame disp-frame) | 1252 | (copy-face (car faces) (car faces) frame disp-frame) |
| 1256 | (setq faces (cdr faces))))))) | 1253 | (setq faces (cdr faces))))))) |
| 1257 | 1254 | ||
| 1258 | (defun faces-sample-overlay (face) | ||
| 1259 | "Insert sample text with FACE. | ||
| 1260 | |||
| 1261 | If FACE is not a face or nil, use the default face." | ||
| 1262 | (let ((f (if (facep face) face 'default)) | ||
| 1263 | (start (+ (point) 2))) ;; skip face and paren | ||
| 1264 | (insert " (sample)") | ||
| 1265 | (setq faces-sample-overlay (make-overlay start (1- (point)))) | ||
| 1266 | (overlay-put faces-sample-overlay 'face f))) | ||
| 1267 | |||
| 1268 | 1255 | ||
| 1269 | (defun describe-face (face &optional frame) | 1256 | (defun describe-face (face &optional frame) |
| 1270 | "Display the properties of face FACE on FRAME. | 1257 | "Display the properties of face FACE on FRAME. |
| @@ -1306,7 +1293,7 @@ If FRAME is omitted or nil, use the selected frame." | |||
| 1306 | (insert " undefined face.\n") | 1293 | (insert " undefined face.\n") |
| 1307 | (let ((customize-label "customize this face") | 1294 | (let ((customize-label "customize this face") |
| 1308 | file-name) | 1295 | file-name) |
| 1309 | (faces-sample-overlay f) | 1296 | (insert (concat " (" (propertize "sample" 'font-lock-face f) ")")) |
| 1310 | (princ (concat " (" customize-label ")\n")) | 1297 | (princ (concat " (" customize-label ")\n")) |
| 1311 | (insert "Documentation: " | 1298 | (insert "Documentation: " |
| 1312 | (or (face-documentation f) | 1299 | (or (face-documentation f) |