From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.devel Subject: `texinfo-format-buffer' doesn't fold long lines Date: Mon, 28 Feb 2005 18:18:08 +0900 Organization: Emacsen advocacy group Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1109583920 10965 80.91.229.2 (28 Feb 2005 09:45:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 28 Feb 2005 09:45:20 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 28 10:45:20 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D5hSk-0005if-No for ged-emacs-devel@m.gmane.org; Mon, 28 Feb 2005 10:45:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D5hl4-0006i7-Mo for ged-emacs-devel@m.gmane.org; Mon, 28 Feb 2005 05:04:11 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D5hIL-00052D-MV for emacs-devel@gnu.org; Mon, 28 Feb 2005 04:34:29 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D5hII-00050c-Uq for emacs-devel@gnu.org; Mon, 28 Feb 2005 04:34:28 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D5hI9-0004tP-PX for emacs-devel@gnu.org; Mon, 28 Feb 2005 04:34:18 -0500 Original-Received: from [69.61.11.2] (helo=washington.hostforweb.net) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1D5h2g-0006Xd-8P for emacs-devel@gnu.org; Mon, 28 Feb 2005 04:18:18 -0500 Original-Received: from localhost ([127.0.0.1]) by washington.hostforweb.net with esmtpa (Exim 4.44) id 1D5h2b-0008Lb-5L; Mon, 28 Feb 2005 04:18:13 -0500 Original-To: emacs-devel@gnu.org X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:VzI/Ms9R6e0LqtaD39J94I+pcSY= X-Hashcash: 1:20:050228:emacs-devel@gnu.org::Dg9vFtUIT+3fSNBM:0000000000000000000000000000000000000000003LWt X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - washington.hostforweb.net X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: 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:33908 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:33908 Hi, In some cases, `texinfo-format-buffer' doesn't fold long lines. For example, try the following and you can see how it does. ;--8<---------------cut here---------------start------------->8--- (with-temp-buffer (insert "@setfilename testing @node Top @itemize @bullet @item foo @enumerate 1 @item bar @enumerate a @item baz The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. @end enumerate @end enumerate @end itemize ") (texinfo-format-buffer) (setq buffer-file-name nil)) ;--8<---------------cut here---------------end--------------->8--- There's no such problem in Emacs 21.3. It happens because someone added "itemize\\|" to `texinfo-no-refill-regexp' as follows: (defvar texinfo-no-refill-regexp (concat "^@" "\\(" ;; add "itemize\\|" (from experiment of 2001 Nov 28) ;; because of a problem with @end itemize@refill ;; I don't know if this causes other problems. ;; I suspect itemized lists don't get filled properly and a ;; more precise fix is required. Bob "itemize\\|" "direntry\\|" [...] Although I don't have a right understanding of the reason it is necessary, I hope for it to be mended anyway. It is because texinfmt is essential to format Japanese Info files. Regards,