From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Roland Winkler Newsgroups: gmane.emacs.bugs Subject: bug#56475: 28.1.50; bibtex-parse-entry disregards @string substitutions Date: Tue, 12 Jul 2022 10:31:19 -0500 Message-ID: <87pmial54o.fsf@gnu.org> References: <87let1v3pq.fsf@localhost> <87sfn8ymw7.fsf@gnus.org> <87sfn7po84.fsf@gnu.org> <877d4jpngx.fsf@gnu.org> <87fsj76oxi.fsf@localhost> <871qurnf0d.fsf@gnu.org> <874jzm7to8.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36617"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , 56475@debbugs.gnu.org To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 12 17:35:42 2022 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 1oBHvK-0009NM-1c for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 12 Jul 2022 17:35:42 +0200 Original-Received: from localhost ([::1]:39778 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oBHvI-0000Ij-Mu for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 12 Jul 2022 11:35:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44454) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBHrn-0006d9-Sk for bug-gnu-emacs@gnu.org; Tue, 12 Jul 2022 11:32:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49642) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oBHrm-0005qK-Ok for bug-gnu-emacs@gnu.org; Tue, 12 Jul 2022 11:32:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oBHrm-0004Jy-D5 for bug-gnu-emacs@gnu.org; Tue, 12 Jul 2022 11:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Roland Winkler Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Jul 2022 15:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56475 X-GNU-PR-Package: emacs Original-Received: via spool by 56475-submit@debbugs.gnu.org id=B56475.165763988716560 (code B ref 56475); Tue, 12 Jul 2022 15:32:02 +0000 Original-Received: (at 56475) by debbugs.gnu.org; 12 Jul 2022 15:31:27 +0000 Original-Received: from localhost ([127.0.0.1]:43539 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBHrD-0004J1-6K for submit@debbugs.gnu.org; Tue, 12 Jul 2022 11:31:27 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:57952) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBHrB-0004Ip-7I for 56475@debbugs.gnu.org; Tue, 12 Jul 2022 11:31:26 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:37032) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBHr5-0005jW-P8; Tue, 12 Jul 2022 11:31:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=h478UXVS+dPrZWhMcrK8OqF5RW+OmEUJS8aWERnnS+0=; b=NO4IybD4LxnritS9y6HE j13CFyuUlZpfbGDWHOPxqiFOsa5m//BWrnaiJ+GAgn+1l7dXgAG1783ritQ1S+u+QijXgpQWiFIlz WYb0gK/douWXUcE52sID4Vc5iLG2or/P4+dxOwQWWz3GVIN8YlWrQ0FgbCsOxrXiwrnS7fCc89+Bf +5Qn9wmPTiVlR/1YwmvWiqKcpK7ecXmDUCeYqzN7lTqM+8MfpBpr1ls47WxTFT7n6rUd1EPdaDFW5 Qs9/TFBKCPzOvPlFiq4RqB22mHiCcjzTpsA64/oIuR+9+z5MRKsK06gCWt4/DJebQZYQcihr2P0Cs +zXToR/r5mgQFw==; Original-Received: from [2600:1700:5650:f790::42] (port=57784 helo=regnitz) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBHr5-00057D-G5; Tue, 12 Jul 2022 11:31:19 -0400 In-Reply-To: <874jzm7to8.fsf@localhost> (Ihor Radchenko's message of "Tue, 12 Jul 2022 14:04:55 +0800") 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:236817 Archived-At: On Tue, Jul 12 2022, Ihor Radchenko wrote: > I am wondering why bibtex-string-files is not documented inside the > docstring of bibtex-expand-strings. Same for bibtex-expand-strings not > being documented in bibtex-parse-entry. I believe the situation is the other way round: bibtex-files and bibtex-string-files are basic user variables for bibtex-mode and have been around for 30+ years (much longer than I support bibtex.el). bibtex-expand-strings is a small add-on in this context. > I tried the following simple test: > > M-: (let ((bibtex-string-files `(,(buffer-file-name))) > (bibtex-expand-strings t)) (bibtex-parse-entry)) > > The journal field is still not handled: ("journal" . "jgr") Try M-: (let ((bibtex-string-files `(,(buffer-file-name))) (bibtex-expand-strings t)) (bibtex-parse-entry t)) > Also, note that bibtex-string-files cannot help with situations when > the BibTeX buffer does not have an associated file. When does this happen? To the best of my knowledge, this has never been an issue for users of bibtex.el.