[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
(no subject)
From: |
Chong Yidong |
Subject: |
(no subject) |
Date: |
Tue, 1 Mar 2005 21:26:19 -0500 (EST) |
User-agent: |
SquirrelMail/1.4.4 |
Could this patch be checked in? When require-final-newlines is t, the
newline is inserted by (insert "\n"), which does not take
use-hard-newlines into account, so the newline is not marked as 'hard.
*** emacs/lisp/files.el~ Tue Mar 1 22:13:16 2005
--- emacs/lisp/files.el Wed Mar 2 10:16:52 2005
***************
*** 1661,1667 ****
(= (char-after (1- (point-max))) ?\r)))
(save-excursion
(goto-char (point-max))
! (insert "\n")))
(when (and buffer-read-only
view-read-only
(not (eq (get major-mode 'mode-class) 'special)))
--- 1661,1667 ----
(= (char-after (1- (point-max))) ?\r)))
(save-excursion
(goto-char (point-max))
! (newline)))
(when (and buffer-read-only
view-read-only
(not (eq (get major-mode 'mode-class) 'special)))
***************
*** 3244,3250 ****
(buffer-name)))))
(save-excursion
(goto-char (point-max))
! (insert ?\n))))
;; Support VC version backups.
(vc-before-save)
(run-hooks 'before-save-hook)
--- 3244,3250 ----
(buffer-name)))))
(save-excursion
(goto-char (point-max))
! (newline))))
;; Support VC version backups.
(vc-before-save)
(run-hooks 'before-save-hook)
- (no subject),
Chong Yidong <=
- Re: (no subject), Luc Teirlinck, 2005/03/01
- require-hard-newlines to use newline, Chong Yidong, 2005/03/01
- Re: require-hard-newlines to use newline, Luc Teirlinck, 2005/03/01
- Re: require-hard-newlines to use newline, Richard Stallman, 2005/03/02
- Re: require-hard-newlines to use newline, Chong Yidong, 2005/03/02
- Re: require-hard-newlines to use newline, Richard Stallman, 2005/03/03
- Re: require-hard-newlines to use newline, Chong Yidong, 2005/03/03
- Re: require-hard-newlines to use newline, Luc Teirlinck, 2005/03/03
- Re: require-hard-newlines to use newline, Chong Yidong, 2005/03/03
- Re: require-hard-newlines to use newline, Miles Bader, 2005/03/03