From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#39190: 28.0.50; two buffers with same buffer-file-name (diff-syntax-fontify-props) Date: Tue, 18 Feb 2020 08:33:48 -0500 Message-ID: References: <875zh73dg8.fsf@betli.tmit.bme.hu> <8736c921s6.fsf@mail.linkov.net> <875zh13e5d.fsf@mail.linkov.net> <87h80iqafm.fsf@betli.tmit.bme.hu> <87ftg0fnyb.fsf@mail.linkov.net> <87d0b3qz3m.fsf@betli.tmit.bme.hu> <871rrhkgkm.fsf@mail.linkov.net> <87v9os914e.fsf@betli.tmit.bme.hu> <87a764y35u.fsf@mail.linkov.net> <87r1zd8gvx.fsf@betli.tmit.bme.hu> <87imknqogu.fsf@mail.linkov.net> <87lfpi548j.fsf@mail.linkov.net> <87a75wek14.fsf@mail.linkov.net> <87sgjj7njt.fsf@betli.tmit.bme.hu> <87o8twep2f.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="40055"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 39190@debbugs.gnu.org, Felician Nemeth To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 18 14:34:33 2020 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 1j431F-000AIv-1Z for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 18 Feb 2020 14:34:33 +0100 Original-Received: from localhost ([::1]:35094 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j431E-00024z-1e for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 18 Feb 2020 08:34:32 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47426) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j430l-0001gX-4k for bug-gnu-emacs@gnu.org; Tue, 18 Feb 2020 08:34:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j430k-0005LA-7b for bug-gnu-emacs@gnu.org; Tue, 18 Feb 2020 08:34:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33688) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j430k-0005L6-1n for bug-gnu-emacs@gnu.org; Tue, 18 Feb 2020 08:34:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j430j-0007tz-TL for bug-gnu-emacs@gnu.org; Tue, 18 Feb 2020 08:34:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 18 Feb 2020 13:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39190 X-GNU-PR-Package: emacs Original-Received: via spool by 39190-submit@debbugs.gnu.org id=B39190.158203283830366 (code B ref 39190); Tue, 18 Feb 2020 13:34:01 +0000 Original-Received: (at 39190) by debbugs.gnu.org; 18 Feb 2020 13:33:58 +0000 Original-Received: from localhost ([127.0.0.1]:39661 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j430g-0007ti-CA for submit@debbugs.gnu.org; Tue, 18 Feb 2020 08:33:58 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:43546) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j430e-0007tV-Ll for 39190@debbugs.gnu.org; Tue, 18 Feb 2020 08:33:57 -0500 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 0501F100473; Tue, 18 Feb 2020 08:33:51 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 59A1A1002CF; Tue, 18 Feb 2020 08:33:49 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1582032829; bh=vpRs1CSxcJpm0xtOYdrwBJXCNu3kmk72KJm2FzKBgzk=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=CfkCfT+AUR5uXHtHpv0aq2eFlMwawevh09uk3irxAOUwj0RX63s7ne1ot1pMzhgpB TnjfI4kn1mcgBHj6A3R0sJ+W2R18djEP6QPjODK0Px1Ezcf3k7IQCL7c7nNjpxLV8B FYGfMOB4Yyx2eK0F1oC6moUuB6GhhfV0niJ1tIEr6XBTmkTNwig6cr5qEG40Mgde47 XNT1aFdWKY/trCkP3akKqpMaXyp2u98XVTLx4ArIVHGcMgdkBw+eDQZ1Q/Z4uQQzqp +7FG/Nv6/ZvcHPUBCDC/Nr/2tjHko9oavqijUCPLLSL470V6u24WCH/hRUMxdxwmKe KI1F32q1HvaZA== Original-Received: from pastel (unknown [157.52.14.222]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 21A3112020D; Tue, 18 Feb 2020 08:33:49 -0500 (EST) In-Reply-To: <87o8twep2f.fsf@mail.linkov.net> (Juri Linkov's message of "Tue, 18 Feb 2020 02:06:48 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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:176181 Archived-At: > (defun conf-mode () > ... > ;; `conf-mode' plays two roles: it's the parent of several sub-modes > ;; but it's also the function that chooses between those submodes. > ;; To tell the difference between those two cases where the function > ;; might be called, we check `delay-mode-hooks'. > ;; (adopted from tex-mode.el) > (if (not delay-mode-hooks) > ;; try to guess sub-mode of conf-mode based on buffer content The Right Thing=E2=84=A2 to do is of course to split `conf-mode` into two functions, one for the generic entry point and the other for the shared parent mode. How easy/realistic this is, I don't know. Stefan