aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2001-05-23 18:41:33 +0000
committerStefan Monnier2001-05-23 18:41:33 +0000
commitd2d1851b5d3b7583e7a7db2f8b3db2d33c753f5c (patch)
treed12c140a71ae15e78d23cb9e92d23ab855db091c
parent5e3d4fbce30d4d07e781a943d7fd6330d6d586bd (diff)
downloademacs-d2d1851b5d3b7583e7a7db2f8b3db2d33c753f5c.tar.gz
emacs-d2d1851b5d3b7583e7a7db2f8b3db2d33c753f5c.zip
(gud-gdb-run-command-fetch-lines): Use forward-line
rather than beginning-of-line to avoid problems with fields. (gud-perldb-massage-args): Use unless and push. (gud-chdir-before-run): New var. (gud-common-init): Use it.
-rw-r--r--lisp/ChangeLog15
-rw-r--r--lisp/gud.el19
2 files changed, 23 insertions, 11 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 12d5ebd4474..067a9e820c0 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,12 +1,19 @@
12001-05-23 Stefan Monnier <monnier@cs.yale.edu>
2
3 * gud.el (gud-gdb-run-command-fetch-lines): Use forward-line
4 rather than beginning-of-line to avoid problems with fields.
5 (gud-perldb-massage-args): Use unless and push.
6 (gud-chdir-before-run): New var.
7 (gud-common-init): Use it.
8
12001-05-24 Andrew Choi <akochoi@i-cable.com> 92001-05-24 Andrew Choi <akochoi@i-cable.com>
2 10
3 * international/titdic-cnv.el (quail-cxterm-package-ext-info): 11 * international/titdic-cnv.el (quail-cxterm-package-ext-info):
4 delete entries for chinese-ctlau and chinese-ctlaub. 12 delete entries for chinese-ctlau and chinese-ctlaub.
5 (quail-misc-package-ext-info): add entries for chinese-ctlau and 13 (quail-misc-package-ext-info): Add entries for chinese-ctlau and
6 chinese-ctlaub. 14 chinese-ctlaub.
7 (ctlau-converter): New function. 15 (ctlau-converter, ctlau-gb-converter, ctlau-b5-converter):
8 (ctlau-gb-converter): New function. 16 New functions.
9 (ctlau-b5-converter): New function.
10 17
112001-05-22 Gerd Moellmann <gerd@gnu.org> 182001-05-22 Gerd Moellmann <gerd@gnu.org>
12 19
diff --git a/lisp/gud.el b/lisp/gud.el
index 0161e854854..9119a2b9497 100644
--- a/lisp/gud.el
+++ b/lisp/gud.el
@@ -580,7 +580,7 @@ BUFFER is the GUD buffer in which to run the command."
580 (set-buffer buffer) 580 (set-buffer buffer)
581 (if (save-excursion 581 (if (save-excursion
582 (goto-char (point-max)) 582 (goto-char (point-max))
583 (beginning-of-line) 583 (forward-line 0)
584 (not (looking-at comint-prompt-regexp))) 584 (not (looking-at comint-prompt-regexp)))
585 nil 585 nil
586 ;; Much of this copied from GDB complete, but I'm grabbing the stack 586 ;; Much of this copied from GDB complete, but I'm grabbing the stack
@@ -1201,7 +1201,7 @@ directories if your program contains sources from more than one directory."
1201 (setq seen-e t)) 1201 (setq seen-e t))
1202 (funcall shift)) 1202 (funcall shift))
1203 1203
1204 (when (not seen-e) 1204 (unless seen-e
1205 (if (or (not args) 1205 (if (or (not args)
1206 (string-match "^-" (car args))) 1206 (string-match "^-" (car args)))
1207 (error "Can't use stdin as the script to debug.")) 1207 (error "Can't use stdin as the script to debug."))
@@ -1212,9 +1212,9 @@ directories if your program contains sources from more than one directory."
1212 ;; as -e macs. 1212 ;; as -e macs.
1213 (if (and args (equal "--" (car args))) 1213 (if (and args (equal "--" (car args)))
1214 (funcall shift) 1214 (funcall shift)
1215 (and seen-e (setq new-args (cons "--" new-args)))) 1215 (and seen-e (push "--" new-args)))
1216 1216
1217 (setq new-args (cons "-emacs" new-args)) 1217 (push "-emacs" new-args)
1218 (while args 1218 (while args
1219 (funcall shift)) 1219 (funcall shift))
1220 1220
@@ -2021,12 +2021,17 @@ comint mode, which see."
2021;; in the selected window. 2021;; in the selected window.
2022;;;###autoload (add-hook 'same-window-regexps "\\*gud-.*\\*\\(\\|<[0-9]+>\\)") 2022;;;###autoload (add-hook 'same-window-regexps "\\*gud-.*\\*\\(\\|<[0-9]+>\\)")
2023 2023
2024(defcustom gud-chdir-before-run t
2025 "Non-nil if GUD should `cd' to the debugged executable."
2026 :group 'gud
2027 :type 'boolean)
2028
2024;; Perform initializations common to all debuggers. 2029;; Perform initializations common to all debuggers.
2025;; The first arg is the specified command line, 2030;; The first arg is the specified command line,
2026;; which starts with the program to debug. 2031;; which starts with the program to debug.
2027;; The other three args specify the values to use 2032;; The other three args specify the values to use
2028;; for local variables in the debugger buffer. 2033;; for local variables in the debugger buffer.
2029(defun gud-common-init (command-line massage-args marker-filter find-file) 2034(defun gud-common-init (command-line massage-args marker-filter &optional find-file)
2030 (let* ((words (split-string command-line)) 2035 (let* ((words (split-string command-line))
2031 (program (car words)) 2036 (program (car words))
2032 ;; Extract the file name from WORDS 2037 ;; Extract the file name from WORDS
@@ -2054,6 +2059,7 @@ comint mode, which see."
2054 (pop-to-buffer (concat "*gud" filepart "*")) 2059 (pop-to-buffer (concat "*gud" filepart "*"))
2055 ;; Set default-directory to the file's directory. 2060 ;; Set default-directory to the file's directory.
2056 (and file-word 2061 (and file-word
2062 gud-chdir-before-run
2057 ;; Don't set default-directory if no directory was specified. 2063 ;; Don't set default-directory if no directory was specified.
2058 ;; In that case, either the file is found in the current directory, 2064 ;; In that case, either the file is found in the current directory,
2059 ;; in which case this setq is a no-op, 2065 ;; in which case this setq is a no-op,
@@ -2075,8 +2081,7 @@ comint mode, which see."
2075 (gud-mode) 2081 (gud-mode)
2076 (make-local-variable 'gud-marker-filter) 2082 (make-local-variable 'gud-marker-filter)
2077 (setq gud-marker-filter marker-filter) 2083 (setq gud-marker-filter marker-filter)
2078 (make-local-variable 'gud-find-file) 2084 (if find-file (set (make-local-variable 'gud-find-file) find-file))
2079 (setq gud-find-file find-file)
2080 2085
2081 (set-process-filter (get-buffer-process (current-buffer)) 'gud-filter) 2086 (set-process-filter (get-buffer-process (current-buffer)) 'gud-filter)
2082 (set-process-sentinel (get-buffer-process (current-buffer)) 'gud-sentinel) 2087 (set-process-sentinel (get-buffer-process (current-buffer)) 'gud-sentinel)