comparison lisp/facemenu.el @ 20443:76ea51acad22

(facemenu-remove-face-props): Renamed from facemenu-remove-props. Remove only face and mouse-face. (facemenu-menu): Update menu item for facemenu-remove-face-props.
author Karl Heuer <kwzh@gnu.org>
date Tue, 09 Dec 1997 21:34:50 +0000
parents a6ea17425718
children b005bf702615
comparison
equal deleted inserted replaced
20442:da84d48fd13b 20443:76ea51acad22
234 ;;;###autoload 234 ;;;###autoload
235 (let ((map facemenu-menu)) 235 (let ((map facemenu-menu))
236 (define-key map [dc] (cons "Display Colors" 'list-colors-display)) 236 (define-key map [dc] (cons "Display Colors" 'list-colors-display))
237 (define-key map [df] (cons "Display Faces" 'list-faces-display)) 237 (define-key map [df] (cons "Display Faces" 'list-faces-display))
238 (define-key map [dp] (cons "List Properties" 'list-text-properties-at)) 238 (define-key map [dp] (cons "List Properties" 'list-text-properties-at))
239 (define-key map [ra] (cons "Remove All" 'facemenu-remove-all)) 239 (define-key map [ra] (cons "Remove Text Properties" 'facemenu-remove-all))
240 (define-key map [rm] (cons "Remove Properties" 'facemenu-remove-props)) 240 (define-key map [rm] (cons "Remove Face Properties" 'facemenu-remove-face-props))
241 (define-key map [s1] (list "-----------------"))) 241 (define-key map [s1] (list "-----------------")))
242 ;;;###autoload 242 ;;;###autoload
243 (let ((map facemenu-menu)) 243 (let ((map facemenu-menu))
244 (define-key map [in] (cons "Indentation" 'facemenu-indentation-menu)) 244 (define-key map [in] (cons "Indentation" 'facemenu-indentation-menu))
245 (define-key map [ju] (cons "Justification" 'facemenu-justification-menu)) 245 (define-key map [ju] (cons "Justification" 'facemenu-justification-menu))
403 `facemenu-remove-special'." 403 `facemenu-remove-special'."
404 (interactive "r") 404 (interactive "r")
405 (add-text-properties start end '(read-only t))) 405 (add-text-properties start end '(read-only t)))
406 406
407 ;;;###autoload 407 ;;;###autoload
408 (defun facemenu-remove-props (start end) 408 (defun facemenu-remove-face-props (start end)
409 "Remove all text properties that facemenu added to region." 409 "Remove `face' and `mouse-face' text properties."
410 (interactive "*r") ; error if buffer is read-only despite the next line. 410 (interactive "*r") ; error if buffer is read-only despite the next line.
411 (let ((inhibit-read-only t)) 411 (let ((inhibit-read-only t))
412 (remove-text-properties 412 (remove-text-properties
413 start end '(face nil invisible nil intangible nil 413 start end '(face nil mouse-face nil))))
414 read-only nil category nil))))
415 414
416 ;;;###autoload 415 ;;;###autoload
417 (defun facemenu-remove-all (start end) 416 (defun facemenu-remove-all (start end)
418 "Remove all text properties from the region." 417 "Remove all text properties from the region."
419 (interactive "*r") ; error if buffer is read-only despite the next line. 418 (interactive "*r") ; error if buffer is read-only despite the next line.