From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#57712: 29.0.50; bibtex.el: Should `bibtex-parse-entry' handle curly braces inside fields? Date: Mon, 12 Sep 2022 13:06:37 +0800 Message-ID: <87edwhw59e.fsf@localhost> References: <87k06b26iu.fsf@localhost> <87r10jrgf4.fsf@gnus.org> <87zgf75i32.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="37476"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 57712@debbugs.gnu.org, Lars Ingebrigtsen To: Roland Winkler Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 12 07:06:12 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 1oXbe8-0009Ya-Jy for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 12 Sep 2022 07:06:12 +0200 Original-Received: from localhost ([::1]:41210 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oXbe7-0000Bc-4i for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 12 Sep 2022 01:06:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38662) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXbdz-0000BR-30 for bug-gnu-emacs@gnu.org; Mon, 12 Sep 2022 01:06:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55147) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oXbdy-0004xS-Pe for bug-gnu-emacs@gnu.org; Mon, 12 Sep 2022 01:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oXbdy-000368-Jv for bug-gnu-emacs@gnu.org; Mon, 12 Sep 2022 01:06:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 12 Sep 2022 05:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57712 X-GNU-PR-Package: emacs Original-Received: via spool by 57712-submit@debbugs.gnu.org id=B57712.166295915511896 (code B ref 57712); Mon, 12 Sep 2022 05:06:02 +0000 Original-Received: (at 57712) by debbugs.gnu.org; 12 Sep 2022 05:05:55 +0000 Original-Received: from localhost ([127.0.0.1]:43846 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oXbdq-00035n-Kq for submit@debbugs.gnu.org; Mon, 12 Sep 2022 01:05:54 -0400 Original-Received: from mail-pj1-f49.google.com ([209.85.216.49]:42777) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oXbdn-00035X-9a for 57712@debbugs.gnu.org; Mon, 12 Sep 2022 01:05:53 -0400 Original-Received: by mail-pj1-f49.google.com with SMTP id q62-20020a17090a17c400b00202a3497516so4713536pja.1 for <57712@debbugs.gnu.org>; Sun, 11 Sep 2022 22:05:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date; bh=rUvNcNqy48jjf5LUjIx3NjE/E29uZyl9185Ht56bvfc=; b=B+eMBSs7uxRWRtaLNgW7P5r9P7HTuiTWzM4CFV/NUxx1WG1/ibx9joXKG4lrxdVCey ZwcTiAaNw4Y0J68HPXK9BYiZSl3aBePUMzQrM5MJc6nJ1mNBLDKy1BRP8DkORo37pUKC AEhG77ibahYPAIOPYSgaC8qJfH2I1odFCxrM/wodBKX4reJ5oNNGGtmfLG3e5dSLGv5H ELKS4HL7Gr9UnbqV+S12FidtZ9R+gW35fR4oDnaGrfc97zDeHFPsch2y8WfZsRN0bfpU QunSVJqFeGSs858ck9osUTcdvKuv4gEMTud1kOvY5LVQlC5v38k1IpBCegRyyX9Xqg9y b8Ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date; bh=rUvNcNqy48jjf5LUjIx3NjE/E29uZyl9185Ht56bvfc=; b=llzA6UHF8j+PU+97+RsIcZ4Qq4umK+qLzOXdDo5Co/m4F5oszBrNCRMQO5zW7d9U7c h1aATyyH0ihIT7XY+HqMjCA5nBKkdTWTFCxW9D8X+dOMIP03K8ValnHqtPH4jXal0PUX X4IIHpS9oFl2llGkgbOsNT3Xn+QK6yVqt5/57AnaxXC1qUGWHFUSUMmIbZESA2P2QZ0n qZRUVG5Uaxb564/FZLNoZSvCtlSbIDQPnjBsE7xHfuOBPEswJDDFmDkMbK1IXzitYw3e nC3HljlK7K2zJx3+Br5RT5xsCSMuSjMeBioEb1lPwv2TE9y+vWouMT1BCYFPX3oZuRVC 0leQ== X-Gm-Message-State: ACgBeo30WFUKdhAuwzlfO/Dv37I2Y+6A95JnPFaWBe5pNWGWgZNTOG/a qay4Sgl9wmqqo8VTXSog42c= X-Google-Smtp-Source: AA6agR7VssJ9vVeWIR1myilwpI9zHi4QcmJBgJpnDGgG7BesWUrwRkWzwq5PE616kg6GpGOeJ/eXTw== X-Received: by 2002:a17:90b:1b4c:b0:202:c05f:6e7b with SMTP id nv12-20020a17090b1b4c00b00202c05f6e7bmr6281396pjb.200.1662959145277; Sun, 11 Sep 2022 22:05:45 -0700 (PDT) Original-Received: from localhost ([2409:8a70:2bc:c850:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id o13-20020a17090a4b4d00b001fd76f7a0d1sm4145517pjl.54.2022.09.11.22.05.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Sep 2022 22:05:44 -0700 (PDT) In-Reply-To: <87zgf75i32.fsf@gnu.org> 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:242206 Archived-At: Roland Winkler writes: > M-: (bibtex-parse-entries) Note that bibtex.el does not have such function. > Certainly, stripping off the braces would turn valid LaTeX code into > gibberish. Note the BibTeX braces, escapes, special symbols, a subset of LaTeX commands, and LaTeX math inside BibTeX entries are a part of BibTeX syntax (http://www.bibtex.org/SpecialSymbols/). I expect bibtex.el to understand that syntax and parse it, so that the user of bibtex.el does not need to implement extra parsing on top. I understand that the BibTeX syntax is fully compatible with LaTeX and for the purposes of LaTeX processing, there is no need to parse the BibTeX entry contents. However, BibTeX may be used outside LaTeX. Then, it is reasonable to expect the parsing to be done inside bibtex.el. -- Ihor Radchenko, Org mode contributor, Learn more about Org mode at https://orgmode.org/. Support Org development at https://liberapay.com/org-mode, or support my work at https://liberapay.com/yantar92