emacs-devel
[Top][All Lists]
Advanced

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

Re: fill-paragraph in Emacs 22


From: Reto Zimmermann
Subject: Re: fill-paragraph in Emacs 22
Date: Wed, 26 Nov 2008 13:15:58 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)

Glenn Morris wrote:

Reto Zimmermann wrote:


Example:

-- This module This module This module This module This module This module
-- This module This module This module This module This module This module

becomes

-- This module This module This module This module This module This module This module This module This module This module This module This module

[...]

Any hints on what new settings I should use to make it work?


It works if I do

M-x kill-local-variable paragraph-start

It seems that fill-nobreak-p returns non-nil almost everywhere, so the
filling code never finds an acceptable place to break the line.

vhdl-mode uses

(set (make-local-variable 'paragraph-start)
       "\\s-*\\(--+\\s-*$\\|[^ -]\\|$\\)")

This will match [^ -], which is very broad.

I see. This behavior obviously changed since in Emacs 21 the above setting was required to separate paragraphs inside comments.

Many thanks.
Reto





reply via email to

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