all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@linkov.net>
To: 50644@debbugs.gnu.org
Subject: bug#50644: Ungrokkable argument names in string-replace
Date: Fri, 17 Sep 2021 19:08:42 +0300	[thread overview]
Message-ID: <87lf3vjm8x.fsf@mail.linkov.net> (raw)

Especially INSTRING is hard to parse in:

 -- Function: string-replace fromstring tostring instring
     This function replaces all occurrences of FROMSTRING with TOSTRING
     in INSTRING and returns the result.  It may return one of its
     arguments unchanged, a constant string or a new string.  Case is
     significant, and text properties are ignored.

Whereas other functions like perform-replace use ‘-’ to separate words,
e.g. “FROM-STRING”:

 -- Function: perform-replace from-string replacements query-flag
          regexp-flag delimited-flag &optional repeat-count map start
          end backward region-noncontiguous-p
     This function is the guts of ‘query-replace’ and related commands.
     It searches for occurrences of FROM-STRING in the text between





             reply	other threads:[~2021-09-17 16:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-17 16:08 Juri Linkov [this message]
2021-09-17 16:25 ` bug#50644: Ungrokkable argument names in string-replace Lars Ingebrigtsen

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

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

  git send-email \
    --in-reply-to=87lf3vjm8x.fsf@mail.linkov.net \
    --to=juri@linkov.net \
    --cc=50644@debbugs.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.
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.