GNU bug report logs - #49635
28.0.50; project-switch-project dispatch command is overshadowed by evil-mode's g

Previous Next

Package: emacs;

Reported by: Brian Leung <leungbk <at> mailfence.com>

Date: Mon, 19 Jul 2021 04:27:02 UTC

Severity: normal

Found in version 28.0.50

Done: Dmitry Gutov <dgutov <at> yandex.ru>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 49635 in the body.
You can then email your comments to 49635 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#49635; Package emacs. (Mon, 19 Jul 2021 04:27:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Brian Leung <leungbk <at> mailfence.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 19 Jul 2021 04:27:02 GMT) Full text and rfc822 format available.

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

From: Brian Leung <leungbk <at> mailfence.com>
To: Bug Gnu Emacs <bug-gnu-emacs <at> gnu.org>
Subject: 28.0.50; project-switch-project dispatch command is overshadowed by
 evil-mode's g
Date: Mon, 19 Jul 2021 06:26:26 +0200 (CEST)
When evil-mode is on, if I run project-switch-project and press the "g"
key to attempt to execute the "Find regexp" action, I find that the key
is intercepted, presumably by evil-mode, which uses "g" as a prefix key.


In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.27, cairo version 1.16.0)
Repository revision: 13b247c3c48a3e8b64ece8d4014c484473c8e362
Repository branch: master
System Description: NixOS 21.11 (Porcupine)

Configured using:
 'configure
 --prefix=/nix/store/j1zwijfy4dy0rh7zgfdqsy34l7rfy9p9-emacs-git-20210718.0
 --disable-build-details --with-modules --with-x-toolkit=gtk3 --with-xft
 --with-cairo'

Configured features:
CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON
LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY
PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE
XIM XPM GTK3 ZLIB

Important settings:
  value of $EMACSLOADPATH: 
  value of $EMACSNATIVELOADPATH: /nix/store/7f9y13czyww9pngrfzwqk517kgv2qz82-emacs-packages-deps/share/emacs/native-lisp::
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Fundamental

Minor modes in effect:
  shell-dirtrack-mode: t
  evil-mode: t
  evil-local-mode: t
  windmove-mode: t
  gpm-mouse-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t

Load-path shadows:
/run/current-system/sw/share/emacs/site-lisp/site-start hides /nix/store/7f9y13czyww9pngrfzwqk517kgv2qz82-emacs-packages-deps/share/emacs/site-lisp/site-start
/run/current-system/sw/share/emacs/site-lisp/site-start hides /nix/store/j1zwijfy4dy0rh7zgfdqsy34l7rfy9p9-emacs-git-20210718.0/share/emacs/site-lisp/site-start

Features:
(shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs
rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail
rmail-loaddefs auth-source eieio eieio-core cl-macs eieio-loaddefs
password-cache json map text-property-search time-date subr-x mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils
project cl-seq evil evil-keybindings evil-integration evil-maps
evil-commands reveal flyspell ispell evil-jumps evil-command-window
evil-types evil-search evil-ex shell pcomplete comint ansi-color
evil-macros evil-repeat evil-states evil-core advice evil-common
windmove calc calc-loaddefs calc-macs thingatpt rect evil-digraphs
evil-vars ring edmacro kmacro cl-loaddefs cl-lib t-mouse term/linux seq
byte-opt gv bytecomp byte-compile cconv iso-transl tooltip eldoc
electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win
x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu
timer select scroll-bar mouse jit-lock font-lock syntax font-core
term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese composite charscript charprop case-table epa-hook
jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button
loaddefs faces cus-face macroexp files window text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote threads dbusbind inotify
dynamic-setting system-font-setting font-render-setting cairo
move-toolbar gtk x-toolkit x multi-tty make-network-process emacs)

Memory information:
((conses 16 92430 10069)
 (symbols 48 10461 1)
 (strings 32 28638 1990)
 (string-bytes 1 951259)
 (vectors 16 17734)
 (vector-slots 8 184997 6299)
 (floats 8 30 298)
 (intervals 56 421 1)
 (buffers 992 12))


