[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Key binding
From: |
Florian Lindner |
Subject: |
Re: Key binding |
Date: |
Mon, 25 Nov 2002 21:49:13 +0000 |
User-agent: |
KNode/0.7.1 |
Kevin Rodgers wrote:
> 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.
comint-run has the same problem. Scrolling down thousands of blank lines.
>> 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').
term works, Thanks.
But two more questions:
1) If the programs exits and I try to close the buffer (C-c 1) emacs just
says "current buffer has no process" or "minibuffer not active" I can close
the buffer via the menu, but not with C-c 1
2) How can I make the term buffer split the screen and not to take the
entire screen?
Thanks,
Florian
- Key binding, Florian Lindner, 2002/11/24
- Re: Key binding, Kai Großjohann, 2002/11/25
- Re: Key binding, Florian Lindner, 2002/11/25
- Re: Key binding, Kevin Rodgers, 2002/11/25
- Re: Key binding,
Florian Lindner <=
- Re: Key binding, Kevin Rodgers, 2002/11/25
- Re: Key binding, fabrice bauzac, 2002/11/25
- Re: Key binding, Florian Lindner, 2002/11/26
- Re: Key binding, Kester Clegg, 2002/11/26
- Re: Key binding, Kai Großjohann, 2002/11/26