From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Fabrice Bauzac Newsgroups: gmane.emacs.bugs Subject: texinfo.el texinfo-insert-@node Date: Fri, 26 Apr 2002 21:18:54 +0200 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1019848874 12643 127.0.0.1 (26 Apr 2002 19:21:14 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 26 Apr 2002 19:21:14 +0000 (UTC) Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 171BHN-0003Ho-00 for ; Fri, 26 Apr 2002 21:21:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 171BHT-0001Da-00; Fri, 26 Apr 2002 15:21:19 -0400 Original-Received: from atoulouse-104-1-4-235.abo.wanadoo.fr ([80.11.126.235] helo=noon.dnsalias.net) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 171BFD-00018Y-00 for ; Fri, 26 Apr 2002 15:19:00 -0400 Original-Received: from noon by noon.dnsalias.net with local (Exim 3.35 #1 (Debian)) id 171BF8-00014F-00 for ; Fri, 26 Apr 2002 21:18:54 +0200 Original-To: bug-gnu-emacs@gnu.org Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:968 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:968 Good evening, In GNU Emacs 21.2.1 (i386-debian-linux-gnu, X toolkit, Xaw3d scroll bars) of 2002-03-22 on raven, modified by Debian configured using `configure i386-debian-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --with-x=yes --with-x-toolkit=athena --without-gif' Important settings: value of $LC_ALL: fr_FR value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: fr_FR locale-coding-system: iso-latin-1 default-enable-multibyte-characters: t In the Texinfo major mode, the keystroke C-c C-c C-n executes the function texinfo-insert-@node. Here is what it does (-*- is the point). Let this be the buffer before the execution of the command: ================================================================ This is a paragraph. -*-@subsection This is a subsection. This is another paragraph. ================================================================ Here it is after: ================================================================ This is a paragraph. @node -*- @comment node-name, next, previous, up@subsection This is a subsection. This is another paragraph. ================================================================ So, the command doesn't add a newline, and the @subsection is in a bad position. I think the command should behave like other Texinfo-mode commands, such as texinfo-insert-@end, which put a newline at the end of the inserted text. Here is what could be done to texinfo.el: ================================================================ *** texinfo.el.orig Fri Apr 26 21:01:40 2002 --- texinfo.el Fri Apr 26 21:01:55 2002 *************** *** 820,826 **** This also inserts on the following line a comment indicating the order of arguments to @node." (interactive) ! (insert "@node \n@comment node-name, next, previous, up") (forward-line -1) (forward-char 6)) --- 820,826 ---- This also inserts on the following line a comment indicating the order of arguments to @node." (interactive) ! (insert "@node \n@comment node-name, next, previous, up\n") (forward-line -1) (forward-char 6)) ================================================================ Many thanks to Richard Stallman and everyone who contributed on such a fantastic thing: GNU Emacs. Recent input: i n f o . DEL { . o r i g , } . e l SPC > SPC t e x i n f o . e l . d o i f DEL DEL DEL i f f RET l s RET ESC p ESC p ESC b ESC b ESC b ESC b C-b ESC d ESC b ESC b ESC f . e l C-e RET l s RET C-x k RET C-x m C-x k RET ESC x b u g SPC TAB DEL DEL DEL r e p o r t TAB RET Recent messages: Type C-x 1 to remove help window. C-M-v to scroll the help. setq: Quit Making completion list... [5 times] Note: file is write protected Mark saved where search started Wrote /tmp/texinfo.el.orig Wrote /tmp/texinfo.el [2 times] History item: 1 History item: 2 Loading emacsbug...done