* lisp/subr.el (replace-in-string): Clean up previous fix slightly.
(push (substring instring start pos) result))
(push tostring result)
(setq start (+ pos (length fromstring))))
+ ;; Get any remaining bit.
(unless (= start (length instring))
- (push (substring instring start pos) result))
+ (push (substring instring start) result))
(apply #'concat (nreverse result))))
(defun replace-regexp-in-string (regexp rep string &optional