diff options
| author | Juanma Barranquero | 2009-09-22 00:06:28 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2009-09-22 00:06:28 +0000 |
| commit | 245be23c669af9fa2a241531a74522b5cccc884c (patch) | |
| tree | d13c3e21ece6a0c278ddaa04e3ce51b17f802b6f | |
| parent | 91fdbd6fdc7a68a9832166d4e35e8b0ed31d72e0 (diff) | |
| download | emacs-245be23c669af9fa2a241531a74522b5cccc884c.tar.gz emacs-245be23c669af9fa2a241531a74522b5cccc884c.zip | |
* linum.el (linum-delete-overlays, linum-update-window):
Do not modify the right margin. (Bug#3971)
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/linum.el | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 56328bbad57..b0ecec11bbd 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2009-09-22 Lennart Borgman <lennart.borgman@gmail.com> | ||
| 2 | |||
| 3 | * linum.el (linum-delete-overlays, linum-update-window): | ||
| 4 | Do not modify the right margin. (Bug#3971) | ||
| 5 | |||
| 1 | 2009-09-21 Chong Yidong <cyd@stupidchicken.com> | 6 | 2009-09-21 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 7 | ||
| 3 | * files.el (conf-mode-maybe, magic-fallback-mode-alist): Use | 8 | * files.el (conf-mode-maybe, magic-fallback-mode-alist): Use |
diff --git a/lisp/linum.el b/lisp/linum.el index 9e0e54a49e1..81b48e99067 100644 --- a/lisp/linum.el +++ b/lisp/linum.el | |||
| @@ -113,7 +113,7 @@ and you have to scroll or press \\[recenter-top-bottom] to update the numbers." | |||
| 113 | (mapc #'delete-overlay linum-overlays) | 113 | (mapc #'delete-overlay linum-overlays) |
| 114 | (setq linum-overlays nil) | 114 | (setq linum-overlays nil) |
| 115 | (dolist (w (get-buffer-window-list (current-buffer) nil t)) | 115 | (dolist (w (get-buffer-window-list (current-buffer) nil t)) |
| 116 | (set-window-margins w 0))) | 116 | (set-window-margins w 0 (cdr (window-margins w))))) |
| 117 | 117 | ||
| 118 | (defun linum-update-current () | 118 | (defun linum-update-current () |
| 119 | "Update line numbers for the current buffer." | 119 | "Update line numbers for the current buffer." |
| @@ -168,7 +168,7 @@ and you have to scroll or press \\[recenter-top-bottom] to update the numbers." | |||
| 168 | (overlay-put ov 'linum-str str)))) | 168 | (overlay-put ov 'linum-str str)))) |
| 169 | (forward-line) | 169 | (forward-line) |
| 170 | (setq line (1+ line))) | 170 | (setq line (1+ line))) |
| 171 | (set-window-margins win width))) | 171 | (set-window-margins win width (cdr (window-margins win))))) |
| 172 | 172 | ||
| 173 | (defun linum-after-change (beg end len) | 173 | (defun linum-after-change (beg end len) |
| 174 | ;; update overlays on deletions, and after newlines are inserted | 174 | ;; update overlays on deletions, and after newlines are inserted |