unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Xah <xahlee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: M-x term in char mode issue
Date: Wed, 17 Sep 2008 16:12:53 -0700 (PDT)	[thread overview]
Message-ID: <e3526d8c-622e-40f9-9fa2-7190eeaa6489@i20g2000prf.googlegroups.com> (raw)
In-Reply-To: mailman.19382.1221599646.18990.help-gnu-emacs@gnu.org

On Sep 16, 2:13 pm, "Francis Moreau" <francis.m...@gmail.com> wrote:
> Hello,
>
> I'm still struggling with the term mode.
>
> According to info on term mode, In char mode, each character
> is sent directly to the inferior subshell, except for the Term escape
> character, normally `C-c'.
>
> However if I type "C-xC-e" in char mode, emacs runs the command
> eval-last-sexp. Could anybody tell me why ?
>
> In line mode, doing in my .emacs:
>
> (defun my-term-mode-hook ()
>   (define-key term-mode-map "\C-x\C-e" nil))
> (add-hook 'term-mode-hook 'my-term-mode-hook)
>
> "C-xC-e" still runs eval-last-sexp.

not sure why are u defininig a hook within a hook. I note that your
hook my-term-mode-hook is a function, while emacs hook is just a var.
I suppose it should work but does normal hooking work?

personally if i need to ssh etc, i use a real term emulator app such
as Apple's “Terminal” app. Emulating a terminal inside emacs gets
complicated to use because all the normal keybindings gets remapped,
at which point you lose much advantages of operating inside emacs...
of course you might have reasons or preferences ...

  Xah
∑ http://xahlee.org/

       reply	other threads:[~2008-09-17 23:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.19382.1221599646.18990.help-gnu-emacs@gnu.org>
2008-09-17 23:12 ` Xah [this message]
2008-09-16 21:13 M-x term in char mode issue Francis Moreau

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=e3526d8c-622e-40f9-9fa2-7190eeaa6489@i20g2000prf.googlegroups.com \
    --to=xahlee@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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).