From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim Hesterberg Newsgroups: gmane.emacs.bugs Subject: bibtex-clean-entry indents badly when splitting long lines Date: Wed, 22 Aug 2007 16:39:17 -0700 Message-ID: NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1187826087 19668 80.91.229.12 (22 Aug 2007 23:41:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 22 Aug 2007 23:41:27 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 23 01:41:25 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1INzpE-0004if-Dg for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Aug 2007 01:41:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1INzpD-0004mf-U3 for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Aug 2007 19:41:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1INzpB-0004hp-Ub for bug-gnu-emacs@gnu.org; Wed, 22 Aug 2007 19:41:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1INzp8-0004ZD-Vd for bug-gnu-emacs@gnu.org; Wed, 22 Aug 2007 19:41:21 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1INzp8-0004Ys-Rk for bug-gnu-emacs@gnu.org; Wed, 22 Aug 2007 19:41:18 -0400 Original-Received: from [70.98.76.55] (helo=sewinexch00.insightful.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1INzp8-0000xt-5M for bug-gnu-emacs@gnu.org; Wed, 22 Aug 2007 19:41:18 -0400 Original-Received: from THESTERBERG-XP.insightful.com ([172.16.100.61]) by sewinexch00.insightful.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 22 Aug 2007 16:39:57 -0700 X-OriginalArrivalTime: 22 Aug 2007 23:39:57.0797 (UTC) FILETIME=[BFC7E150:01C7E515] X-Detected-Kernel: Genre and OS details not recognized. X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:16424 Archived-At: I have an entry like this in a .bib file: @Article{turl00, author = {author}, title = {This is a long title that is more than one line long and should be split into multiple lines}, journal = {journal}, year = {year} } In emacs 21.3, if I do C-c C-c (bibtex-clean-entry) the result is: @Article{turl00, author = {author}, title = {This is a long title that is more than one line long and should be split into multiple lines}, journal = {journal}, year = {year} } Note that the title line is split into two lines, with indentation determined by bibtex-contline-indentation, which has the value 17. In emacs 22.1 the continuation line is indented incorrectly: @Article{turl00, author = {author}, title = {This is a long title that is more than one line long and should be split into multiple lines}, journal = {journal}, year = {year} } My .emacs includes: (setq bibtex-include-OPTcrossref nil) (setq bibtex-include-OPTkey nil) (setq bibtex-maintain-sorted-entries t) (setq bibtex-text-indentation 16) I tried to debug this. In case it helps: In emacs 21.3 the sequence of function calls is: bibtex-clean-entry bibtex-fill-entry bibtex-do-auto-fill do-auto-fill In emacs 22.1 the sequence is: bibtex-clean-entry bibtex-fill-entry (this is very different from the emacs 21.3 version) bibtex-fill-field-bounds fill-region-as-paragraph In GNU Emacs 22.1.1 (i386-mingw-nt5.1.2600) of 2007-06-02 on RELEASE Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4) --cflags -Ic:/gnuwin32/include' Important settings: value of $LC_ALL: nil 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: ENU locale-coding-system: cp1252 default-enable-multibyte-characters: t Major mode: Apropos Minor modes in effect: display-time-mode: t shell-dirtrack-mode: t show-paren-mode: t encoded-kbd-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t Recent input: C-x N C-v C-n C-n C-n C-n C-n C-n C-n C-n C-n C-p C-u C-u C-f C-u C-u C-f C-u C-f C-h v C-x N C-x 1 C-x N C-n C-n C-n C-n C-n v C-x 1 v C-u C-u C-p C-u C-p C-u C-p C-u C-p v C-n C-u C-p C-p C-u C-u C-f C-b C-b C-b k C-x 4 b t e m p . e l C-x b t e m p . b i b C-p C-o C-c C-e C-a t u r l 0 0 a u t h o r C-j T h i s SPC i s SPC a SPC l o n g SPC t i t l e SPC t h a t SPC s t r e t h i s SPC m o r e SPC t h a n SPC o n e SPC l i n e SPC l o n g SPC a n d SPC s h o u l d SPC b e SPC s p l i t SPC i n t o SPC m u l t i p l e SPC l i n e s C-j j o u r n a l C-j y e a r C-c C-c C-x n C-v C-v C-v C-v C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-e C-x C-e C-x n C-n C-n C-c C-c C-x u C-n C-n C-e C-b C-u C-p C-p C-SPC C-n C-n C-n C-n C-n C-n w C-x N C-h a b u g C-x n C-v C-s s u b m i t C-a C-n C-n C-n C-n C-SPC C-u C-u C-f C-g w x C-y Recent messages: bibtex-fill-field-bounds Undo! Mark set Type C-x 1 to remove help window. Mark saved where search started Mark set Loading emacsbug...done