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: Thu, 10 Sep 2009 21:08:51 -0700 Message-ID: <5e3a506e0909102108h381957cahfcaa681baa4abf@mail.gmail.com> References: <5e3a506e0909101709u2259d56h25f3ef1ec67326aa@mail.gmail.com> <5e3a506e0909101902h72747299u2e306830ce63b11d@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=000e0cd1ae4c4b810704734579cb X-Trace: ger.gmane.org 1252642153 20922 80.91.229.12 (11 Sep 2009 04:09:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Sep 2009 04:09:13 +0000 (UTC) To: Stefan Monnier , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 11 06:09:06 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 1MlxRZ-00016a-00 for ged-emacs-devel@m.gmane.org; Fri, 11 Sep 2009 06:09:05 +0200 Original-Received: from localhost ([127.0.0.1]:55585 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MlxRY-0003Pp-E6 for ged-emacs-devel@m.gmane.org; Fri, 11 Sep 2009 00:09:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MlxRU-0003ND-1u for emacs-devel@gnu.org; Fri, 11 Sep 2009 00:09:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MlxRP-0003Ax-Ec for emacs-devel@gnu.org; Fri, 11 Sep 2009 00:08:59 -0400 Original-Received: from [199.232.76.173] (port=33024 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MlxRP-0003Ap-Bd for emacs-devel@gnu.org; Fri, 11 Sep 2009 00:08:55 -0400 Original-Received: from mail-pz0-f175.google.com ([209.85.222.175]:47067) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MlxRO-0000dX-VI for emacs-devel@gnu.org; Fri, 11 Sep 2009 00:08:55 -0400 Original-Received: by pzk5 with SMTP id 5so641914pzk.6 for ; Thu, 10 Sep 2009 21:08:54 -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=m1OYuVuDP8EO/y7UmbqRxybI5LM6yWFQPHdr/sfxStg=; b=IlZ+JcCQkIGjIWQVvImZDmPT685x7niIa7sVaEbj1gr+0L89h/HxiYuh/mjBs6VzwY PRjdlAJ7LFvI2utt/WVIZ20JJvqd8N+ggj+Va8fvX9aGzMlWWzGx8MXiOiv1blneTrqB duBJyh+7ZDQ6NSdWtQAY8202IZaB3EDDlEyQs= 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=G6EbOK9YCRXcwXGJMHxU/5ulUlKCXOxWBn2CPKx1Pr6Rte1ruoGBYn0h2Q4O1TbGER qmaG9Uhi2VM5V/enB3plyrz5m7WeT416wZDa4NyvQJvvSs5QC4qg+xb0oUojpzvxVXHO VuDYNt51ooV/TRfPuS9MQ/ShuHFrt2ORo/754= Original-Received: by 10.141.20.16 with SMTP id x16mr631016rvi.299.1252642131771; Thu, 10 Sep 2009 21:08:51 -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:115183 Archived-At: --000e0cd1ae4c4b810704734579cb Content-Type: text/plain; charset=ISO-8859-1 Using help-at-pt and setting the delay to 0 does end up doing what I want, thanks. I agree that this is a globally useful feature, which is why I was thinking of working to fix it at a lower level instead of just hacking around the deficiencies. Help-at-pt isn't the most elegant of solutions either, but as long as it's part of emacs I suppose I'm fine with it. On Thu, Sep 10, 2009 at 8:04 PM, Stefan Monnier wrote: > > Essentially, I wanted to add echo-area messages to Flymake when the point > > was in a section highlighted as an error. js2-mode does this using text > > properties when it defines overlays, which is another option I could look > > at, but it seems much better to be able to just have an overlay for all > of > > this related information. Flymake does use tooltips to display th error > > message, but those seem to be only able to display when the mouse is over > > the text, unless I'm missing something. > > This is a globally useful feature. You might like to take a look at > help-at-pt.el. Notice that the feature you're trying to implement does > not require hooking into the point-motion itself (like > point-enter/point-leave/intangible properties) but only into the cursor > movement (i.e. the position of point betwen commands). This is an > important difference, since one is implemented at a very low level and > affects all kinds of unrelated operations, whereas the other is > implemented at a very high level and interacts with very little > other code. > > > Stefan > > --000e0cd1ae4c4b810704734579cb Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Using help-at-pt and setting the delay to 0 does end up doing what I want, = thanks.=A0 I agree that this is a globally useful feature, which is why I w= as thinking of working to fix it at a lower level instead of just hacking a= round the deficiencies.=A0 Help-at-pt isn't the most elegant of solutio= ns either, but as long as it's part of emacs I suppose I'm fine wit= h it.

On Thu, Sep 10, 2009 at 8:04 PM, Stefan Monn= ier <monni= er@iro.umontreal.ca> wrote:
> Essentially, I wanted to add echo-area messages to F= lymake when the point
> was in a section highlighted as an error. =A0js2-mode does this using = text
> properties when it defines overlays, which is another option I could l= ook
> at, but it seems much better to be able to just have an overlay for al= l of
> this related information. =A0Flymake does use tooltips to display th e= rror
> message, but those seem to be only able to display when the mouse is o= ver
> the text, unless I'm missing something.

This is a globally useful feature. =A0You might like to take a look a= t
help-at-pt.el. =A0Notice that the feature you're trying to implement do= es
not require hooking into the point-motion itself (like
point-enter/point-leave/intangible properties) but only into the cursor
movement (i.e. the position of point betwen commands). =A0This is an
important difference, since one is implemented at a very low level and
affects all kinds of unrelated operations, whereas the other is
implemented at a very high level and interacts with very little
other code.


=A0 =A0 =A0 =A0Stefan


--000e0cd1ae4c4b810704734579cb--