|
From: | Kevin Rodgers |
Subject: | Re: Key binding |
Date: | Mon, 25 Nov 2002 10:51:32 -0700 |
User-agent: | Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 |
Florian Lindner wrote:
it's not really working. That's how it looks like now: (add-hook 'pascal-mode-hook (lambda()[..] (defun fl-execute-current-buffer ()"Executes the compiled file" (interactive) (shell-command (file-name-sans-extension buffer-file-name))) (define-key pascal-mode-map (kbd "C-c v") 'fl-execute-current-buffer))) I've I execute this it just displays in the minibuffer: Filename: Runtime error 201 at 0x0805C0DA (some more hex codes)Filename is the output my program gives right before it is waiting for input. If I just execute the program in a bash shell it works ok, I can enter something.
I believe `shell-command' executes the COMMAND with standard input bound to /dev/null. Try `comint-run' instead.
A weird problem also apperas if I try to execute the program in the shell mode (M-x shell), it scrolling thousands of lines with withspaces down.Everything works on a normal shell. Any ideas?
Perhaps your program assumes that it is connected to a terminal. You could try using `term' (instead of `comint-run' or `shell-command'). -- <a href="mailto:<kevin.rodgers@ihs.com>">Kevin Rodgers</a>
[Prev in Thread] | Current Thread | [Next in Thread] |