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:29:18 -0500 Message-ID: <877d4jpngx.fsf@gnu.org> References: <87let1v3pq.fsf@localhost> <87sfn8ymw7.fsf@gnus.org> <87sfn7po84.fsf@gnu.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="28837"; 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:31:17 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 1oAxFb-0007GO-T8 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Jul 2022 19:31:16 +0200 Original-Received: from localhost ([::1]:56714 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oAxFa-0002Ea-A9 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Jul 2022 13:31:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49588) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oAxER-0002DV-Fv for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2022 13:30:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47012) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oAxER-00061q-3V for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2022 13:30:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oAxEP-00017R-Vl for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2022 13:30: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: Mon, 11 Jul 2022 17:30: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.16575605684240 (code B ref 56475); Mon, 11 Jul 2022 17:30:01 +0000 Original-Received: (at 56475) by debbugs.gnu.org; 11 Jul 2022 17:29:28 +0000 Original-Received: from localhost ([127.0.0.1]:40909 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oAxDs-00016J-DB for submit@debbugs.gnu.org; Mon, 11 Jul 2022 13:29:28 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:34916) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oAxDq-000165-2M for 56475@debbugs.gnu.org; Mon, 11 Jul 2022 13:29:26 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:57006) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oAxDk-0004eJ-R6; Mon, 11 Jul 2022 13:29:20 -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=nlCGlfV4yGIuEHGRTW4u9P2OPqAD8FF2xynqvuBSTJM=; b=mnjnMhTaiZmTP650tTD9 HjfRh+FJuh7aAGgQ25e8aSi3LVRJW0i6Aqla3aaSbARd/wjgmLAtzrjy+JVTq3auV+7C2x2btHEFE E5KH79O3CQ7JEjvU5ztp2Povt9UfAj7uMbTTxuN4zLmJGgwd6DzgAXr2nHVH0nXwpfzEZjvY70uZt 9V0YISBdJ/kEyRRSCvIchwRUC1LBPApJXaXaiyF5UxA1ZvbwpxNLpXBHQphVo3xnlPRbOqYmTb20j gyoCcrz6UBPr7ZvBNFxuSGOXslc9m4reuI5bDTTOUGKuuuLIzALZ9Ulow3CPlF9jutJNQqUCuqtS4 2OaeIrqW6ISdIQ==; Original-Received: from [2600:1700:5650:f790::42] (port=53004 helo=regnitz) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oAxDi-0004Kf-Vw; Mon, 11 Jul 2022 13:29:19 -0400 In-Reply-To: <87sfn7po84.fsf@gnu.org> (Roland Winkler's message of "Mon, 11 Jul 2022 12:12:59 -0500") 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:236708 Archived-At: On Mon, Jul 11 2022, Roland Winkler wrote: > 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. I should add: The code in bibtex.el that relies on this is bibtex-url, which in turn relies on font-lock to activate clickable links in your bib files. Users may or may not want to expand strings for their rules defined in bibtex-generate-url-list. 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.