all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Nicolas Richard <theonewiththeevillook@yahoo.fr>
Cc: 14241@debbugs.gnu.org
Subject: bug#14241: 24.3; widgets and posn-at-point
Date: Mon, 06 May 2013 20:12:53 +0300	[thread overview]
Message-ID: <83a9o8f2wa.fsf@gnu.org> (raw)
In-Reply-To: <87r4i0du9t.fsf@yahoo.fr>

> From: Nicolas Richard <theonewiththeevillook@yahoo.fr>
> Cc: 14241@debbugs.gnu.org
> Date: Wed, 24 Apr 2013 13:48:14 +0200
> 
> Ok, I think I now fully understand your recipe. My own recipe was in
> fact over-simplified for what I wanted to show. 
> 
> So I now change '-1' to '-3' in it, i.e. :
> 
> (let (oposn opoint)
>   (widget-create 'checkbox) ; point is left after the widget
>   (setq oposn (posn-at-point)
>         opoint (point))
>   (forward-char -3) ; cursor now on the widget.
>   (message "Old: %s (Point at %d)\nNew: %s (Point at %d)"
> 	   oposn opoint
> 	   (posn-at-point) (point)))
> 
> and that still shows the surprising result. In other words, if in a
> blank buffer I do
> M-: (progn
>   (widget-create 'checkbox)
>   (goto-char (point-min))
>   (posn-x-y (posn-at-point))) ;; or (pos-visible-in-window-p nil nil t)
> then I do not get (0 0) -- that is is unexpected to me.

That was a bug, albeit a very old one.  I fixed it now in trunk
revision 112480.





      reply	other threads:[~2013-05-06 17:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-22 10:00 bug#14241: 24.3; widgets and posn-at-point Nicolas Richard
2013-04-22 17:39 ` Eli Zaretskii
     [not found]   ` <5176A068.7000201@yahoo.fr>
2013-04-23 20:21     ` Eli Zaretskii
2013-04-24 11:48       ` Nicolas Richard
2013-05-06 17:12         ` Eli Zaretskii [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83a9o8f2wa.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=14241@debbugs.gnu.org \
    --cc=theonewiththeevillook@yahoo.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.