summaryrefslogtreecommitdiff
path: root/lisp/linum.el
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2019-06-07 17:32:17 +0300
committerEli Zaretskii <eliz@gnu.org>2019-06-07 17:32:17 +0300
commit9254885a9571162920889f47adb41eaf1e555c21 (patch)
treeb8845f88154ecb7e2bf5d0325850089d4cdf3272 /lisp/linum.el
parentaecbbd57c1929116cf4898336e43d81479535ca0 (diff)
downloademacs-9254885a9571162920889f47adb41eaf1e555c21.tar.gz
Resurrect display-line-number-mode in client frames
* lisp/linum.el (linum-on): Mention bug#35726 in a comment. * lisp/display-line-numbers.el (display-line-numbers--turn-on): Don't check for daemon. (Bug#35726)
Diffstat (limited to 'lisp/linum.el')
-rw-r--r--lisp/linum.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/linum.el b/lisp/linum.el
index 789b5aadd07..cdbc55dc8b8 100644
--- a/lisp/linum.el
+++ b/lisp/linum.el
@@ -121,6 +121,10 @@ Linum mode is a buffer-local minor mode."
;; if some large buffer was under linum-mode when
;; desktop was saved. So we disable linum-mode for
;; non-client frames in a daemon session.
+
+ ;; Note that nowadays, this actually doesn't show line
+ ;; numbers in client frames at all, because we visit the
+ ;; file before creating the client frame. See bug#35726.
(and (daemonp) (null (frame-parameter nil 'client))))
(linum-mode 1)))