From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Karl Eichwalder Newsgroups: gmane.emacs.help Subject: Re: No line break within [[foo bar]] (wikipedia) Date: Sun, 20 Apr 2003 19:15:36 +0200 Organization: The Moon On Earth Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <84of31ftpb.fsf@lucy.is.informatik.uni-duisburg.de> <848yu52tka.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1050861372 28191 80.91.224.249 (20 Apr 2003 17:56:12 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Apr 2003 17:56:12 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 20 19:56:11 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 197J2x-0007KY-00 for ; Sun, 20 Apr 2003 19:56:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 197J2K-00012j-02 for gnu-help-gnu-emacs@m.gmane.org; Sun, 20 Apr 2003 13:55:32 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!logbridge.uoregon.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.arcor-online.net!uni-erlangen.de!elvis.franken.de!chico.franken.de!news.franken.de!gnu.franken.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-NNTP-Posting-Host: tux.gnu.franken.de Original-X-Trace: tux.gnu.franken.de 1050858936 14571 192.168.1.3 (20 Apr 2003 17:15:36 GMT) Original-X-Complaints-To: newsadm@gnu.franken.de Original-NNTP-Posting-Date: Sun, 20 Apr 2003 17:15:36 +0000 (UTC) Mail-copies-to: never User-Agent: Gnus/5.090018 (Oort Gnus v0.18) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:bIOrhO3Pt4frGjYvkrP6on8X1iU= Original-Xref: shelby.stanford.edu gnu.emacs.help:112138 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:8637 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:8637 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) | (*)/'(*)