help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: No line break within [[foo bar]] (wikipedia)


From: Karl Eichwalder
Subject: Re: No line break within [[foo bar]] (wikipedia)
Date: Sun, 20 Apr 2003 19:15:36 +0200
User-agent: Gnus/5.090018 (Oort Gnus v0.18) Emacs/21.3.50 (gnu/linux)

kai.grossjohann@gmx.net (Kai Großjohann) writes:

>> (defun fill-list-item-nobreak-p () 
>>   (save-excursion
>>     (beginning-of-line)
>>     (member (char-after (point)) '(?\* ?\#))))
>>
>> (add-to-list 'fill-nobreak-predicate 'fill-list-item-nobreak-p)
>
> After some thinking, it occurs to me that it prevents breaking the
> line *anywhere* in the `*' line.

No, that's exactly what I want; but this does not work ;-(

> But maybe you only want to prevent breaking at the `*' character?

No, no.  This stupid wiki resp. wikipedia file format is fond of long
lines; to build lists with list items you must not wrap ("fill") those
lines; cf. the German description:

    http://de.wikipedia.org/wiki/Wikipedia:Textgestaltung

-- 
                                                         |      ,__o
http://www.gnu.franken.de/ke/                            |    _-\_<,
ke@suse.de (work) / keichwa@gmx.net (home)               |   (*)/'(*)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]