]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix behavior of text-scale-increase when text-scale-mode is disabled
authorMiles Bader <miles@gnu.org>
Thu, 19 Jun 2008 02:17:16 +0000 (02:17 +0000)
committerMiles Bader <miles@gnu.org>
Thu, 19 Jun 2008 02:17:16 +0000 (02:17 +0000)
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1257

lisp/ChangeLog
lisp/face-remap.el

index 90b9b297b555fa514c60d716c56fcd8f09b23be6..ca4aeafe5c3c59b87f800aa68c731e0420549812 100644 (file)
@@ -1,3 +1,8 @@
+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'
index 2988e3991618373ea0d0f780f403673f01a8bf82..ddc9f22ddfa110f21a837da28095f863481f448c 100644 (file)
@@ -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