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
4e7afa86
Commit
4e7afa86
authored
Apr 11, 1993
by
Richard M. Stallman
Browse files
(find-file-noselect): Verify other buffers' file numbers are still valid.
parent
e407986c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
lisp/files.el
lisp/files.el
+5
-1
No files found.
lisp/files.el
View file @
4e7afa86
...
...
@@ -480,7 +480,11 @@ The buffer is not selected, just returned to the caller."
(
while
(
and
(
not
found
)
list
)
(
save-excursion
(
set-buffer
(
car
list
))
(
if
(
equal
buffer-file-number
number
)
(
if
(
and
(
equal
buffer-file-number
number
)
;; Verify this buffer's file number
;; still belongs to its file.
(
file-exists-p
buffer-file-name
)
(
equal
(
nthcdr
10
(
file-attributes
buffer-file-name
))
number
))
(
setq
found
(
car
list
))))
(
setq
list
(
cdr
list
)))
found
))))
...
...
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