From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Overalays and point-entered Date: Sat, 17 Oct 2009 21:09:27 -0400 Message-ID: References: <5e3a506e0909101709u2259d56h25f3ef1ec67326aa@mail.gmail.com> <5e3a506e0909161346w1d5a8bebp84f1d51f0f446f28@mail.gmail.com> <5e3a506e0909230841i1d87b7ep397f2809e2cbdef9@mail.gmail.com> <5e3a506e0909240647k18368e10o6e5391a70a79e8@mail.gmail.com> <5e3a506e0909240704t5e716634k86b21e1604ee1912@mail.gmail.com> <5e3a506e0910061133r3e9b6146l637c84bee7b0d136@mail.gmail.com> <5e3a506e0910171000n79e9c992n6c243fc0f42a919a@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1255828212 1645 80.91.229.12 (18 Oct 2009 01:10:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 18 Oct 2009 01:10:12 +0000 (UTC) Cc: emacs-devel@gnu.org To: Nathaniel Flath Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 18 03:10:04 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MzKHb-0006T9-Fr for ged-emacs-devel@m.gmane.org; Sun, 18 Oct 2009 03:10:03 +0200 Original-Received: from localhost ([127.0.0.1]:39187 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MzKHa-0002Vh-VU for ged-emacs-devel@m.gmane.org; Sat, 17 Oct 2009 21:10:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MzKH8-0002Gu-1G for emacs-devel@gnu.org; Sat, 17 Oct 2009 21:09:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MzKH3-0002EE-4E for emacs-devel@gnu.org; Sat, 17 Oct 2009 21:09:33 -0400 Original-Received: from [199.232.76.173] (port=46733 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MzKH2-0002EA-UC for emacs-devel@gnu.org; Sat, 17 Oct 2009 21:09:29 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:44103 helo=ironport2-out.pppoe.ca) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MzKH2-00035g-Es for emacs-devel@gnu.org; Sat, 17 Oct 2009 21:09:28 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqEEABIH2krO+IKD/2dsb2JhbACBUdUzhDEEiAU X-IronPort-AV: E=Sophos;i="4.44,579,1249272000"; d="scan'208";a="47749152" Original-Received: from 206-248-130-131.dsl.teksavvy.com (HELO pastel.home) ([206.248.130.131]) by ironport2-out.pppoe.ca with ESMTP; 17 Oct 2009 21:09:27 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id C82617FD5; Sat, 17 Oct 2009 21:09:27 -0400 (EDT) In-Reply-To: <5e3a506e0910171000n79e9c992n6c243fc0f42a919a@mail.gmail.com> (Nathaniel Flath's message of "Sat, 17 Oct 2009 13:00:47 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:116214 Archived-At: > Any comments ont his? I haven't had much time to look into it, but I wonder: what happens when you switch buffer? I get the impression that your code currently will consider a buffer-switch as a kind of cursor movement to "very far away" (so it will run the leave&enter hooks). I think it would be better to keep track of overlay_prev_vec as a per-buffer (or probably better per-window, tho that again introduces some questions when a window-buffer is changed) information. Stefan