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: Kai Großjohann
Subject: Re: No line break within [[foo bar]] (wikipedia)
Date: Sun, 20 Apr 2003 15:21:25 +0200
User-agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.3.50 (gnu/linux)

Karl Eichwalder <keichwa@gmx.net> writes:

> I tried serveral way (w/o understanding what I'm actually doing); here
> is the last experiment:
>
> (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.  But maybe you only want to prevent
breaking at the `*' character?

-- 
file-error; Data: (Opening input file no such file or directory ~/.signature)


reply via email to

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