[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: compile-internal + korn shell script
From: |
Kevin Rodgers |
Subject: |
Re: compile-internal + korn shell script |
Date: |
Mon, 27 Mar 2006 06:57:08 -0800 (PST) |
luca.spinacci@selex-comms.com wrote:
>
> >Does `C-h v shell-file-name' tell you that shell commands are run from
> >Emacs by bash or some other shell?
>
> It reports:
> shell-file-name's value is
> "D:/emacs/emacs-21.3/bin/cmdproxy.exe"
>
> Documentation:
> *File name to load inferior shells from.
> Initialized from the SHELL environment variable.
>
> You can customize this variable.
>
> ...I don't know if it may help...
Yes, that's your problem. You are expecting cmdproxy.exe to run your
make.ksh Korn shell script. Try setting shell-file-name to the full
path of your ksh executable.
> I found a possible escape - missing the functionality of mouse-2 event on
> compilation errors! - :
> ...
> (start-process "make-process" "*Compile*"
> BASHEXE
> MAKE " "
> ""(concat (file-name-sans-extension
> (file-name-nondirectory
> (buffer-file-name))) ".o")"" )
> (split-window-vertically)
> (other-window 1)
> (switch-to-buffer "*Compile*")
> ...
> This solution works but in case of compilation errors the mouse-2 click
> on a compilation error doesn't track the corresponding source code file.
> Is there an explicit way to tell emacs to do association among errors
> (mouse-2 click) and source code creating the buffer *Compile*?
> Is it made automatically? ...in that case something wrong with the
> above process "make-process" exiting abnormally?
The binding of mouse-2 in the *Compile* buffer is handled by
compilation-mode, which is called by compile-internal before the process
is started.
You should use the top-level compile command instead of trying to
replicate all its lower-level function calls. And if you want to run
Korn shell commands, you should set shell-file-name to the ksh
executable.
--
Kevin
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com