comparison lisp/comint.el @ 21152:8197c659e85c

(comint-word): store-match-data => set-match-data.
author Richard M. Stallman <rms@gnu.org>
date Sat, 14 Mar 1998 04:42:18 +0000
parents edbd4156cf68
children e82a4a4fa12a
comparison
equal deleted inserted replaced
21151:79a284372cfb 21152:8197c659e85c
1981 ;; Don't go forward over a word-char (this can happen if we're at bob). 1981 ;; Don't go forward over a word-char (this can happen if we're at bob).
1982 (when (or (not (bobp)) (looking-at non-word-chars)) 1982 (when (or (not (bobp)) (looking-at non-word-chars))
1983 (forward-char 1)) 1983 (forward-char 1))
1984 ;; Set match-data to match the entire string. 1984 ;; Set match-data to match the entire string.
1985 (when (< (point) here) 1985 (when (< (point) here)
1986 (store-match-data (list (point) here)) 1986 (set-match-data (list (point) here))
1987 (match-string 0))))) 1987 (match-string 0)))))
1988 1988
1989 (defun comint-substitute-in-file-name (filename) 1989 (defun comint-substitute-in-file-name (filename)
1990 "Return FILENAME with environment variables substituted. 1990 "Return FILENAME with environment variables substituted.
1991 Supports additional environment variable syntax of the command 1991 Supports additional environment variable syntax of the command