From: Chong Yidong Date: Thu, 1 Jul 2010 05:32:01 +0000 (-0400) Subject: * ruler-mode.el (ruler--save-header-line-format): Fix typos. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~438^2~51^2~83 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b32d1614abd91e784a95a34b9979b7ec0c541c9e;p=emacs.git * ruler-mode.el (ruler--save-header-line-format): Fix typos. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 0184aa2dd94..ea4ac607970 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2010-07-01 Chong Yidong + + * ruler-mode.el (ruler--save-header-line-format): Fix typos. + 2010-06-30 Chong Yidong * frame.el (make-frame): Add default-frame-alist to the PARAMETERS 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