Commit dced1efd authored by Miles Bader's avatar Miles Bader

Fix behavior of text-scale-increase when text-scale-mode is disabled

Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1257
parent 27129af9
2008-06-19 Miles Bader <miles@gnu.org>
* face-remap.el (text-scale-increase): Start from zero if
text-scale-mode isn't enabled.
2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
* faces.el (face-set-after-frame-default): Re-apply explicit `font'
......
......@@ -234,7 +234,8 @@ Each step scales the height of the default face by the variable
height by the same amount). As a special case, an argument of 0
will remove any scaling currently active."
(interactive "p")
(setq text-scale-mode-amount (if (= inc 0) 0 (+ text-scale-mode-amount inc)))
(setq text-scale-mode-amount
(if (= inc 0) 0 (+ (if text-scale-mode text-scale-mode-amount 0) inc)))
(text-scale-mode (if (zerop text-scale-mode-amount) -1 1)))
;;;###autoload
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment