unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: master 027fecb24b 2/3: Add a `M-c' command to `read-regexp'
       [not found] ` <20220613133320.1882EC01683@vcs2.savannah.gnu.org>
@ 2022-07-05 16:03   ` Stefan Kangas
  2022-07-05 16:27     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Kangas @ 2022-07-05 16:03 UTC (permalink / raw)
  To: Emacs developers, Lars Ingebrigtsen

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?



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

* Re: master 027fecb24b 2/3: Add a `M-c' command to `read-regexp'
  2022-07-05 16:03   ` master 027fecb24b 2/3: Add a `M-c' command to `read-regexp' Stefan Kangas
@ 2022-07-05 16:27     ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2022-07-05 16:27 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: Emacs developers

Stefan Kangas <stefan@marxist.se> writes:

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

I've now made this stuff into a normal keymap and command.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



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

end of thread, other threads:[~2022-07-05 16:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <165512719930.17701.15874983710614952117@vcs2.savannah.gnu.org>
     [not found] ` <20220613133320.1882EC01683@vcs2.savannah.gnu.org>
2022-07-05 16:03   ` master 027fecb24b 2/3: Add a `M-c' command to `read-regexp' Stefan Kangas
2022-07-05 16:27     ` Lars Ingebrigtsen

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