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
a61344d6
Commit
a61344d6
authored
Nov 14, 2009
by
Glenn Morris
Browse files
(elint-standard-variables): Doc fix.
Add some comments related to #1063.
parent
d501801e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
lisp/ChangeLog
lisp/ChangeLog
+4
-0
lisp/emacs-lisp/elint.el
lisp/emacs-lisp/elint.el
+11
-2
No files found.
lisp/ChangeLog
View file @
a61344d6
2009-11-14 Glenn Morris <rgm@gnu.org>
* emacs-lisp/elint.el (elint-standard-variables): Doc fix.
2009-11-14 Shigeru Fukaya <shigeru.fukaya@gmail.com>
* emacs-lisp/elint.el (elint-standard-variables): Add some variables
...
...
lisp/emacs-lisp/elint.el
View file @
a61344d6
...
...
@@ -118,13 +118,15 @@ are as follows, and suppress messages about the indicated features:
;;; Data
;;;
;; FIXME does this serve any useful purpose now elint-builtin-variables exists?
(
defconst
elint-standard-variables
;; Most of these are defined in C with no documentation.
;; FIXME I don't see why they shouldn't just get doc-strings.
'
(
vc-mode
local-write-file-hooks
activate-menubar-hook
buffer-name-history
coding-system-history
extended-command-history
kbd-macro-termination-hook
read-expression-history
yes-or-no-p-history
)
"Standard buffer local variables, excluding `elint-builtin-variables'."
)
"Standard variables, excluding `elint-builtin-variables'.
These are variables that we cannot detect automatically for some reason."
)
(
defvar
elint-builtin-variables
nil
"List of built-in variables. Set by `elint-initialize'.
...
...
@@ -638,6 +640,13 @@ Returns the environment created by the form."
(
defun
elint-unbound-variable
(
var
env
)
"T if VAR is unbound in ENV."
;; #1063 suggests adding (symbol-file var) here, but I don't think
;; this is right, because it depends on what files you happen to have
;; loaded at the time, which might not be the same when the code runs.
;; It also suggests adding:
;; (numberp (get var 'variable-documentation))
;; (numberp (cdr-safe (get var 'variable-documentation)))
;; but this is not needed now elint-scan-doc-file exists.
(
not
(
or
(
memq
var
'
(
nil
t
))
(
eq
var
elint-bound-variable
)
(
elint-env-find-var
env
var
)
...
...
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