comparison lisp/gud.el @ 7317:ce56b572b5c8

(gud-marker-acc): Use make-variable-buffer-local.
author Richard M. Stallman <rms@gnu.org>
date Wed, 04 May 1994 20:27:08 +0000
parents 4fd40bd394fe
children 5c2347e34b31
comparison
equal deleted inserted replaced
7316:00e2b88a5a8b 7317:ce56b572b5c8
163 ;; marker at once; it could be broken up across several strings. We 163 ;; marker at once; it could be broken up across several strings. We
164 ;; might even receive a big chunk with several markers in it. If we 164 ;; might even receive a big chunk with several markers in it. If we
165 ;; receive a chunk of text which looks like it might contain the 165 ;; receive a chunk of text which looks like it might contain the
166 ;; beginning of a marker, we save it here between calls to the 166 ;; beginning of a marker, we save it here between calls to the
167 ;; filter. 167 ;; filter.
168 (make-local-variable 'gud-marker-acc)
169 (defvar gud-marker-acc "") 168 (defvar gud-marker-acc "")
169 (make-variable-buffer-local 'gud-marker-acc)
170 170
171 (defun gud-gdb-marker-filter (string) 171 (defun gud-gdb-marker-filter (string)
172 (save-match-data 172 (save-match-data
173 (setq gud-marker-acc (concat gud-marker-acc string)) 173 (setq gud-marker-acc (concat gud-marker-acc string))
174 (let ((output "")) 174 (let ((output ""))