From: Richard Stallman <rms@gnu.org>
Cc: Daniel Pfeiffer <dapfy@t-online.de>, emacs-devel@gnu.org
Subject: Re: [ams@kemisten.nu: Re: compile and the current directory]
Date: Mon, 19 Jan 2004 05:01:43 -0500 [thread overview]
Message-ID: <E1AiWE3-0005u8-5F@fencepost.gnu.org> (raw)
In-Reply-To: <200401181419.i0IEJebD006785@hamberg.it.uu.se> (ams@kemisten.nu)
+ (let (olddir default-directory)
+ (unless (eq compilation-directory nil)
+ (setq default-directory compilation-directory))
+ (apply 'compile-internal (or compilation-arguments
+ `(,(eval compile-command) "No more errors")))
+ (setq default-directory olddir)))
This is a roundabout and unreliable way to bind default-directory.
Why not just bind it with let?
(let ((default-directory (or compilation-directory default-directory)))
(apply 'compile-internal (or compilation-arguments
`(,(eval compile-command) "No more errors"))))
next prev parent reply other threads:[~2004-01-19 10:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-18 14:19 [ams@kemisten.nu: Re: compile and the current directory] Alfred M. Szmidt
2004-01-19 10:01 ` Richard Stallman [this message]
2004-01-20 7:12 ` Alfred M. Szmidt
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=E1AiWE3-0005u8-5F@fencepost.gnu.org \
--to=rms@gnu.org \
--cc=dapfy@t-online.de \
--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.