From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: npostavs@gmail.com Newsgroups: gmane.emacs.bugs Subject: bug#25111: (Inaccurate documentation of inhibit-modification-hooks) Date: Mon, 03 Jun 2019 15:26:38 -0400 Message-ID: <85tvd6bhch.fsf@gmail.com> References: <83eg1iiffm.fsf@gnu.org> <87pol1kon4.fsf@russet.org.uk> <83bmwlggix.fsf@gnu.org> <878trmxgjh.fsf@russet.org.uk> <83lgvlcet1.fsf@gnu.org> <20190519203119.GA5309@ACM> <87y32u908k.fsf@gmail.com> <20190525134407.GA10864@ACM> <87sgt28ut4.fsf@gmail.com> <20190527143109.GA5863@ACM> <20190603191549.GA4009@ACM> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="28299"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.92 (windows-nt) Cc: Phillip Lord , 25111@debbugs.gnu.org, Noam Postavsky To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 03 21:27:18 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hXsc2-0007Fv-8I for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 Jun 2019 21:27:18 +0200 Original-Received: from localhost ([127.0.0.1]:39860 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hXsby-0007qf-9b for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 Jun 2019 15:27:14 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44792) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hXsbo-0007qa-WE for bug-gnu-emacs@gnu.org; Mon, 03 Jun 2019 15:27:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hXsbm-00038S-JD for bug-gnu-emacs@gnu.org; Mon, 03 Jun 2019 15:27:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57864) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hXsbm-00038D-FR for bug-gnu-emacs@gnu.org; Mon, 03 Jun 2019 15:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hXsbm-0007yJ-Ac for bug-gnu-emacs@gnu.org; Mon, 03 Jun 2019 15:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: npostavs@gmail.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Jun 2019 19:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25111 X-GNU-PR-Package: emacs Original-Received: via spool by 25111-submit@debbugs.gnu.org id=B25111.155959000730605 (code B ref 25111); Mon, 03 Jun 2019 19:27:02 +0000 Original-Received: (at 25111) by debbugs.gnu.org; 3 Jun 2019 19:26:47 +0000 Original-Received: from localhost ([127.0.0.1]:43175 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hXsbW-0007xX-Rg for submit@debbugs.gnu.org; Mon, 03 Jun 2019 15:26:47 -0400 Original-Received: from mail-it1-f170.google.com ([209.85.166.170]:34534) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hXsbV-0007xI-4m for 25111@debbugs.gnu.org; Mon, 03 Jun 2019 15:26:45 -0400 Original-Received: by mail-it1-f170.google.com with SMTP id u124so707614itc.1 for <25111@debbugs.gnu.org>; Mon, 03 Jun 2019 12:26:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=qi627i8ovoBvilSqST2uLJAkswhKkTphlEIaXGtRhOQ=; b=bIKg29KbHC8f1JPvGAKiQsMmvGqJeEuwQqTsJDkt5lz7CKiRNHngdd7bnPIdtiphoU NZg45H3yG/pDfjTjZR+t3pgXwGEYqUnC+LEwhPIzFag0uicm/eepFVQC5P8TFo2Z2tX4 ABUAmOl2ercURRkPSFlhauRD6yviEfkOv+g6Pdgq+N1sv9ZpZojAvFd+SmwgFr/bRoGD SYHp6tEg0WRRaKQj3pKMwrLJpgyLDp1O1w6gznVZt0d2u4wX5gBTZYXemAup9xwfbDjL 9PIE1I7UEQ36tce36KvNagi0klQgpbTciZVOs6rOlh+9IahEO4g28abT2IQuDXXdeoou f93g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=qi627i8ovoBvilSqST2uLJAkswhKkTphlEIaXGtRhOQ=; b=scthhS7Hcqxrj7wrH8Cz/q5x6h+zAke84HH2+fhLq0cOwu0nrwg6Bhk3qUcRsDXu0k HQO94ZyNrH27BGMZ7/naNMQZCyTIi0n9abbEmuOn2hPV5GG3BaEqsf8EhfBdT8NysvTX VFy+Su/44YHMQDbrkV3d+ijmUpDwmj3pxEQ3B6KNBimInvTzVZvc0E7ZFXcdIzEz0G1C Z30+cMKXDe9exFS9fv27Mvfv2wlIDvNbTEwmfa4pVuUftAIPkvjMCZnCEcvRLTsBokzs 7v1H7TfQoHiVvOHQj6ruoKc6QcawB4McYb0La0fEWZWogl+ktwIkN2ofyvryWciWILaO cS5Q== X-Gm-Message-State: APjAAAU8vLfARD7qqULpKzo8L8DTeCZkuQ1Y2mtcy6hlIxU/bKRYRkXj vtmyNoMGmYtj3embZEBgNmoE4oKa X-Google-Smtp-Source: APXvYqxiZ4mlssbTGY/QKRQ4AO9vAcYhdoeLT9EzR5u3biZ9QXfMLUsMH2W1lDChR4OwdT1JuKbYHQ== X-Received: by 2002:a02:bb83:: with SMTP id g3mr18497289jan.139.1559589999170; Mon, 03 Jun 2019 12:26:39 -0700 (PDT) Original-Received: from vhost2 (CPE001143542e1f-CMf81d0f809fa0.cpe.net.cable.rogers.com. [99.230.51.196]) by smtp.gmail.com with ESMTPSA id n21sm4391322ioh.30.2019.06.03.12.26.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 03 Jun 2019 12:26:38 -0700 (PDT) In-Reply-To: <20190603191549.GA4009@ACM> (Alan Mackenzie's message of "Mon, 3 Jun 2019 19:15:49 +0000") 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:160085 Archived-At: Alan Mackenzie writes: > Hello, Eli. > > To recap, the problem we were talking about was the modification-hooks > overlay property, whose value is a function which gets called before and > after modification of the text under an overlay. > > When such a function gets called, inhibit-modification-hooks is left at > nil. When the other four similar overlay/text-property "change > functions" get called, inhibit-modification-hooks gets bound to t. Minor correction: it's the modification-hooks text property which have inhibit-modification-hooks left at nil, when the overlay property modification-hooks get called inhibit-modification-hooks is bound to t, just like in the after/before-change-functions case. > This is difficult to document coherently. And confusing, as evidenced by the fact that we both got confused about it in this very thread :) > My proposal of last week was to fix the code, also to bin > inhibit-modification-hooks to t for the modification-hooks overlay > property, even though this would be an incompatibility in Lisp.