Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

I can't use Alt+Shift

29 views
Skip to first unread message

Daniel Sousa

unread,
Jan 7, 2012, 5:29:54 PM1/7/12
to help-gn...@gnu.org
Hi everybody!

I'm trying to start using emacs and I'm following its tutorial.
I have "<" and ">" on the same key (">" is above "<"). I can do M-<, but I can't use M->, when I press the key combination Alt+Shift+< nothing happens :(

I only have this problem when I use emacs with any GUI (I want to run it on another tty), when I use emacs with the x server it works...

Can anyone help me?

Best regards,
Daniel Sousa

PS: If it help, I'm running on Arch Linux.

Peter Dyballa

unread,
Jan 7, 2012, 7:31:47 PM1/7/12
to Daniel Sousa, help-gn...@gnu.org

Am 7.1.2012 um 23:29 schrieb Daniel Sousa:

> Can anyone help me?
>
> [...]
>
> PS: If it help, I'm running on Arch Linux.

Introduced with C-h k you can then type some key combination. GNU Emacs will then describe in echo-area ("mini-buffer") that this key combination is not bound to a function or open a *Help* buffer and display the documentation of the function which is bound to the typed key combination.

In X11 you have the utility xev which will explain which X events you have produced by pressing some keys. Maybe Alt+Shift+< does not produce anything...


When you run GNU Emacs in some terminal you do not send any X event to GNU Emacs, only ASCII codes (see "man ascii"). <ESC>-< and <ESC>-<Shift>-<, pressed sequentially as <ESC> first and then either < or >, *will* produce the proper input for GNU Emacs, while pressing Alt+< or Alt+Shift+< *might* produce 8-bit control characters, but what the terminal emulation sends to the programme is not determined because a mapping, established via an X resource for example, might not exist.


I'm not using Arch Linux.

--
Greetings

Pete

I love deadlines. I love the whooshing noise they make as they go by.
– Douglas Adams


unfrostedpoptart

unread,
Jan 8, 2012, 4:33:11 PM1/8/12
to help-gn...@gnu.org
Yeah - I recently ran into a lot of similar issues. You need to run xev and get really good at xmodmap!

unfrostedpoptart

unread,
Jan 8, 2012, 4:33:11 PM1/8/12
to gnu.ema...@googlegroups.com, help-gn...@gnu.org

Daniel Sousa

unread,
Jan 17, 2012, 7:36:49 AM1/17/12
to Peter Dyballa, help-gn...@gnu.org
When I run C-h k and press that key combination, emacs simply ignores it and doesn't even say that it is undefined.

Using ESC it works but the key is really far... Anyway, this isn't a big problem, I think I can live without using it :P

Peter Dyballa

unread,
Jan 17, 2012, 9:43:41 AM1/17/12
to Daniel Sousa, help-gn...@gnu.org

Am 17.1.2012 um 13:36 schrieb Daniel Sousa:

> When I run C-h k and press that key combination, emacs simply ignores it
> and doesn't even say that it is undefined.

Correct! In every software terminal emulation GNU Emacs is the guest of this software product. When its host is not able to receive or distinguish the signals about the keys being pressed (or released), then the host cannot send anything to its guest. (You might try to teach your terminal emulation a bit more key events.) So GNU Emacs does not receive anything. To check what it might receive you can press, for example in *scratch* buffer, C-q and then some desired key combination. By this means you record anything the host programme sends to its guest GNU Emacs. You can also type C-h l, which shows a recording of what you typed. Or actually of what GNU Emacs received from your keyboard work...

--
Greetings

Pete

Without vi there is only GNU Emacs


郭晓峰

unread,
Jan 17, 2012, 1:00:22 PM1/17/12
to Peter Dyballa, help-gn...@gnu.org
Maybe something below is useful:
- Make sure your terminal or GUI transfer the key to the place you run
emacs. To confirm this, you can use "showkey" in console-tools for
terminal, or "xev" in X.
- If it is transferred, make sure you can see the same "scan code" in
emacs, with "Ctrl-h l", which will show you latest keyboard strokes.
- If you can see the strokes in emacs, make sure it is combined with
the emacs keymap. "Ctrl-h b" will show you all the mapping. "M-right"
or "M->", I am not sure which one you like, should be combined with
the key.
- In the end, make sure <M-right> is combined with some emacs
interactive function.

Hope I didn't miss anything here, and hope the hints are helpful to you.

Best Regards,
Xiaofeng

Aaron Meurer

unread,
Jan 18, 2012, 7:34:19 PM1/18/12
to 郭晓峰, help-gn...@gnu.org
If your terminal program lets you define custom key sequences, you can
work-around this by setting what you want to do as a some other unused
key sequence in your .emacs, and then setting your terminal to convert
the one key sequence to the other.

Aaron Meurer

rusi

unread,
Jan 19, 2012, 11:22:06 AM1/19/12
to
When I using emacs on a terminal and there's no alt key you can use
ESC instead.
ie do ESC Shift+<
0 new messages