From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Omar =?UTF-8?Q?Antol=C3=ADn?= Camarena Newsgroups: gmane.emacs.bugs Subject: bug#45686: 28.0.50; Could minibuf-eldef-setup-minibuffer inhibit modifications hooks, please? Date: Sun, 10 Jan 2021 08:57:23 -0600 Message-ID: <87r1msyh4c.fsf@matem.unam.mx> References: <86wnwqgbck.fsf@matem.unam.mx> <87czycsvhu.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40409"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 45686@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 10 15:58:10 2021 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 1kycAU-000AKx-Fg for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 10 Jan 2021 15:58:10 +0100 Original-Received: from localhost ([::1]:50306 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kycAT-00015M-DL for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 10 Jan 2021 09:58:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43092) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kycAM-00015D-4C for bug-gnu-emacs@gnu.org; Sun, 10 Jan 2021 09:58:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43097) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kycAL-0003Ee-T3 for bug-gnu-emacs@gnu.org; Sun, 10 Jan 2021 09:58:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kycAL-0006HW-So for bug-gnu-emacs@gnu.org; Sun, 10 Jan 2021 09:58:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Omar =?UTF-8?Q?Antol=C3=ADn?= Camarena Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Jan 2021 14:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45686 X-GNU-PR-Package: emacs Original-Received: via spool by 45686-submit@debbugs.gnu.org id=B45686.161029065324086 (code B ref 45686); Sun, 10 Jan 2021 14:58:01 +0000 Original-Received: (at 45686) by debbugs.gnu.org; 10 Jan 2021 14:57:33 +0000 Original-Received: from localhost ([127.0.0.1]:54642 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kyc9s-0006GQ-QO for submit@debbugs.gnu.org; Sun, 10 Jan 2021 09:57:33 -0500 Original-Received: from gauss.matem.unam.mx ([132.248.17.1]:37817) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kyc9q-0006GC-QX for 45686@debbugs.gnu.org; Sun, 10 Jan 2021 09:57:31 -0500 Original-Received: from penguin (unknown [187.207.123.183]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: omar) by gauss.matem.unam.mx (Postfix) with ESMTP id 5AD2454238; Sun, 10 Jan 2021 08:57:27 -0600 (CST) In-Reply-To: <87czycsvhu.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 10 Jan 2021 15:43:25 +0100") 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:197623 Archived-At: > Well, I could see others wanting to trigger something on these > modifications, too, so I'm not sure inhibiting these specific > modifications from running the hooks would be a good general solution. I cannot imagine anyone wanting to trigger something when eldef shortens the prompt! But that could easily be a lack of imagination on my part. :) I think my problem is that I'm wrong about what after-change-functions is for. I thought it was supposed to trigger when the buffer changes due to direct user actions, but the documentation says "after every change", not "after user-initiated changes" or something like that. Maybe I just need to re-adjust my expectations of when that hook runs. > That looks like the correct solution for your use case? Seems so. > Anybody else got an opinion here? I'd be interested to read other opinions, particularly if someone has a useful example of triggering something to happen when eldef shortens the prompt (since a single example would increase my powers of imagination!). -- Omar