unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Complex paragraph filling - how?
@ 2003-05-29  0:22 Kim F. Storm
  2003-05-28 23:26 ` Robert J. Chassell
  0 siblings, 1 reply; 3+ messages in thread
From: Kim F. Storm @ 2003-05-29  0:22 UTC (permalink / raw)



In connection with the refilling of paragraphs in info due to the new
"node hiding", I need some way to fill things like the following in a
sensible manner:

 - Scheme Procedure: open path flags [mode]
 - C Function: scm_open (path, flags, mode)
     Open the file named by PATH for reading and/or writing.  FLAGS is
     an integer specifying how the file should be opened.  MODE is an
     integer specifying the permission bits of the file, if it needs to
     be created, before the umask, see Top, is applied.  The
     default is 666 (Unix itself has no default).

A simple (fill-paragraph nil) produces this result:

 - Scheme Procedure: open path flags [mode] C Function: scm_open
 - (path, flags, mode) Open the file named by PATH for reading and/or
 - writing.  FLAGS is an integer specifying how the file should be
 - opened.  MODE is an integer specifying the permission bits of the
 - file, if it needs to be created, before the umask, see Top, is
 - applied.  The default is 666 (Unix itself has no default).

But I want it to do like this:

 - Scheme Procedure: open path flags [mode]
 - C Function: scm_open (path, flags, mode)
     Open the file named by PATH for reading and/or writing.  FLAGS is
     an integer specifying how the file should be opened.  MODE is an
     integer specifying the permission bits of the file, if it needs
     to be created, before the umask, see Top is applied.  The default
     is 666 (Unix itself has no default).

i.e. it should recognize the difference in indentation and lines
starting with a - (and maybe more?) as separate paragraphs.

Do any of you have an ideas how to this e.g. by tweaking the
paragraph related regexps.

-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-05-30  1:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-29  0:22 Complex paragraph filling - how? Kim F. Storm
2003-05-28 23:26 ` Robert J. Chassell
2003-05-30  1:01   ` Kim F. Storm

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).