-- 
Sent with https://mailfence.com
Secure and private email

-- 
Mailfence.com
Private and secure email




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#49635; Package emacs. (Mon, 19 Jul 2021 15:44:03 GMT) Full text and rfc822 format available.

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

From: Juri Linkov <juri <at> linkov.net>
To: Brian Leung <leungbk <at> mailfence.com>
Cc: 49635 <at> debbugs.gnu.org
Subject: Re: bug#49635: 28.0.50; project-switch-project dispatch command is
 overshadowed by evil-mode's g
Date: Mon, 19 Jul 2021 18:28:31 +0300
> When evil-mode is on, if I run project-switch-project and press the "g"
> key to attempt to execute the "Find regexp" action, I find that the key
> is intercepted, presumably by evil-mode, which uses "g" as a prefix key.

Instead of read-key-sequence, project-switch-project could use
read-char-from-minibuffer, or read-multiple-choice, or read-answer, etc.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#49635; Package emacs. (Mon, 19 Jul 2021 16:31:02 GMT) Full text and rfc822 format available.

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

From: Max Brieiev <max.brieiev <at> gmail.com>
To: Juri Linkov <juri <at> linkov.net>
Cc: 49635 <at> debbugs.gnu.org, Brian Leung <leungbk <at> mailfence.com>
Subject: Re: bug#49635: 28.0.50; project-switch-project dispatch command is
 overshadowed by evil-mode's g
Date: Mon, 19 Jul 2021 19:29:53 +0300
> When evil-mode is on, if I run project-switch-project and press the "g"
> key to attempt to execute the "Find regexp" action, I find that the key
> is intercepted, presumably by evil-mode, which uses "g" as a prefix key.

Same happens if an input method is active, when 'project-switch-project'
is run.

In most buffers, where "keys-without-modifier-bits" act as a key
bindings (like in help buffer or dired) -- currently active input method
is ignored, which is the right thing, so I can continue pressing non
modified keys and expect them to act as keybindings.

But in some other cases, mostly when I have to press the key to choose
some action from a menu as with 'project-switch-project' -- the behavior
is sort of random and it looks like it depends on whether some input
method was active in a previously selected buffer/window.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#49635; Package emacs. (Mon, 19 Jul 2021 17:00:02 GMT) Full text and rfc822 format available.

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

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Juri Linkov <juri <at> linkov.net>, Brian Leung <leungbk <at> mailfence.com>
Cc: 49635 <at> debbugs.gnu.org
Subject: Re: bug#49635: 28.0.50; project-switch-project dispatch command is
 overshadowed by evil-mode's g
Date: Mon, 19 Jul 2021 19:59:00 +0300
On 19.07.2021 18:28, Juri Linkov wrote:
> Instead of read-key-sequence, project-switch-project could use
> read-char-from-minibuffer, or read-multiple-choice, or read-answer, etc.

Would using any of them solve the problem? Which one would fix the 
existing code better?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#49635; Package emacs. (Mon, 19 Jul 2021 18:18:01 GMT) Full text and rfc822 format available.

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

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Juri Linkov <juri <at> linkov.net>, Brian Leung <leungbk <at> mailfence.com>
Cc: 49635 <at> debbugs.gnu.org
Subject: Re: bug#49635: 28.0.50; project-switch-project dispatch command is
 overshadowed by evil-mode's g
Date: Mon, 19 Jul 2021 21:17:32 +0300
Sorry,

On 19.07.2021 19:59, Dmitry Gutov wrote:
> On 19.07.2021 18:28, Juri Linkov wrote:
>> Instead of read-key-sequence, project-switch-project could use
>> read-char-from-minibuffer, or read-multiple-choice, or read-answer, etc.
> 
> Would using any of them solve the problem? Which one would fix the 
                                                             ^
                                                              fit
> existing code better?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#49635; Package emacs. (Sun, 01 Aug 2021 20:46:02 GMT) Full text and rfc822 format available.

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

