From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Complex paragraph filling - how? Date: 29 May 2003 02:22:09 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <5xof1msitq.fsf@kfs2.cua.dk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1054161486 2906 80.91.224.249 (28 May 2003 22:38:06 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 28 May 2003 22:38:06 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu May 29 00:38:03 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19L9YZ-0000kY-00 for ; Thu, 29 May 2003 00:38:03 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19L9mx-0004Eg-00 for ; Thu, 29 May 2003 00:52:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19L9W5-0002jY-JD for emacs-devel@quimby.gnus.org; Wed, 28 May 2003 18:35:29 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19L9SQ-0000LY-Db for emacs-devel@gnu.org; Wed, 28 May 2003 18:31:42 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19L9PW-0007E7-Gj for emacs-devel@gnu.org; Wed, 28 May 2003 18:28:44 -0400 Original-Received: from mail.filanet.dk ([195.215.206.179]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19L9LE-0004gC-TI for emacs-devel@gnu.org; Wed, 28 May 2003 18:24:17 -0400 Original-Received: from kfs2.cua.dk.cua.dk (unknown [10.1.82.3]) by mail.filanet.dk (Postfix) with SMTP id ACBD77C012 for ; Thu, 29 May 2003 00:23:52 +0200 (CEST) Original-To: emacs-devel@gnu.org Original-Lines: 40 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:14388 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:14388 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 http://www.cua.dk