unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Rommerskirchen Heinrich <heinrich.rommerskirchen@siemens.com>
Subject: cc-mode adds newlines
Date: Thu, 23 Jan 2003 14:17:12 +0100	[thread overview]
Message-ID: <FF8AC5030873D6118BCB0002A58EDA99578C62@mchh2a7e.mchh.siemens.de> (raw)

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	other threads:[~2003-01-23 13:17 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-23 13:17 Rommerskirchen Heinrich [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-01-23 21:25 cc-mode adds newlines Luc Teirlinck
2003-01-23 21:52 Luc Teirlinck
2003-01-23 22:41 Luc Teirlinck
     [not found] <mailman.884.1043357104.21513.bug-gnu-emacs@gnu.org>
2003-01-23 23:35 ` Benjamin Riefenstahl
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
2003-01-24  2:41 Luc Teirlinck
2003-01-24  5:18 Luc Teirlinck
2004-11-18 22:45 Andries.Brouwer
     [not found] <mailman.3671.1100818498.8225.bug-gnu-emacs@gnu.org>
2004-11-18 23:23 ` Kevin Rodgers
2004-11-19  0:46   ` Andreas Schwab
2004-11-18 23:31 ` Jari Aalto
     [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

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=FF8AC5030873D6118BCB0002A58EDA99578C62@mchh2a7e.mchh.siemens.de \
    --to=heinrich.rommerskirchen@siemens.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).