unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Stefan Kamphausen <skampi@gmx.net>
To: help-gnu-emacs@gnu.org
Subject: Re: Error with fill-paragraph in my own major mode
Date: Thu, 31 Jan 2008 16:58:15 +0100	[thread overview]
Message-ID: <858x2656nc.fsf@usenet.my.skamphausen.de> (raw)
In-Reply-To: jwvy7a6nhxo.fsf-monnier+gnu.emacs.help@gnu.org

Hi Stefan,

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> Nevertheless I must admit that I don't really grok that code in
>> fill.el.  What is that (concat "\0" commark "a") good for?
>
> The code in fill.el is fiendishly subtle (I should know, I wrote it).

"subtle" is too friendly a word ;-)

> [SNIP]
>
> That's what the comment tries to explain:

.. and what I tried to understand.

Thanks for your explanations.  I think one would have to look at all
the possible cases to fully get this.

As a (somewhat funny) sidenote: I know a special in-house language,
for which I also wrote a major mode back then) which uses # as the
comment character.  But only, and this is the funny part, if it does
not appear within the arguments of a command, where they are used
excessively.  

# valid comment
Command(arguments, man#y, of,wh#ich, may#contain, hash#es);
AnotherCommand(onearg); # valid comment, too

Try dealing with that.  I gave up ;-)

Regards
Stefan
-- 
Stefan Kamphausen --- http://www.skamphausen.de
a blessed +42 regexp of confusion (weapon in hand)
You hit. The format string crumbles and turns to dust.


  reply	other threads:[~2008-01-31 15:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-30 16:41 Error with fill-paragraph in my own major mode Stefan Kamphausen
2008-01-30 21:15 ` Andreas Röhler
2008-01-30 21:49 ` Stefan Monnier
2008-01-31  8:36   ` Stefan Kamphausen
2008-01-31 15:25     ` Stefan Monnier
2008-01-31 15:58       ` Stefan Kamphausen [this message]
2008-01-31 19:57         ` Stefan Monnier

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=858x2656nc.fsf@usenet.my.skamphausen.de \
    --to=skampi@gmx.net \
    --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).