unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Chong Yidong" <cyd@stupidchicken.com>
Subject: (no subject)
Date: Tue, 1 Mar 2005 21:26:19 -0500 (EST)	[thread overview]
Message-ID: <1483.220.255.172.231.1109730379.squirrel@www.stupidchicken.com> (raw)

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)

             reply	other threads:[~2005-03-02  2:26 UTC|newest]

Thread overview: 162+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-02  2:26 Chong Yidong [this message]
2005-03-02  3:02 ` (no subject) Luc Teirlinck
2005-03-02  3:26   ` require-hard-newlines to use newline Chong Yidong
2005-03-02  3:55     ` Luc Teirlinck
2005-03-03  2:29     ` Richard Stallman
2005-03-03  2:49       ` Chong Yidong
2005-03-03 20:57         ` Richard Stallman
2005-03-03 22:32           ` Chong Yidong
2005-03-04  0:33             ` Luc Teirlinck
2005-03-04  0:56               ` Chong Yidong
2005-03-04  1:40                 ` Miles Bader
2005-03-04  6:02                   ` Chong Yidong
2005-03-04  9:55                     ` David Kastrup
2005-03-04 23:46                   ` Richard Stallman
2005-03-08  0:05                     ` Luc Teirlinck
2005-03-08  2:10                       ` Chong Yidong
2005-03-08  3:09                         ` Luc Teirlinck
2005-03-08  4:28                         ` Luc Teirlinck
2005-03-08 15:45                           ` Luc Teirlinck
2005-03-08 16:42                             ` Chong Yidong
2005-03-08 18:04                               ` Stefan Monnier
2005-03-08 18:12                                 ` Luc Teirlinck
2005-03-08 19:02                                   ` Stefan Monnier
2005-03-08 18:26                                 ` Luc Teirlinck
2005-03-08 16:03                       ` Richard Stallman
2005-03-08 16:39                         ` Chong Yidong
2005-03-09  9:45                           ` Chong Yidong
2005-03-11  1:46                           ` Richard Stallman
2005-03-11  9:10                             ` Chong Yidong
2005-03-11 10:25                               ` Kim F. Storm
2005-03-11 13:03                                 ` Chong Yidong
2005-03-11 14:32                                   ` Stefan Monnier
2005-03-11 14:57                                     ` Kim F. Storm
2005-03-11 15:08                                       ` Chong Yidong
2005-03-11 15:28                                         ` Stefan Monnier
2005-03-11 15:13                                       ` Chong Yidong
2005-03-11 15:30                                       ` Stefan Monnier
2005-03-11 16:11                                         ` Chong Yidong
2005-03-11 17:32                                           ` Stefan Monnier
2005-03-12  2:40                                             ` Chong Yidong
2005-03-11 22:29                                           ` Kim F. Storm
2005-03-12  2:23                                             ` Chong Yidong
2005-03-12 22:16                                   ` Richard Stallman
2005-03-12 23:53                                     ` Stefan Monnier
2005-03-14  3:00                                       ` Richard Stallman
2005-03-13  6:14                                     ` Chong Yidong
2005-03-14  3:00                                       ` Richard Stallman
2005-03-14  3:42                                         ` Chong Yidong
2005-03-15 18:39                                           ` Richard Stallman
2005-03-12 22:16                               ` Richard Stallman
2005-03-04 23:45             ` Richard Stallman
2005-03-05  2:03               ` Chong Yidong
2005-03-06  0:41                 ` Richard Stallman
  -- strict thread matches above, loose matches on Subject: below --
