1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-11 16:08:13 +00:00

(match-string): Fix braino.

This commit is contained in:
Richard M. Stallman 1995-01-28 09:04:02 +00:00
parent 1c738407e3
commit b3f6bcbdad

View File

@ -887,8 +887,8 @@ Wildcards and redirection are handled as usual in the shell."
If the last search or match was done against a string,
specify that string as the second argument STRING."
(if string
(substring string (match-beginning 0) (match-end 0))
(buffer-substring (match-beginning 0) (match-end 0))))
(substring string (match-beginning n) (match-end n))
(buffer-substring (match-beginning n) (match-end n))))
(defun shell-quote-argument (argument)
"Quote an argument for passing as argument to an inferior shell."