From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Francesco =?UTF-8?Q?Potort=C3=AC?= Newsgroups: gmane.emacs.bugs Subject: bug#44614: 26.3; bibtex convert case undefined Date: Fri, 13 Nov 2020 12:05:05 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11386"; mail-complaints-to="usenet@ciao.gmane.io" To: 44614@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 13 12:06:11 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kdWuA-0002kx-Cm for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 13 Nov 2020 12:06:10 +0100 Original-Received: from localhost ([::1]:49624 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kdWu9-00011F-Fn for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 13 Nov 2020 06:06:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44084) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kdWu3-00010m-3v for bug-gnu-emacs@gnu.org; Fri, 13 Nov 2020 06:06:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35329) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kdWu2-00050P-Os for bug-gnu-emacs@gnu.org; Fri, 13 Nov 2020 06:06:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kdWu2-0001Q0-Jc for bug-gnu-emacs@gnu.org; Fri, 13 Nov 2020 06:06:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Francesco =?UTF-8?Q?Potort=C3=AC?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 Nov 2020 11:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 44614 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16052655125387 (code B ref -1); Fri, 13 Nov 2020 11:06:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Nov 2020 11:05:12 +0000 Original-Received: from localhost ([127.0.0.1]:46875 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kdWtE-0001Oo-Ch for submit@debbugs.gnu.org; Fri, 13 Nov 2020 06:05:12 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:37256) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kdWtD-0001Oh-3F for submit@debbugs.gnu.org; Fri, 13 Nov 2020 06:05:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43858) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kdWtC-0000Ma-Uh for bug-gnu-emacs@gnu.org; Fri, 13 Nov 2020 06:05:10 -0500 Original-Received: from smtp-clients2.isti.cnr.it ([146.48.28.37]:58882) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kdWtB-0004YQ-48 for bug-gnu-emacs@gnu.org; Fri, 13 Nov 2020 06:05:10 -0500 Original-Received: from tucano.isti.cnr.it (tucano.isti.cnr.it [146.48.81.102]) (Authenticated sender: pot) by smtp-clients2.isti.cnr.it (Postfix) with ESMTPSA id 438BBAE6E4 for ; Fri, 13 Nov 2020 12:05:06 +0100 (CET) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.4 at smtp-out.isti.cnr.it Original-Received: from pot by tucano.isti.cnr.it with local (Exim 4.94) (envelope-from ) id 1kdWt7-00EE0o-Tc for bug-gnu-emacs@gnu.org; Fri, 13 Nov 2020 12:05:05 +0100 X-fingerprint: 4B02 6187 5C03 D6B1 2E31 7666 09DF 2DC9 BE21 6115 Received-SPF: softfail client-ip=146.48.28.37; envelope-from=pot@gnu.org; helo=smtp-clients2.isti.cnr.it X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/13 06:05:06 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -11 X-Spam_score: -1.2 X-Spam_bar: - X-Spam_report: (-1.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:193223 Archived-At: GNU Emacs 26.3 (build 1, x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2020-05-17, modified by Debian bibtex.el offers the opportunity of unifying the case of fields (see the string unify-case). Unfortunately the docs and comments do not tell what is the chosen case. In practice, I see that entries are downcased. An old version of bibtex.el (last copyright 1997) uniquified cases based on the bibtex-unify-case-convert variable, which is now removed. This is unfortunate, and in my opinion a bug. Looking at the old code, I see that the current behaviour is the same as the old 'identity value for the mentioned variable. I am working on a local patch for reverting to the old behaviour. After I finish, I can provide it, if there is any hope of it to be accepted. Here is the old definition: (defcustom bibtex-unify-case-convert 'downcase "*Function called when unifying case on entry and field names. This variable is buffer-local." :group 'bibtex :type '(choice (const :tag "Same case as in `bibtex-field-alist'" identity) (const :tag "Downcase" downcase) (const :tag "Capitalize" capitalize) (const :tag "Upcase" upcase) (function :tag "Conversion function"))) (make-variable-buffer-local 'bibtex-unify-case-convert)