[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Key binding
From: |
Kai Großjohann |
Subject: |
Re: Key binding |
Date: |
Mon, 25 Nov 2002 18:47:23 +0100 |
User-agent: |
Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) |
Florian Lindner <Florian.Lindner@xgm.de> 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 ...)
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.
kai
--
~/.signature is: umop ap!sdn (Frank Nobis)
- 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,
Kai Großjohann <=
- Re: Key binding, Florian Lindner, 2002/11/25
- Re: Key binding, Kevin Rodgers, 2002/11/25
- Re: Key binding, Florian Lindner, 2002/11/25
- 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