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
f9274544
Commit
f9274544
authored
Aug 27, 2007
by
Glenn Morris
Browse files
(diff-find-file-name): Only accept regular files, to rule out
/dev/null, directories, etc.
parent
c62a495a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
lisp/ChangeLog
lisp/ChangeLog
+3
-0
lisp/diff-mode.el
lisp/diff-mode.el
+3
-1
No files found.
lisp/ChangeLog
View file @
f9274544
2007-08-27 Glenn Morris <rgm@gnu.org>
* diff-mode.el (diff-find-file-name): Only accept regular files,
to rule out /dev/null, directories, etc.
* vc-svn.el (vc-svn-diff): If the repository version of all the
files is the same as the specified OLDVERS, do a local diff.
...
...
lisp/diff-mode.el
View file @
f9274544
...
...
@@ -682,7 +682,9 @@ PREFIX is only used internally: don't use it."
((
or
(
null
files
)
(
setq
file
(
do*
((
files
files
(
cdr
files
))
(
file
(
car
files
)
(
car
files
)))
((
or
(
null
file
)
(
file-exists-p
file
))
;; Use file-regular-p to avoid
;; /dev/null, directories, etc.
((
or
(
null
file
)
(
file-regular-p
file
))
file
))))
file
))
;; <foo>.rej patches implicitly apply to <foo>
...
...
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