From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#31042: Emacs 27. Inserting a character doesn't always "deactivate" the mark. Date: Tue, 3 Apr 2018 14:39:12 +0000 Message-ID: <20180403143911.GB5363@ACM> References: <20180403134246.GA5363@ACM> <831sfw5qnz.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1522766309 25981 195.159.176.226 (3 Apr 2018 14:38:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 3 Apr 2018 14:38:29 +0000 (UTC) User-Agent: Mutt/1.7.2 (2016-11-26) Cc: 31042@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 03 16:38:25 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f3N4m-0006c1-1D for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Apr 2018 16:38:20 +0200 Original-Received: from localhost ([::1]:39524 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f3N6p-0007di-Iv for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Apr 2018 10:40:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46131) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f3N6W-0007Z3-Vt for bug-gnu-emacs@gnu.org; Tue, 03 Apr 2018 10:40:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f3N6Q-0000Bf-Qj for bug-gnu-emacs@gnu.org; Tue, 03 Apr 2018 10:40:09 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57529) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f3N6Q-0000BT-Mh for bug-gnu-emacs@gnu.org; Tue, 03 Apr 2018 10:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1f3N6Q-00064i-DR for bug-gnu-emacs@gnu.org; Tue, 03 Apr 2018 10:40: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: Tue, 03 Apr 2018 14:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31042 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 31042-submit@debbugs.gnu.org id=B31042.152276638923329 (code B ref 31042); Tue, 03 Apr 2018 14:40:02 +0000 Original-Received: (at 31042) by debbugs.gnu.org; 3 Apr 2018 14:39:49 +0000 Original-Received: from localhost ([127.0.0.1]:37193 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f3N6C-00064C-So for submit@debbugs.gnu.org; Tue, 03 Apr 2018 10:39:49 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:37406 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1f3N68-000641-UP for 31042@debbugs.gnu.org; Tue, 03 Apr 2018 10:39:45 -0400 Original-Received: (qmail 63805 invoked by uid 3782); 3 Apr 2018 14:39:43 -0000 Original-Received: from acm.muc.de (p5B147293.dip0.t-ipconnect.de [91.20.114.147]) by colin.muc.de (tmda-ofmipd) with ESMTP; Tue, 03 Apr 2018 16:39:42 +0200 Original-Received: (qmail 8263 invoked by uid 1000); 3 Apr 2018 14:39:12 -0000 Content-Disposition: inline In-Reply-To: <831sfw5qnz.fsf@gnu.org> 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-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:144853 Archived-At: Hello, Eli. On Tue, Apr 03, 2018 at 17:08:00 +0300, Eli Zaretskii wrote: > > Date: Tue, 3 Apr 2018 13:42:46 +0000 > > From: Alan Mackenzie > > On a related note, it appears that in the same function, the file > > locking is done for the first change in a buffer. This locking would > > appear not to be done if that first change to the buffer happens when > > inhibit-modification-hooks is non-nil. I haven't tested this, but it > > would appear to be part of the same bug. > This is a feature, see the doc string of inhibit-modification-hooks. Yes, the whole thing is a feature. :-( I now see that inhibit-modification-hooks is a special purpose facility, only suited for applying text properties to the buffer. Perhaps it has other uses, too. It is most definitely not suitable for when "real" buffer modifications are done. For that, presumably, one needs to bind before/after-change-functions to nil, as used to be done before i-m-h was invented. I will need to modify the new combine-change-calls, which is no great hardship. How about me modifying the documentation and the doc string to point out the disadvantages of inhibit-modification-hooks when used for actual textual buffer changes? I will close this bug. -- Alan Mackenzie (Nuremberg, Germany).