From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Kamphausen Newsgroups: gmane.emacs.help Subject: Re: Error with fill-paragraph in my own major mode Date: Thu, 31 Jan 2008 16:58:15 +0100 Organization: Church of Emacs Message-ID: <858x2656nc.fsf@usenet.my.skamphausen.de> References: <85y7a7l0z3.fsf@usenet.my.skamphausen.de> <85hcgutmqc.fsf@usenet.my.skamphausen.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1201801766 12281 80.91.229.12 (31 Jan 2008 17:49:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Jan 2008 17:49:26 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 31 18:49:37 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JKdXa-0007Sd-Hi for geh-help-gnu-emacs@m.gmane.org; Thu, 31 Jan 2008 18:49:34 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JKdX8-0004m3-Tf for geh-help-gnu-emacs@m.gmane.org; Thu, 31 Jan 2008 12:49:06 -0500 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!syros.belnet.be!news.belnet.be!feeder.news-service.com!news.albasani.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 38 Original-X-Trace: news.albasani.net 5qVt83ffEcaiKhGrRjB+Z6AyXKiRWreIHjPqi99DxLn5VyC2N4oeKdaspjdNOK9gq3a+HsuMgqxAEY2VvTismGQkUtZMI8mzbPKYXUGNe/lWIOqQF7eiccCyI1JAHvUk Original-X-Complaints-To: abuse@albasani.net Original-NNTP-Posting-Date: Thu, 31 Jan 2008 15:58:17 +0000 (UTC) X-User-ID: KZCDLXkwl9FVCo0HYeGqJRYMC7oMDwK3ocHodD818EE= Cancel-Lock: sha1:B0Prt1bSKw7vIWsXT1QhwN/AASA= sha1:1RNyOlPS5SaJgW/O7+kIitnS3KE= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-NNTP-Posting-Host: vJ61nn7tyejnrgNjAmuL4Nd4079Lm43OKUqHynWduDM= Original-Xref: shelby.stanford.edu gnu.emacs.help:155755 X-Mailman-Approved-At: Thu, 31 Jan 2008 12:48:25 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:51138 Archived-At: Hi Stefan, Stefan Monnier 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.