From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#40317: 27.0.90; Reverting a buffer that visits C file signals an error Date: Sun, 20 Sep 2020 17:25:17 +0000 Message-ID: <20200920172517.GA10641@ACM> References: <83k1335m2e.fsf@gnu.org> <87pn6lgb8o.fsf@cassou.me> <83tuvx7q74.fsf@gnu.org> <87mu1pg4g1.fsf@cassou.me> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4294"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 40317@debbugs.gnu.org To: Damien Cassou Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 20 19:26:23 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 1kK36V-00010X-45 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 20 Sep 2020 19:26:23 +0200 Original-Received: from localhost ([::1]:33828 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kK36T-0003Nf-Ia for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 20 Sep 2020 13:26:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45416) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kK36B-0003Ml-7p for bug-gnu-emacs@gnu.org; Sun, 20 Sep 2020 13:26:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40998) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kK36A-0007B1-3N for bug-gnu-emacs@gnu.org; Sun, 20 Sep 2020 13:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kK36A-0006rO-0P for bug-gnu-emacs@gnu.org; Sun, 20 Sep 2020 13:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 20 Sep 2020 17:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40317 X-GNU-PR-Package: emacs Original-Received: via spool by 40317-submit@debbugs.gnu.org id=B40317.160062273026328 (code B ref 40317); Sun, 20 Sep 2020 17:26:01 +0000 Original-Received: (at 40317) by debbugs.gnu.org; 20 Sep 2020 17:25:30 +0000 Original-Received: from localhost ([127.0.0.1]:52544 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kK35a-0006qW-UB for submit@debbugs.gnu.org; Sun, 20 Sep 2020 13:25:30 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:29792 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1kK35Y-0006qJ-Pa for 40317@debbugs.gnu.org; Sun, 20 Sep 2020 13:25:25 -0400 Original-Received: (qmail 98773 invoked by uid 3782); 20 Sep 2020 17:25:18 -0000 Original-Received: from acm.muc.de (p4fe15126.dip0.t-ipconnect.de [79.225.81.38]) by localhost.muc.de (tmda-ofmipd) with ESMTP; Sun, 20 Sep 2020 19:25:18 +0200 Original-Received: (qmail 29411 invoked by uid 1000); 20 Sep 2020 17:25:17 -0000 Content-Disposition: inline In-Reply-To: <87mu1pg4g1.fsf@cassou.me> X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de 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:188523 Archived-At: Hello, Damien. On Wed, Sep 16, 2020 at 16:51:42 +0200, Damien Cassou wrote: > Eli Zaretskii writes: > > Does that happen with _any_ C# file? If not, can you post an example > > of a file where this happens, and a recipe to reproduce the problem? > I don't know how to reproduce, it is infrequent and seems random. What do you mean by "infrequent"? Once a month, once a week, once a day, several times a day? Does it happen frequently enough that you would notice if it stopped happening? If so .... csharp-mode has an inappropriate use of syntax-propertize-function, which might be damaging things. Could you please disable this with code like the following in your .emacs (Note: this involves a minor loss of functionality): (defun dc-spf-disable () (setq syntax-propertize-function nil)) (add-hook 'csharp-mode-hook 'dc-spf-disable) And then see if the problem with csharp-mode still occurs, and report it here, please. Thanks! > -- > Damien Cassou > "Success is the ability to go from one failure to another without > losing enthusiasm." --Winston Churchill -- Alan Mackenzie (Nuremberg, Germany).