From: Tim Hesterberg <timh@insightful.com>
To: Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: bibtex-clean-entry indents badly when splitting long lines
Date: Fri, 24 Aug 2007 08:22:47 -0700 [thread overview]
Message-ID: <u6435kldk.fsf@insightful.com> (raw)
In-Reply-To: <m3zm0inq1g.fsf@tfkp07.physik.uni-erlangen.de> (message from Roland Winkler on Thu, 23 Aug 2007 19:01:31 +0200)
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
next prev parent reply other threads:[~2007-08-24 15:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.5160.1187826082.32220.bug-gnu-emacs@gnu.org>
2007-08-23 17:01 ` bibtex-clean-entry indents badly when splitting long lines Roland Winkler
2007-08-24 15:22 ` Tim Hesterberg [this message]
2007-08-22 23:39 Tim Hesterberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=u6435kldk.fsf@insightful.com \
--to=timh@insightful.com \
--cc=Roland.Winkler@physik.uni-erlangen.de \
--cc=bug-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).