[Top][All Lists]

[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:48:48 +0000
User-agent: KNode/0.7.1

Kai Großjohann wrote:

> Florian Lindner <> writes:
>> 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 meant:
> (require 'pascal)  ; or is it pascal-mode?
> (defun ...)
> (define-key ...)

I'm using pascal-mode

> Without a mode hook.
>> 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.
>> 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.
> Maybe that's because with M-x shell-command RET (also known as M-!)
> you can't interact with the program.
> Try M-x comint-run RET.

comint-run has the same problem. Scrolling down thousands of blank lines.

term works.
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?

reply via email to

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