all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#60741: 29.0.60; 'M-c' shadowed in the minibuffer
@ 2023-01-11 19:54 Juri Linkov
  2023-01-18 18:06 ` Juri Linkov
  0 siblings, 1 reply; 7+ messages in thread
From: Juri Linkov @ 2023-01-11 19:54 UTC (permalink / raw)
  To: 60741

etc/NEWS:

  +++
  ** 'M-c' in 'read-regexp' now toggles case folding.

'M-c' is bound globally to 'capitalize-word', but this keybinding
is shadowed in the minibuffer, thus making it impossible to
capitalize words.

Isearch had this problem for a long time but now it's already solved with:

  (put 'isearch-toggle-case-fold :advertised-binding "\M-sc")

where 'M-s c' is used to toggle search case-sensitivity.

So to avoid the problem the same could be done in 'read-regexp':

```
diff --git a/lisp/replace.el b/lisp/replace.el
index 2f063bbf66b..9471435bda3 100644
--- a/lisp/replace.el
+++ b/lisp/replace.el
@@ -824,7 +830,7 @@ read-regexp-suggestions
 
 (defvar-keymap read-regexp-map
   :parent minibuffer-local-map
-  "M-c" #'read-regexp-toggle-case-folding)
+  "M-s c" #'read-regexp-toggle-case-folding)
 
 (defvar read-regexp--case-fold nil)
 
```





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

end of thread, other threads:[~2023-01-19  7:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-11 19:54 bug#60741: 29.0.60; 'M-c' shadowed in the minibuffer Juri Linkov
2023-01-18 18:06 ` Juri Linkov
2023-01-18 18:46   ` Drew Adams
2023-01-18 18:52     ` Juri Linkov
2023-01-18 18:59       ` Drew Adams
2023-01-19  5:34     ` Jean Louis
2023-01-19  7:25       ` Eli Zaretskii

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.