comparison lisp/files.el @ 33558:786f1533a10f

(basic-save-buffer): Don't add a newline if find-file-literally is non-nil. (find-file-literally): Extend doc string.
author Gerd Moellmann <gerd@gnu.org>
date Thu, 16 Nov 2000 17:04:27 +0000
parents dd4bceb945d3
children af0f3f3533e8
comparison
equal deleted inserted replaced
33557:086e910eefc9 33558:786f1533a10f
1212 "Visit file FILENAME with no conversion of any kind. 1212 "Visit file FILENAME with no conversion of any kind.
1213 Format conversion and character code conversion are both disabled, 1213 Format conversion and character code conversion are both disabled,
1214 and multibyte characters are disabled in the resulting buffer. 1214 and multibyte characters are disabled in the resulting buffer.
1215 The major mode used is Fundamental mode regardless of the file name, 1215 The major mode used is Fundamental mode regardless of the file name,
1216 and local variable specifications in the file are ignored. 1216 and local variable specifications in the file are ignored.
1217 Automatic uncompression is also disabled. 1217 Automatic uncompression and adding a newline at the end of the
1218 file due to `require-final-newline' is also disabled.
1218 1219
1219 You cannot absolutely rely on this function to result in 1220 You cannot absolutely rely on this function to result in
1220 visiting the file literally. If Emacs already has a buffer 1221 visiting the file literally. If Emacs already has a buffer
1221 which is visiting the file, you get the existing buffer, 1222 which is visiting the file, you get the existing buffer,
1222 regardless of whether it was created literally or not. 1223 regardless of whether it was created literally or not.
2589 (error "Save not confirmed")) 2590 (error "Save not confirmed"))
2590 (save-restriction 2591 (save-restriction
2591 (widen) 2592 (widen)
2592 (save-excursion 2593 (save-excursion
2593 (and (> (point-max) 1) 2594 (and (> (point-max) 1)
2595 (not find-file-literally)
2594 (/= (char-after (1- (point-max))) ?\n) 2596 (/= (char-after (1- (point-max))) ?\n)
2595 (not (and (eq selective-display t) 2597 (not (and (eq selective-display t)
2596 (= (char-after (1- (point-max))) ?\r))) 2598 (= (char-after (1- (point-max))) ?\r)))
2597 (or (eq require-final-newline t) 2599 (or (eq require-final-newline t)
2598 (and require-final-newline 2600 (and require-final-newline