From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#3038: 23.0.91; after-change-functions and indirect buffers Date: Mon, 18 Feb 2013 22:06:30 -0500 Message-ID: References: <6xzjz12gz4.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1361243228 2551 80.91.229.3 (19 Feb 2013 03:07:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Feb 2013 03:07:08 +0000 (UTC) Cc: 3038@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 19 04:07:28 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U7dYD-0005OQ-0m for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Feb 2013 04:07:25 +0100 Original-Received: from localhost ([::1]:55448 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7dXs-0003XH-U6 for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 Feb 2013 22:07:04 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:59858) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7dXp-0003X9-Kp for bug-gnu-emacs@gnu.org; Mon, 18 Feb 2013 22:07:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U7dXn-0007dH-VD for bug-gnu-emacs@gnu.org; Mon, 18 Feb 2013 22:07:01 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58360) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7dXn-0007dB-Sb for bug-gnu-emacs@gnu.org; Mon, 18 Feb 2013 22:06:59 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1U7dYo-0002D0-9s for bug-gnu-emacs@gnu.org; Mon, 18 Feb 2013 22:08:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Feb 2013 03:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 3038 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug wontfix Original-Received: via spool by 3038-submit@debbugs.gnu.org id=B3038.13612432598459 (code B ref 3038); Tue, 19 Feb 2013 03:08:02 +0000 Original-Received: (at 3038) by debbugs.gnu.org; 19 Feb 2013 03:07:39 +0000 Original-Received: from localhost ([127.0.0.1]:35591 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U7dYQ-0002CO-UL for submit@debbugs.gnu.org; Mon, 18 Feb 2013 22:07:39 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:36864) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U7dYP-0002CH-4E for 3038@debbugs.gnu.org; Mon, 18 Feb 2013 22:07:37 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFsoXXp/2dsb2JhbABEvw4Xc4IeAQEEAVYjEAsOJhIUGA0kiB4GwS2OLoJcA4hhnBmBXoJqKw X-IPAS-Result: Av4EABK/CFFsoXXp/2dsb2JhbABEvw4Xc4IeAQEEAVYjEAsOJhIUGA0kiB4GwS2OLoJcA4hhnBmBXoJqKw X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="1698800" Original-Received: from 108-161-117-233.dsl.teksavvy.com (HELO fmsmemgm.homelinux.net) ([108.161.117.233]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 18 Feb 2013 22:06:32 -0500 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id CFC65AE500; Mon, 18 Feb 2013 22:06:30 -0500 (EST) In-Reply-To: <6xzjz12gz4.fsf@fencepost.gnu.org> (Glenn Morris's message of "Mon, 18 Feb 2013 21:08:15 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:71510 Archived-At: >> I got this from Eric Ludlam. There seem to be a problem with >> after-change-functions and indirect buffers. To me this looks like a >> bug: >> "Yes, I use after-change-functions. ... >> If you edit the base buffer, these functions don't get run in the >> indirect buffer, but if you edit the indirect buffer, they do get run, >> but not in the base buffer." > It doesn't look like a bug to me. You'll have to explicitly check for > indirect buffers if that matter to you. While it "works as designed" I can imagine it breaks lots of code which assumes that an after-change-function lets you be kept informed of "all" buffer modifications. IOW, even if it's not a bug in after-change-functions, it's then a bug in syntax-ppss, font-lock, and probably many other packages using after-change-function. Stefan PS: FWIW, I'm not sure indirect-buffers are a good idea.