From: Nicolas Richard <theonewiththeevillook@yahoo.fr>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 14241@debbugs.gnu.org
Subject: bug#14241: 24.3; widgets and posn-at-point
Date: Wed, 24 Apr 2013 13:48:14 +0200 [thread overview]
Message-ID: <87r4i0du9t.fsf@yahoo.fr> (raw)
In-Reply-To: <83ppxlvvzp.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 23 Apr 2013 23:21:30 +0300")
Eli Zaretskii <eliz@gnu.org> writes:
> [Please keep the bug address on the CC line.]
I will do.
>> > M-: (widget-create 'checkbox) RET
>> > C-x =
>> > M-: (forward-char -1) RET
>> > C-x =
>> >
>> > See how point doesn't move?
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.
--
N.
next prev parent reply other threads:[~2013-04-24 11:48 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 [this message]
2013-05-06 17:12 ` Eli Zaretskii
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r4i0du9t.fsf@yahoo.fr \
--to=theonewiththeevillook@yahoo.fr \
--cc=14241@debbugs.gnu.org \
--cc=eliz@gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).