unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#49635: 28.0.50; project-switch-project dispatch command is overshadowed by evil-mode's g
@ 2021-07-19  4:26 Brian Leung
  2021-07-19 15:28 ` Juri Linkov
  0 siblings, 1 reply; 9+ messages in thread
From: Brian Leung @ 2021-07-19  4:26 UTC (permalink / raw)
  To: 49635

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





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#49635: 28.0.50; project-switch-project dispatch command is overshadowed by evil-mode's g
  2021-07-19  4:26 bug#49635: 28.0.50; project-switch-project dispatch command is overshadowed by evil-mode's g Brian Leung
@ 2021-07-19 15:28 ` Juri Linkov
  2021-07-19 16:29   ` Max Brieiev
  2021-07-19 16:59   ` Dmitry Gutov
  0 siblings, 2 replies; 9+ messages in thread
From: Juri Linkov @ 2021-07-19 15:28 UTC (permalink / raw)
  To: Brian Leung; +Cc: 49635

> 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.





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#49635: 28.0.50; project-switch-project dispatch command is overshadowed by evil-mode's g
  2021-07-19 15:28 ` Juri Linkov
@ 2021-07-19 16:29   ` Max Brieiev
  2021-07-19 16:59   ` Dmitry Gutov
  1 sibling, 0 replies; 9+ messages in thread
From: Max Brieiev @ 2021-07-19 16:29 UTC (permalink / raw)
  To: Juri Linkov; +Cc: 49635, Brian Leung


> 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.





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#49635: 28.0.50; project-switch-project dispatch command is overshadowed by evil-mode's g
  2021-07-19 15:28 ` Juri Linkov
  2021-07-19 16:29   ` Max Brieiev
@ 2021-07-19 16:59   ` Dmitry Gutov
  2021-07-19 18:17     ` Dmitry Gutov
  2021-08-01 20:44     ` Juri Linkov
  1 sibling, 2 replies; 9+ messages in thread
From: Dmitry Gutov @ 2021-07-19 16:59 UTC (permalink / raw)
  To: Juri Linkov, Brian Leung; +Cc: 49635

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?





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#49635: 28.0.50; project-switch-project dispatch command is overshadowed by evil-mode's g
  2021-07-19 16:59   ` Dmitry Gutov
@ 2021-07-19 18:17     ` Dmitry Gutov
  2021-08-01 20:44     ` Juri Linkov
  1 sibling, 0 replies; 9+ messages in thread
From: Dmitry Gutov @ 2021-07-19 18:17 UTC (permalink / raw)
  To: Juri Linkov, Brian Leung; +Cc: 49635

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?





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#49635: 28.0.50; project-switch-project dispatch command is overshadowed by evil-mode's g
  2021-07-19 16:59   ` Dmitry Gutov
  2021-07-19 18:17     ` Dmitry Gutov
@ 2021-08-01 20:44     ` Juri Linkov
  2021-08-01 23:40       ` Dmitry Gutov
  2021-08-02 13:56       ` Brian Leung
  1 sibling, 2 replies; 9+ messages in thread
From: Juri Linkov @ 2021-08-01 20:44 UTC (permalink / raw)
  To: Dmitry Gutov; +Cc: 49635, Brian Leung

>> 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.





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#49635: 28.0.50; project-switch-project dispatch command is overshadowed by evil-mode's g
  2021-08-01 20:44     ` Juri Linkov
@ 2021-08-01 23:40       ` Dmitry Gutov
  2021-08-02 13:56       ` Brian Leung
  1 sibling, 0 replies; 9+ messages in thread
From: Dmitry Gutov @ 2021-08-01 23:40 UTC (permalink / raw)
  To: Juri Linkov; +Cc: 49635, Brian Leung

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.





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#49635: 28.0.50; project-switch-project dispatch command is overshadowed by evil-mode's g
  2021-08-01 20:44     ` Juri Linkov
  2021-08-01 23:40       ` Dmitry Gutov
@ 2021-08-02 13:56       ` Brian Leung
  2021-08-02 13:57         ` Dmitry Gutov
  1 sibling, 1 reply; 9+ messages in thread
From: Brian Leung @ 2021-08-02 13:56 UTC (permalink / raw)
  To: Juri Linkov, Dmitry Gutov; +Cc: 49635

Thanks, I can confirm this fixes my issue.

> ----------------------------------------
> From: Juri Linkov <juri@linkov.net>
> Sent: Sun Aug 01 22:44:52 CEST 2021
> To: Dmitry Gutov <dgutov@yandex.ru>
> Cc: Brian Leung <leungbk@mailfence.com>, <49635@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





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#49635: 28.0.50; project-switch-project dispatch command is overshadowed by evil-mode's g
  2021-08-02 13:56       ` Brian Leung
@ 2021-08-02 13:57         ` Dmitry Gutov
  0 siblings, 0 replies; 9+ messages in thread
From: Dmitry Gutov @ 2021-08-02 13:57 UTC (permalink / raw)
  To: Brian Leung, Juri Linkov; +Cc: 49635-done

On 02.08.2021 16:56, Brian Leung wrote:
> Thanks, I can confirm this fixes my issue.

Thanks for checking, closing.





^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-08-02 13:57 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-19  4:26 bug#49635: 28.0.50; project-switch-project dispatch command is overshadowed by evil-mode's g Brian Leung
2021-07-19 15:28 ` Juri Linkov
2021-07-19 16:29   ` Max Brieiev
2021-07-19 16:59   ` Dmitry Gutov
2021-07-19 18:17     ` Dmitry Gutov
2021-08-01 20:44     ` Juri Linkov
2021-08-01 23:40       ` Dmitry Gutov
2021-08-02 13:56       ` Brian Leung
2021-08-02 13:57         ` Dmitry Gutov

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).