From 0cf9f5b5e9deeb50366e9f325081a178988bcf21 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Wed, 27 Jun 2007 23:30:08 +0000 Subject: [PATCH] (syms_of_fileio) : Doc fix. --- src/ChangeLog | 4 ++++ src/fileio.c | 7 +++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index e89ed8d3ea3..0659b8499b0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2007-06-27 Richard Stallman + + * fileio.c (syms_of_fileio) : Doc fix. + 2007-06-27 Juanma Barranquero * buffer.c (syms_of_buffer) : Fix typo in docstring. diff --git a/src/fileio.c b/src/fileio.c index 8e7b588322c..2c4f8379192 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -6021,6 +6021,8 @@ A non-nil CURRENT-ONLY argument means save only current buffer. */) /* Prevent another auto save till enough input events come in. */ record_auto_save (); + if (stream != NULL) + fclose (stream); if (auto_saved && NILP (no_message)) { @@ -6683,8 +6685,9 @@ or local variable spec of the tailing lines with `coding:' tag. */); DEFVAR_LISP ("after-insert-file-functions", &Vafter_insert_file_functions, doc: /* A list of functions to be called at the end of `insert-file-contents'. -Each is passed one argument, the number of characters inserted. -It should return the new character count, and leave point the same. +Each is passed one argument, the number of characters inserted, +with point at the start of the inserted text. Each function +should leave point the same, and return the new character count. If `insert-file-contents' is intercepted by a handler from `file-name-handler-alist', that handler is responsible for calling the functions in `after-insert-file-functions' if appropriate. */); -- 2.39.2