bug-gnu-emacs
[Top][All Lists]
Advanced

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

tcl-do-fill-paragraph


From: David Kuehling
Subject: tcl-do-fill-paragraph
Date: 16 Feb 2002 18:45:07 +0100

In GNU Emacs 21.1.1 `tcl-do-fill-paragraph' doesn't fill paragraphs as
one would expect: It allways fills the complete comment, and doesn't stop
at empty comment lines.

An Example:

# ParseChannel --
#
#   XML-Parse Channel HDL using tags from namespace TAGNS: Setup variables 
#   used by parser. Invoke handler
#   of tag ROOT for doing the actual parsing, structure checking etc.
#

After pressing M-q:

# ParseChannel -- # XML-Parse Channel HDL using tags from namespace
# TAGNS: Setup variables used by parser. Invoke handler of tag ROOT
# for doing the actual parsing, structure checking etc.  #

I was able to change that behaviour by modifying the regular expression
that recognizes paragraph-lines in `tcl-do-fill-paragraph':

Regexp was: "^[ \t]*#"
New regexp: "^[ \t]*#[ \t]*[^ \t\n]"

There are two occurences of that regexp that had to be fixed.

Now the result after pressing M-q is:

# ParseChannel --
#
#   XML-Parse Channel HDL using tags from namespace TAGNS: Setup
# variables used by parser. Invoke handler of tag ROOT for doing the
# actual parsing, structure checking etc.
#

                                                        David Kühling




reply via email to

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