unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* on keyboard behavior in emacs -nw
@ 2017-08-14 22:49 Harry Putnam
  2017-08-15  0:02 ` Héctor Lahoz
  0 siblings, 1 reply; 6+ messages in thread
From: Harry Putnam @ 2017-08-14 22:49 UTC (permalink / raw)
  To: help-gnu-emacs

I see the phenomena in several recent installs of debian stable and 1
of testing.

In emacs -nw M-x, instead of giving the familiar `M-x' prompt it
inserts a tiny char in the buffer that looks something like a tiny
planet with with a ring around on forward leaning angle.

In fact M+<many-keys> many letters and other char create letters with
various accents or the like:

M-x = ø
M-a = á
M-q = ñ

Foreign (to an english speaker) language letters with accents and
etc.

Any one know what causes this?

Wrong keyboard settings? ... I did run dpkg-reconfigure console-setup
But just got the prompt back after a moment or two...

I did run dpkg-reconfigure keyboard-configuration
And:
  /etc/default/keyboard shows
  
  # KEYBOARD CONFIGURATION FILE
  # Consult the keyboard(5) manual page.
  XKBMODEL="pc104"
  XKBLAYOUT="us"
  XKBVARIANT=""
  XKBOPTIONS="terminate:ctrl_alt_bksp"
  BACKSPACE="guess"

Restarted keyboard service but nothing changed.

echo $LANG shows:
en_US.UTF-8

echo $LC_COLLATE is just blank

It must be some kind of env setting, but what and how to fix?




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

* Re: on keyboard behavior in emacs -nw
       [not found] <mailman.13123.1502751000.21957.help-gnu-emacs@gnu.org>
@ 2017-08-14 23:20 ` Ben Bacarisse
  0 siblings, 0 replies; 6+ messages in thread
From: Ben Bacarisse @ 2017-08-14 23:20 UTC (permalink / raw)
  To: help-gnu-emacs

Harry Putnam <reader@newsguy.com> writes:

> I see the phenomena in several recent installs of debian stable and 1
> of testing.
>
> In emacs -nw M-x, instead of giving the familiar `M-x' prompt it
> inserts a tiny char in the buffer that looks something like a tiny
> planet with with a ring around on forward leaning angle.
>
> In fact M+<many-keys> many letters and other char create letters with
> various accents or the like:
>
> M-x = ø
> M-a = á
> M-q = ñ

Do ESC x and so on work as expected?  What does C-h k M-x
(i.e. describe-key) say?

> Foreign (to an english speaker) language letters with accents and
> etc.
>
> Any one know what causes this?

My first thought was that Alt and AltGr had been swapped but then
AltGr-x is not usually ø.

<snip>
-- 
Ben.


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

* Re: on keyboard behavior in emacs -nw
  2017-08-14 22:49 Harry Putnam
@ 2017-08-15  0:02 ` Héctor Lahoz
  2017-08-15  4:31   ` Bob Proulx
  2017-08-15 14:05   ` Harry Putnam
  0 siblings, 2 replies; 6+ messages in thread
From: Héctor Lahoz @ 2017-08-15  0:02 UTC (permalink / raw)
  To: help-gnu-emacs

Harry Putnam wrote:
> I see the phenomena in several recent installs of debian stable and 1
> of testing.
> 
> In emacs -nw M-x, instead of giving the familiar `M-x' prompt it
> inserts a tiny char in the buffer that looks something like a tiny
> planet with with a ring around on forward leaning angle.
> 
> In fact M+<many-keys> many letters and other char create letters with
> various accents or the like:
> 
> M-x = ø
> M-a = á
> M-q = ñ
> 
> Foreign (to an english speaker) language letters with accents and
> etc.
> 
> Any one know what causes this?

Don't know exactly. It depends on the terminal you're using.
For example, this is seen in XTerm. If you use XTerm, you can
solve that by toggling the option "Meta sends escape" which you
can reach by C-down-Mouse-1 (Ctrl + left button).



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

* Re: on keyboard behavior in emacs -nw
  2017-08-15  0:02 ` Héctor Lahoz
@ 2017-08-15  4:31   ` Bob Proulx
  2017-08-15  6:42     ` Emanuel Berg
  2017-08-15 14:05   ` Harry Putnam
  1 sibling, 1 reply; 6+ messages in thread
