From: Richard Stallman <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: gud.el gdb --cd and libtool
Date: Sat, 09 Nov 2002 06:55:08 -0500 [thread overview]
Message-ID: <E18AUCi-0001Az-00@fencepost.gnu.org> (raw)
In-Reply-To: <iluk7joqrh2.fsf@latte.josefsson.org> (message from Simon Josefsson on Fri, 08 Nov 2002 11:35:21 +0100)
Does this change fix it?
*** gud.el.~1.161.~ Mon Oct 21 15:26:25 2002
--- gud.el Sat Nov 9 05:53:52 2002
***************
*** 406,413 ****
(interactive (list (gud-query-cmdline 'gdb)))
(gud-common-init command-line
! #'(lambda (file args)
! `("-cd" ,(expand-file-name default-directory) . ,args))
'gud-gdb-marker-filter 'gud-gdb-find-file)
(set (make-local-variable 'gud-minor-mode) 'gdb)
--- 406,412 ----
(interactive (list (gud-query-cmdline 'gdb)))
(gud-common-init command-line
! #'(lambda (file args) args)
'gud-gdb-marker-filter 'gud-gdb-find-file)
(set (make-local-variable 'gud-minor-mode) 'gdb)
***************
*** 2233,2238 ****
--- 2232,2238 ----
(defun gud-common-init (command-line massage-args marker-filter &optional find-file)
(let* ((words (split-string command-line))
(program (car words))
+ (dir default-directory)
;; Extract the file name from WORDS
;; and put t in its place.
;; Later on we will put the modified file name arg back there.
***************
*** 2256,2261 ****
--- 2256,2262 ----
file-subst)))
(filepart (and file-word (concat "-" (file-name-nondirectory file)))))
(pop-to-buffer (concat "*gud" filepart "*"))
+ (setq default-directory dir)
;; Set default-directory to the file's directory.
(and file-word
gud-chdir-before-run
next prev parent reply other threads:[~2002-11-09 11:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-08 10:35 gud.el gdb --cd and libtool Simon Josefsson
2002-11-08 15:59 ` Stefan Monnier
2002-11-08 17:02 ` Simon Josefsson
2002-11-09 11:55 ` Richard Stallman [this message]
2002-11-10 11:23 ` Simon Josefsson
2002-11-11 10:18 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E18AUCi-0001Az-00@fencepost.gnu.org \
--to=rms@gnu.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.