From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Roland Winkler Newsgroups: gmane.emacs.bugs Subject: Re: bibtex-clean-entry indents badly when splitting long lines Date: Thu, 23 Aug 2007 19:01:31 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1187892236 26648 80.91.229.12 (23 Aug 2007 18:03:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 23 Aug 2007 18:03:56 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: Tim Hesterberg Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 23 20:03:52 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 1IOH27-0004zh-7C for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Aug 2007 20:03:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IOH26-0007HJ-Pt for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Aug 2007 14:03:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IOG3x-0005jN-Cj for bug-gnu-emacs@gnu.org; Thu, 23 Aug 2007 13:01:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IOG3w-0005i7-FL for bug-gnu-emacs@gnu.org; Thu, 23 Aug 2007 13:01:40 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IOG3w-0005hu-Ax for bug-gnu-emacs@gnu.org; Thu, 23 Aug 2007 13:01:40 -0400 Original-Received: from tfkpsv.physik.uni-erlangen.de ([131.188.164.197]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IOG3v-0000Kx-P9 for bug-gnu-emacs@gnu.org; Thu, 23 Aug 2007 13:01:39 -0400 Original-Received: from tfkp07.physik.uni-erlangen.de (tfkp07.physik.uni-erlangen.de [131.188.164.207]) by tfkpsv.physik.uni-erlangen.de (Postfix) with ESMTP id 4C29F21B53; Thu, 23 Aug 2007 19:01:33 +0200 (CEST) In-Reply-To: (Tim Hesterberg's message of "Wed\, 22 Aug 2007 16\:39\:17 -0700") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-Detected-Kernel: Linux 2.4-2.6 X-Mailman-Approved-At: Thu, 23 Aug 2007 14:03:40 -0400 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:16427 Archived-At: Tim Hesterberg writes: > 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 cannot reproduce that. Both in emacs 21.3 and 22.1 filling of fields is done only if bibtex-entry-format includes also the option realign, i.e., you need a line like the folliwng in your .emacs (setq bibtex-entry-format '(opts-or-alts numerical-fields realign)) When I do that, I get the same filling you got with emacs 21.3. Have you tried to reproduce the unintended behavior with "emacs --no-init-file" and evaluating the above BibTeX settings in the *scratch* buffer? As you noticed, the real work of filling is now done by fill-region-as-paragraph, whereas emacs 21.3 used do-auto-fill. Maybe you have some personal customizations that affect the behavior of these general functions. Roland