From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.devel Subject: Re: Reliable after-change-functions (via: Using incremental parsing in Emacs) Date: Mon, 30 Mar 2020 15:02:58 -0400 Message-ID: <09E90C25-6119-44D4-85F2-A9CC4196FFE4@gmail.com> References: <83o8sf3r7i.fsf@gnu.org> <2E218879-0F24-4A20-B210-263C8D0BEEA4@gmail.com> <87o8sdn0ot.fsf@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="56550"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , Andrea Corallo , =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= , emacs-devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Mar 30 21:04:26 2020 Return-path: Envelope-to: ged-emacs-devel@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 1jIzhy-000Eb6-KM for ged-emacs-devel@m.gmane-mx.org; Mon, 30 Mar 2020 21:04:26 +0200 Original-Received: from localhost ([::1]:55168 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIzhx-0000AO-Lg for ged-emacs-devel@m.gmane-mx.org; Mon, 30 Mar 2020 15:04:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51542) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIzgi-0007Du-BR for emacs-devel@gnu.org; Mon, 30 Mar 2020 15:03:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jIzgg-0007od-HU for emacs-devel@gnu.org; Mon, 30 Mar 2020 15:03:08 -0400 Original-Received: from mail-qt1-x829.google.com ([2607:f8b0:4864:20::829]:41605) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jIzga-0007lS-VV; Mon, 30 Mar 2020 15:03:01 -0400 Original-Received: by mail-qt1-x829.google.com with SMTP id i3so16087090qtv.8; Mon, 30 Mar 2020 12:03:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=rzSNoEQ0xJ01uLmPLfG5Fhi4uySA4LQGiyauTUrgJeM=; b=nIOs+Sqt/DaPOFf2bs07K1GZBqYEP5ZaPLjfVzfYaKPe/SG5dOTK9kkl1KHAWDX9LX O1Vs1/Fzq/HYnq5GPigq2NCf0ohfr4zZt6nBb9UR9DZu4Mvhxs95paRH5tPsubXPTW1l GA5Q6WM/hvWfjUbSCXmfeFB3l2l9N9ahM4lNpqgMExsoEarWG5eMN0hMhqZE6NNTY9mm Q1wtNB0huRB/skkUHzc2bM+hA+BA7pBRCunj6TytVdtGb3NzlGa/YKX+wMYm+Hi9aAlk tmS5dJdhmeHdEFYq/zpd1BSa8hyJWq1DX00KHGpAhnRY2+9cNtJPw7AeLavsQ29akwZJ 9ZMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=rzSNoEQ0xJ01uLmPLfG5Fhi4uySA4LQGiyauTUrgJeM=; b=KcWKyhMokrySMVR5YPslr+fmnQGlmWwj8cKv0onLu6p7UUxPXG5Qi5JYvqwe4kuU1p eFQj/qvZp43QQ+jXVnunKkVmx8rvyNpAjv+JxQFYvwhKlXVmD4lsbRWYDrL+8UgdRPk2 474mdwSx7tfyjfL6IGYu+ZDml5YFC1BrL3OpMgar0olFSzVs0R7R4r8Uzxo3XgnoyYxd sCYKRm3Li8u4G8a6IDwsBUJ2Y8VJLt5mmZ1yYFqyB24KyCPXLwgJl9KnXOXa8fv3NAMZ P9ABGuYR8yYS8rGwEEkP2VW7Ieu7RWzsTOD3A2xQawib44tXcm3hBfxc1UZNr6GS3ZJg LwMQ== X-Gm-Message-State: ANhLgQ07psBNi0i4u7m7sFPQjbDaxZ9UAID+crTyVvF8JGXPXaT8b4xt oHcFQap7nsxkCGM8TL5P75M= X-Google-Smtp-Source: ADFU+vuV1cga5uQqMMQVoPduGfqMKkd2DvP+jvU+enXk7CWa+sFUQrHbvLRqugrzU/vTgLp8ew+wLQ== X-Received: by 2002:ac8:369d:: with SMTP id a29mr1558132qtc.338.1585594979780; Mon, 30 Mar 2020 12:02:59 -0700 (PDT) Original-Received: from [192.168.1.5] (c-174-60-229-153.hsd1.pa.comcast.net. [174.60.229.153]) by smtp.gmail.com with ESMTPSA id g6sm12388135qtc.31.2020.03.30.12.02.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Mar 2020 12:02:59 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3608.80.23.2.2) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::829 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:246060 Archived-At: > On Mar 30, 2020, at 2:46 PM, Stefan Monnier = wrote: >=20 >> https://gitlab.com/stepnem/stripes-el/-/issues/1#note_309176403 >> (In short, `dired-readin' binds `inhibit-modification-hooks' to t, so >> the buffer changes caused by populating dired buffers are not = noticeable >> in `after-change-functions'.) >> I was wondering if I should report it as a bug, despite the = workaround >> not being particularly painful in this case (there's = `dired-after-readin-hook'). >=20 > I think it deserves a bug report, yes. >=20 >=20 > Stefan >=20 Is it really a bug of dired-mode? Dired-mode probably has a good reason = to bind `inhibit-modification-hooks` to t. And if we provide such = feature (disabling after-change-functions), we should expect people = using it. Maybe there should be a reliable way to be informed of buffer = changes (that cannot be silenced). Yuan=