* Re: Comment confusion
[not found] <4C23F94C.3000400@no8wireless.co.nz>
@ 2010-06-29 7:08 ` Andreas Röhler
0 siblings, 0 replies; only message in thread
From: Andreas Röhler @ 2010-06-29 7:08 UTC (permalink / raw)
To: help-gnu-emacs
Hi Aidan,
AFAIS it's in
cc-cmds.el, c-mask-paragraph
Looks like a need for rewriting comment-span-functions
Regards,
Andreas
--
https://code.launchpad.net/~a-roehler/python-mode
https://code.launchpad.net/s-x-emacs-werkstatt/
Am 25.06.2010 02:33, schrieb Aidan Gauland:
> Hello,
>
> I have been using Emacs and CC-Mode for quite some time now, and I
> have just started to play with the D programming language. I found a
> (unofficial) D-mode for Emacs and installed it, but, alas, I ran into
> a very annoying bug immediately: it doesn't wrap D-style (/+ +/
> instead of /* */) properly. Now I know that this is not done by
> CC-Mode itself, but it does seem to me to do something to allow
> fill-paragraph to wrap it relative to the column of stars (for C-style
> comments) like so...
>
> /*
> * Normally it is desirable for page boundaries to separate
> paragraphs. The default values of these variables recognize the usual
> separator for pages.
> */
>
> M-q
>
> /*
> * Normally it is desirable for page boundaries to separate
> * paragraphs. The default values of these variables recognize the
> * usual separator for pages.
> */
>
> But in D-mode, D-style comments are not "filled" correctly.
>
> /+
> + Normally it is desirable for page boundaries to separate
> paragraphs. The default values of these variables recognize the usual
> separator for pages.
> +/
>
> M-q
>
> /+ + Normally it is desirable for page boundaries to separate
> paragraphs. The default values of these variables recognize the
> usual separator for pages.
> +/
>
> Or worse...
>
> /+
> + Normally it is desirable for page boundaries to separate
> + paragraphs. The default values of these variables recognize the
> + usual separator for pages.
> +/
>
> M-q
>
> /+ + Normally it is desirable for page boundaries to separate +
> paragraphs. The default values of these variables recognize the +
> usual separator for pages.
> +/
>
> I've dug through the Emacs manual, the code for D-mode, and asked for
> help on IRC (#emacs on freenode), but to no avail. I figure this is
> the best place to turn to, as my problem is very specific to CC-Mode.
> D-mode is based on CC-Mode and seems to treat D-style comments
> properly in every other respect. (I have attached the code for D-mode
> as "d-mode.el".)
>
> Thanks,
> Aidan Gauland
>
>
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit. See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-06-29 7:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <4C23F94C.3000400@no8wireless.co.nz>
2010-06-29 7:08 ` Comment confusion Andreas Röhler
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.