[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem with posn-at-point
From: |
Kim F. Storm |
Subject: |
Re: Problem with posn-at-point |
Date: |
Fri, 14 Oct 2005 00:43:07 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
I have installed fixes to solve the reported problems.
Notice that posn-at-point will now return nil if point is not
visible in the window (also if hscrolled out of view).
"LaserDoodads Info" <address@hidden> writes:
> With the cursor in column 10 or greater on any line of text and no horizontal
> scrolling in effect
>
> M-: (car (nth 6 (posn-at-point))) <ret>
>
> I get the value I expect. That is, (current-column).
>
> Now do M-: (scroll-left)
> M-: (car (nth 6 (posn-at-point))) <ret>
>
> The position returned is (- (current-column) 10).
> Very strange considering (window-hscroll) is 105 at the moment.
>
> If (current-column) is less than 10 when you do
>
> M-: (scroll-left)
> M-: (car (nth 6 (posn-at-point))) <ret>
>
> The following error occurs
>
> Debugger entered--Lisp error: (wrong-type-argument wholenump -62)
> posn-at-point()
> (nth 6 (posn-at-point))
> eval((nth 6 (posn-at-point)))
> eval-expression((nth 6 (posn-at-point)) nil)
> call-interactively(eval-expression)
--
Kim F. Storm <address@hidden> http://www.cua.dk