diff options
| author | Stefan Monnier | 2006-09-20 17:35:01 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2006-09-20 17:35:01 +0000 |
| commit | 02bb2aabefbfe0055424511f0298712b7c716d5c (patch) | |
| tree | fae6dc23d7cb08c602bae196dc4ac25cdef93b44 | |
| parent | c78450fd77f6604a65c50857a28a3019370a1d66 (diff) | |
| download | emacs-02bb2aabefbfe0055424511f0298712b7c716d5c.tar.gz emacs-02bb2aabefbfe0055424511f0298712b7c716d5c.zip | |
(find-buffer-visiting): Don't get fooled by a nil inode.
| -rw-r--r-- | lisp/ChangeLog | 13 | ||||
| -rw-r--r-- | lisp/files.el | 2 |
2 files changed, 9 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ad33617e8f8..c20774d995d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2006-09-20 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * files.el (find-buffer-visiting): Don't get fooled by a nil inode. | ||
| 4 | |||
| 1 | 2006-09-20 Kim F. Storm <storm@cua.dk> | 5 | 2006-09-20 Kim F. Storm <storm@cua.dk> |
| 2 | 6 | ||
| 3 | * simple.el (line-move-partial): Call pos-visible-in-window-p with | 7 | * simple.el (line-move-partial): Call pos-visible-in-window-p with |
| @@ -13,7 +17,7 @@ | |||
| 13 | * mouse.el (mouse-posn-property): Improve doc string. | 17 | * mouse.el (mouse-posn-property): Improve doc string. |
| 14 | (mouse-on-link-p): Change buffers for function calls on links. | 18 | (mouse-on-link-p): Change buffers for function calls on links. |
| 15 | 19 | ||
| 16 | * menu-bar.el (clipboard-yank): bomb out in interactive use if | 20 | * menu-bar.el (clipboard-yank): Bomb out in interactive use if |
| 17 | buffer is read-only. | 21 | buffer is read-only. |
| 18 | 22 | ||
| 19 | 2006-09-18 Ken Manheimer <ken.manheimer@gmail.com> | 23 | 2006-09-18 Ken Manheimer <ken.manheimer@gmail.com> |
| @@ -27,16 +31,15 @@ | |||
| 27 | rather than allout-exposure-changed-hook, as a stronger assertion. | 31 | rather than allout-exposure-changed-hook, as a stronger assertion. |
| 28 | (allout-keybindings-list): Add bindings for | 32 | (allout-keybindings-list): Add bindings for |
| 29 | allout-copy-line-as-kill and allout-copy-topic-as-kill. | 33 | allout-copy-line-as-kill and allout-copy-topic-as-kill. |
| 30 | (allout-copy-line-as-kill, allout-copy-topic-as-kill): copy | 34 | (allout-copy-line-as-kill, allout-copy-topic-as-kill): |
| 31 | wrappers for allout-kill-line and allout-kill-topic. | 35 | Copy wrappers for allout-kill-line and allout-kill-topic. |
| 32 | (allout-listify-exposed): Position correctly to accumulate lines. | 36 | (allout-listify-exposed): Position correctly to accumulate lines. |
| 33 | 37 | ||
| 34 | 2006-09-19 Chong Yidong <cyd@stupidchicken.com> | 38 | 2006-09-19 Chong Yidong <cyd@stupidchicken.com> |
| 35 | 39 | ||
| 36 | * simple.el (line-move-1): Escape field boundaries occurring | 40 | * simple.el (line-move-1): Escape field boundaries occurring |
| 37 | exactly at point. Update goal column if constrained to a field. | 41 | exactly at point. Update goal column if constrained to a field. |
| 38 | (line-move-finish): Escape field boundaries occurring exactly at | 42 | (line-move-finish): Escape field boundaries occurring exactly at point. |
| 39 | point. | ||
| 40 | 43 | ||
| 41 | 2006-09-19 Stefan Monnier <monnier@iro.umontreal.ca> | 44 | 2006-09-19 Stefan Monnier <monnier@iro.umontreal.ca> |
| 42 | 45 | ||
diff --git a/lisp/files.el b/lisp/files.el index 642bd2d9372..13fdf0d020b 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -1365,7 +1365,7 @@ If there is no such live buffer, return nil." | |||
| 1365 | (number (nthcdr 10 attributes)) | 1365 | (number (nthcdr 10 attributes)) |
| 1366 | (list (buffer-list)) found) | 1366 | (list (buffer-list)) found) |
| 1367 | (and buffer-file-numbers-unique | 1367 | (and buffer-file-numbers-unique |
| 1368 | number | 1368 | (car-safe number) ;Make sure the inode is not just nil. |
| 1369 | (while (and (not found) list) | 1369 | (while (and (not found) list) |
| 1370 | (with-current-buffer (car list) | 1370 | (with-current-buffer (car list) |
| 1371 | (if (and buffer-file-name | 1371 | (if (and buffer-file-name |