unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Changing window from term
@ 2008-11-30 17:24 Florian Lindner
  2008-11-30 17:35 ` Teemu Likonen
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Florian Lindner @ 2008-11-30 17:24 UTC (permalink / raw
  To: help-gnu-emacs

Hello,

so far I have discovered two different methods using the shell with
Emacs. shell and term. shell I don't like because it's too much a text
file. I prefer just to have my shell in a seperate window (with up and
down recalling the command history).
term does this so far. But once loaded some Emacs commands are not
working anymore. For example I can't change to another buffer with C-x
o. I know the problem is that the shell input interferes with the
Emacs input.

Any idea how to make this work?

Thanks,

Florian


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Changing window from term
  2008-11-30 17:24 Changing window from term Florian Lindner
@ 2008-11-30 17:35 ` Teemu Likonen
  2008-11-30 18:19 ` Peter Dyballa
  2008-11-30 19:48 ` Xah Lee
  2 siblings, 0 replies; 4+ messages in thread
From: Teemu Likonen @ 2008-11-30 17:35 UTC (permalink / raw
  To: help-gnu-emacs

Florian Lindner (2008-11-30 09:24 -0800) wrote:

> term does this so far. But once loaded some Emacs commands are not
> working anymore. For example I can't change to another buffer with C-x
> o. I know the problem is that the shell input interferes with the
> Emacs input.
>
> Any idea how to make this work?

Basically normal C-x commands are behind C-c. For example, other-window
is "C-c o". For more info, see the documentation for Lisp function
"term-mode".


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Changing window from term
  2008-11-30 17:24 Changing window from term Florian Lindner
  2008-11-30 17:35 ` Teemu Likonen
@ 2008-11-30 18:19 ` Peter Dyballa
  2008-11-30 19:48 ` Xah Lee
  2 siblings, 0 replies; 4+ messages in thread
From: Peter Dyballa @ 2008-11-30 18:19 UTC (permalink / raw
  To: Florian Lindner; +Cc: help-gnu-emacs


Am 30.11.2008 um 18:24 schrieb Florian Lindner:

> Any idea how to make this work?

Use the mouse!

--
Mit friedvollen Grüßen

   Pete

You can learn many things from children.  How much patience you have,  
for instance.
				– Franklin P. Jones







^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Changing window from term
  2008-11-30 17:24 Changing window from term Florian Lindner
  2008-11-30 17:35 ` Teemu Likonen
  2008-11-30 18:19 ` Peter Dyballa
@ 2008-11-30 19:48 ` Xah Lee
  2 siblings, 0 replies; 4+ messages in thread
From: Xah Lee @ 2008-11-30 19:48 UTC (permalink / raw
  To: help-gnu-emacs

On Nov 30, 9:24 am, Florian Lindner <Florian.Lind...@xgm.de> wrote:
> Hello,
>
> so far I have discovered two different methods using the shell with
> Emacs. shell and term. shell I don't like because it's too much a text
> file. I prefer just to have my shell in a seperate window (with up and
> down recalling the command history).
> term does this so far. But once loaded some Emacs commands are not
> working anymore. For example I can't change to another buffer with C-x
> o. I know the problem is that the shell input interferes with the
> Emacs input.
>
> Any idea how to make this work?

The purpose of “Alt+x shell” is to let you do interactive shell in
emacs while retain much of the emac's functionalities.

The purpose of “Alt+x term” is to turn emacs into a terminal emulator.

Once you are in a terminal emulator mode, normal emacs bindings you
are used to no longer works because you told emacs to pretend it is a
terminal emulator.

So, basically you cannot have both worlds.

If you really want, you can modify keybinding in one or the other to
get the behavior you like.

e.g.

(add-hook 'comint-mode-hook
 (lambda ()
   (define-key comint-mode-map (kbd "<f11>") 'comint-previous-input)
   (define-key comint-mode-map (kbd "<f12>") 'comint-next-input)
   (define-key comint-mode-map (kbd "S-<f11>") 'comint-previous-
matching-input)
   (define-key comint-mode-map (kbd "S-<f12>") 'comint-next-matching-
input)
))

in your case, you want “<f11>” should be “<up>” and “<f12>” should be
“<down>”.

Btw, by default Ctrl+ up/down arrow should do what you want.

  Xah
∑ http://xahlee.org/^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-11-30 19:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-30 17:24 Changing window from term Florian Lindner
2008-11-30 17:35 ` Teemu Likonen
2008-11-30 18:19 ` Peter Dyballa
2008-11-30 19:48 ` Xah Lee

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).