all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ken Hori <fplemma@gmail.com>
To: Scott Bell <sctb@me.com>, 5330@debbugs.gnu.org
Cc: bug-gnu-emacs@gnu.org
Subject: bug#5330: Term mode in Cocoa does not respect NS-ALTERNATE-MODIFIER
Date: Sun, 17 Jan 2010 06:18:09 -0800	[thread overview]
Message-ID: <d0dc7c8f1001170618l45e9190bpf7fb0565ba924fa1@mail.gmail.com> (raw)
In-Reply-To: <d0dc7c8f1001170609r5cbb7d28u34e47d675d25b2e6@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1357 bytes --]

I identified the cause of this bug.

It happens when PS1 environment variable contains certain \e escape code
like '\[\e[01;32m\][\h:\w]\$\[\e[00m\] '.

In such a case, term.el gets messed up somehow and becomes
no longer able to handle meta (alt) keyboard input properly.


On Sun, Jan 17, 2010 at 6:09 AM, Ken Hori <fplemma@gmail.com> wrote:

> It happens on Linux as well
> (For example, Emacs 23.1.91 bzr revision 99310)
>
> So M-d (delete-next-word) on term-mode does not work, even though term-mode
> is supposed to be emulating a terminal as it is.
>
> I can confirm this bug has existed for at least 1 month.
> Perhaps reporting it again with a more noticeable title might get more
> attention that it deserves. This is a major bug that keeps me from using M-x
> term.
>
> On Wed, Jan 6, 2010 at 3:35 PM, Scott Bell <sctb@me.com> wrote:
>
>> Under Mac OS X 10.6.2, Emacs 23.1.90.1, in an M-x term buffer
>> running /bin/bash, I get the following undesired behavior in
>> Cocoa emacs (Emacs.app/Contents/MacOS/Emacs -q) when typing
>> `one two M-DEL' where meta is typed as the alt/option key:
>>
>> $ one twoÿ
>>
>> This occurs even when ns-alternate-modifier is set to 'meta.
>> Running Emacs in a terminal window (Emacs.app/Contents/MacOS/
>> Emacs -q -nw) works as I expect:
>>
>> $ one
>>
>>
>>
>>
>>
>

[-- Attachment #2: Type: text/html, Size: 2045 bytes --]

  reply	other threads:[~2010-01-17 14:18 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-06 23:35 bug#5330: Term mode in Cocoa does not respect NS-ALTERNATE-MODIFIER Scott Bell
2010-01-17  6:51 ` Ken Hori
2010-01-17 14:09 ` Ken Hori
2010-01-17 14:18   ` Ken Hori [this message]
2010-01-17 23:46     ` Scott Bell
2010-01-18 21:17       ` Ken Hori
2010-01-18 22:00         ` Scott Bell
2010-01-18 22:40 ` bug#5330: M-d broken in term.el [Was: Term mode in Cocoa does not respect NS-ALTERNATE-MODIFIER] Chong Yidong
2010-01-20 17:18 ` bug#5330: Term mode in Cocoa does not respect NS-ALTERNATE-MODIFIER Chong Yidong
2010-01-20 19:04   ` Scott Bell
2011-09-18 11:48     ` bug#5449: " Lars Magne Ingebrigtsen

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

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

  git send-email \
    --in-reply-to=d0dc7c8f1001170618l45e9190bpf7fb0565ba924fa1@mail.gmail.com \
    --to=fplemma@gmail.com \
    --cc=5330@debbugs.gnu.org \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=sctb@me.com \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.