From: Richard M. Stallman Date: Sat, 28 Jan 1995 09:04:02 +0000 (+0000) Subject: (match-string): Fix braino. X-Git-Tag: emacs-19.34~5272 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b3f6bcbdadce4b9d8627be405c4c421d32dbb220;p=emacs.git (match-string): Fix braino. --- diff --git a/lisp/subr.el b/lisp/subr.el index 5d5470f9e24..3bcbee52f44 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -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."