From 80e2afdd25f64cf4bd9026afd0cb93a9417fb290 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Wed, 31 Jul 1996 16:35:11 +0000 Subject: [PATCH] (gdb): Bind comint-file-name-regexp. --- lisp/gud.el | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/lisp/gud.el b/lisp/gud.el index 281ceb50573..48664a05608 100644 --- a/lisp/gud.el +++ b/lisp/gud.el @@ -268,12 +268,13 @@ and create such a submap in that new map." The directory containing FILE becomes the initial working directory and source-file directory for your debugger." (interactive - (list (read-from-minibuffer "Run gdb (like this): " - (if (consp gud-gdb-history) - (car gud-gdb-history) - "gdb ") - gdb-minibuffer-local-map nil - '(gud-gdb-history . 1)))) + (list (let ((comint-file-name-regexp "~/A-Za-z0-9+@:_.$#%,={}-")) + (read-from-minibuffer "Run gdb (like this): " + (if (consp gud-gdb-history) + (car gud-gdb-history) + "gdb ") + gdb-minibuffer-local-map nil + '(gud-gdb-history . 1))))) (gud-common-init command-line 'gud-gdb-massage-args 'gud-gdb-marker-filter 'gud-gdb-find-file) -- 2.39.5