From unknown Mon Aug 18 00:08:12 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#2385 <2385@debbugs.gnu.org> To: bug#2385 <2385@debbugs.gnu.org> Subject: Status: bibtex autokey no longer ignores uncapitalized title words Reply-To: bug#2385 <2385@debbugs.gnu.org> Date: Mon, 18 Aug 2025 07:08:12 +0000 retitle 2385 bibtex autokey no longer ignores uncapitalized title words reassign 2385 emacs submitter 2385 "era eriksson" severity 2385 normal thanks From era@iki.fi Thu Feb 19 05:47:20 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 19 Feb 2009 13:47:20 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-5.9 required=4.0 tests=FOURLA,HAS_PACKAGE, MURPHY_DRUGS_REL8 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from out4.smtp.messagingengine.com (out4.smtp.messagingengine.com [66.111.4.28]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1JDlG6n024906 for ; Thu, 19 Feb 2009 05:47:18 -0800 Received: from compute2.internal (compute2.internal [10.202.2.42]) by out1.messagingengine.com (Postfix) with ESMTP id A10FA29D069 for ; Thu, 19 Feb 2009 08:47:15 -0500 (EST) Received: from web6.messagingengine.com ([10.202.2.215]) by compute2.internal (MEProxy); Thu, 19 Feb 2009 08:47:15 -0500 Received: by web6.messagingengine.com (Postfix, from userid 99) id 7EEAF6846F; Thu, 19 Feb 2009 08:47:15 -0500 (EST) Message-Id: <1235051235.902.1301271495@webmail.messagingengine.com> X-Sasl-Enc: BU8GpvYuRZlUcR3fM8PH/xMiSBjBYiTN2PTy5nRaA7A0 1235051235 From: "era eriksson" To: submit@debbugs.gnu.org Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_12350512359022"; charset="ISO-8859-15" MIME-Version: 1.0 X-Mailer: MessagingEngine.com Webmail Interface Subject: bibtex autokey no longer ignores uncapitalized title words Date: Thu, 19 Feb 2009 15:47:15 +0200 This is a multi-part message in MIME format. --_----------=_12350512359022 Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="ISO-8859-15" MIME-Version: 1.0 X-Mailer: MessagingEngine.com Webmail Interface Date: Thu, 19 Feb 2009 13:47:15 UT 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. --_----------=_12350512359022 Content-Disposition: attachment; filename="bibtex-snapshot-el.patch" Content-Transfer-Encoding: base64 Content-Type: text/x-patch; name="bibtex-snapshot-el.patch" MIME-Version: 1.0 X-Mailer: MessagingEngine.com Webmail Interface Date: Thu, 19 Feb 2009 13:47:15 UT LS0tIGVtYWNzLXNuYXBzaG90LTIwMDkwMjA3L2xpc3AvdGV4dG1vZGVzL2Jp YnRleC5lbH4JMjAwOS0wMS0xNyAxNjo1ODo1My4wMDAwMDAwMDAgKzAyMDAK KysrIGVtYWNzLXNuYXBzaG90LTIwMDkwMjA3L2xpc3AvdGV4dG1vZGVzL2Jp YnRleC5lbAkyMDA5LTAyLTE5IDE1OjMzOjQzLjAwMDAwMDAwMCArMDIwMApA QCAtNzQ2LDcgKzc0Niw3IEBACiAKIChkZWZjdXN0b20gYmlidGV4LWF1dG9r ZXktdGl0bGV3b3JkLWlnbm9yZQogICAnKCJBIiAiQW4iICJPbiIgIlRoZSIg IkVpbmU/IiAiRGVyIiAiRGllIiAiRGFzIgotICAgICJbXls6dXBwZXI6XV0u KiIgIi4qW15bOnVwcGVyOl0wLTldLioiKQorICAgICJbXls6dXBwZXI6XV0u KiIgIi4qW15bOnVwcGVyOl1bOmxvd2VyOl0wLTldLioiKQogICAiRGV0ZXJt aW5lcyB3b3JkcyBmcm9tIHRoZSB0aXRsZSB0aGF0IGFyZSBub3QgdG8gYmUg dXNlZCBpbiB0aGUga2V5LgogRWFjaCBpdGVtIG9mIHRoZSBsaXN0IGlzIGEg cmVnZXhwLiAgSWYgYSB3b3JkIG9mIHRoZSB0aXRsZSBtYXRjaGVzIGEKIHJl Z2V4cCBmcm9tIHRoYXQgbGlzdCwgaXQgaXMgbm90IGluY2x1ZGVkIGluIHRo ZSB0aXRsZSBwYXJ0IG9mIHRoZSBrZXkuCkBAIC0yMzA3LDYgKzIzMDcsMTAg QEAKICAgICA7OyBnYXRoZXIgd29yZHMgZnJvbSB0aXRsZXN0cmluZyBpbnRv IGEgbGlzdC4gIElnbm9yZQogICAgIDs7IHNwZWNpZmljIHdvcmRzIGFuZCB1 c2Ugb25seSBhIHNwZWNpZmljIGFtb3VudCBvZiB3b3Jkcy4KICAgICAobGV0 ICgoY291bnRlciAwKQorCSAgKHJlIChjb25jYXQgIlxcYFxcKD86IgorCQkg ICAgICAobWFwY29uY2F0ICMnaWRlbnRpdHkKKwkJCQkgYmlidGV4LWF1dG9r ZXktdGl0bGV3b3JkLWlnbm9yZSAiXFx8IikKKwkJICAgICAgIlxcKVxcJyIp ICkKICAgICAgICAgICB0aXRsZXdvcmRzIHRpdGxld29yZHMtZXh0cmEgd29y ZCkKICAgICAgICh3aGlsZSAoYW5kIChvciAobm90IChudW1iZXJwIGJpYnRl eC1hdXRva2V5LXRpdGxld29yZHMpKQogICAgICAgICAgICAgICAgICAgICAg ICg8IGNvdW50ZXIgKCsgYmlidGV4LWF1dG9rZXktdGl0bGV3b3JkcwpAQCAt MjMxNiwxMiArMjMyMCwxMCBAQAogICAgICAgICAgICAgICB0aXRsZXN0cmlu ZyAoc3Vic3RyaW5nIHRpdGxlc3RyaW5nIChtYXRjaC1lbmQgMCkpKQogICAg ICAgICA7OyBJZ25vcmUgd29yZHMgbWF0Y2hlZCBieSBvbmUgb2YgdGhlIGVs ZW1lbnRzIG9mCiAgICAgICAgIDs7IGBiaWJ0ZXgtYXV0b2tleS10aXRsZXdv cmQtaWdub3JlJwotICAgICAgICAodW5sZXNzIChsZXQgKChsc3QgYmlidGV4 LWF1dG9rZXktdGl0bGV3b3JkLWlnbm9yZSkpCi0gICAgICAgICAgICAgICAg ICAod2hpbGUgKGFuZCBsc3QKLSAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgIChub3QgKHN0cmluZy1tYXRjaCAoY29uY2F0ICJcXGBcXCg/OiIgKGNh ciBsc3QpCi0gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAiXFwpXFwnIikgd29yZCkpKQotICAgICAg ICAgICAgICAgICAgICAoc2V0cSBsc3QgKGNkciBsc3QpKSkKLSAgICAgICAg ICAgICAgICAgIGxzdCkKKwk7Ozs7Ozs7OyBYWFggRklYTUU6IGNhc2UtZm9s ZC1zZWFyY2ggc2hvdWxkIGJlIHVubmVjZXNzYXJ5IGhlcmUKKwk7OyBbWzp1 cHBlcjpdXSBhbmQgW1s6bG93ZXI6XV0gc2hvdWxkIGJlIHVuYWZmZWN0ZWQg YnkgY2FzZSBmb2xkaW5nCisgICAgICAgICh1bmxlc3MgKGxldCAoKGNhc2Ut Zm9sZC1zZWFyY2ggbmlsKSkKKwkJICAoc3RyaW5nLW1hdGNoIHJlIHdvcmQp ICkKICAgICAgICAgICAoc2V0cSBjb3VudGVyICgxKyBjb3VudGVyKSkKICAg ICAgICAgICAoaWYgKG9yIChub3QgKG51bWJlcnAgYmlidGV4LWF1dG9rZXkt dGl0bGV3b3JkcykpCiAgICAgICAgICAgICAgICAgICAoPD0gY291bnRlciBi aWJ0ZXgtYXV0b2tleS10aXRsZXdvcmRzKSkK --_----------=_12350512359022-- From Roland.Winkler@physik.uni-erlangen.de Thu Feb 19 16:19:51 2009 Received: (at 2385) by emacsbugs.donarmstrong.com; 20 Feb 2009 00:19:51 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.0 required=4.0 tests=HAS_BUG_NUMBER, MURPHY_DRUGS_REL8 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from tfkpsv.physik.uni-erlangen.de (tfkpsv.physik.uni-erlangen.de [131.188.164.197]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1K0JlR8023407 for <2385@emacsbugs.donarmstrong.com>; Thu, 19 Feb 2009 16:19:49 -0800 Received: from tfkp07.physik.uni-erlangen.de (tfkp07.physik.uni-erlangen.de [131.188.164.207]) by tfkpsv.physik.uni-erlangen.de (Postfix) with ESMTP id D76D921603; Fri, 20 Feb 2009 01:19:42 +0100 (CET) Date: Fri, 20 Feb 2009 01:19:40 +0100 Message-Id: From: "Roland Winkler" To: era@iki.fi Cc: 2385@debbugs.gnu.org Subject: bug#2385: bibtex autokey no longer ignores uncapitalized title words 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 From cyd@stupidchicken.com Thu Feb 19 17:49:12 2009 Received: (at 2385) by emacsbugs.donarmstrong.com; 20 Feb 2009 01:49:12 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.0 required=4.0 tests=HAS_BUG_NUMBER, MURPHY_DRUGS_REL8 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1K1n981016533 for <2385@emacsbugs.donarmstrong.com>; Thu, 19 Feb 2009 17:49:10 -0800 Received: by cyd.mit.edu (Postfix, from userid 1000) id 8F58D57E20C; Thu, 19 Feb 2009 20:50:04 -0500 (EST) From: Chong Yidong To: "Roland Winkler" Cc: era@iki.fi, 2385@debbugs.gnu.org Subject: Re: bug#2385: bibtex autokey no longer ignores uncapitalized title words Date: Thu, 19 Feb 2009 20:50:04 -0500 Message-ID: <87hc2px4fn.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > 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. From monnier@iro.umontreal.ca Thu Feb 19 19:12:55 2009 Received: (at 2385) by emacsbugs.donarmstrong.com; 20 Feb 2009 03:12:55 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-0.5 required=4.0 tests=HAS_BUG_NUMBER, MURPHY_DRUGS_REL8,XIRONPORT autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from ironport2-out.teksavvy.com (ironport2-out.pppoe.ca [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1K3Cpop008475 for <2385@emacsbugs.donarmstrong.com>; Thu, 19 Feb 2009 19:12:52 -0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ah0FALGtnUlMCpTK/2dsb2JhbACBbtFYhA8Ggz0 X-IronPort-AV: E=Sophos;i="4.38,238,1233550800"; d="scan'208";a="34121154" Received: from 76-10-148-202.dsl.teksavvy.com (HELO pastel.home) ([76.10.148.202]) by ironport2-out.teksavvy.com with ESMTP; 19 Feb 2009 22:12:44 -0500 Received: by pastel.home (Postfix, from userid 20848) id DA4724B488; Thu, 19 Feb 2009 22:12:41 -0500 (EST) From: Stefan Monnier To: Roland Winkler Cc: 2385@debbugs.gnu.org, era@iki.fi Subject: Re: bug#2385: bibtex autokey no longer ignores uncapitalized title words Message-ID: References: Date: Thu, 19 Feb 2009 22:12:41 -0500 In-Reply-To: (Roland Winkler's message of "Fri, 20 Feb 2009 01:19:40 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > 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 From Roland.Winkler@physik.uni-erlangen.de Thu Feb 19 20:26:07 2009 Received: (at 2385-done) by emacsbugs.donarmstrong.com; 20 Feb 2009 04:26:07 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.0 required=4.0 tests=HAS_BUG_NUMBER, MURPHY_DRUGS_REL8 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from tfkpsv.physik.uni-erlangen.de (tfkpsv.physik.uni-erlangen.de [131.188.164.197]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1K4Q315029131 for <2385-done@emacsbugs.donarmstrong.com>; Thu, 19 Feb 2009 20:26:04 -0800 Received: from tfkp07.physik.uni-erlangen.de (tfkp07.physik.uni-erlangen.de [131.188.164.207]) by tfkpsv.physik.uni-erlangen.de (Postfix) with ESMTP id 8B53921603; Fri, 20 Feb 2009 05:26:01 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18846.12504.320622.911721@tfkp07.physik.uni-erlangen.de> Date: Fri, 20 Feb 2009 05:26:00 +0100 From: "Roland Winkler" To: Stefan Monnier Cc: 2385-done@debbugs.gnu.org, era@iki.fi, Chong Yidong Subject: Re: bug#2385: bibtex autokey no longer ignores uncapitalized title words In-Reply-To: References: X-Mailer: VM 8.0.9 under Emacs 22.2.1 (i686-pc-linux-gnu) > > 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.) From unknown Mon Aug 18 00:08:12 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: $requester Subject: Internal Control Message-Id: bug archived. Date: Fri, 20 Mar 2009 14:24:09 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A log time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator