From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "era eriksson" Newsgroups: gmane.emacs.bugs Subject: bug#2385: bibtex autokey no longer ignores uncapitalized title words Date: Thu, 19 Feb 2009 15:47:15 +0200 Message-ID: <1235051235.902.1301271495@webmail.messagingengine.com> Reply-To: era eriksson , 2385@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="_----------=_12350512359022"; charset="ISO-8859-15" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1235058545 7515 80.91.229.12 (19 Feb 2009 15:49:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Feb 2009 15:49:05 +0000 (UTC) To: submit@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 19 16:50:19 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LaBA9-0003Zr-6M for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Feb 2009 16:50:10 +0100 Original-Received: from localhost ([127.0.0.1]:54111 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LaB8o-0002dS-TT for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Feb 2009 10:48:46 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1La9VD-0007yp-Ku for bug-gnu-emacs@gnu.org; Thu, 19 Feb 2009 09:03:48 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1La9V8-0007xV-8L for bug-gnu-emacs@gnu.org; Thu, 19 Feb 2009 09:03:43 -0500 Original-Received: from [199.232.76.173] (port=42884 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1La9V4-0007wk-L5 for bug-gnu-emacs@gnu.org; Thu, 19 Feb 2009 09:03:39 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:35050) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1La9V3-0002Xj-Nz for bug-gnu-emacs@gnu.org; Thu, 19 Feb 2009 09:03:38 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1JE3ZXV029399; Thu, 19 Feb 2009 06:03:35 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n1JDo3QD025173; Thu, 19 Feb 2009 05:50:03 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: "era eriksson" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 19 Feb 2009 13:50:02 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 2385 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123505124024920 (code B ref -1); Thu, 19 Feb 2009 13:50:02 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 19 Feb 2009 13:47:20 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-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 Original-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) Original-Received: from web6.messagingengine.com ([10.202.2.215]) by compute2.internal (MEProxy); Thu, 19 Feb 2009 08:47:15 -0500 Original-Received: by web6.messagingengine.com (Postfix, from userid 99) id 7EEAF6846F; Thu, 19 Feb 2009 08:47:15 -0500 (EST) X-Sasl-Enc: BU8GpvYuRZlUcR3fM8PH/xMiSBjBYiTN2PTy5nRaA7A0 1235051235 X-Mailer: MessagingEngine.com Webmail Interface X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Thu, 19 Feb 2009 09:03:43 -0500 X-Mailman-Approved-At: Thu, 19 Feb 2009 10:48:19 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:25465 Archived-At: 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/IiAiRGV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gICAgICAgICB0aXRsZXN0cmlu ZyAoc3Vic3RyaW5nIHRpdGxlc3RyaW5nIChtYXRjaC1lbmQgMCkpKQogICAg ICAgICA7OyBJZ25vcmUgd29yZHMgbWF0Y2hlZCBieSBvbmUgb2YgdGhlIGVs ZW1lbnRzIG9mCiAgICAgICAgIDs7IGBiaWJ0ZXgtYXV0b2tleS10aXRsZXdv cmQtaWdub3JlJwotICAgICAgICAodW5sZXNzIChsZXQgKChsc3QgYmlidGV4 LWF1dG9rZXktdGl0bGV3b3JkLWlnbm9yZSkpCi0gICAgICAgICAgICAgICAg ICAod2hpbGUgKGFuZCBsc3QKLSAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgIChub3QgKHN0cmluZy1tYXRjaCAoY29uY2F0ICJcXGBcXCg/OiIgKGNh ciBsc3QpCi0gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAiXFwpXFwnIikgd29yZCkpKQotICAgICAg ICAgICAgICAgICAgICAoc2V0cSBsc3QgKGNkciBsc3QpKSkKLSAgICAgICAg ICAgICAgICAgIGxzdCkKKwk7Ozs7Ozs7OyBYWFggRklYTUU6IGNhc2UtZm9s ZC1zZWFyY2ggc2hvdWxkIGJlIHVubmVjZXNzYXJ5IGhlcmUKKwk7OyBbWzp1 cHBlcjpdXSBhbmQgW1s6bG93ZXI6XV0gc2hvdWxkIGJlIHVuYWZmZWN0ZWQg YnkgY2FzZSBmb2xkaW5nCisgICAgICAgICh1bmxlc3MgKGxldCAoKGNhc2Ut Zm9sZC1zZWFyY2ggbmlsKSkKKwkJICAoc3RyaW5nLW1hdGNoIHJlIHdvcmQp ICkKICAgICAgICAgICAoc2V0cSBjb3VudGVyICgxKyBjb3VudGVyKSkKICAg ICAgICAgICAoaWYgKG9yIChub3QgKG51bWJlcnAgYmlidGV4LWF1dG9rZXkt dGl0bGV3b3JkcykpCiAgICAgICAgICAgICAgICAgICAoPD0gY291bnRlciBi aWJ0ZXgtYXV0b2tleS10aXRsZXdvcmRzKSkK --_----------=_12350512359022--