bibtex autokey no longer ignores uncapitalized title words
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNU Emacs |
Unknown
|
Unknown
|
|||
emacs-snapshot (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
emacs22 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: emacs22
RELEASE: Ubuntu 8.04
VERSION: emacs22: 22.1-0ubuntu10.1
What I Expected to Happen
=======
This affects the BibTeX mode. Emacs 20 changed the behaviour, thus:
*** Autokey generation now uses all words from the title, not just
capitalized words. To avoid conflicts with existing customizations,
bibtex-
lowerkey characters will still be ignored. Thus, if you want to use
lowercase words from the title, you will have to overwrite the
bibtex-
So for an entry
@InProceedings{,
author = {Ganter, Bernhard and Kuznetsov, Sergei O.},
title = {Stepwise Construction of the {Dedekind-
year = 1998,
booktitle = {ICCS '98: Proceedings of the 6th International Conference
pages = {295--302},
address = {Montpellier, France},
publisher = {Springer-Verlag},
isbn = {3-540-64791-0}
}
pressing C-c C-c should generate and add the key
ganter98:
instead it generates
ganter98:
In emacs21
=========
The variable `bibtex-
'("A" "An" "On" "The" "Eine?" "Der" "Die" "Das"
"[^A-Z].*" ".*[^a-zA-Z0-9].*")
and it works as expected.
In emacs22
=========
The variable `bibtex-
'("A" "An" "On" "The" "Eine?" "Der" "Die" "Das"
"[^
and it does not work as expected.
Workaround
=========
The old value from emacs21 does not solve the problem, instead I have to enumerate all prepositions and conjunctions.
Changed in emacs-snapshot (Ubuntu): | |
status: | New → Invalid |
And it somehow uses ALL of the lower-case words rather than just the first letter. I"m not a regexp genious, but I couldn't find a solution other than listing all prepositions and conjunctions