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: Tue, 21 Jan 2020 00:56:41 +0200 Organization: LINKOV.NET Message-ID: <8736c921s6.fsf@mail.linkov.net> References: <875zh73dg8.fsf@betli.tmit.bme.hu> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="48509"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.60 (x86_64-pc-linux-gnu) Cc: 39190@debbugs.gnu.org, stefan monnier To: Felician Nemeth Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 21 00:14:15 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 1itgFK-000CZy-SO for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 21 Jan 2020 00:14:14 +0100 Original-Received: from localhost ([::1]:45538 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1itgFJ-0004DC-Uq for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 20 Jan 2020 18:14:13 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60037) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1itgEC-0002hh-Ng for bug-gnu-emacs@gnu.org; Mon, 20 Jan 2020 18:13:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1itgEB-0000YP-Jy for bug-gnu-emacs@gnu.org; Mon, 20 Jan 2020 18:13:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40285) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1itgEB-0000YF-Gg for bug-gnu-emacs@gnu.org; Mon, 20 Jan 2020 18:13:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1itgEB-0006W8-6p; Mon, 20 Jan 2020 18:13:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: monnier@iro.umontreal.ca, bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Jan 2020 23:13:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39190 X-GNU-PR-Package: emacs X-Debbugs-Original-Xcc: stefan monnier Original-Received: via spool by 39190-submit@debbugs.gnu.org id=B39190.157956195224957 (code B ref 39190); Mon, 20 Jan 2020 23:13:03 +0000 Original-Received: (at 39190) by debbugs.gnu.org; 20 Jan 2020 23:12:32 +0000 Original-Received: from localhost ([127.0.0.1]:46246 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1itgDg-0006UT-5d for submit@debbugs.gnu.org; Mon, 20 Jan 2020 18:12:32 -0500 Original-Received: from antelope.elm.relay.mailchannels.net ([23.83.212.4]:37992) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1itgDe-0006UK-R6 for 39190@debbugs.gnu.org; Mon, 20 Jan 2020 18:12:31 -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 577635A121B; Mon, 20 Jan 2020 23:12:29 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a67.g.dreamhost.com (100-96-206-166.trex.outbound.svc.cluster.local [100.96.206.166]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 7A8385A12D2; Mon, 20 Jan 2020 23:12:28 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a67.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); Mon, 20 Jan 2020 23:12:29 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Lettuce-Scare: 3f66653227838088_1579561949013_2818961259 X-MC-Loop-Signature: 1579561949013:4082896156 X-MC-Ingress-Time: 1579561949013 Original-Received: from pdx1-sub0-mail-a67.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a67.g.dreamhost.com (Postfix) with ESMTP id 4478581DBD; Mon, 20 Jan 2020 15:12:23 -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=ANqO1dezZXK6hAvFq5nA+Ii1G+k=; b= MouMN1srN1zmupGO8yTUY8BAR/tG2WsVEsMiqPqipf/yX2TtwKY5E1JCBKrxFKkB WBF8sFchDEJtT6PIGSt38QukF0x3ElaTZYp0fpVwrYXEy0ZI6txU5Zr3iHBQO4ao GTi60R3mlLxtStt0O3xDjQMwpINC9QvO/zTkNsGvD6U= Original-Received: from mail.jurta.org (m91-129-103-201.cust.tele2.ee [91.129.103.201]) (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-a67.g.dreamhost.com (Postfix) with ESMTPSA id 3473081DA9; Mon, 20 Jan 2020 15:12:20 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a67 In-Reply-To: <875zh73dg8.fsf@betli.tmit.bme.hu> (Felician Nemeth's message of "Sun, 19 Jan 2020 12:14:47 +0100") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedugedrudejgddtgecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkphepledurdduvdelrddutdefrddvtddunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrddutdefrddvtddupdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtohepfhgvlhhitghirghnrdhnvghmvghthhesghhmrghilhdrtghomh 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:174968 Archived-At: X-Debbugs-CC: Stefan Monnier Stefan, do you think diff-syntax-fontify-props should let-bind after-change-major-mode-hook to nil to not allow running this hook on an internal buffer. Or it's the responsibility of the eglot package to check for the leading space in the buffer name when its after-change-major-mode-hook is called? > If I read correctly, diff-syntax-fontify-props sets buffer-file-name of > a temporary buffer to an existing one. This is not necessarily a bug, > but it definitely looks strange that we have two buffers with different > contents and the same buffer-file-name. > > Eglot (in ELPA) runs into problems because of this > (https://github.com/joaotavora/eglot/pull/233). > > Is there a recommended way to check in an after-change-major-mode-hook > whether the current buffer is or isn't a temporary diff buffer? For > example, to check if first character of buffer-name is space.