unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Quote marked region [utilities]
Date: Sun, 28 Mar 2021 13:29:08 +0300	[thread overview]
Message-ID: <838s67o9l7.fsf@gnu.org> (raw)
In-Reply-To: <YGBYm9i6XjvifyzO@protected.localdomain> (message from Jean Louis on Sun, 28 Mar 2021 13:21:15 +0300)

> Date: Sun, 28 Mar 2021 13:21:15 +0300
> From: Jean Louis <bugs@gnu.support>
> Cc: help-gnu-emacs@gnu.org
> 
> > See combine-and-quote-strings.  (Did you try using "M-x apropos" to
> > find something like that?)
> 
> `combine-and-quote-strings' seem handy for lists of strings. It is not
> interactive function that works on region, and my function does not
> yet work on list of strings

But it's trivial to make use of combine-and-quote-strings, coupled
with buffer-substring, to produce a command that works on the region,
no?

> M-x apropos is definitely useful, but I have not tried searching that
> way. I have tried in a different way by using `C-h f' with joker
> symbol `*' and `quote' with TAB, for example, it looks like:

That's much less efficient.  Try this instead:

  M-x apropos RET string quote RET



  reply	other threads:[~2021-03-28 10:29 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-28  9:59 Quote marked region [utilities] Jean Louis
2021-03-28 10:06 ` Eli Zaretskii
2021-03-28 10:09   ` Eli Zaretskii
2021-03-28 10:21   ` Jean Louis
2021-03-28 10:29     ` Eli Zaretskii [this message]
2021-03-28 10:38       ` Jean Louis
2021-03-28 10:23   ` Jean Louis
2021-03-28 10:30     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=838s67o9l7.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).