GNU bug report logs - #25091
26.0.50; shr-map hides gnus-article keys

Previous Next

Package: emacs;

Reported by: Katsumi Yamaoka <yamaoka <at> jpl.org>

Date: Fri, 2 Dec 2016 09:10:01 UTC

Severity: normal

Tags: patch

Found in version 26.0.50

Done: Katsumi Yamaoka <yamaoka <at> jpl.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 25091 <at> debbugs.gnu.org (full text, mbox):

From: npostavs <at> users.sourceforge.net
To: Katsumi Yamaoka <yamaoka <at> jpl.org>
Cc: 25091 <at> debbugs.gnu.org,
 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Subject: Re: bug#25091: 26.0.50; shr-map hides gnus-article keys
Date: Fri, 02 Dec 2016 21:26:20 -0500
Katsumi Yamaoka <yamaoka <at> 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




This bug report was last modified 8 years and 163 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.