From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: New primitive buffer-position-at Date: Tue, 11 Jan 2005 18:32:28 -0500 Message-ID: References: <16868.19239.506292.507882@farnswood.snap.net.nz> <16868.24118.468795.219802@farnswood.snap.net.nz> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1105487152 4196 80.91.229.6 (11 Jan 2005 23:45:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 11 Jan 2005 23:45:52 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 12 00:45:46 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CoVhp-0005Ik-00 for ; Wed, 12 Jan 2005 00:45:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CoVmj-0001iJ-NH for ged-emacs-devel@m.gmane.org; Tue, 11 Jan 2005 18:50:49 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CoVm7-0001Vm-MK for emacs-devel@gnu.org; Tue, 11 Jan 2005 18:50:12 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CoVlz-0001QV-Kc for emacs-devel@gnu.org; Tue, 11 Jan 2005 18:50:05 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CoVlx-0001Od-6o for emacs-devel@gnu.org; Tue, 11 Jan 2005 18:50:01 -0500 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CoVVV-0002ts-Ae for emacs-devel@gnu.org; Tue, 11 Jan 2005 18:33:01 -0500 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 0A2E18282A9; Tue, 11 Jan 2005 18:33:01 -0500 (EST) Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id DE93E4AC1B2; Tue, 11 Jan 2005 18:32:28 -0500 (EST) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id BA81E8CA69; Tue, 11 Jan 2005 18:32:28 -0500 (EST) Original-To: Nick Roberts In-Reply-To: <16868.24118.468795.219802@farnswood.snap.net.nz> (Nick Roberts's message of "Wed, 12 Jan 2005 12:16:06 +1300") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-4.704, requis 5, AWL 0.20, BAYES_00 -4.90) X-MailScanner-From: monnier@iro.umontreal.ca 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: main.gmane.org gmane.emacs.devel:32144 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:32144 > They are the same co-ordinates as used in window-at i.e in chars and 0 based. > Perhaps I should add: > The top left corner of the frame is considered to be row 0, column 0. > to the documentation. Yes, the docstring should make it clear. It can refer to window-at. >> Also, in what way is it different from (posn-point (posn-at-x-y X Y)) ? >> >> >> Stefan "who's wondering what posn-at-x-y does on a tty" > The posn-* family of commands (posn-point, posn-object etc) only work if > Emacs provides the proper click event in the first place which it doesn't > currently do on a text terminal or xterm. My patches to xt-mouse.el and > t-mouse.el provide them in lisp i.e with these patches the posn-* family > of commands will work on a text terminal or xterm. Try C-h f posn-at-x-y RET Stefan