From: Jari Aalto <jari.aalto@cante.net>
Cc: emacs-devel@gnu.org
Subject: Re: cc-mode adds newlines
Date: Fri, 19 Nov 2004 01:31:00 +0200 [thread overview]
Message-ID: <7joiybt7.fsf__40239.0037234456$1100820779$gmane$org@blue.sea.net> (raw)
In-Reply-To: mailman.3671.1100818498.8225.bug-gnu-emacs@gnu.org
<Andries.Brouwer@cwi.nl> writes:
| Working with emacs 21.3.
| Struggled for a while to get emacs to save a file without final newline.
| ...The point is: emacs must not start changing my files without
| being asked.
I agree. The problem is not just in CC mode, but also in other modes as
well. Could someone from the dev team address these below.
Jari
cd /usr/src/cvs-source/emacs/lisp/progmodes/
find .. -name '*l' -type f -print0 | xargs -0 -e grep -n -e require-final-new
../files.el:275:(defcustom require-final-newline nil
../files.el:1527:file due to `require-final-newline' is also disabled.
../files.el:3172: (or (eq require-final-newline t)
../files.el:3173: (and require-final-newline
../textmodes/text-mode.el:71: (set (make-local-variable 'require-final-newline\
) t)
../textmodes/texinfo.el:583: (make-local-variable 'require-final-newline)
../textmodes/texinfo.el:584: (setq require-final-newline t)
../progmodes/mixal-mode.el:1307: (set (make-local-variable 'require-final-newl\
ine) t))
../progmodes/modula2.el:153: (make-local-variable 'require-final-newline)
../progmodes/modula2.el:154: (setq require-final-newline t)
../progmodes/antlr-mode.el:2538: (make-local-variable 'require-final-newline)
../progmodes/antlr-mode.el:2652: (make-local-variable 'require-final-newline)
../progmodes/antlr-mode.el:2657: (setq require-final-newline t)
../progmodes/perl-mode.el:478: (make-local-variable 'require-final-newline)
../progmodes/perl-mode.el:479: (setq require-final-newline t)
../progmodes/simula.el:382: (make-local-variable 'require-final-newline)
../progmodes/simula.el:383: (setq require-final-newline t)
../progmodes/icon.el:179: (make-local-variable 'require-final-newline)
../progmodes/icon.el:180: (setq require-final-newline t)
../progmodes/ada-mode.el:1119: (set (make-local-variable 'require-final-newlin\
e) t)
../progmodes/cc-vars.el:834:(defcustom c-require-final-newline
../progmodes/cc-vars.el:844:the value to give to `require-final-newline' at mod\
e initialization;
../progmodes/cc-vars.el:847:`require-final-newline' in buffers for that languag\
e."
../progmodes/cc-vars.el:850: (symbol :format "%v" :value ,requir\
e-final-newline))
../progmodes/cc-vars.el:853: (symbol :format "%v" :value ,requir\
e-final-newline))
../progmodes/cc-vars.el:856: (symbol :format "%v" :value ,requir\
e-final-newline))
../progmodes/cc-vars.el:859: (symbol :format "%v" :value ,requir\
e-final-newline))
../progmodes/cc-vars.el:862: (symbol :format "%v" :value ,requir\
e-final-newline))
../progmodes/cc-vars.el:865: (symbol :format "%v" :value ,requir\
e-final-newline)))
../progmodes/cfengine.el:225: (set (make-local-variable 'require-final-newline\
) t)
../progmodes/fortran.el:677: (set (make-local-variable 'require-final-newline)\
t)
../progmodes/python.el:1720: (set (make-local-variable 'require-final-newline)\
t)
../progmodes/f90.el:815: (set (make-local-variable 'require-final-newline) t)
../progmodes/sh-script.el:496:(defcustom sh-require-final-newline
../progmodes/sh-script.el:499: (rc . require-final-newline)
../progmodes/sh-script.el:500: (sh . require-final-newline))
../progmodes/sh-script.el:501: "*Value of `require-final-newline' in Shell-Scr\
ipt mode buffers.
../progmodes/sh-script.el:1312: (make-local-variable 'require-final-newline)
../progmodes/sh-script.el:1487: (let ((tem (sh-feature sh-require-final-newlin\
e)))
../progmodes/sh-script.el:1488: (unless (eq tem 'require-final-newline)
../progmodes/sh-script.el:1489: (setq require-final-newline tem)))
../progmodes/tcl.el:534: ;; (make-local-variable 'require-final-newline)
../progmodes/tcl.el:535: ;; (setq require-final-newline t)
../progmodes/vhdl-mode.el:4560: (set (make-local-variable 'require-final-newli\
ne) t)
../progmodes/cc-mode.el:557: (let ((rfn (assq mode c-require-final-newline)))
../progmodes/cc-mode.el:559: (make-local-variable 'require-final-newline)
../progmodes/cc-mode.el:560: (setq require-final-newline (cdr rfn)))))
../progmodes/cperl-mode.el:1464: (make-local-variable 'require-final-newline)
../progmodes/cperl-mode.el:1465: (setq require-final-newline t)
../progmodes/idlwave.el:1895: (set (make-local-variable 'require-final-newline\
) t)
../net/snmp-mode.el:358: (make-local-variable 'require-final-newline)
../net/snmp-mode.el:359: (setq require-final-newline t))
../mail/rmailout.el:149: (let ((require-final-newline nil)
../mail/rmail.el:1135: (make-local-variable 'require-final-newline)
../mail/rmail.el:1136: (setq require-final-newline nil)
../mail/rmail.el:1400: (delete-region (point) (point-max)) ; caused by r\
equire-final-newline
../emulation/viper-cmd.el:1881: ;; when requested otherwise (require-final\
-newline is nil)
../emulation/viper-cmd.el:1884: require-final-newline
../emulation/viper.el:625: (setq require-final-newline nil
../emulation/viper.el:666: require-final-newline
../emulation/viper.el:668: 'require-final-newline viper-saved-non-viper-vari\
ables)
../emulation/viper.el:685: (viper-delocalize-var 'require-final-newline)
../emulation/viper.el:977: require-final-newline t)
../emulation/viper.el:979: (make-variable-buffer-local 'require-final-newline)
../emulation/viper.el:1124: (cons 'require-final-newline (list require-f\
inal-newline))
../emulation/tpu-edt.el:199:;; (setq require-final-newline t)
../gnus/gnus-util.el:874: (let ((require-final-newline nil)
../gnus/gnus-util.el:927: (let ((require-final-newline nil)
../gnus/mailcap.el:329: (require-final-newline nil))
../emacs-lisp/elint.el:743: point-before-scroll require-final-newline selec\
tive-display
../eshell/esh-mode.el:369: ;; set require-final-newline to nil; otherwise, all\
redirected
../eshell/esh-mode.el:372: (set (make-local-variable 'require-final-newline) n\
il)
../arc-mode.el:542: (make-local-variable 'require-final-newline)
../arc-mode.el:543: (setq require-final-newline nil)
../hexl.el:106:(defvar hexl-mode-old-require-final-newline)
../hexl.el:249: (make-local-variable 'hexl-mode-old-require-final-newline)
../hexl.el:250: (setq hexl-mode-old-require-final-newline require-final-newl\
ine)
../hexl.el:251: (make-local-variable 'require-final-newline)
.../hexl.el:252: (setq require-final-newline nil)
../hexl.el:356: (setq require-final-newline hexl-mode-old-require-final-newlin\
e)
../log-edit.el:101:(defvar cvs-commit-buffer-require-final-newline t)
../log-edit.el:102:(make-obsolete-variable 'cvs-commit-buffer-require-final-new\
line
../log-edit.el:103: 'log-edit-require-final-newline)
../log-edit.el:105:(defcustom log-edit-require-final-newline
../log-edit.el:106: cvs-commit-buffer-require-final-newline
../log-edit.el:367: (or (eq log-edit-require-final-newline t)
../log-edit.el:368: (and log-edit-require-final-newline
../url/url-history.el:139: (require-final-newline t))
../tar-mode.el:574: (set (make-local-variable 'require-final-newline) nil) ; b\
inary data, dude...
next prev parent reply other threads:[~2004-11-18 23:31 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.3671.1100818498.8225.bug-gnu-emacs@gnu.org>
2004-11-18 23:23 ` cc-mode adds newlines Kevin Rodgers
2004-11-19 0:46 ` Andreas Schwab
2004-11-18 23:31 ` Jari Aalto [this message]
[not found] ` <mailman.3684.1100821293.8225.bug-gnu-emacs@gnu.org>
2004-11-19 0:14 ` Stefan Monnier
2004-11-19 20:04 ` Richard Stallman
[not found] ` <mailman.56.1100895632.27204.bug-gnu-emacs@gnu.org>
2004-11-19 22:00 ` Hallvard B Furuseth
2004-11-21 15:38 ` Richard Stallman
[not found] ` <mailman.416.1101052189.27204.bug-gnu-emacs@gnu.org>
2004-11-22 5:55 ` Paul D. Smith
[not found] ` <mailman.619.1101127694.27204.bug-gnu-emacs@gnu.org>
2004-11-22 18:55 ` Stefan Monnier
[not found] ` <mailman.723.1101150150.27204.bug-gnu-emacs@gnu.org>
2004-11-22 19:37 ` Hallvard B Furuseth
2004-11-22 22:49 ` Andreas Schwab
[not found] ` <mailman.778.1101164414.27204.bug-gnu-emacs@gnu.org>
2004-11-28 19:39 ` Hallvard B Furuseth
2004-11-18 22:45 Andries.Brouwer
-- strict thread matches above, loose matches on Subject: below --
2003-01-24 5:18 Luc Teirlinck
2003-01-24 2:41 Luc Teirlinck
2003-01-24 1:36 Luc Teirlinck
2003-01-25 19:22 ` Richard Stallman
[not found] ` <mailman.985.1043522856.21513.bug-gnu-emacs@gnu.org>
2003-01-26 20:24 ` Benjamin Riefenstahl
[not found] <mailman.884.1043357104.21513.bug-gnu-emacs@gnu.org>
2003-01-23 23:35 ` Benjamin Riefenstahl
2003-01-23 22:41 Luc Teirlinck
2003-01-23 21:52 Luc Teirlinck
2003-01-23 21:25 Luc Teirlinck
2003-01-23 13:17 Rommerskirchen Heinrich
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='7joiybt7.fsf__40239.0037234456$1100820779$gmane$org@blue.sea.net' \
--to=jari.aalto@cante.net \
--cc=emacs-devel@gnu.org \
/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).