emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master 027fecb24b 2/3: Add a `M-c' command to `read-regexp'


From: Stefan Kangas
Subject: Re: master 027fecb24b 2/3: Add a `M-c' command to `read-regexp'
Date: Tue, 5 Jul 2022 18:03:32 +0200

Lars Ingebrigtsen <larsi@gnus.org> writes:

> branch: master
> commit 027fecb24bb0a17543efb0ef63bb7b160e2630d1
> Author: Lars Ingebrigtsen <larsi@gnus.org>
> Commit: Lars Ingebrigtsen <larsi@gnus.org>
>
>     Add a `M-c' command to `read-regexp'
>
>     * doc/lispref/minibuf.texi (Text from Minibuffer): Document it.
>
>     * lisp/replace.el (read-regexp): Add a `M-c' command to indicate
>     case folding (bug#16913).
[snip]
> +                 (define-keymap
> +                   :parent minibuffer-local-map
> +                   "M-c" (lambda ()
> +                           (interactive)
> +                           (setq case-fold
> +                                 (if (or (eq case-fold 'fold)
> +                                         (and case-fold
> +                                              (not (eq case-fold
> +                                                       'inhibit-fold))))
> +                                     'inhibit-fold
> +                                   'fold))
> +                           (message "Case folding is now %s"
> +                                    (if (eq case-fold 'fold)
> +                                        "on"
> +                                      "off"))))

I have two questions:
- How do I turn this off?  I find that it conflicts with `capitalize-word'
  (actually, `capitalize-dwim' in my case).
- Could we make this a named function so that `C-h k M-c' works?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]