From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: Overalays and point-entered Date: Wed, 28 Oct 2009 09:44:10 +0900 Message-ID: <87aazcfiud.fsf@catnip.gol.com> References: <5e3a506e0909101709u2259d56h25f3ef1ec67326aa@mail.gmail.com> <5e3a506e0909240704t5e716634k86b21e1604ee1912@mail.gmail.com> <5e3a506e0910061133r3e9b6146l637c84bee7b0d136@mail.gmail.com> <5e3a506e0910171000n79e9c992n6c243fc0f42a919a@mail.gmail.com> <5e3a506e0910212035y7d5eca50w7ae1005896ef1bdd@mail.gmail.com> <5e3a506e0910230843r3fb837e7v9aa9cf5e57a7aed@mail.gmail.com> <5e3a506e0910270142y799d80dm7c4ebda24e31556@mail.gmail.com> Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1256690681 18126 80.91.229.12 (28 Oct 2009 00:44:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 28 Oct 2009 00:44:41 +0000 (UTC) Cc: Nathaniel Flath , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 28 01:44:34 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 1N2weM-0001mI-9A for ged-emacs-devel@m.gmane.org; Wed, 28 Oct 2009 01:44:30 +0100 Original-Received: from localhost ([127.0.0.1]:41314 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N2weL-0001wG-Oh for ged-emacs-devel@m.gmane.org; Tue, 27 Oct 2009 20:44:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N2weE-0001tu-K9 for emacs-devel@gnu.org; Tue, 27 Oct 2009 20:44:22 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N2we9-0001oW-5t for emacs-devel@gnu.org; Tue, 27 Oct 2009 20:44:21 -0400 Original-Received: from [199.232.76.173] (port=41664 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N2we9-0001oT-3a for emacs-devel@gnu.org; Tue, 27 Oct 2009 20:44:17 -0400 Original-Received: from smtp12.dentaku.gol.com ([203.216.5.74]:36624) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N2we6-0001N8-8L; Tue, 27 Oct 2009 20:44:14 -0400 Original-Received: from 218.33.235.4.eo.eaccess.ne.jp ([218.33.235.4] helo=catnip.gol.com) by smtp12.dentaku.gol.com with esmtpa (Dentaku) id 1N2we3-0002Vy-As; Wed, 28 Oct 2009 09:44:11 +0900 Original-Received: by catnip.gol.com (Postfix, from userid 1000) id 8EDF6DF2D; Wed, 28 Oct 2009 09:44:10 +0900 (JST) System-Type: x86_64-unknown-linux-gnu In-Reply-To: (Stefan Monnier's message of "Tue, 27 Oct 2009 09:28:42 -0400") Original-Lines: 24 X-Virus-Scanned: ClamAV GOL (outbound) X-Abuse-Complaints: abuse@gol.com X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:116429 Archived-At: Stefan Monnier writes: > Now, what the behavior should be upon C-x o or C-x b is again somewhat > unclear: for C-x b, actually I think it's pretty clear that it should > run the hook (which is a vote in favor of per-window data), but for "C-x > o" it's less clear: running the hook would often be a good idea, but > would mean that it's somewhere between difficult and impossible to let > the user go to the *Completions* buffer to select an entry with > choose-completion. It seems like it would be easier to handle the subtle variations among a variety of cases if there were simply hooks for each type of movement -- one which is per-buffer, and only cares about point position, one which runs when a window becomes selected/deselected (C-x o case), and one which runs when a buffer is attached/detached from a window (C-x b case). Then the programmer could add hooks to handle which things he cared about, without having them be inadvertently triggered in cases he doesn't care about. -miles -- "Though they may have different meanings, the cries of 'Yeeeee-haw!' and 'Allahu akbar!' are, in spirit, not actually all that different."