From: Bob Proulx @ 2017-08-15  4:31 UTC (permalink / raw)
  To: help-gnu-emacs; +Cc: Harry Putnam

Héctor Lahoz wrote:
> Harry Putnam wrote:
> > In fact M+<many-keys> many letters and other char create letters with
> > various accents or the like:
> > 
> > M-x = ø
> > M-a = á
> > M-q = ñ
> 
> Don't know exactly. It depends on the terminal you're using.
> For example, this is seen in XTerm. If you use XTerm, you can
> solve that by toggling the option "Meta sends escape" which you
> can reach by C-down-Mouse-1 (Ctrl + left button).

That is what I do.  I run emacs in Xterm with the following Xresources set.

  XTerm*metaSendsEscape:true

Bob



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

* Re: on keyboard behavior in emacs -nw
  2017-08-15  4:31   ` Bob Proulx
@ 2017-08-15  6:42     ` Emanuel Berg
  0 siblings, 0 replies; 6+ messages in thread
From: Emanuel Berg @ 2017-08-15  6:42 UTC (permalink / raw)
  To: help-gnu-emacs

Bob Proulx wrote:

>> Don't know exactly. It depends on the
>> terminal you're using. For example, this is
>> seen in XTerm. If you use XTerm, you can
>> solve that by toggling the option "Meta
>> sends escape" which you can reach by
>> C-down-Mouse-1 (Ctrl + left button).
>
> That is what I do. I run emacs in Xterm with
> the following Xresources set.
>
>   XTerm*metaSendsEscape:true

Yup. In ~/.Xresources, and then

    xrdb ~/.Xresources

in ~/.xinitrc

-- 
underground experts united
http://user.it.uu.se/~embe8573




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

* Re: on keyboard behavior in emacs -nw
  2017-08-15  0:02 ` Héctor Lahoz
  2017-08-15  4:31   ` Bob Proulx
@ 2017-08-15 14:05   ` Harry Putnam
  1 sibling, 0 replies; 6+ messages in thread
From: Harry Putnam @ 2017-08-15 14:05 UTC (permalink / raw)
  To: help-gnu-emacs

Héctor Lahoz <hectorlahoz@gmail.com> writes:


[...]

>> In emacs -nw M-x, instead of giving the familiar `M-x' prompt it
>> inserts a tiny char in the buffer that looks something like a tiny
>> planet with with a ring around on forward leaning angle.
>> 
>> In fact M+<many-keys> many letters and other char create letters with
>> various accents or the like:
>> 
>> M-x = ø
>> M-a = á
>> M-q = ñ
>> 

[...]

>> Any one know what causes this?

> Don't know exactly. It depends on the terminal you're using.
> For example, this is seen in XTerm. If you use XTerm, you can
> solve that by toggling the option "Meta sends escape" which you
> can reach by C-down-Mouse-1 (Ctrl + left button).

Thanks Héctor

-------       -------       ---=---       -------       -------

Bob Proulx <bob@proulx.com> writes:

[...]

>
> That is what I do.  I run emacs in Xterm with the following Xresources set.
>
>   XTerm*metaSendsEscape:true

Thanks Bob

Thanks to all responders. I see what I've done now.
I recently updated debian from `jessie' to (debian 9) `stretch'

I did the upgrade by means of a new fresh install.

I've been lugging along a very old .Xdefaults, from the days when that
was the file we used to tell X our preferences.  And have kept it on
every OS for years.. I've just been symlinking ~/.Xresources to it
~/.Xdefaults ever since that change happened... years ago, now.

I forgot to create that symlink when I updated to `stretch'

I've had
  XTerm*metaSendsEscape:        true
  
in there for a good while.

Thanks to you all, once again.




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

end of thread, other threads:[~2017-08-15 14:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.13123.1502751000.21957.help-gnu-emacs@gnu.org>
2017-08-14 23:20 ` on keyboard behavior in emacs -nw Ben Bacarisse
2017-08-14 22:49 Harry Putnam
2017-08-15  0:02 ` Héctor Lahoz
2017-08-15  4:31   ` Bob Proulx
2017-08-15  6:42     ` Emanuel Berg
2017-08-15 14:05   ` Harry Putnam

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