From: Drew Adams <drew.adams@oracle.com>
To: npostavs@users.sourceforge.net
Cc: Vincent Lefevre <vincent@vinc17.net>, Alex <agrambot@gmail.com>,
23007@debbugs.gnu.org
Subject: bug#23007: 24.5; buggy interactive search with middle click
Date: Mon, 29 May 2017 18:07:49 -0700 (PDT) [thread overview]
Message-ID: <4b54dcb3-c907-4edd-aaaf-d1e9088f97f3@default> (raw)
In-Reply-To: <87d1ar412z.fsf@users.sourceforge.net>
> >> > + (let ((overriding-terminal-local-map nil))
> >> > + (setq binding (key-binding (this-command-keys-vector) t)))
> >>
> >> IMO, it would be better style to do something like
> >>
> >> (let ((binding (let ((overriding-terminal-local-map nil))
> >> (key-binding (this-command-keys-vector) t))))
> >> ...)
> >
> > (let* ((overriding-terminal-local-map nil)
> > (binding (key-binding (this-command-keys-vector) t)))
> > ...)
>
> Check https://urldefense.proofpoint.com/v2/url?u=https-
> 3A__debbugs.gnu.org_cgi_bugreport.cgi-3Fbug-3D23007-
> 238&d=DwIBAg&c=RoP1YumCXCgaWHvlZYR8PQcxBKCX5YTpkKY057SbK10&r=qZLZosY6GBAaJtO
> G9v8QX7nD4BS9t9s5otgxC3d4IFU&m=eZ-Uw6bQQfS-_CFDf_e3zupcjOhlrCnDnq5pNm6-
> bao&s=e0BQOMr3F7kitlASNZ_EMEy-LvwMn0CsRuZUecvrYZg&e= , we need to
> avoid binding `overriding-terminal-local-map' in "...".
Clearly I, like you, meant that this let is for only the second
`if' clause. But these are only style differences.
If it were I, I'd also move the let-binding that is used only
in the first `if' clause into the `if' test. (And I'd ensure
that there is in fact a mark.)
(if (let ((win (posn-window (event-start click))))
(and (window-minibuffer-p win)
(not (minibuffer-window-active-p win))
(mark)))
(isearch-yank-x-selection)
(let* ((overriding-terminal-local-map nil)
(binding (key-binding (this-command-keys-vector) t)))
(when (functionp binding) (call-interactively binding))))
next prev parent reply other threads:[~2017-05-30 1:07 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-14 3:10 bug#23007: 24.5; buggy interactive search with middle click Vincent Lefevre
2017-05-29 19:56 ` Alex
2017-05-29 23:56 ` npostavs
2017-05-30 0:41 ` Drew Adams
2017-05-30 0:53 ` npostavs
2017-05-30 1:07 ` Drew Adams [this message]
2017-05-30 1:28 ` npostavs
2017-05-30 2:04 ` Drew Adams
2017-05-30 2:47 ` Alex
2017-05-30 4:44 ` Drew Adams
2017-05-30 11:47 ` npostavs
2017-06-01 22:09 ` npostavs
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=4b54dcb3-c907-4edd-aaaf-d1e9088f97f3@default \
--to=drew.adams@oracle.com \
--cc=23007@debbugs.gnu.org \
--cc=agrambot@gmail.com \
--cc=npostavs@users.sourceforge.net \
--cc=vincent@vinc17.net \
/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).