2020-05-22 10:45 (No subject) slb zetrov
2020-05-22 19:25 ` Yuan Fu
2020-05-23 10:54   ` Michael Albinus
2016-12-28  7:34 [no subject] Chris Gregory
2010-10-16  4:59 (no subject) Richard Stallman
2010-10-16  6:08 ` Werner LEMBERG
2010-10-16  6:10   ` Werner LEMBERG
2010-10-18  6:26   ` Richard Stallman
2010-10-19 18:28 ` Glenn Morris
2010-09-30  8:02 Jambunathan K
2010-01-15 16:27 Drew Adams
2008-03-24  1:00 Xavier Maillard
2008-02-25  8:17 Herbert Euler
2007-04-18 20:21 A Soare
2007-04-19 16:03 ` Stefan Monnier
2007-03-21 11:04 A Soare
2007-02-21 22:31 A Soare
2006-12-21  6:55 Werner LEMBERG
2006-12-21 18:43 ` Kevin Rodgers
2006-12-28 14:17   ` Slawomir Nowaczyk
2006-09-02 18:08 Richard Stallman
2006-07-25 17:33 amcorreia
2006-06-26 12:54 amcorreia
2006-06-27 16:14 ` Richard Stallman
2006-06-02  3:14 Richard Stallman
2006-06-13 20:32 ` Chong Yidong
2006-03-07 23:39 Amir Bukhari
2005-10-28 12:20 Ahmadshah
2005-10-28  1:38 SHestbrooke
2005-10-22 11:30 Afrael
2005-10-02  2:11 Kajane
2005-09-25  9:42 Taneev
2005-09-15  9:32 Baron
2005-09-12  0:34 Stalina
2005-09-08 20:19 Alafir
2005-09-02 12:20 Alimgereiy
2005-08-31 10:14 David PONCE
2005-07-04  4:13 r.reichlin
2005-06-04  0:56 Luc Teirlinck
2005-05-31 19:49 uiuew_qqy
2005-05-21  5:00 Charity Donahue
2005-05-17  2:17 Kenichi Handa
2005-05-06 22:49 loot
2005-05-03 10:44 John Knottenbelt
     [not found] <01c54b24$Blat.v2.4$0ddb2a20@zahav.net.il>
2005-04-28 11:00 ` Richard Stallman
2005-04-28 18:56   ` Eli Zaretskii
2005-04-29 10:14     ` Richard Stallman
2005-04-18  9:34 Felix Cohen
2005-04-17 22:15 jhigr
2005-04-11 20:55 weather
2005-01-16 16:55 Georgia Jaramillo
2005-01-16  1:10 vr
2005-01-08  0:06 tvpeq
2004-12-26  5:23 Hazel Whitaker
2004-12-21 10:40 Anna Nguyen
2004-12-08  6:49 Han Boetes
2004-12-08 13:17 ` Stefan Monnier
2004-12-08 13:31   ` Han Boetes
2004-12-03 13:33 Frank J. Hall
2004-12-02 17:43 perfect butts
2004-10-22 22:14 Luc Teirlinck
2004-10-22  1:45  Guerra
2004-10-20  5:35  Mcdermott
2004-10-14 19:23 Lilly Pryor
2004-10-14 19:23 Loretta Roe
2004-10-14 19:23 Isaiah Ham
2004-10-14 19:23 Levi Miller
2004-10-11 18:09  Eddy
2004-10-10  0:10 Drew Adams
2004-10-09 13:36 Dana Fisher
2004-10-09 13:36 Antoine Heard
2004-10-09 13:36 Carmen Hill
2004-10-09 13:36 Becky Sorensen
2004-10-09 13:36 Tommie Bullock
2004-10-08 15:19 May Dixon
2004-10-08  8:04 Geoffrey Spears
2004-10-03 22:36 Rogelio Lott
2004-10-01 21:32 Duane Dahl
2004-09-27  0:32 Luc Teirlinck
2004-09-27 14:53 ` Richard Stallman
2004-09-27 22:17   ` Luc Teirlinck
2004-08-06 10:59 Zane Cross
2004-05-27 11:34 Stephan Stahl
2004-05-14  4:42 Katrina Bliss
2004-05-04  6:54 Dhruva Krishnamurthy
2004-05-03  7:44 Nicole Delarosa
2004-04-17 16:03 Delores Bacon
2004-02-24 17:24 Alyson
2004-02-02 21:09 admail.direct
2004-02-01  5:52 Walden Teri
2004-01-31  0:56 Lutz Julianne
2003-11-17  2:05 Luc Teirlinck
2003-11-17  6:12 ` Jan D.
2003-09-18 22:40 george mbulu
     [not found] <20030810000549.94627.qmail@web21310.mail.yahoo.com>
2003-08-11 12:53 ` Richard Stallman
2003-08-12 13:11   ` shuki_duv
2003-08-12 23:19     ` Miles Bader
     [not found]     ` <shuki_duv@yahoo.com>
2003-08-14 12:35       ` Thien-Thi Nguyen
2002-11-06  6:33 21.2.90 pretest, 21.3, 21.4 Eli Zaretskii
2002-11-06 12:40 ` Kim F. Storm
2002-11-07  8:08   ` (no subject) Kenichi Handa
2002-11-08 12:06     ` Richard Stallman
2002-09-09 15:53 Text mode menu wishlist Sacha Chua
2002-09-09 17:27 ` Alex Schroeder
2002-09-10  1:45   ` Sacha Chua
2002-09-10  7:41     ` Thien-Thi Nguyen
2002-09-10  7:48       ` Miles Bader
2002-09-10  8:35         ` (no subject) Thien-Thi Nguyen
2002-08-30 13:23 Dhruva Krishnamurthy
2002-08-10 17:16 Richard Stallman
2002-08-10 17:51 ` Simon Josefsson
2002-08-11  3:56   ` Richard Stallman
2002-07-25  3:29 Free Concert Tickets!
2002-05-02 19:37 laurent mpeti kabila
2002-02-23 16:11 ctext-pre-write-conversion barfs Tak Ota
2002-02-23 18:51 ` (no subject) Eli Zaretskii
2002-02-23 23:11   ` Tak Ota

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1483.220.255.172.231.1109730379.squirrel@www.stupidchicken.com \
    --to=cyd@stupidchicken.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).