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: Mon, 11 Jul 2022 23:14:58 -0500 Message-ID: <871qurnf0d.fsf@gnu.org> References: <87let1v3pq.fsf@localhost> <87sfn8ymw7.fsf@gnus.org> <87sfn7po84.fsf@gnu.org> <877d4jpngx.fsf@gnu.org> <87fsj76oxi.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="18226"; 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 06:16:34 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 1oB7K5-0004bk-UO for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 12 Jul 2022 06:16:34 +0200 Original-Received: from localhost ([::1]:52852 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oB7K4-0000LF-Hk for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 12 Jul 2022 00:16:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60036) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oB7Ja-0000KY-9y for bug-gnu-emacs@gnu.org; Tue, 12 Jul 2022 00:16:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47537) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oB7JZ-0003rG-W6 for bug-gnu-emacs@gnu.org; Tue, 12 Jul 2022 00:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oB7JZ-0006sA-Ra for bug-gnu-emacs@gnu.org; Tue, 12 Jul 2022 00:16:01 -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 04:16:01 +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.165759930622547 (code B ref 56475); Tue, 12 Jul 2022 04:16:01 +0000 Original-Received: (at 56475) by debbugs.gnu.org; 12 Jul 2022 04:15:06 +0000 Original-Received: from localhost ([127.0.0.1]:41434 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oB7Ig-0005rK-89 for submit@debbugs.gnu.org; Tue, 12 Jul 2022 00:15:06 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:45300) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oB7Ie-0005m5-Nd for 56475@debbugs.gnu.org; Tue, 12 Jul 2022 00:15:05 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:35656) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oB7IZ-0003TN-CP; Tue, 12 Jul 2022 00:14:59 -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=gi/ksmJzZzZrqc9N3TFsY4Kkn0ThkPHcekQ1+cHsskg=; b=c4LApUuf/vfFOOLdGtRL jUTbqoGqc1P8KpEWqRyUpCxq8/53Aomx9TiZ+2YtASfiZWB4/yipLCjFw6Ckp0V9lWSdBR6WKgmac Y+llOEEYTKgvPM7VJaDO2vil0dALqzGjO436NlSb3SLFjpAD0cqAm+PL4MQr1GHG5NbJYQyJTwdzO X5WFPiq+kLq6PMcZU657FwA8/l1QHzNp9j8FVpANm7sdpn285v7Xwj5WeSA9rG/x7rqKOqVRbksTa andMDrrAsE9GvGUt5YrSmH8Jxh/02bBY7Obi1azMPVe0HmYvItpPNSOD+RUmTV1yR4gF4IiUisXoq IC2Uj+XovvazKw==; Original-Received: from [2600:1700:5650:f790::42] (port=50758 helo=regnitz) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oB7IZ-0002s8-3i; Tue, 12 Jul 2022 00:14:59 -0400 In-Reply-To: <87fsj76oxi.fsf@localhost> (Ihor Radchenko's message of "Tue, 12 Jul 2022 10:32:41 +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:236739 Archived-At: On Tue, Jul 12 2022, Ihor Radchenko wrote: > Roland Winkler writes: > >> If I understand your issue correctly you probably want to let-bind the >> user variable bibtex-expand-strings while calling bibtex-parse-entry so >> that your code works irrespective of what users have chosen for >> bibtex-expand-strings. > > Thanks for the pointer! > I tried my reproducer by running > M-: (let ((bibtex-expand-strings t)) (bibtex-parse-entry)) > instead of > M-: (bibtex-parse-entry) > > Unfortunately, the journal field is still not substituted. The variable bibtex-string-files tells bibtex.el where it can find the string definitions (which are then stored in the variable bibtex-strings). This complements bibtex-files that tells bibtex.el where it can find the BibTeX entries. A command like bibtex-search-entry searches the entries in the files in bibtex-files.