bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bibtex-clean-entry indents badly when splitting long lines


From: Tim Hesterberg
Subject: Re: bibtex-clean-entry indents badly when splitting long lines
Date: Fri, 24 Aug 2007 08:22:47 -0700

Thanks for checking.

My apology - there were some additional relevant things in my .emacs:

(setq bibtex-entry-format '(opts-or-alts required-fields numerical-fields 
realign last-comma))
(add-hook 'bibtex-mode-hook
          '(lambda ()
             (setq fill-prefix nil); prevent C-o from indenting
             ))

It is setting the fill-prefix to nil that appears to cause this.

I set the fill-prefix to nil to prevent C-o open-line from indenting.
I'll look for another way to do that.



>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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]