diff options
| author | Miles Bader | 2008-06-19 02:17:16 +0000 |
|---|---|---|
| committer | Miles Bader | 2008-06-19 02:17:16 +0000 |
| commit | dced1efdffdc7896403d88bd818a324c6a864a98 (patch) | |
| tree | 83604dcff320bd5af244b04e1bf658c287f0e539 | |
| parent | 27129af9d775855efb529d63d2d5c62af2699afe (diff) | |
| download | emacs-dced1efdffdc7896403d88bd818a324c6a864a98.tar.gz emacs-dced1efdffdc7896403d88bd818a324c6a864a98.zip | |
Fix behavior of text-scale-increase when text-scale-mode is disabled
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1257
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/face-remap.el | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 90b9b297b55..ca4aeafe5c3 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-06-19 Miles Bader <miles@gnu.org> | ||
| 2 | |||
| 3 | * face-remap.el (text-scale-increase): Start from zero if | ||
| 4 | text-scale-mode isn't enabled. | ||
| 5 | |||
| 1 | 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | * faces.el (face-set-after-frame-default): Re-apply explicit `font' | 8 | * faces.el (face-set-after-frame-default): Re-apply explicit `font' |
diff --git a/lisp/face-remap.el b/lisp/face-remap.el index 2988e399161..ddc9f22ddfa 100644 --- a/lisp/face-remap.el +++ b/lisp/face-remap.el | |||
| @@ -234,7 +234,8 @@ Each step scales the height of the default face by the variable | |||
| 234 | height by the same amount). As a special case, an argument of 0 | 234 | height by the same amount). As a special case, an argument of 0 |
| 235 | will remove any scaling currently active." | 235 | will remove any scaling currently active." |
| 236 | (interactive "p") | 236 | (interactive "p") |
| 237 | (setq text-scale-mode-amount (if (= inc 0) 0 (+ text-scale-mode-amount inc))) | 237 | (setq text-scale-mode-amount |
| 238 | (if (= inc 0) 0 (+ (if text-scale-mode text-scale-mode-amount 0) inc))) | ||
| 238 | (text-scale-mode (if (zerop text-scale-mode-amount) -1 1))) | 239 | (text-scale-mode (if (zerop text-scale-mode-amount) -1 1))) |
| 239 | 240 | ||
| 240 | ;;;###autoload | 241 | ;;;###autoload |