diff options
author | Chong Yidong <cyd@stupidchicken.com> | 2010-07-01 01:32:01 -0400 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2010-07-01 01:32:01 -0400 |
commit | b32d1614abd91e784a95a34b9979b7ec0c541c9e (patch) | |
tree | bb2f0b4a8efe3942b58aa5f0e913c00e18a1b185 /lisp/ruler-mode.el | |
parent | c1ef4455eaa816d8953d0c7cbef498cc727d4d34 (diff) | |
download | emacs-b32d1614abd91e784a95a34b9979b7ec0c541c9e.tar.gz |
* ruler-mode.el (ruler--save-header-line-format): Fix typos.
Diffstat (limited to 'lisp/ruler-mode.el')
-rw-r--r-- | lisp/ruler-mode.el | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/lisp/ruler-mode.el b/lisp/ruler-mode.el index c8ae2afc0d5..1c809bbd7e0 100644 --- a/lisp/ruler-mode.el +++ b/lisp/ruler-mode.el @@ -557,15 +557,14 @@ Use the command `ruler-mode' to change this variable.") (defun ruler--save-header-line-format () "Install the header line format for Ruler mode. -Unless if Ruler mode is already enabled, save the old header line +Unless Ruler mode is already enabled, save the old header line format first." - (when enable - (when (and (not ruler-mode) - (local-variable-p 'header-line-format) - (not (local-variable-p 'ruler-mode-header-line-format-old))) - (set (make-local-variable 'ruler-mode-header-line-format-old) - header-line-format)) - (setq header-line-format ruler-mode-header-line-format))) + (when (and (not ruler-mode) + (local-variable-p 'header-line-format) + (not (local-variable-p 'ruler-mode-header-line-format-old))) + (set (make-local-variable 'ruler-mode-header-line-format-old) + header-line-format)) + (setq header-line-format ruler-mode-header-line-format)) ;;;###autoload (define-minor-mode ruler-mode |