[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: address@hidden: Re: compile and the current directory]
From: |
Richard Stallman |
Subject: |
Re: address@hidden: Re: compile and the current directory] |
Date: |
Mon, 19 Jan 2004 05:01:43 -0500 |
+ (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"))))