From b3f6bcbdadce4b9d8627be405c4c421d32dbb220 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sat, 28 Jan 1995 09:04:02 +0000 Subject: [PATCH] (match-string): Fix braino. --- lisp/subr.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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." -- 2.39.5