From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Robert J. Chassell" Newsgroups: gmane.emacs.devel Subject: Re: `texinfo-format-buffer' doesn't fold long lines Date: Tue, 1 Mar 2005 10:30:47 -0500 (EST) Message-ID: References: <01c51e18$Blat.v2.4$512429a0@zahav.net.il> Reply-To: bob@rattlesnake.com NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1109693286 17443 80.91.229.2 (1 Mar 2005 16:08:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 1 Mar 2005 16:08:06 +0000 (UTC) Cc: bob@rattlesnake.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 01 17:08:05 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D69tf-0007UV-8M for ged-emacs-devel@m.gmane.org; Tue, 01 Mar 2005 17:06:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D6ACF-00051p-IR for ged-emacs-devel@m.gmane.org; Tue, 01 Mar 2005 11:26:07 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D6A9S-0003nN-1m for emacs-devel@gnu.org; Tue, 01 Mar 2005 11:23:14 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D6A9N-0003kE-6E for emacs-devel@gnu.org; Tue, 01 Mar 2005 11:23:12 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D6A8Z-0003EG-QK for emacs-devel@gnu.org; Tue, 01 Mar 2005 11:22:22 -0500 Original-Received: from [69.168.108.225] (helo=rattlesnake.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D69l6-0001lw-2p for emacs-devel@gnu.org; Tue, 01 Mar 2005 10:58:04 -0500 Original-Received: by rattlesnake.com via sendmail from stdin id (Debian Smail3.2.0.115) Tue, 1 Mar 2005 10:30:47 -0500 (EST) Original-To: yamaoka@jpl.org, emacs-devel@gnu.org In-reply-to: <01c51e18$Blat.v2.4$512429a0@zahav.net.il> (eliz@gnu.org) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: main.gmane.org gmane.emacs.devel:33984 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:33984 > I see, and I will have to keep in mind that there might still be > need to fix the `@end itemize@refill' problem. I'd rather not have us fix a problem by reintroducing another problem that we fixed in the past. Isn't there another way to solve both of them at once? Here is a fix to both at once; at least I hope so. Basically, in emacs/lisp/textmodes/texinfmt.el, near the end of texinfo-append-refill, I replaced the current search for @refill\\|@bye with @refill\\|^[ \t]*@ This defines the types of line to which @refill is *not* appended. (`@bye' should be on a line of its own; `@refill' need not be.) The change enables a writer to nest @itemize and similar entries like this: @itemize @bullet @item foo @itemize @minus @item bar @end itemize @end itemize I also updated the texinfmt-version number and date. Katsumi Yamaoka: does this change work with your files? diff -rc2P /usr/local/src/emacs/lisp/textmodes/texinfmt.el.\~1.76.\~ /usr/local/src/emacs/lisp/textmodes/texinfmt.el *** /usr/local/src/emacs/lisp/textmodes/texinfmt.el.~1.76.~ Tue Mar 1 12:26:36 2005 --- /usr/local/src/emacs/lisp/textmodes/texinfmt.el Tue Mar 1 15:19:50 2005 *************** *** 38,42 **** `(defvar ,var ,value ,doc))) ! (defvar texinfmt-version "2.40 of 6 Dec 2002") (defun texinfmt-version (&optional here) --- 38,42 ---- `(defvar ,var ,value ,doc))) ! (defvar texinfmt-version "2.41 of 1 Mar 2005") (defun texinfmt-version (&optional here) *************** *** 638,642 **** (unless (re-search-backward "@c[ \t\n]\\|@comment[ \t\n]" line-beg t) (forward-char -1)) ! (unless (re-search-backward "@refill\\|@bye" line-beg t) (insert "@refill"))) (forward-line 1)))))) --- 638,642 ---- (unless (re-search-backward "@c[ \t\n]\\|@comment[ \t\n]" line-beg t) (forward-char -1)) ! (unless (re-search-backward "@refill\\|^[ \t]*@" line-beg t) (insert "@refill"))) (forward-line 1)))))) -- Robert J. Chassell bob@rattlesnake.com GnuPG Key ID: 004B4AC8 http://www.rattlesnake.com http://www.teak.cc