unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: kai.grossjohann@uni-duisburg.de (Kai Großjohann)
Subject: Re: Key binding
Date: Mon, 25 Nov 2002 18:47:23 +0100	[thread overview]
Message-ID: <84fztpk0d0.fsf@lucy.cs.uni-dortmund.de> (raw)
In-Reply-To: artiub$ldn$06$1@news.t-online.com

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)

  reply	other threads:[~2002-11-25 17:47 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-24 21:22 Key binding Florian Lindner
2002-11-25  9:48 ` Kai Großjohann
2002-11-25 17:18   ` Florian Lindner
2002-11-25 17:47     ` Kai Großjohann [this message]
2002-11-25 21:48       ` Florian Lindner
2002-11-25 17:51     ` Kevin Rodgers
2002-11-25 21:49       ` Florian Lindner
2002-11-25 22:51         ` Kevin Rodgers
2002-11-25 23:04           ` fabrice bauzac
2002-11-26 16:25           ` Florian Lindner
2002-11-26 16:32             ` Kester Clegg
2002-11-26 17:45               ` Kai Großjohann
  -- strict thread matches above, loose matches on Subject: below --
2003-11-27  5:35 key binding Jason
2003-11-27  6:52 ` Eli Zaretskii
     [not found] ` <mailman.699.1069919563.399.help-gnu-emacs@gnu.org>
2003-11-27  7:43   ` Jason
2003-11-27 14:23     ` Eli Zaretskii
     [not found]     ` <mailman.726.1069946597.399.help-gnu-emacs@gnu.org>
2003-11-28  0:27       ` Jason
2003-11-28  3:53   ` leo
2014-02-04 22:18 Mickey Ferguson
2014-02-05  1:53 ` Stefan Monnier
2014-02-05 20:12 Mickey Ferguson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=84fztpk0d0.fsf@lucy.cs.uni-dortmund.de \
    --to=kai.grossjohann@uni-duisburg.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).