From: Basil L. Contovounesios Date: Mon, 21 Dec 2020 22:34:33 +0000 (+0000) Subject: Tiny string-clean-whitespace simplification X-Git-Tag: emacs-28.0.90~4622 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=27fab4b140c57a82fac6864bbae0fd9ae1ef363c;p=emacs.git Tiny string-clean-whitespace simplification * lisp/emacs-lisp/subr-x.el (string-clean-whitespace): Streamline by treating replacement string as being literal and having fixed case. --- diff --git a/lisp/emacs-lisp/subr-x.el b/lisp/emacs-lisp/subr-x.el index 1c8e1d6293f..aa39fc1538f 100644 --- a/lisp/emacs-lisp/subr-x.el +++ b/lisp/emacs-lisp/subr-x.el @@ -270,7 +270,7 @@ All sequences of whitespaces in STRING are collapsed into a single space character, and leading/trailing whitespace is removed." (let ((blank "[[:blank:]\n]+")) - (string-trim (replace-regexp-in-string blank " " string) + (string-trim (replace-regexp-in-string blank " " string t t) blank blank))) (defun string-fill (string length)