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#50202: bibtex-mode: unescaped dollar sign in file field leads to wrong highlighting Date: Thu, 25 Aug 2022 11:36:25 -0500 Message-ID: <87sflkjn5i.fsf@gnu.org> References: <87mtbw4acj.fsf@gnus.org> <87zgftqbam.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="12531"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , 50202@debbugs.gnu.org, Yuu Yin To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 25 18:37:27 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 1oRFrC-00033h-Kr for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 25 Aug 2022 18:37:26 +0200 Original-Received: from localhost ([::1]:45798 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oRFrB-0002bC-I8 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 25 Aug 2022 12:37:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:32854) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oRFqq-0002Q4-9C for bug-gnu-emacs@gnu.org; Thu, 25 Aug 2022 12:37:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33170) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oRFqp-0000gU-5s for bug-gnu-emacs@gnu.org; Thu, 25 Aug 2022 12:37:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oRFqp-0005MF-1n for bug-gnu-emacs@gnu.org; Thu, 25 Aug 2022 12:37:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Roland Winkler Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Aug 2022 16:37:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50202 X-GNU-PR-Package: emacs Original-Received: via spool by 50202-submit@debbugs.gnu.org id=B50202.166144539820535 (code B ref 50202); Thu, 25 Aug 2022 16:37:03 +0000 Original-Received: (at 50202) by debbugs.gnu.org; 25 Aug 2022 16:36:38 +0000 Original-Received: from localhost ([127.0.0.1]:51147 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oRFqP-0005L9-Pd for submit@debbugs.gnu.org; Thu, 25 Aug 2022 12:36:38 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47368) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oRFqL-0005Kt-Nw for 50202@debbugs.gnu.org; Thu, 25 Aug 2022 12:36:36 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:46022) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oRFqF-0000bX-LP; Thu, 25 Aug 2022 12:36:27 -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=XkK2FCRB5GQK4SEXX9HxAjHr1G/+NIZRlpp4JK/BtSU=; b=l+esMQL6uGDayaWa7kEz HS7Vt6ndykTHdrOGyF6IglIcNDiElfFpaX8lXpDzWZIBSuvI3UOHIhWApFJq/JFjdUHO26R4clNpl f0NP0EfSugiIRkJ2pNtNN/76JSIoPclO4vCf+BaLNkzytyfL4xkxkb+MrQoNrZKK2g0YDq4QxrxP3 iQcXXkFsiW2wIeyhNbnJpHIIKx4NqoaOewKy9Wnyb64N5kasE4xe+TSeDw/+YMwKqtnysnNs3Rzw2 4JGciIcocMRo2XTdW/3gduIyF11O58/DmOXxCXPxNjHICAJVLpi0cP3I447EgItu0pZP4RZekYGvh 1EHfwEhVe1+IaQ==; Original-Received: from lukas.physics.niu.edu ([131.156.224.124]:48530 helo=lukas) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oRFqF-0004dp-CP; Thu, 25 Aug 2022 12:36:27 -0400 In-Reply-To: (Stefan Monnier's message of "Thu, 25 Aug 2022 08:52:55 -0400") 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:240732 Archived-At: On Thu, Aug 25 2022, Stefan Monnier wrote: >> A field "file" is, I believe, not part of standard BibTeX. So the above >> is somewhat pushing the limits of BibTeX mode. > > I think the report/problem would be the same if there was a $ in a > URL, tho. Good point. (A url field is not part of standard BibTeX either, but for sure it belongs to biblatex.) > But I wonder how important it is for `bibtex-mode` to try and recognize > the (La)TeX meaning of the $ character. > Maybe we should just give $ the punctuation syntax in the syntax-table. The (La)TeX meaning of the $ character is relevant for titles that my contain formulas. The question is what is in the end more acceptable: formulas in titles that do not receive special treatment by font-lock. Or $ being mis-treated in url and file fields (which goes beyond these fields). Maybe it is best to let the user decide whether $ should be treated as math delimiter (the default) or as punctation. Roland