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#3018: AW: bug#3018: clone-indirect-buffer-hook should be make-indirect-buffer-hook Date: Sat, 18 Apr 2009 13:54:58 -0400 Message-ID: References: <84D8FEFE8D23E94E9C2A6F0C58EE07E30239ADFA@mucmail3.sdm.de> <84D8FEFE8D23E94E9C2A6F0C58EE07E314C839@mucmail3.sdm.de> <200904181256.n3ICuBSV014525@projectile.siege-engine.com> Reply-To: Stefan Monnier , 3018@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1240077895 7524 80.91.229.12 (18 Apr 2009 18:04:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 Apr 2009 18:04:55 +0000 (UTC) Cc: klaus.berndl@capgemini-sdm.com, 3018@emacsbugs.donarmstrong.com To: "Eric M. Ludlam" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 18 20:06:13 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LvEvK-0006Qn-Q2 for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 Apr 2009 20:05:55 +0200 Original-Received: from localhost ([127.0.0.1]:57229 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LvEtw-0007fX-4w for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 Apr 2009 14:04:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LvEtT-0007Wd-V3 for bug-gnu-emacs@gnu.org; Sat, 18 Apr 2009 14:04:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LvEtP-0007Vw-8U for bug-gnu-emacs@gnu.org; Sat, 18 Apr 2009 14:03:59 -0400 Original-Received: from [199.232.76.173] (port=53135 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LvEtP-0007Vm-4J for bug-gnu-emacs@gnu.org; Sat, 18 Apr 2009 14:03:55 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:39191) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LvEtO-00030n-DR for bug-gnu-emacs@gnu.org; Sat, 18 Apr 2009 14:03:54 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3II3pag012841; Sat, 18 Apr 2009 11:03:52 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n3II048V011585; Sat, 18 Apr 2009 11:00:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 18 Apr 2009 18:00:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3018 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 3018-submit@emacsbugs.donarmstrong.com id=B3018.124007730910528 (code B ref 3018); Sat, 18 Apr 2009 18:00:04 +0000 Original-Received: (at 3018) by emacsbugs.donarmstrong.com; 18 Apr 2009 17:55:09 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from ironport2-out.teksavvy.com (ironport2-out.teksavvy.com [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3IHt4pB010175 for <3018@emacsbugs.donarmstrong.com>; Sat, 18 Apr 2009 10:55:05 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ai8FAFuw6UlLd+7D/2dsb2JhbACBTstUg30GhSg X-IronPort-AV: E=Sophos;i="4.40,210,1238990400"; d="scan'208";a="37263165" Original-Received: from 75-119-238-195.dsl.teksavvy.com (HELO pastel.home) ([75.119.238.195]) by ironport2-out.teksavvy.com with ESMTP; 18 Apr 2009 13:54:58 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 6CCB87EFC; Sat, 18 Apr 2009 13:54:58 -0400 (EDT) In-Reply-To: <200904181256.n3ICuBSV014525@projectile.siege-engine.com> (Eric M. Ludlam's message of "Sat, 18 Apr 2009 08:56:11 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sat, 18 Apr 2009 14:03:59 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:27330 Archived-At: > Klaus' explanation is accurate. Semantic's parsing engine needs to > have separate tag streams (tracked by overlays) for each buffer. When > the clone replicates the overlays and local variables, they share the > same cons cells in Semantic's tag data structure. When Semantic then > incrementally parses the buffer, and splices new tags in, things get a > bit unreliable. If the two buffers were in two different modes (ie, > one of the multi-modes?) with different parsers, I can imagine things > being even stranger. Yes, this is a "common" problem, and is the reason why clone-indirect-buffer-hook was introduced. If `make-indirect-buffer' is called with a nil `clone' argument this problem shouldn't show up (because such a call shouldn't copy the overlays). So the problem might only show up when calling `make-indirect-buffer' with a non-nil `clone' argument without going through clone-indirect-buffer. When did you come across such a situation? > The after-change function does not seem to be called for all linked > buffers. Changing a base buffer doesn't call the same hooks in the > indirect buffer, and vice-versa. This means that changes get lost, as > each buffer appears to need Semantic to track the changes separately. Indeed, it might be that *-change-functions only get called in the buffer from which they are performed, which is probably a bug. Stefan