emacs-devel
[Top][All Lists]
Advanced

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

Re: More keybindings in compilation-mode-map


From: Alan Shutko
Subject: Re: More keybindings in compilation-mode-map
Date: Tue, 13 Nov 2001 10:15:13 -0500
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1 (i386-debian-linux-gnu)

"Stefan Monnier" <monnier+gnu/address@hidden> writes:

> I think M-x recompile should be fixed to always rerun the exact
> same command if run from a compilation-mode buffer.

It seems as if recompile uses the value of compile-command (which is
globally set whenever you M-x compile), so it seems this should do
it.  

*** /home/ats/compile.el~       Tue Nov 13 10:13:03 2001
--- /home/ats/compile.el        Tue Nov 13 10:14:26 2001
***************
*** 966,971 ****
--- 966,972 ----
         '(compilation-mode-font-lock-keywords t))
    (set (make-local-variable 'revert-buffer-function)
         'compilation-revert-buffer)
+   (make-local-variable 'compile-command)
    (run-hooks 'compilation-mode-hook))
  
  (defun compilation-revert-buffer (ignore-auto noconfirm)


-- 
Alan Shutko <address@hidden> - In a variety of flavors!
Onward through the fog.



reply via email to

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