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 12:12:59 -0500 Message-ID: <87sfn7po84.fsf@gnu.org> References: <87let1v3pq.fsf@localhost> <87sfn8ymw7.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23466"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56475@debbugs.gnu.org, Ihor Radchenko To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 11 19:14:29 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 1oAwzM-0005yQ-Qr for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Jul 2022 19:14:29 +0200 Original-Received: from localhost ([::1]:44376 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oAwzL-0001ee-9Y for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Jul 2022 13:14:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44696) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oAwyw-0001eN-Sr for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2022 13:14:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46996) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oAwyw-0000rK-KR for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2022 13:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oAwyw-0000gu-GM for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2022 13:14: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: Mon, 11 Jul 2022 17:14: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.16575595882575 (code B ref 56475); Mon, 11 Jul 2022 17:14:02 +0000 Original-Received: (at 56475) by debbugs.gnu.org; 11 Jul 2022 17:13:08 +0000 Original-Received: from localhost ([127.0.0.1]:40893 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oAwy4-0000fT-7i for submit@debbugs.gnu.org; Mon, 11 Jul 2022 13:13:08 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58182) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oAwy2-0000ey-1Z for 56475@debbugs.gnu.org; Mon, 11 Jul 2022 13:13:07 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:56664) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oAwxw-0000l1-Ow; Mon, 11 Jul 2022 13:13:00 -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=cIiN4jmTaCmxPqCDhA0Meih/zy2X5o2W2yLONuqwCQY=; b=W1osajNr4wBiKu+bKZFl lcObNHxMNfoYxXOeEDhe9VM50V5ImDcb+4X0QcUi5T9XviSMwkUyYb0xmH/2luB1Lg5t1z8wy5HvR xV10t+AXpdAkSrhU8IxIwsUBG3XZOXpl6bkSlqUEwA/ugYNCL6jOdGksIAunnNkeSL7cDoX6tBwzS sBWKJgzrwoT8ooYuiGukztSQxfVEq6IzMdgMeUOv86SPpYdFwkQz+A76NmiQJmve24ohyAKReYbZs PBAeDJNppEbnG9dKinz4ydHNTrmbokgB5oTbEqS9NcpPnpm8zj8FrKG4OF7xKWIa3b17UBsGhSMex fcm+gf3FcsULHA==; Original-Received: from [2600:1700:5650:f790::42] (port=50118 helo=regnitz) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oAwxw-0005yk-FN; Mon, 11 Jul 2022 13:13:00 -0400 In-Reply-To: <87sfn8ymw7.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 11 Jul 2022 12:16:56 +0200") 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:236705 Archived-At: On Mon, Jul 11 2022, Lars Ingebrigtsen wrote: > Ihor Radchenko writes: > >> Org currently relies on built-in bibtex.el to parse bibliography files. >> However, the built-in parser does not appear to be complete. > > Perhaps Roland has some comments; added to the CCs. The arg CONTENT of bibtex-parse-entry is passed on to bibtex-text-in-field-bounds that gives you a more complete description of what it does. So I believe binding bibtex-expand-strings to t while calling bibtex-parse-entry with arg CONTENT non-nil should do the job. The parser in bibtex.el goes through some effort to deal with BibTeX constructs such as title = "Foo " # BAR # {Baz}, correctly.