all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: help-gnu-emacs@gnu.org
Subject: Re: Comment confusion
Date: Tue, 29 Jun 2010 09:08:18 +0200	[thread overview]
Message-ID: <4C299BE2.7070604@easy-emacs.de> (raw)
In-Reply-To: <4C23F94C.3000400@no8wireless.co.nz>

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




           reply	other threads:[~2010-06-29  7:08 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <4C23F94C.3000400@no8wireless.co.nz>]

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=4C299BE2.7070604@easy-emacs.de \
    --to=andreas.roehler@easy-emacs.de \
    --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.
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.