Mercurial > emacs
comparison lisp/facemenu.el @ 10749:2834ab2db11a
(facemenu-self-insert-face): If previous
self-insert-face is still valid, add to rather than replace it.
author | Boris Goldowsky <boris@gnu.org> |
---|---|
date | Tue, 14 Feb 1995 15:00:40 +0000 |
parents | c42fdf00dfa0 |
children | 48bfa8e29f36 |
comparison
equal
deleted
inserted
replaced
10748:0bee4d7bc9a4 | 10749:2834ab2db11a |
---|---|
214 (defvar facemenu-color-alist nil | 214 (defvar facemenu-color-alist nil |
215 ;; Don't initialize here; that doesn't work if preloaded. | 215 ;; Don't initialize here; that doesn't work if preloaded. |
216 "Alist of colors, used for completion. | 216 "Alist of colors, used for completion. |
217 If null, `facemenu-read-color' will set it.") | 217 If null, `facemenu-read-color' will set it.") |
218 | 218 |
219 (defvar facemenu-loc nil) | |
220 | |
221 (defun facemenu-update () | 219 (defun facemenu-update () |
222 "Add or update the \"Face\" menu in the menu bar. | 220 "Add or update the \"Face\" menu in the menu bar. |
223 You can call this to update things if you change any of the menu configuration | 221 You can call this to update things if you change any of the menu configuration |
224 variables." | 222 variables." |
225 (interactive) | 223 (interactive) |
300 (if start | 298 (if start |
301 (facemenu-add-face face start end) | 299 (facemenu-add-face face start end) |
302 (facemenu-self-insert-face face))) | 300 (facemenu-self-insert-face face))) |
303 | 301 |
304 (defun facemenu-self-insert-face (face) | 302 (defun facemenu-self-insert-face (face) |
305 (setq self-insert-face face | 303 (setq self-insert-face (if (eq last-command self-insert-face-command) |
304 (cons face (if (listp self-insert-face) | |
305 self-insert-face | |
306 (list self-insert-face))) | |
307 face) | |
306 self-insert-face-command this-command)) | 308 self-insert-face-command this-command)) |
307 | 309 |
308 (defun facemenu-set-invisible (start end) | 310 (defun facemenu-set-invisible (start end) |
309 "Make the region invisible. | 311 "Make the region invisible. |
310 This sets the `invisible' text property; it can be undone with | 312 This sets the `invisible' text property; it can be undone with |