From: Juri Linkov <juri <at> linkov.net>
To: Dmitry Gutov <dgutov <at> yandex.ru>
Cc: 49635 <at> debbugs.gnu.org, Brian Leung <leungbk <at> mailfence.com>
Subject: Re: bug#49635: 28.0.50; project-switch-project dispatch command is
 overshadowed by evil-mode's g
Date: Sun, 01 Aug 2021 23:44:52 +0300
>> Instead of read-key-sequence, project-switch-project could use
>> read-char-from-minibuffer, or read-multiple-choice, or read-answer, etc.
>
> Would using any of them solve the problem? Which one would fix the existing
> code better?

Actually, there was a bug in project-switch-project
that is fixed now by commit a6f67d60e1.

Please verify if everything works now.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#49635; Package emacs. (Sun, 01 Aug 2021 23:41:01 GMT) Full text and rfc822 format available.

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

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Juri Linkov <juri <at> linkov.net>
Cc: 49635 <at> debbugs.gnu.org, Brian Leung <leungbk <at> mailfence.com>
Subject: Re: bug#49635: 28.0.50; project-switch-project dispatch command is
 overshadowed by evil-mode's g
Date: Mon, 2 Aug 2021 02:40:16 +0300
On 01.08.2021 23:44, Juri Linkov wrote:
> Actually, there was a bug in project-switch-project
> that is fixed now by commit a6f67d60e1.

Thanks, Juri!

> Please verify if everything works now.

Waiting for Brian's reply.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#49635; Package emacs. (Mon, 02 Aug 2021 13:58:01 GMT) Full text and rfc822 format available.

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

From: Brian Leung <leungbk <at> mailfence.com>
To: Juri Linkov <juri <at> linkov.net>, Dmitry Gutov <dgutov <at> yandex.ru>
Cc: 49635 <at> debbugs.gnu.org
Subject: Re: bug#49635: 28.0.50; project-switch-project dispatch command is
 overshadowed by evil-mode's g
Date: Mon, 2 Aug 2021 15:56:53 +0200 (CEST)
Thanks, I can confirm this fixes my issue.

> ----------------------------------------
> From: Juri Linkov <juri <at> linkov.net>
> Sent: Sun Aug 01 22:44:52 CEST 2021
> To: Dmitry Gutov <dgutov <at> yandex.ru>
> Cc: Brian Leung <leungbk <at> mailfence.com>, <49635 <at> debbugs.gnu.org>
> Subject: Re: bug#49635: 28.0.50; project-switch-project dispatch command is overshadowed by evil-mode's g
> 
> 
> >> Instead of read-key-sequence, project-switch-project could use
> >> read-char-from-minibuffer, or read-multiple-choice, or read-answer, etc.
> >
> > Would using any of them solve the problem? Which one would fix the existing
> > code better?
> 
> Actually, there was a bug in project-switch-project
> that is fixed now by commit a6f67d60e1.
> 
> Please verify if everything works now.


-- 
Sent with https://mailfence.com
Secure and private email

-- 
Mailfence.com
Private and secure email




Reply sent to Dmitry Gutov <dgutov <at> yandex.ru>:
You have taken responsibility. (Mon, 02 Aug 2021 13:58:02 GMT) Full text and rfc822 format available.

Notification sent to Brian Leung <leungbk <at> mailfence.com>:
bug acknowledged by developer. (Mon, 02 Aug 2021 13:58:02 GMT) Full text and rfc822 format available.

Message #31 received at 49635-done <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Brian Leung <leungbk <at> mailfence.com>, Juri Linkov <juri <at> linkov.net>
Cc: 49635-done <at> debbugs.gnu.org
Subject: Re: bug#49635: 28.0.50; project-switch-project dispatch command is
 overshadowed by evil-mode's g
Date: Mon, 2 Aug 2021 16:57:47 +0300
On 02.08.2021 16:56, Brian Leung wrote:
> Thanks, I can confirm this fixes my issue.

Thanks for checking, closing.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 31 Aug 2021 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 238 days ago.

Previous Next


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