GNU bug report logs -
#2385
bibtex autokey no longer ignores uncapitalized title words
Previous Next
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.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 2385 in the body.
You can then email your comments to 2385 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#2385
; Package
emacs
.
(Thu, 19 Feb 2009 13:50:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"era eriksson" <era <at> iki.fi>
:
New bug report received and forwarded. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Thu, 19 Feb 2009 13:50:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
[Message part 1 (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)]
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#2385
; Package
emacs
.
(Fri, 20 Feb 2009 00:25:08 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Roland Winkler" <Roland.Winkler <at> physik.uni-erlangen.de>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Fri, 20 Feb 2009 00:25:09 GMT)
Full text and
rfc822 format available.
Message #10 received at 2385 <at> emacsbugs.donarmstrong.com (full text, mbox):
In general, the patch makes sense to me and I am willing to install
it. Can someone else comment on the following part?
+ ;;;;;;;; XXX FIXME: case-fold-search should be unnecessary here
+ ;; [[:upper:]] and [[:lower:]] should be unaffected by case folding
+ (unless (let ((case-fold-search nil))
Thanks,
Roland
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#2385
; Package
emacs
.
(Fri, 20 Feb 2009 01:55:04 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Chong Yidong <cyd <at> stupidchicken.com>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Fri, 20 Feb 2009 01:55:05 GMT)
Full text and
rfc822 format available.
Message #15 received at 2385 <at> emacsbugs.donarmstrong.com (full text, mbox):
> In general, the patch makes sense to me and I am willing to install
> it. Can someone else comment on the following part?
>
> + ;;;;;;;; XXX FIXME: case-fold-search should be unnecessary here
> + ;; [[:upper:]] and [[:lower:]] should be unaffected by case folding
> + (unless (let ((case-fold-search nil))
I doubt we're going to change this behavior in the near future.
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#2385
; Package
emacs
.
(Fri, 20 Feb 2009 03:20:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Stefan Monnier <monnier <at> iro.umontreal.ca>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Fri, 20 Feb 2009 03:20:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 2385 <at> emacsbugs.donarmstrong.com (full text, mbox):
> Can someone else comment on the following part?
> + ;;;;;;;; XXX FIXME: case-fold-search should be unnecessary here
> + ;; [[:upper:]] and [[:lower:]] should be unaffected by case folding
> + (unless (let ((case-fold-search nil))
Whether [:upper:] and [:lower:] should be affected by case folding or
not is a good question. I'm personally not sure which option is best.
But in any case in Emacs they *are* affected so the case-fold-search
binding does make a difference.
> 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.
Stefan
Reply sent
to
"Roland Winkler" <Roland.Winkler <at> physik.uni-erlangen.de>
:
You have taken responsibility.
(Fri, 20 Feb 2009 04:30:03 GMT)
Full text and
rfc822 format available.
Notification sent
to
"era eriksson" <era <at> iki.fi>
:
bug acknowledged by developer.
(Fri, 20 Feb 2009 04:30:03 GMT)
Full text and
rfc822 format available.
Message #25 received at 2385-done <at> emacsbugs.donarmstrong.com (full text, mbox):
> > 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.)
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> emacsbugs.donarmstrong.com
.
(Fri, 20 Mar 2009 14:24:09 GMT)
Full text and
rfc822 format available.
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.