]> git.eshelyaron.com Git - emacs.git/commitdiff
Make a nil parameter switch variable-pitch-mode on
authorLars Ingebrigtsen <larsi@gnus.org>
Wed, 9 Oct 2019 01:55:09 +0000 (03:55 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 9 Oct 2019 01:55:09 +0000 (03:55 +0200)
* lisp/face-remap.el (variable-pitch-mode): Make a nil parameter
switch the mode on instead of toggling (bug#19384).

lisp/face-remap.el

index 1a0cc646c35948acb5134f267425e9b5bb4e2e9b..5cdecb92ee018e76a96893921953b179bc0566d4 100644 (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)))