From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#39190: 28.0.50; two buffers with same buffer-file-name (diff-syntax-fontify-props) Date: Wed, 05 Feb 2020 01:20:44 +0200 Organization: LINKOV.NET Message-ID: <87lfpi548j.fsf@mail.linkov.net> 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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="96969"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: 39190@debbugs.gnu.org, Felician Nemeth To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 05 00:30:13 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 1iz7e0-000P5h-9f for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 05 Feb 2020 00:30:12 +0100 Original-Received: from localhost ([::1]:39568 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iz7dz-0004Kw-Bk for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 04 Feb 2020 18:30:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48652) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iz7dr-0004KZ-Uv for bug-gnu-emacs@gnu.org; Tue, 04 Feb 2020 18:30:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iz7dr-00073d-0b for bug-gnu-emacs@gnu.org; Tue, 04 Feb 2020 18:30:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38954) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iz7dq-00072C-Ku for bug-gnu-emacs@gnu.org; Tue, 04 Feb 2020 18:30:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iz7dq-0007N9-Hh for bug-gnu-emacs@gnu.org; Tue, 04 Feb 2020 18:30:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 04 Feb 2020 23:30:02 +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.158085898128285 (code B ref 39190); Tue, 04 Feb 2020 23:30:02 +0000 Original-Received: (at 39190) by debbugs.gnu.org; 4 Feb 2020 23:29:41 +0000 Original-Received: from localhost ([127.0.0.1]:44927 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iz7dV-0007M9-4J for submit@debbugs.gnu.org; Tue, 04 Feb 2020 18:29:41 -0500 Original-Received: from butterfly.birch.relay.mailchannels.net ([23.83.209.27]:4332) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iz7dS-0007Lx-GS for 39190@debbugs.gnu.org; Tue, 04 Feb 2020 18:29:39 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 339C0501360; Tue, 4 Feb 2020 23:29:37 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a54.g.dreamhost.com (100-96-217-4.trex.outbound.svc.cluster.local [100.96.217.4]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id BABD850149D; Tue, 4 Feb 2020 23:29:36 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a54.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.5); Tue, 04 Feb 2020 23:29:37 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Ski-Rock: 278860c5411643e4_1580858976994_1242607141 X-MC-Loop-Signature: 1580858976994:688000382 X-MC-Ingress-Time: 1580858976994 Original-Received: from pdx1-sub0-mail-a54.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a54.g.dreamhost.com (Postfix) with ESMTP id A0D407F400; Tue, 4 Feb 2020 15:29:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=mwydk3N8+zHeWHWC+KA+kNWSFsw=; b= DqhgQSgoLym38ZQ5ksdB2aUJ6gw4XXrVLwmXWbyOr17q1nw4wCK6YgqAamiQfTh0 7dDURwhciULzZDxQEcZ9IQyRSaBV+LC292Skx19c55d1flvxkDYnvouiQ2FHENTr SqSI70QHm7bIWdTLjg966YnHKBO/o2CLWE0feEVOBIo= Original-Received: from mail.jurta.org (m91-129-105-126.cust.tele2.ee [91.129.105.126]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a54.g.dreamhost.com (Postfix) with ESMTPSA id 444927F0A0; Tue, 4 Feb 2020 15:29:29 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a54 In-Reply-To: (Stefan Monnier's message of "Tue, 04 Feb 2020 08:36:15 -0500") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedugedrhedtgdduudcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddthedruddvieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledruddthedruddviedprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopehmohhnnhhivghrsehirhhordhumhhonhhtrhgvrghlrdgtrg 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:175678 Archived-At: >> vc-find-revision-no-save should not use delay-mode-hooks when called as >> a command. > > That's the problem with the current approach: we end up making decisions > which can't be justified. Whether mode hooks should be run or not > depends on the hook and various other things. What we *do* know, OTOH > is that `vc-find-revision-no-save`s buffer is not associated with > a file, so setting `buffer-file-name` can result in bugs. delay-mode-hooks was intended as the safest workaround to install in emacs-27. Using alternatives of buffer-file-name are not straightforward and need more testing in emacs-28.