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
2dba57c1
Commit
2dba57c1
authored
Jan 03, 2003
by
John Paul Wallington
Browse files
(eldoc-get-var-docstring): Only return a
documentation string when `sym' is non-nil.
parent
7413b888
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
11 deletions
+17
-11
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/emacs-lisp/eldoc.el
lisp/emacs-lisp/eldoc.el
+12
-11
No files found.
lisp/ChangeLog
View file @
2dba57c1
2003-01-03 John Paul Wallington <jpw@shootybangbang.com>
* emacs-lisp/eldoc.el (eldoc-get-var-docstring): Only return a
documentation string when `sym' is non-nil.
2003-01-02 Steven Tamm <steventamm@mac.com>
* scroll-bar.el (toggle-scroll-bar, scroll-bar-mode): Have
...
...
lisp/emacs-lisp/eldoc.el
View file @
2dba57c1
...
...
@@ -7,7 +7,7 @@
;; Keywords: extensions
;; Created: 1995-10-06
;; $Id: eldoc.el,v 1.2
0
2002/
0
1/
08
23:
57:30 rms
Exp $
;; $Id: eldoc.el,v 1.2
1
2002/
1
1/
19
23:
32:54 monnier
Exp $
;; This file is part of GNU Emacs.
...
...
@@ -327,16 +327,17 @@ With prefix ARG, turn ElDoc mode on if and only if ARG is positive."
;; Return a string containing a brief (one-line) documentation string for
;; the variable.
(defun eldoc-get-var-docstring (sym)
(cond ((and (eq sym (aref eldoc-last-data 0))
(eq 'variable (aref eldoc-last-data 2)))
(aref eldoc-last-data 1))
(t
(let ((doc (documentation-property sym 'variable-documentation t)))
(cond (doc
(setq doc (eldoc-docstring-format-sym-doc
sym (eldoc-docstring-first-line doc)))
(eldoc-last-data-store sym doc 'variable)))
doc))))
(when sym
(cond ((and (eq sym (aref eldoc-last-data 0))
(eq 'variable (aref eldoc-last-data 2)))
(aref eldoc-last-data 1))
(t
(let ((doc (documentation-property sym 'variable-documentation t)))
(cond (doc
(setq doc (eldoc-docstring-format-sym-doc
sym (eldoc-docstring-first-line doc)))
(eldoc-last-data-store sym doc 'variable)))
doc)))))
(defun eldoc-last-data-store (symbol doc type)
(aset eldoc-last-data 0 symbol)
...
...
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