[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bibtex-clean-entry indents badly when splitting long lines
From: |
Roland Winkler |
Subject: |
Re: bibtex-clean-entry indents badly when splitting long lines |
Date: |
Thu, 23 Aug 2007 19:01:31 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) |
Tim Hesterberg <timh@insightful.com> 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