emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting the click position in a string


From: Kim F. Storm
Subject: Re: Getting the click position in a string
Date: Wed, 26 Apr 2006 10:13:48 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

David Kastrup <address@hidden> writes:

> I mean, how is one supposed to guess that "image or string" is
> actually going to be a cons?

RTFM :-)

 - Function: posn-string position
     Return the string object in POSITION, either `nil', or a cons cell
     `(STRING . STRING-POS)'.

 - Function: posn-object position
     Return the image or string object in POSITION, either `nil', an
     image `(image ...)', or a cons cell `(STRING . STRING-POS)'.

> Personally, I'd have expected posn-object and posn-string to just
> return the image or string, and then have a separate posn-offset or
> posn-object-pos or so that will deliver the corresponding offset _if_
> there is such a one.
>
> That would seem somewhat natural.

Maybe, but there is already too many posn- functions :-)

>
> Sorry for noticing this only now.

Don't worry.  I will fix the doc strings.

-- 
Kim F. Storm <address@hidden> http://www.cua.dk





reply via email to

[Prev in Thread] Current Thread [Next in Thread]