Make a nil parameter switch variable-pitch-mode on

* lisp/face-remap.el (variable-pitch-mode): Make a nil parameter
switch the mode on instead of toggling (bug#19384).
This commit is contained in:
Lars Ingebrigtsen 2019-10-09 03:55:09 +02:00
parent 9365ff0527
commit cca2ba5532

View file

@ -474,7 +474,7 @@ may be more appropriate."
An interface to `buffer-face-mode' which uses the `variable-pitch' face.
Besides the choice of face, it is the same as `buffer-face-mode'."
(interactive (list (or current-prefix-arg 'toggle)))
(buffer-face-mode-invoke 'variable-pitch arg
(buffer-face-mode-invoke 'variable-pitch (or arg t)
(called-interactively-p 'interactive)))