Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
5a70dca3
Commit
5a70dca3
authored
Jun 23, 2007
by
Juanma Barranquero
Browse files
(ruler-mode): Prevent clobbering the original `header-line-format'
when reentering ruler mode.
parent
9b40e204
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
lisp/ruler-mode.el
lisp/ruler-mode.el
+3
-2
No files found.
lisp/ruler-mode.el
View file @
5a70dca3
...
...
@@ -29,7 +29,7 @@
;;; Commentary:
;; This library provides a minor mode to display a ruler in the header
;; line. It works
only on
Emacs 21.
;; line. It works
from
Emacs 21
onwards
.
;;
;; You can use the mouse to change the `fill-column' `comment-column',
;; `goal-column', `window-margins' and `tab-stop-list' settings:
...
...
@@ -562,7 +562,8 @@ Call `ruler-mode-ruler-function' to compute the ruler value.")
(
progn
;; When `ruler-mode' is on save previous header line format
;; and install the ruler header line format.
(
when
(
local-variable-p
'header-line-format
)
(
when
(
and
(
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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment