diff options
| author | Chong Yidong | 2012-02-21 21:24:48 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-02-21 21:24:48 +0800 |
| commit | a59225b146620b11455b614244ceb6d02339a032 (patch) | |
| tree | c6e730a974c8c968f827f589a6162b340e4c4b69 /src/buffer.c | |
| parent | f9a998c365893585a8b33fba9a00320348c0b34b (diff) | |
| download | emacs-a59225b146620b11455b614244ceb6d02339a032.tar.gz emacs-a59225b146620b11455b614244ceb6d02339a032.zip | |
Update Files chapter in Lisp manual.
* doc/lispref/files.texi (Files): Mention magic file names as arguments.
(Reading from Files): Copyedits.
(File Attributes): Mention how to change file modes.
(Changing Files): Use standard "file permissions" terminology.
Add xref to File Attributes node.
(Locating Files): Document locate-user-emacs-file.
(Unique File Names): Recommend against using make-temp-name.
* src/buffer.c (Fget_file_buffer): Protect against invalid file
handler return value.
* src/fileio.c (Vfile_name_handler_alist): Doc fix.
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c index a6f61a1936a..71a5e199c6f 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -272,7 +272,11 @@ See also `find-buffer-visiting'. */) | |||
| 272 | call the corresponding file handler. */ | 272 | call the corresponding file handler. */ |
| 273 | handler = Ffind_file_name_handler (filename, Qget_file_buffer); | 273 | handler = Ffind_file_name_handler (filename, Qget_file_buffer); |
| 274 | if (!NILP (handler)) | 274 | if (!NILP (handler)) |
| 275 | return call2 (handler, Qget_file_buffer, filename); | 275 | { |
| 276 | Lisp_Object handled_buf = call2 (handler, Qget_file_buffer, | ||
| 277 | filename); | ||
| 278 | return BUFFERP (handled_buf) ? handled_buf : Qnil; | ||
| 279 | } | ||
| 276 | 280 | ||
| 277 | for (tail = Vbuffer_alist; CONSP (tail); tail = XCDR (tail)) | 281 | for (tail = Vbuffer_alist; CONSP (tail); tail = XCDR (tail)) |
| 278 | { | 282 | { |