From unknown Mon Aug 18 11:27:20 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#2385: bibtex autokey no longer ignores uncapitalized title words Reply-To: "era eriksson" , 2385@debbugs.gnu.org Resent-From: "era eriksson" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 19 Feb 2009 13:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 2385 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123505124024920 (code B ref -1); Thu, 19 Feb 2009 13:50:02 +0000 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 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 unknown Mon Aug 18 11:27:20 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#2385: bibtex autokey no longer ignores uncapitalized title words Reply-To: "Roland Winkler" , 2385@debbugs.gnu.org Resent-From: "Roland Winkler" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 20 Feb 2009 00:25:08 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 2385 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 2385-submit@emacsbugs.donarmstrong.com id=B2385.123508919123413 (code B ref 2385); Fri, 20 Feb 2009 00:25:08 +0000 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 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 unknown Mon Aug 18 11:27:20 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#2385: bibtex autokey no longer ignores uncapitalized title words Reply-To: Chong Yidong , 2385@debbugs.gnu.org Resent-From: Chong Yidong Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 20 Feb 2009 01:55:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 2385 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 2385-submit@emacsbugs.donarmstrong.com id=B2385.123509455216539 (code B ref 2385); Fri, 20 Feb 2009 01:55:04 +0000 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 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 unknown Mon Aug 18 11:27:20 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#2385: bibtex autokey no longer ignores uncapitalized title words Reply-To: Stefan Monnier , 2385@debbugs.gnu.org Resent-From: Stefan Monnier Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 20 Feb 2009 03:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 2385 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 2385-submit@emacsbugs.donarmstrong.com id=B2385.12350995758494 (code B ref 2385); Fri, 20 Feb 2009 03:20:02 +0000 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 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 unknown Mon Aug 18 11:27:20 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: owner@emacsbugs.donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: "era eriksson" Subject: bug#2385 closed by "Roland Winkler" (Re: bug#2385: bibtex autokey no longer ignores uncapitalized title words) Message-ID: References: <18846.12504.320622.911721@tfkp07.physik.uni-erlangen.de> <1235051235.902.1301271495@webmail.messagingengine.com> X-Emacs-PR-Message: they-closed 2385 X-Emacs-PR-Package: emacs Reply-To: 2385@debbugs.gnu.org Date: Fri, 20 Feb 2009 04:30:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1235104203-29298-1" This is a multi-part message in MIME format... ------------=_1235104203-29298-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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" . 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" by replying to this email. --=20 2385: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D2385 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1235104203-29298-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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.) ------------=_1235104203-29298-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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-- ------------=_1235104203-29298-1--