We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5d1bd6 commit f339cc3Copy full SHA for f339cc3
lisp/facemenu.el
@@ -718,7 +718,13 @@ they are used to set the face information.
718
As a special case, if FACE is `default', then the region is left with NO face
719
text property. Otherwise, selecting the default face would not have any
720
effect. See `facemenu-remove-face-function'."
721
- (interactive "*xFace: \nr")
+ (interactive (list (progn
722
+ (barf-if-buffer-read-only)
723
+ (read-face-name "Use face" (face-at-point t)))
724
+ (if (and mark-active (not current-prefix-arg))
725
+ (region-beginning))
726
727
+ (region-end))))
728
(cond
729
((and (eq face 'default)
730
(not (eq facemenu-remove-face-function t)))
0 commit comments