help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: build-and-save-all


From: Kevin Rodgers
Subject: Re: build-and-save-all
Date: Thu, 02 Dec 2004 15:09:50 -0700
User-agent: Mozilla Thunderbird 0.9 (X11/20041105)

Kevin Rodgers wrote:
> (defun compile-project ()
>   "Compile the project to which this source file belongs."
>   (interactive)
>   ;; ./project.dir must be a symbolic link to the project directory:
>   (let ((default-directory (file-truename "project.dir")))
>     (compile "make")))

I forgot the part about saving all the buffers:

(defun compile-project ()
  "Compile the project to which this source file belongs."
  (interactive)
  ;; ./project.dir must be a symbolic link to the project directory:
  (let ((default-directory (file-truename "project.dir"))
        (compilation-ask-about-save nil))
    (compile "make")))

--
Kevin Rodgers


reply via email to

[Prev in Thread] Current Thread [Next in Thread]