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: Tue, 27 Oct 2009 04:42:56 -0400 Message-ID: <5e3a506e0910270142y799d80dm7c4ebda24e31556@mail.gmail.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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=000e0cd29a683588250476e6aa78 X-Trace: ger.gmane.org 1256633179 18794 80.91.229.12 (27 Oct 2009 08:46:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 Oct 2009 08:46:19 +0000 (UTC) To: Stefan Monnier , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 27 09:46:12 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 1N2hgy-0001qp-0g for ged-emacs-devel@m.gmane.org; Tue, 27 Oct 2009 09:46:12 +0100 Original-Received: from localhost ([127.0.0.1]:41462 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N2hgx-0002r5-HG for ged-emacs-devel@m.gmane.org; Tue, 27 Oct 2009 04:46:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N2hdw-0001nK-5y for emacs-devel@gnu.org; Tue, 27 Oct 2009 04:43:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N2hdr-0001kf-0P for emacs-devel@gnu.org; Tue, 27 Oct 2009 04:43:03 -0400 Original-Received: from [199.232.76.173] (port=38849 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N2hdq-0001ka-R8 for emacs-devel@gnu.org; Tue, 27 Oct 2009 04:42:58 -0400 Original-Received: from mail-px0-f192.google.com ([209.85.216.192]:39916) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N2hdq-0000dI-Fs for emacs-devel@gnu.org; Tue, 27 Oct 2009 04:42:58 -0400 Original-Received: by pxi30 with SMTP id 30so3707829pxi.14 for ; Tue, 27 Oct 2009 01:42:57 -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:content-type; bh=oZv58ZblJC/4vp9lHpqhXpM0GwSXl2w0YQ5XkxQfYkk=; b=TLduAm8XExSQn6KnI53Hp9nz18AxwCM4paJM2kSf0cOCz3ETg2xR0iHoolIm5nUqZu yyIOdn3OllqQjqXhq+KTbzHhWVWt+8RdvlScfm0gUbYDPG0heaIjYMHw0PEUCagY40al FfoDJB9AXO0prUYDcJnMGxUdgqEdq7a6ybhWA= 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 :content-type; b=ToMc3kAfHrGja9zdSrBo+vjh89Nhi9Z+yzZ0uKYq3l3TNgDmemtICBRgMmi4dahOr4 PddS/G9ApSKeZGAkkj8rek7cHHJCi3tGlFRBnNnqkZpYVkIPidG07em/P17PQN7QWAAI t6Q+QWLEfT3i+DtyNlR4+NHZa05piKszRtCLc= Original-Received: by 10.140.193.9 with SMTP id q9mr2049731rvf.178.1256632977032; Tue, 27 Oct 2009 01:42:57 -0700 (PDT) In-Reply-To: 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:116419 Archived-At: --000e0cd29a683588250476e6aa78 Content-Type: text/plain; charset=ISO-8859-1 Well, you'd want it to display when you moved to the buffer - If you are moving out of the overlay in question with C-x o it may not matter, but if you are moving into a window with a buffer that the point is in one of these overlays you'd want the action to trigger and display the error message. The same applies to C-x b. This was just the use case I had in mind - there are probably others. On Sat, Oct 24, 2009 at 10:30 PM, Stefan Monnier wrote: > > The use case I was looking at, as I mentioned earlier, was for > flymake-like > > modes to display the actual error messages when point is on an error > line. > > This currently looks like it's usually implemented( or is in js2.el, at > > least ) by having both an overlay and a text property and keeping the two > in > > sync. In this case, I think that doing C-x o to the same buffer should > run > > the hooks, and that C-x b should not, which would imply that maybe the > > buffer is the best place to put them. > > Hmmm.... it doesn't seem clear to me why you'd want it for C-x o but not > for C-x b. Aren't there other potential use-cases? > > > Stefan > --000e0cd29a683588250476e6aa78 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Well, you'd want it to display when you moved to the buffer - If you ar= e moving out of the overlay in question with C-x o it may not matter, but i= f you are moving into a window with a buffer that the point is in one of th= ese overlays you'd want the action to trigger and display the error mes= sage.=A0 The same applies to C-x b.=A0 This was just the use case I had in = mind - there are probably others.

On Sat, Oct 24, 2009 at 10:30 PM, Stefan Mon= nier <monn= ier@iro.umontreal.ca> wrote:
> The use case I was looking at, as I mentioned earlie= r, was for flymake-like
> modes to display the actual error messages when point is on an error l= ine.
> This currently looks like it's usually implemented( or is in js2.e= l, at
> least ) by having both an overlay and a text property and keeping the = two in
> sync. =A0In this case, I think that doing C-x o to the same buffer sho= uld run
> the hooks, and that C-x b should not, which would imply that maybe the=
> buffer is the best place to put them.

Hmmm.... it doesn't seem clear to me why you'd want it for C-= x o but not
for C-x b. =A0Aren't there other potential use-cases?


=A0 =A0 =A0 =A0Stefan

--000e0cd29a683588250476e6aa78--