unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Daniel McClanahan <danieldmcclanahan@gmail.com>,
	Tassilo Horn <tsdh@gnu.org>
Cc: 21732@debbugs.gnu.org
Subject: bug#21732: 25.0.50; intermittent failure using windmove when in doc-view buffer
Date: Sat, 24 Oct 2015 11:21:32 +0200	[thread overview]
Message-ID: <562B4D9C.8050103@gmx.at> (raw)
In-Reply-To: <562B3A2D.9060705@gmx.at>

 > There replace the line
 >
 >         ((let ((posn-cons (nth 2 (posn-at-point (window-point window) window))))
 >
 > by a form like

Better use

            ((let ((posn-cons (nth 2 (posn-at-point (window-point window) window))))
               (let ((my-value (if hor (cdr posn-cons) (car posn-cons))))
                 (when (or (not my-value) (< my-value 0))
                   (setq my-variable
                         (cons
                          (format "window: %s direction : %s sign: %s wrap: %s mini: %s posn-cons: %s"
                                  window direction sign wrap mini posn-cons)
                          my-variable))))

instead so we won't confuse horizontal and vertical selections.

martin






  reply	other threads:[~2015-10-24  9:21 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-22  7:12 bug#21732: 25.0.50; intermittent failure using windmove when in doc-view buffer Daniel McClanahan
2015-10-22 10:05 ` martin rudalics
2015-10-22 14:56 ` Eli Zaretskii
2015-10-23  3:52   ` Daniel McClanahan
2015-10-23  5:43     ` Tassilo Horn
2015-10-23 18:22       ` Daniel McClanahan
2015-10-23 19:28         ` Tassilo Horn
2015-10-24  7:58         ` martin rudalics
2015-10-24  9:21           ` martin rudalics [this message]
2015-11-07  9:51             ` Daniel McClanahan
2015-11-07 12:30               ` Eli Zaretskii
2015-11-09  1:53                 ` Daniel McClanahan
2015-11-09  8:26                   ` 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=562B4D9C.8050103@gmx.at \
    --to=rudalics@gmx.at \
    --cc=21732@debbugs.gnu.org \
    --cc=danieldmcclanahan@gmail.com \
    --cc=tsdh@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).