From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#21824: 25.0.50; overlay modification-hooks called with wrong buffer Date: Wed, 4 Nov 2015 19:19:27 -0500 Message-ID: References: <83611hvl0w.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1446682820 30595 80.91.229.3 (5 Nov 2015 00:20:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Nov 2015 00:20:20 +0000 (UTC) Cc: 21824@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 05 01:20:11 2015 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 1Zu8Hi-00082E-U1 for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Nov 2015 01:20:11 +0100 Original-Received: from localhost ([::1]:57812 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zu8Hi-0001D9-42 for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Nov 2015 19:20:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40439) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zu8He-0001Bg-8D for bug-gnu-emacs@gnu.org; Wed, 04 Nov 2015 19:20:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zu8Hb-0004Tj-0B for bug-gnu-emacs@gnu.org; Wed, 04 Nov 2015 19:20:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34897) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zu8Ha-0004Tf-SZ for bug-gnu-emacs@gnu.org; Wed, 04 Nov 2015 19:20:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Zu8Ha-0004sm-9Y for bug-gnu-emacs@gnu.org; Wed, 04 Nov 2015 19:20:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Nov 2015 00:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21824 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 21824-submit@debbugs.gnu.org id=B21824.144668277118716 (code B ref 21824); Thu, 05 Nov 2015 00:20:02 +0000 Original-Received: (at 21824) by debbugs.gnu.org; 5 Nov 2015 00:19:31 +0000 Original-Received: from localhost ([127.0.0.1]:53838 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zu8H4-0004rn-GC for submit@debbugs.gnu.org; Wed, 04 Nov 2015 19:19:30 -0500 Original-Received: from mail-ig0-f170.google.com ([209.85.213.170]:37785) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zu8H2-0004rf-Df for 21824@debbugs.gnu.org; Wed, 04 Nov 2015 19:19:28 -0500 Original-Received: by igbhv6 with SMTP id hv6so48190712igb.0 for <21824@debbugs.gnu.org>; Wed, 04 Nov 2015 16:19:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=BHUTbbreVf5FHZd9n2/u6lx5Qg/zJvJSgRgalMbf8h8=; b=tPj1w+g9Y8Fb6t78869jx35xfMZyU66pBHHOQhYsalB3lkIasicPaf82ThmuOA2K45 arQ1x8ROVZEIUkdcvLAn1w9qcuLK2HRdlTy18DSw1pvUcAPcufKYxicGwgII88Bx03ao l/VupI6g8zoyynEu00LyWvVKgE/EIlGoLIhHQjWM55rXQAEg4QA3gK9yW2ZKR3S4kekt NaJUUN0Of9RJ8Bl7vHqjUpsIgce6d1yvRvSpA9b9aLH3iyMvTfzZv1PY35xom81I+vVx FCh3PWjbnWDAY/tAZDmMBTuEn+VqaFsuueknFkCdFq+5nG67hk9wGpNCGw/Q6JGKQah0 juHw== X-Received: by 10.50.32.69 with SMTP id g5mr27429979igi.35.1446682767679; Wed, 04 Nov 2015 16:19:27 -0800 (PST) Original-Received: by 10.79.119.2 with HTTP; Wed, 4 Nov 2015 16:19:27 -0800 (PST) In-Reply-To: <83611hvl0w.fsf@gnu.org> X-Google-Sender-Auth: Yusj8cfZYUoZZ0eSuPx1KriwOK4 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.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:108462 Archived-At: On Wed, Nov 4, 2015 at 10:31 AM, Eli Zaretskii wrote: > Thanks. Unfortunately, I don't really have enough time at the moment > to install all of that, certainly not libclang. Is it okay if I ask > questions and make observations, and you then try digging into this > problem, find the answers, and post them here? Yup, totally understandable. > I see that yas-global-mode is turned on, which (AFAIU) means yasnippet > tries to do its thing in every buffer, including *Messages*, right? > I can reproduce the problem with yas-minor-mode enabled only in the C++ buffer. But I *can't* reproduce the problem with highlight-parenthesis-mode only in the C++ buffer. It seems global-highlight-parenthesis-mode is required. > That in turn means every modification of the *Messages* buffer will, > quite correctly, call yas--on-field-overlay-modification, provided > that the buffer has overlays in it. To clarify, yas--on-field-overlay-modification is *only* called as a modification-hooks property of overlays that yasnippet creates. Yasnippet never calls it directly. Yasnippet only creates overlays after expanding a snippet, so this should never occur in the *Messages* buffer (unless the user decides to start typing and expanding snippets there). However, there are several other packages involved. > After this error happens, what does the following produce if invoked > with *Messages* being the current buffer: > > M-: (overlays-in (point-min) (point-max)) RET Evaluating in the stackframe where the error is triggered: (# # # # # # # #) Afterwards it gives nil. The "from 1 to 1" suggests overlays created by highlight-parentheses, as I see it has a (make-overlay 0 0 nil t) call in a loop.