From: Ragweed <jeffrey.magill@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: problems with c-fill-paragraph, c++ comments in c modules
Date: Mon, 23 Aug 2010 15:06:38 -0700 (PDT) [thread overview]
Message-ID: <b624b8c8-9fd0-4a44-9bfd-7401edcca871@k17g2000prf.googlegroups.com> (raw)
I've recently built Emacs 23.2.1 on a linux box and it doesn't behave
the same as the Emacs 21.4.1 on the same host with respect to c++
comments in a c file. I can't figure out how to get Emacs 23.2.1 to
run c-fill-paragraph properly for c++-style comments when they're in a
c file.
Consider the following long c++ style comment in a file named test.c:
>// The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.
If I run c-fill-paragraph with the cursor on that line, Emacs 21.4.1
converts it to what I want:
>// The quick brown fox jumps over the lazy dog. The quick brown fox jumps over
>// the lazy dog. The quick brown fox jumps over the lazy dog.
If I run c-fill-paragraph in 23.2.1, I get:
// The quick brown fox jumps over the lazy dog. The quick brown fox
jumps over
the lazy dog. The quick brown fox jumps over the lazy dog.
That is, it wraps the comment to the next line but doesn't prefix the
next line with the comment prefix.
If I rename the file to test.cpp, then emacs 23.2.1 DOES prefix the
line.
I renamed my .emacs file so that both versions of Emacs use their
default settings and ignore my normal customizations.
next reply other threads:[~2010-08-23 22:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-23 22:06 Ragweed [this message]
2010-08-27 20:13 ` problems with c-fill-paragraph, c++ comments in c modules Alan Mackenzie
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=b624b8c8-9fd0-4a44-9bfd-7401edcca871@k17g2000prf.googlegroups.com \
--to=jeffrey.magill@gmail.com \
--cc=help-gnu-emacs@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.
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).