From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Getting the click position in a string Date: Wed, 26 Apr 2006 10:13:48 +0200 Message-ID: References: <85fyk2ugle.fsf@lola.goethe.zz> <85vesxso0v.fsf@lola.goethe.zz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1146039364 22319 80.91.229.2 (26 Apr 2006 08:16:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 26 Apr 2006 08:16:04 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 26 10:16:01 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FYfBk-0007e4-2W for ged-emacs-devel@m.gmane.org; Wed, 26 Apr 2006 10:15:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FYfBj-0004xX-0n for ged-emacs-devel@m.gmane.org; Wed, 26 Apr 2006 04:15:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FYfBW-0004ue-14 for emacs-devel@gnu.org; Wed, 26 Apr 2006 04:15:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FYfBV-0004tW-1B for emacs-devel@gnu.org; Wed, 26 Apr 2006 04:15:41 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FYfBU-0004tP-U8 for emacs-devel@gnu.org; Wed, 26 Apr 2006 04:15:40 -0400 Original-Received: from [195.41.46.237] (helo=pfepc.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FYfE7-0005kB-NL; Wed, 26 Apr 2006 04:18:23 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (unknown [80.165.4.124]) by pfepc.post.tele.dk (Postfix) with SMTP id DA78E26282D; Wed, 26 Apr 2006 10:15:38 +0200 (CEST) Original-To: David Kastrup In-Reply-To: <85vesxso0v.fsf@lola.goethe.zz> (David Kastrup's message of "Tue, 25 Apr 2006 16:55:28 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:53450 Archived-At: David Kastrup 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 http://www.cua.dk