[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: |
Mon, 21 Apr 2003 08:49:02 +0200 |
User-agent: |
Gnus/5.090018 (Oort Gnus v0.18) Emacs/21.3.50 (gnu/linux) |
"Stefan Monnier" <monnier+gnu.emacs.help/news/@flint.cs.yale.edu> 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) | (*)/'(*)