mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 18:40:39 -08:00
* lisp/subr.el (string-replace): Add dashes to arg names (bug#50644)
* lisp/net/tramp-compat.el (tramp-compat-string-replace): Idem. * doc/lispref/searching.texi (Search and Replace): Idem.
This commit is contained in:
parent
acba74a395
commit
4b3dc7a139
3 changed files with 15 additions and 15 deletions
|
|
@ -359,10 +359,10 @@ CONDITION can also be a list of error conditions."
|
|||
(defalias 'tramp-compat-string-replace
|
||||
(if (fboundp 'string-replace)
|
||||
#'string-replace
|
||||
(lambda (fromstring tostring instring)
|
||||
(lambda (from-string to-string in-string)
|
||||
(let ((case-fold-search nil))
|
||||
(replace-regexp-in-string
|
||||
(regexp-quote fromstring) tostring instring t t)))))
|
||||
(regexp-quote from-string) to-string in-string t t)))))
|
||||
|
||||
;; Function `string-search' is new in Emacs 28.1.
|
||||
(defalias 'tramp-compat-string-search
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue