bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cc-mode adds newlines


From: Rommerskirchen Heinrich
Subject: cc-mode adds newlines
Date: Thu, 23 Jan 2003 14:17:12 +0100

This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.

Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list,
and to the gnu.emacs.bug news group.

In GNU Emacs 21.2.1 (i386-msvc-nt5.0.2195)
 of 2002-03-19 on buffy
configured using `configure --with-msvc (12.00)'
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: DEU
  locale-coding-system: iso-latin-1
  default-enable-multibyte-characters: t

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

cc-mode tries to be smart and adds newlines to a file without
informing the user and without any easily found option to suppress it.

You can check it easily (see also recent input below): Start emacs
with "-q --no-init", create a new file "test.c", add some text without
a trailing newline and save the file. Then a newline is silently added.
I couldn't find a possibility to suppress this.

In my opinion this behaviour is unacceptable. If for some reason I
choose to create a file with no trailing newline, it is not emacs's
business to change the file silently behind my back.


Recent input:
C-x C-f ~ / t e s t . c <return> i C-x C-s <down> <menu-bar> 
<help-menu> <report-emacs-bug>

Recent messages:
(C:\LocalData\userid\bin\emacs-21.2\bin\emacs.exe -q --no-init)
For information about the GNU Project and its goals, type C-h C-p.
Loading image...done
(New file)
Loading cc-mode...done
Wrote c:/LocalData/userid/test.c
Loading emacsbug...done




reply via email to

[Prev in Thread] Current Thread [Next in Thread]