From: John Lusk 4 <john4-moz@ahnlusk.net>
Subject: re: CC Mode 5.28 (Java); The comment fill for auto-fill mode does not work properly when inside Java classes
Date: Fri, 16 May 2003 13:34:45 -0400 [thread overview]
Message-ID: <3EC52135.2050107@ahnlusk.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 620 bytes --]
This is in response to an ancient post I saw in the archives. I have
the same problem. When I went to the cc-mode project on SourceForge, I
see they haven't created any downloadable releases past 5.28 (although
there's plenty of discussion of 5.29 and 5.30 on their list). Apart
from the fact that our local sysadmin has cut off the CVS port with the
firewall, I'm not real enthusiastic about snagging a CVS snapshot.
So, here's a (no doubt crude, brutal) patch for the cc-mode distributed
w/emacs 21.2 that seems to work for me.
(Hmm. Dumb ol' Mozilla wants to wrap. I'll try attaching the diff.)
John.
[-- Attachment #2: cc-cmds.5.28.patch --]
[-- Type: text/plain, Size: 602 bytes --]
--- ../lisp/progmodes/cc-cmds.el 2001-07-16 02:46:48.000000000 -0400
+++ cc-cmds.el 2003-05-16 11:31:30.000000000 -0400
@@ -2425,7 +2425,8 @@
;; we're on the first line in a block comment so it'll be
;; wrong. Ignore it to guess a better one below.
(setq fill-prefix nil)
- (when (and (eq c-lit-type 'c++)
+ (when (and (or (eq c-lit-type 'c++)
+ (eq c-lit-type 'c))
(not (string-match "\\`[ \t]*//" (or fill-prefix ""))))
;; Kludge: If the function that adapted the fill prefix
;; doesn't produce the required comment starter for line
[-- Attachment #3: Type: text/plain, Size: 148 bytes --]
_______________________________________________
Bug-gnu-emacs mailing list
Bug-gnu-emacs@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-gnu-emacs
next reply other threads:[~2003-05-16 17:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-16 17:34 John Lusk 4 [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-03-30 5:59 CC Mode 5.28 (Java); The comment fill for auto-fill mode does not work properly when inside Java classes Dwayne A. Davis
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3EC52135.2050107@ahnlusk.net \
--to=john4-moz@ahnlusk.net \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.