all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: npostavs@users.sourceforge.net
To: Katsumi Yamaoka <yamaoka@jpl.org>
Cc: 25091@debbugs.gnu.org, "積丹尼 Dan Jacobson" <jidanni@jidanni.org>
Subject: bug#25091: 26.0.50; shr-map hides gnus-article keys
Date: Fri, 02 Dec 2016 21:26:20 -0500	[thread overview]
Message-ID: <874m2lhho3.fsf@users.sourceforge.net> (raw)
In-Reply-To: <b4ma8cebsvc.fsf@jpl.org> (Katsumi Yamaoka's message of "Fri, 02 Dec 2016 18:08:39 +0900")

Katsumi Yamaoka <yamaoka@jpl.org> writes:

>
> I'm not quite sure if it is the right way, but tried fixing it
> as follows:

[...]

> +      (let ((command (lookup-key (current-local-map) (this-command-keys))))
> +	(unless (and command
> +		     (condition-case nil
> +			 (progn (call-interactively command) t)
> +		       (error nil)))
> +	  (goto-char start)
> +	  (message "No next link"))))

There's a similar attempt in yasnippet to try use the original binding.
It's generally been troublesome.  I'm planning to switch it to use a
conditional binding as described at [1].

(define-key <map> <key>
  `(menu-item "" <my-cmd> :filter ,(lambda (cmd) (if <my-predicate> cmd))))

[1]: http://stackoverflow.com/questions/16090517/elisp-conditionally-change-keybinding/22863701#22863701





  reply	other threads:[~2016-12-03  2:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-02  9:08 bug#25091: 26.0.50; shr-map hides gnus-article keys Katsumi Yamaoka
2016-12-03  2:26 ` npostavs [this message]
2016-12-05  6:57   ` Katsumi Yamaoka
2016-12-05 14:06     ` npostavs
2016-12-05 22:59       ` Katsumi Yamaoka

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=874m2lhho3.fsf@users.sourceforge.net \
    --to=npostavs@users.sourceforge.net \
    --cc=25091@debbugs.gnu.org \
    --cc=jidanni@jidanni.org \
    --cc=yamaoka@jpl.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 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.