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#69266: 30.0.50; bibtex-parse-entry misreads escaped \} Date: Sat, 24 Feb 2024 10:05:43 -0600 Message-ID: <877cit26g8.fsf@gnu.org> References: <87cysshl3j.fsf@localhost> <87a5nr9p8f.fsf@gnu.org> <8734tixdf9.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="6684"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Arash Esbati , 69266@debbugs.gnu.org To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 24 17:07:11 2024 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 1rduYR-0001Ws-9g for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 24 Feb 2024 17:07:11 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rduY2-0003I6-Ig; Sat, 24 Feb 2024 11:06:46 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rduXu-0003H2-L7 for bug-gnu-emacs@gnu.org; Sat, 24 Feb 2024 11:06:41 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rduXu-0000Q3-Cj for bug-gnu-emacs@gnu.org; Sat, 24 Feb 2024 11:06:38 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rduYI-0006OU-9m for bug-gnu-emacs@gnu.org; Sat, 24 Feb 2024 11:07:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Roland Winkler Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 24 Feb 2024 16:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69266 X-GNU-PR-Package: emacs Original-Received: via spool by 69266-submit@debbugs.gnu.org id=B69266.170879079124490 (code B ref 69266); Sat, 24 Feb 2024 16:07:02 +0000 Original-Received: (at 69266) by debbugs.gnu.org; 24 Feb 2024 16:06:31 +0000 Original-Received: from localhost ([127.0.0.1]:39149 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rduXm-0006Ms-If for submit@debbugs.gnu.org; Sat, 24 Feb 2024 11:06:31 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60504) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rduXj-0006MV-R4 for 69266@debbugs.gnu.org; Sat, 24 Feb 2024 11:06:29 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rduXE-0000OZ-Sc; Sat, 24 Feb 2024 11:05:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=2+iWjTdB8NQG4K9IElQv+QsqV9lOojNN/4gv7FntMrM=; b=BUybsN99baukOBnZCg0r DHjF8C+48FRtEMl44To84aAHkUojdYFDB2Vke6NaXrmtDnG4fcwXlnNhpR3d+Y6qNn8uWeRTsQhBk q1lE1fYvArljmSDctCGu1gy4Z56/C9HHDvgWi20qpMY0B0tScCyWW3zH97hZYNVKFsVbpiUiPBa4c 1Z1ibPILgPbPVVw5nWMVmy6gODy59TS4CSJvr1XJiZHS2DaEqIU5LnMdb7dzKeEq0oFPxsQ7V55vk JPX9uR28Tr1sCd4bRhYFKZgyJbur8yqAcTgK8zPl3NxOYWgnO01E3UKK0RceYR/azLt475fqfhU9k CZuogt4rU1i8Xg==; In-Reply-To: <8734tixdf9.fsf@localhost> (Ihor Radchenko's message of "Sat, 24 Feb 2024 12:19:22 +0000") 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:280558 Archived-At: On Sat, Feb 24 2024, Ihor Radchenko wrote: > I am wondering if there exists a full Bibtex format description > somewhere. I can see some hints scattered over documentation in > https://ctan.org/pkg/bibtex, but nothing is complete. The first reference I am aware of is "BibTeXing" by the author of BibTeX, Oren Patashnik. My version dated 1988-02-08 refers to BibTeX version 0.99b. The current version of BibTeX is something like 0.99d, which gives you some idea of how BibTeX has evolved during the past 36 years. I am not aware of anything significantly more substantial beyond this document, which is, I guess, some indicator what kind of questions people worry about when they are using BibTeX. None of the documents I am aware discusses in more detail the question of escaping that you addressed in your bug report for emacs bibtex-mode. I guess part of the reason for this is that the notion of escaping is orthogonal to how (La)TeX works and BibTeX follows (La)TeX in that respect. There is no escaping as it exists in C or bash. In standard (La)TeX, "\}" is defined only in math mode, (La)TeX can handle "$\}$", but outside math mode, "\}" it throws an error. If you don't like this you can change this. (La)TeX is both for typesetting itself, and it is also a powerful programing language for how typesetting is supposed to happen. But there is no formal distinction between these very different aspects. In a (La)TeX document, all rules for how typesetting is supposed to happen can be modified on the fly. This gets off-topic. Emacs bibtex-mode follows the philosophy underlying BibTeX itself and (La)TeX.