From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nathaniel Flath Newsgroups: gmane.emacs.devel Subject: Re: Overalays and point-entered Date: Sat, 31 Oct 2009 13:03:36 -0400 Message-ID: <5e3a506e0910311003g1a16874em8e51baed60099a48@mail.gmail.com> References: <5e3a506e0909101709u2259d56h25f3ef1ec67326aa@mail.gmail.com> <5e3a506e0910171000n79e9c992n6c243fc0f42a919a@mail.gmail.com> <5e3a506e0910212035y7d5eca50w7ae1005896ef1bdd@mail.gmail.com> <5e3a506e0910230843r3fb837e7v9aa9cf5e57a7aed@mail.gmail.com> <5e3a506e0910270142y799d80dm7c4ebda24e31556@mail.gmail.com> <87aazcfiud.fsf@catnip.gol.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=000e0cd22f80162c4d04773e2069 X-Trace: ger.gmane.org 1257008642 24636 80.91.229.12 (31 Oct 2009 17:04:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 31 Oct 2009 17:04:02 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 31 18:03:55 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 1N4HMm-0007GS-AD for ged-emacs-devel@m.gmane.org; Sat, 31 Oct 2009 18:03:52 +0100 Original-Received: from localhost ([127.0.0.1]:49818 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N4HMl-00013b-Rh for ged-emacs-devel@m.gmane.org; Sat, 31 Oct 2009 13:03:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N4HMf-00012y-Le for emacs-devel@gnu.org; Sat, 31 Oct 2009 13:03:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N4HMa-00011Q-JH for emacs-devel@gnu.org; Sat, 31 Oct 2009 13:03:44 -0400 Original-Received: from [199.232.76.173] (port=60959 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N4HMa-00011N-Fk for emacs-devel@gnu.org; Sat, 31 Oct 2009 13:03:40 -0400 Original-Received: from mail-pz0-f192.google.com ([209.85.222.192]:57099) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N4HMY-00058I-Tw; Sat, 31 Oct 2009 13:03:39 -0400 Original-Received: by pzk30 with SMTP id 30so2627840pzk.24 for ; Sat, 31 Oct 2009 10:03:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=Jsq4pHp6FyO4qvUhEijDoz2tE37I47dZc8EhdeBqH8U=; b=BJT/cbBpX6eWqP6PME2e30f1nPeEpcbSJJ1j01cyVC192uHSW4tEaCjtpFlybRauA5 7xQgEc+TC5A800LiCckPByFt/AvwDsDzPZODHkZ9FjwIi3iqhmkKpHgmApvuS+XfVkSQ SktRsQpMizeE3eCF3UuoHGLou+alcTDVhRNlU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=U/DtzFjSExq/16+h0/SiC7rC4dL51dlPybuGAp7hV2AuAweaRKVL1UffLwum/vDMIB F+FXKIpZc7pAyaGaFd2Lo6+hDvOXW/zjteefYOBrNZ5BbAO11dFWgtx4V6GufxBGTrUg +ILmS41yiJkgJT4qSmqurl9WWk0K2F0d8zZD4= Original-Received: by 10.140.164.17 with SMTP id m17mr150465rve.244.1257008616843; Sat, 31 Oct 2009 10:03:36 -0700 (PDT) In-Reply-To: <87aazcfiud.fsf@catnip.gol.com> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:116515 Archived-At: --000e0cd22f80162c4d04773e2069 Content-Type: text/plain; charset=ISO-8859-1 This may be a good solution. What are your thoughts, Stefan? Nathaniel On Tue, Oct 27, 2009 at 8:44 PM, Miles Bader wrote: > 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." > --000e0cd22f80162c4d04773e2069 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable This may be a good solution.=A0 What are your thoughts, Stefan?

Nath= aniel

On Tue, Oct 27, 2009 at 8:44 PM, Mi= les Bader <miles@gnu.= org> wrote:
Stefan Monnier <monnier@iro= .umontreal.ca> 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 sho= uld
> run the hook (which is a vote in favor of per-window data), but for &q= uot;C-x
> o" it's less clear: running the hook would often be a good id= ea, 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 amon= g 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
=A0'Allahu akbar!' are, in spirit, not actually all that different.= "

--000e0cd22f80162c4d04773e2069--