From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.bugs Subject: bug#2932: call-interactively wrongly calls mouse-leave-buffer-hook Date: Sun, 10 Jul 2011 02:00:41 +0200 Message-ID: References: <20090408211553.GA2627@muc.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1310256145 11589 80.91.229.12 (10 Jul 2011 00:02:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 10 Jul 2011 00:02:25 +0000 (UTC) Cc: 2932@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 10 02:02:21 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QfhTY-0001NZ-2a for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Jul 2011 02:02:20 +0200 Original-Received: from localhost ([::1]:51147 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QfhTX-000359-5C for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Jul 2011 20:02:19 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:38955) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QfhTI-00034z-2s for bug-gnu-emacs@gnu.org; Sat, 09 Jul 2011 20:02:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QfhTH-0007r2-2H for bug-gnu-emacs@gnu.org; Sat, 09 Jul 2011 20:02:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37827) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QfhTG-0007qy-TS for bug-gnu-emacs@gnu.org; Sat, 09 Jul 2011 20:02:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QfhTG-0005h0-42; Sat, 09 Jul 2011 20:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juanma Barranquero Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Jul 2011 00:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 2932 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 2932-submit@debbugs.gnu.org id=B2932.131025609021845 (code B ref 2932); Sun, 10 Jul 2011 00:02:02 +0000 Original-Received: (at 2932) by debbugs.gnu.org; 10 Jul 2011 00:01:30 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QfhSj-0005gI-MC for submit@debbugs.gnu.org; Sat, 09 Jul 2011 20:01:29 -0400 Original-Received: from mail-pz0-f44.google.com ([209.85.210.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QfhSh-0005g5-51 for 2932@debbugs.gnu.org; Sat, 09 Jul 2011 20:01:27 -0400 Original-Received: by pzk5 with SMTP id 5so2345914pzk.3 for <2932@debbugs.gnu.org>; Sat, 09 Jul 2011 17:01:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=ySNRkRPyHJ1+UImTGKldyAOsAzKsykNEH0SgsulMVw4=; b=OFpx5KeInRZwsWBZKkq1aA2CrGqc1OnuzMil7/RnbVpekeCmwaRlyeW74VHRQNO9G5 3xkrYarH8t7NLl3QuprXpBx4QtOC94xHJtJWnBNfqCmY8SEcPJpjZpOhiryLDX3nsL6b zkgLvgyBBWksbA4wkBgMG4Rh80M3TMYLFohmU= Original-Received: by 10.143.91.16 with SMTP id t16mr1109211wfl.366.1310256081166; Sat, 09 Jul 2011 17:01:21 -0700 (PDT) Original-Received: by 10.142.144.4 with HTTP; Sat, 9 Jul 2011 17:00:41 -0700 (PDT) In-Reply-To: <20090408211553.GA2627@muc.de> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 09 Jul 2011 20:02:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:48383 Archived-At: On Wed, Apr 8, 2009 at 23:15, Alan Mackenzie wrote: > In call-interactively (callint.c L~449), whilst processing `@' ("switch > to the window the mouse was clicked in") in an interactive string, the > code runs the hook `mouse-leave-buffer-hook'. > > The code HASN'T CHECKED that this new window is different from the > current window, and even if it is, whether the new window is displaying > a different buffer. =C2=A0Hence the hook is wrongly invoked when the mous= e is > clicked in the current window. The trunk still behaves as you describe. As a first pass, we should fix the docstring of `mouse-leave-buffer-hook'. It seems wrong for the docstring of a hook with "leave-buffer" in its name to talk about windows and not say a word about buffers... =C2=A0 =C2=A0 Juanma