aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorMichael Albinus2017-06-05 13:00:07 +0200
committerMichael Albinus2017-06-05 13:00:07 +0200
commit9f496c591d457b511a42c0f63e0d2d923cda0247 (patch)
tree86b550b9b3a8c1b5cb33bfdca82e470ab211bfac /lisp
parent751d5920bed1a3af01fd5a31ce4eb7d8b6994151 (diff)
parent13e9493ea36df04e2c6b69e9b316d40c072ee88b (diff)
downloademacs-9f496c591d457b511a42c0f63e0d2d923cda0247.tar.gz
emacs-9f496c591d457b511a42c0f63e0d2d923cda0247.zip
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Diffstat (limited to 'lisp')
-rw-r--r--lisp/desktop.el4
-rw-r--r--lisp/linum.el11
-rw-r--r--lisp/progmodes/elisp-mode.el2
3 files changed, 15 insertions, 2 deletions
diff --git a/lisp/desktop.el b/lisp/desktop.el
index 39dc92fabe2..540d0e3b11d 100644
--- a/lisp/desktop.el
+++ b/lisp/desktop.el
@@ -733,6 +733,10 @@ if different)."
733 (condition-case err 733 (condition-case err
734 (unless (or (eq frame this) 734 (unless (or (eq frame this)
735 (eq frame mini) 735 (eq frame mini)
736 ;; Don't delete daemon's initial frame, or
737 ;; we'll never be able to close the last
738 ;; client's frame (Bug#26912).
739 (if (daemonp) (not (frame-parameter frame 'client)))
736 (frame-parameter frame 'desktop-dont-clear)) 740 (frame-parameter frame 'desktop-dont-clear))
737 (delete-frame frame)) 741 (delete-frame frame))
738 (error 742 (error
diff --git a/lisp/linum.el b/lisp/linum.el
index 8baa263f0b3..9cfb94dab68 100644
--- a/lisp/linum.el
+++ b/lisp/linum.el
@@ -112,7 +112,16 @@ Linum mode is a buffer-local minor mode."
112(define-globalized-minor-mode global-linum-mode linum-mode linum-on) 112(define-globalized-minor-mode global-linum-mode linum-mode linum-on)
113 113
114(defun linum-on () 114(defun linum-on ()
115 (unless (minibufferp) 115 (unless (or (minibufferp)
116 ;; Turning linum-mode in the daemon's initial frame
117 ;; could significantly slow down startup, if the buffer
118 ;; in which this is done is large, because Emacs thinks
119 ;; the "window" spans the entire buffer then. This
120 ;; could happen when restoring session via desktop.el,
121 ;; if some large buffer was under linum-mode when
122 ;; desktop was saved. So we disable linum-mode for
123 ;; non-client frames in a daemon session.
124 (and (daemonp) (null (frame-parameter nil 'client))))
116 (linum-mode 1))) 125 (linum-mode 1)))
117 126
118(defun linum-delete-overlays () 127(defun linum-delete-overlays ()
diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el
index 6c6fb925040..b3f452ca5b9 100644
--- a/lisp/progmodes/elisp-mode.el
+++ b/lisp/progmodes/elisp-mode.el
@@ -1372,7 +1372,7 @@ or elsewhere, return a 1-line docstring."
1372 (condition-case nil (documentation sym t) 1372 (condition-case nil (documentation sym t)
1373 (invalid-function nil)) 1373 (invalid-function nil))
1374 sym)) 1374 sym))
1375 (car doc)) 1375 (substitute-command-keys (car doc)))
1376 (t (help-function-arglist sym))))) 1376 (t (help-function-arglist sym)))))
1377 ;; Stringify, and store before highlighting, downcasing, etc. 1377 ;; Stringify, and store before highlighting, downcasing, etc.
1378 (elisp--last-data-store sym (elisp-function-argstring args) 1378 (elisp--last-data-store sym (elisp-function-argstring args)