help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I can't use Alt+Shift


From: Aaron Meurer
Subject: Re: I can't use Alt+Shift
Date: Wed, 18 Jan 2012 17:34:19 -0700

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

On Tue, Jan 17, 2012 at 11:00 AM, 郭晓峰 <lamuguo@gmail.com> wrote:
> 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
>
> On Tue, Jan 17, 2012 at 6:43 AM, Peter Dyballa <Peter_Dyballa@web.de> wrote:
>>
>> 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
>>
>>
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]