unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: storm@cua.dk (Kim F. Storm)
Subject: Complex paragraph filling - how?
Date: 29 May 2003 02:22:09 +0200	[thread overview]
Message-ID: <5xof1msitq.fsf@kfs2.cua.dk> (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

             reply	other threads:[~2003-05-29  0:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-29  0:22 Kim F. Storm [this message]
2003-05-28 23:26 ` Complex paragraph filling - how? Robert J. Chassell
2003-05-30  1:01   ` Kim F. Storm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5xof1msitq.fsf@kfs2.cua.dk \
    --to=storm@cua.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).