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
afdceaec
Commit
afdceaec
authored
Sep 12, 2009
by
Glenn Morris
Browse files
(elint-init-env): Skip non-list forms.
(elint-log): Handle unknown file positions.
parent
fd40bad4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
lisp/ChangeLog
lisp/ChangeLog
+2
-0
lisp/emacs-lisp/elint.el
lisp/emacs-lisp/elint.el
+9
-4
No files found.
lisp/ChangeLog
View file @
afdceaec
...
...
@@ -18,6 +18,8 @@
1000.
(elint-add-required-env): Don't beep on error.
(elint-forms): In case of error, return ENV unchanged.
(elint-init-env): Skip non-list forms.
(elint-log): Handle unknown file positions.
2009-09-12 Daiki Ueno <ueno@unixuser.org>
...
...
lisp/emacs-lisp/elint.el
View file @
afdceaec
...
...
@@ -298,6 +298,9 @@ Return nil if there are no more forms, t otherwise."
(
setq
form
(
elint-top-form-form
(
car
forms
))
forms
(
cdr
forms
))
(
cond
;; Eg nnmaildir seems to use [] as a form of comment syntax.
((
not
(
listp
form
))
(
elint-error
"Skipping non-list form `%s'"
form
))
;; Add defined variable
((
memq
(
car
form
)
'
(
defvar
defconst
defcustom
))
(
setq
env
(
elint-env-add-var
env
(
cadr
form
))))
...
...
@@ -686,10 +689,12 @@ CODE can be a lambda expression, a macro, or byte-compiled code."
(
if
f
(
file-name-nondirectory
f
)
(
buffer-name
)))
(
save-excursion
(
goto-char
elint-current-pos
)
(
1+
(
count-lines
(
point-min
)
(
line-beginning-position
))))
(
if
(
boundp
'elint-current-pos
)
(
save-excursion
(
goto-char
elint-current-pos
)
(
1+
(
count-lines
(
point-min
)
(
line-beginning-position
))))
0
)
; unknown position
type
(
apply
'format
string
args
))))
...
...
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