From: martin rudalics <rudalics@gmx.at>
To: "Jérémy Compostella" <jeremy.compostella@gmail.com>
Cc: Sylvain Rousseau <thisirs@gmail.com>, emacs-devel@gnu.org
Subject: Re: [PATCH] windmove.el: Fix windmove-reference-loc miscalculation
Date: Fri, 20 Jan 2012 19:07:51 +0100 [thread overview]
Message-ID: <4F19AD77.5000705@gmx.at> (raw)
In-Reply-To: <CA+TATJH4BeQ3si3SNsJwN0+BeYNgsBzt_bU5fv5zWHk5ntFpPQ@mail.gmail.com>
> Effectively the issue is only windmove.el related.
So IIUC the issue is that `windmove-reference-loc'
(windmove-coord-add
top-left
(let ((col-row
(posn-col-row
(posn-at-point (window-point window) window))))
(cons (- (car col-row) (window-hscroll window))
(cdr col-row)))))))))
wrongly subtracts the value returned by `window-hscroll' from a column
value correctly calculated by `posn-at-point' (window_box_left_offset)?
In this case I think your patch is correct.
martin
next prev parent reply other threads:[~2012-01-20 18:07 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-19 21:57 [PATCH] windmove.el: Fix windmove-reference-loc miscalculation Jérémy Compostella
2012-01-20 10:01 ` martin rudalics
2012-01-20 16:16 ` Sylvain Rousseau
2012-01-20 16:55 ` Jérémy Compostella
2012-01-20 18:07 ` martin rudalics [this message]
2012-01-20 18:14 ` Jérémy Compostella
2012-01-21 10:05 ` Jérémy Compostella
2012-01-21 10:13 ` martin rudalics
2012-01-20 18:07 ` martin rudalics
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=4F19AD77.5000705@gmx.at \
--to=rudalics@gmx.at \
--cc=emacs-devel@gnu.org \
--cc=jeremy.compostella@gmail.com \
--cc=thisirs@gmail.com \
/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).