emacs-devel
[Top][All Lists]
Advanced

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

Re: New primitive buffer-position-at


From: Nick Roberts
Subject: Re: New primitive buffer-position-at
Date: Wed, 12 Jan 2005 12:16:06 +1300

 > > +        doc: /* Return the buffer position at coordinates X and Y in 
 > > WINDOW.
 > > + If omitted, WINDOW defaults to the currently selected WINDOW. */)
 > 
 > Could you describe more precisely what the coordinates are (in pixels or
 > chars?  1 or 0 based? relative to the the farme or window? ...).

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.


 > 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.

Nick




reply via email to

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