[Top][All Lists]

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

Re: Inhibit line-breaking inside syntactic elements

From: Kevin Rodgers
Subject: Re: Inhibit line-breaking inside syntactic elements
Date: Thu, 04 Sep 2003 08:33:26 -0600
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv: Gecko/20020406 Netscape6/6.2.2

Chong Yidong wrote:

I am currently writing a major mode for the Wiki markup language used
in Wikipedia (, and I need help figuring out
how to stop filling functions from breaking lines inside certain
syntactic constructs.

In Wiki markup, links are surrounded by two sets of braces,
[[like this]]. For various reasons, the entire link should be placed
on the same line, so I need to prevent auto-fill and fill-paragraph
from automatically inserting newlines inside such a construct ([[like

| fill-nobreak-predicate's value is nil
| Documentation:
| If non-nil, a predicate for recognizing places not to break a line.
| The predicate is called with no arguments, with point at the place
| to be tested.  If it returns t, fill commands do not break the line there.
| Defined in `textmodes/fill'.

Kevin Rodgers

reply via email to

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