GNU bug report logs - #2385
bibtex autokey no longer ignores uncapitalized title words

Previous Next

Package: emacs;

Reported by: "era eriksson" <era <at> iki.fi>

Date: Thu, 19 Feb 2009 13:50:02 UTC

Severity: normal

Found in version 23.0.90.1

Done: "Roland Winkler" <Roland.Winkler <at> physik.uni-erlangen.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (Emacs bug Tracking System)
To: "era eriksson" <era <at> iki.fi>
Subject: bug#2385 closed by "Roland Winkler" <Roland.Winkler <at> physik.uni-erlangen.de>
 (Re: bug#2385: bibtex autokey no longer ignores uncapitalized title words)
Date: Fri, 20 Feb 2009 04:30:03 +0000
[Message part 1 (text/plain, inline)]
This is an automatic notification regarding your bug report
which was filed against the emacs package:

#2385: bibtex autokey no longer ignores uncapitalized title words

It has been closed by "Roland Winkler" <Roland.Winkler <at> physik.uni-erlangen.de>.

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact "Roland Winkler" <Roland.Winkler <at> physik.uni-erlangen.de> by
replying to this email.


-- 
2385: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=2385
Emacs Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: "Roland Winkler" <Roland.Winkler <at> physik.uni-erlangen.de>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 2385-done <at> debbugs.gnu.org, era <at> iki.fi,
        Chong Yidong <cyd <at> stupidchicken.com>
Subject: Re: bug#2385: bibtex autokey no longer ignores uncapitalized title words
Date: Fri, 20 Feb 2009 05:26:00 +0100
> > In general, the patch makes sense to me and I am willing to install it.
> 
> Please install it then and close the bug, thank you.

I installed the patch (including a comment in the docstring for
bibtex-autokey-titleword-ignore that case is significant.)

[Message part 3 (message/rfc822, inline)]
From: "era eriksson" <era <at> iki.fi>
To: submit <at> debbugs.gnu.org
Subject: bibtex autokey no longer ignores uncapitalized title words
Date: Thu, 19 Feb 2009 15:47:15 +0200
[Message part 4 (text/plain, inline)]
Package: emacs
Version: 23.0.90.1

I'm taking the liberty to forward the following bug from the Ubuntu
Launchpad:

https://bugs.launchpad.net/ubuntu/+source/emacs22/+bug/243156

> 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-autokey-titleword-ignore is set up such that words starting 
> with lowerkey characters will still be ignored. Thus, if you want to 
> use lowercase words from the title, you will have to overwrite the 
> bibtex-autokey-titleword-ignore standard setting.
> 
> So for an entry
> 
> @InProceedings{,
>   author = {Ganter, Bernhard and Kuznetsov, Sergei O.},
>   title = {Stepwise Construction of the {Dedekind-MacNeille}
>                    Completion},
>   year = 1998,
>   booktitle = {ICCS '98: Proceedings of the 6th International 
>               Conference on Conceptual Structures},
>   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:_stepw_const_dedek_macneil_compl
> 
> instead it generates
> 
>   ganter98:_stepw_const_of_dedek_macneil_compl
> 
> In emacs21
> =========
> 
> The variable `bibtex-autokey-titleword-ignore` is set to
> 
>   '("A" "An" "On" "The" "Eine?" "Der" "Die" "Das"
>     "[^A-Z].*" ".*[^a-zA-Z0-9].*")
> 
> and it works as expected.
> 
> In emacs22
> =========
> 
> The variable `bibtex-autokey-titleword-ignore` is set to
> 
>   '("A" "An" "On" "The" "Eine?" "Der" "Die" "Das"
>     "[^[:upper:]].*" ".*[^[:upper:]0-9].*")
> 
> 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.

I have verified this bug with Emacs snapshot 1:20090207-1~intrepid1 from
https://launchpad.net/~ubuntu-elisp/+archive/ppa

Attached below please find a patch for Emacs 23.

/* era */

-- 
If this were a real .signature, it would suck less.  Well, maybe not.

[bibtex-snapshot-el.patch (text/x-patch, attachment)]

This bug report was last modified 16 years and 153 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.