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: Mon, 21 Apr 2003 08:49:02 +0200 Organization: The Moon On Earth Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <5ly925jgqg.fsf@rum.cs.yale.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1050912320 15438 80.91.224.249 (21 Apr 2003 08:05:20 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Apr 2003 08:05:20 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 21 10:05:15 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 197WId-00040T-00 for ; Mon, 21 Apr 2003 10:05:15 +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 197WIu-0001td-03 for gnu-help-gnu-emacs@m.gmane.org; Mon, 21 Apr 2003 04:05:32 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.stueberl.de!newsfeed.r-kom.de!news-nue1.dfn.de!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: 30 Original-NNTP-Posting-Host: tux.gnu.franken.de Original-X-Trace: tux.gnu.franken.de 1050907742 3047 192.168.1.3 (21 Apr 2003 06:49:02 GMT) Original-X-Complaints-To: newsadm@gnu.franken.de Original-NNTP-Posting-Date: Mon, 21 Apr 2003 06:49:02 +0000 (UTC) Mail-copies-to: never User-Agent: Gnus/5.090018 (Oort Gnus v0.18) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:NyR0YCxMGaAP9O8tP9kWVoPInhY= Original-Xref: shelby.stanford.edu gnu.emacs.help:112143 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:8642 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:8642 "Stefan Monnier" writes: > (defun fill-open-link-nobreak-p () > (save-excursion > (and (re-search-backward "\\(\\[\\[\\)\\|\\]\\]" > (line-beginning-position) > t) > (match-end 1)))) Thanks! > You can't. It is meant to pinpoint places where breaking is a bad idea, > but if there's no good place to break the line, the line will be broken > at a bad point. Okay, I see. > Try to use auto-fill-inhibit-regexp instead (although I don't think > it's obeyed by M-q). This somehow works, at least for "^\\*"; it does not work for ":" or "#" -- these signs seem to interfere with other line breaking rules. I guess I'll have to disable filling for wikipedia text files all together and to go for a longlines or flowed mode. -- | ,__o http://www.gnu.franken.de/ke/ | _-\_<, ke@suse.de (work) / keichwa@gmx.net (home) | (*)/'(*)