Behavior of M-x and A-x
  Home FAQ Contact Sign in
gnu.emacs.help only
 
Advanced search
POPULAR GROUPS

more...

gnu.emacs.help Profile…
 Up
Behavior of M-x and A-x         


Author: Peter Weiss
Date: Aug 11, 2008 10:48

Hello,

sitting on a Sun keyboard, which behaves always a bit unusual...

There are two keys on my keyboard: One marked with a diamond and the
other one with "Alt" letters. Both behave different. So "M-x" and
"A-x" give different commands. The usual meta commands like "M-x",
"M-q", etc. are bound to the M-key, all the A- seem to be
unbound.

Is there a way to make emacs use A-key like the meta key?

TIA -- Peter

--
Peter.Weiss@consol.de ConSol* Software GmbH
Phone +49 89 45841-100 Consulting & Solutions
Mobile +49 177 6040121 Franziskanerstr. 38
http://www.consol.de D-81669 München
10 Comments
Re: Behavior of M-x and A-x         


Author: Xah
Date: Aug 11, 2008 12:21

On Aug 11, 10:48 am, Peter Weiss wrote:
> Hello,
>
> sitting on a Sun keyboard, which behaves always a bit unusual...
>
> There are two keys on my keyboard: One marked with a diamond and the
> other one with "Alt" letters. Both behave different. So "M-x" and
> "A-x" give different commands. The usual meta commands like "M-x",
> "M-q", etc. are bound to the M-key, all the A- seem to be
> unbound.
>
> Is there a way to make emacs use A-key like the meta key?

not sure how to do it on Solaris. But on Windows and Mac, do it like
this:
Show full article (1.66Kb)
no comments
Re: Behavior of M-x and A-x         


Author: Lennart Borgman (gmail)
Date: Aug 11, 2008 12:54

Xah wrote:
> ; setting the PC keyboard's various keys to Super or Hyper
> (setq w32-pass-lwindow-to-system nil
> w32-pass-rwindow-to-system nil
> w32-pass-apps-to-system nil
> w32-lwindow-modifier 'super ;; Left Windows key
> w32-rwindow-modifier 'super ;; Right Windows key
> w32-apps-modifier 'hyper) ;; Menu key

Please note that using lwindow/rwindow like this does not work for all
key sequences unless you are using the patched Emacs+EmacsW32.
3 Comments
Re: Behavior of M-x and A-x         


Author: B. T. Raven
Date: Aug 11, 2008 17:11

Lennart Borgman (gmail) wrote:
> Xah wrote:
>> ; setting the PC keyboard's various keys to Super or Hyper
>> (setq w32-pass-lwindow-to-system nil
>> w32-pass-rwindow-to-system nil
>> w32-pass-apps-to-system nil
>> w32-lwindow-modifier 'super ;; Left Windows key
>> w32-rwindow-modifier 'super ;; Right Windows key
>> w32-apps-modifier 'hyper) ;; Menu key
>
>
> Please note that using lwindow/rwindow like this does not work for all
> key sequences unless you are using the patched Emacs+EmacsW32.
>
>
Show full article (0.96Kb)
2 Comments
Re: Behavior of M-x and A-x         


Author: Lennart Borgman (gmail)
Date: Aug 11, 2008 18:03

B. T. Raven wrote:
> Lennart Borgman (gmail) wrote:
>> Xah wrote:
>>> ; setting the PC keyboard's various keys to Super or Hyper
>>> (setq w32-pass-lwindow-to-system nil
>>> w32-pass-rwindow-to-system nil
>>> w32-pass-apps-to-system nil
>>> w32-lwindow-modifier 'super ;; Left Windows key
>>> w32-rwindow-modifier 'super ;; Right Windows key
>>> w32-apps-modifier 'hyper) ;; Menu key
>>
>>
>> Please note that using lwindow/rwindow like this does not work for all
>> key sequences unless you are using the patched Emacs+EmacsW32.
>>
>>
>
> Could you give me an example of this, Lennart. I use Keytweak (and
> rearranged keycaps for Dvorak and a bilaterally symmetrical modifier key
> layout [bottom row: super alt ctl spacebar ctl alt super hyper] and I ...
Show full article (1.88Kb)
1 Comment
Re: Behavior of M-x and A-x         


Author: Xah
Date: Aug 12, 2008 00:33

Xah wrote:
> ; setting the PC keyboard's various keys to Super or Hyper
> (setq w32-pass-lwindow-to-system nil
> w32-pass-rwindow-to-system nil
> w32-pass-apps-to-system nil
> w32-lwindow-modifier 'super ;; Left Windows key
> w32-rwindow-modifier 'super ;; Right Windows key
> w32-apps-modifier 'hyper) ;; Menu key

Lennart Borgman wrote:
> Please note that using lwindow/rwindow like this does not work for all
> key sequences unless you are using the patched Emacs+EmacsW32.

What is the proper way to set it on Windows?

btw, i got those code from somewhere i don't remember. Now looking at
the w32 prefix, it's prob from your page. Thanks.

Xah
http://xahlee.org/

1 Comment
Re: Behavior of M-x and A-x         


Author: Lennart Borgman (gmail)
Date: Aug 12, 2008 05:13

Xah wrote:
> Xah wrote:
>> ; setting the PC keyboard's various keys to Super or Hyper
>> (setq w32-pass-lwindow-to-system nil
>> w32-pass-rwindow-to-system nil
>> w32-pass-apps-to-system nil
>> w32-lwindow-modifier 'super ;; Left Windows key
>> w32-rwindow-modifier 'super ;; Right Windows key
>> w32-apps-modifier 'hyper) ;; Menu key
>
> Lennart Borgman wrote:
>
>> Please note that using lwindow/rwindow like this does not work for all
>> key sequences unless you are using the patched Emacs+EmacsW32.
>
> What is the proper way to set it on Windows?

The only thing that the patched version really offers in this regards is
the possibility to actually avoid sending lwindow etc to the system:

LRESULT
CALLBACK
LowLevelKeyboardProc(INT nCode, WPARAM wParam, LPARAM lParam)
{
...
case VK_LWIN:
{
bHandle = NILP(Vw32_pass_lwindow_to_system);
...
Show full article (2.18Kb)
no comments
Emacsw32 website suggestion [Re: Behavior of M-x and A-x]         


Author: Xah
Date: Aug 12, 2008 06:06

On Aug 12, 5:13 am, "Lennart Borgman (gmail)"
gmail.com> wrote:
> Xahwrote:
>>Xahwrote:
>>> ; setting the PC keyboard's various keys to Super or Hyper
>>> (setq w32-pass-lwindow-to-system nil
>>> w32-pass-rwindow-to-system nil
>>> w32-pass-apps-to-system nil
>>> w32-lwindow-modifier 'super ;; Left Windows key
>>> w32-rwindow-modifier 'super ;; Right Windows key
>>> w32-apps-modifier 'hyper) ;; Menu key
>
>> Lennart Borgman wrote:
>
>>> Please note that using lwindow/rwindow like this does not work for all
>>> key sequences unless you are using the patched Emacs+EmacsW32.
>
>> What is the proper way to set it on Windows?
>
> The only thing that the patched version really offers in this regards is ...
Show full article (3.55Kb)
1 Comment
Re: Emacsw32 website suggestion [Re: Behavior of M-x and A-x]         


Author: Lennart Borgman (gmail)
Date: Aug 12, 2008 07:08

Xah wrote:
> Thanks. Quite complicated i don't understand. That seems c source.

Just look at the structure. I think you can guess what is going on from
that.
> there's some suggestion about your emacsw32 site.
>
> • drop the name to just EmacsW32. As opposed to Emacs+EmacsW32.

Thanks, but I have struggled quite a bit with that one. There has been a
lot of misunderstandings and because of that I prefer Emacs+EmacsW32.
> • redo the entry page so it's simply a site for EmacsW32, as a pre-
> compiled emacs distro for MS Windows. With this message simple. Then
> links to separate pages about features, source code, explanation of
> patch, on reason to use, change log, etc.

You mean the page

http://ourcomments.org/Emacs/Emacs.html

Yes, it is out of sync so to say now. Thanks.
no comments
Re: Behavior of M-x and A-x         


Author: B. T. Raven
Date: Aug 12, 2008 09:54

Lennart Borgman (gmail) wrote:
> B. T. Raven wrote:
>> Lennart Borgman (gmail) wrote:
>>> Xah wrote:
>>>> ; setting the PC keyboard's various keys to Super or Hyper
>>>> (setq w32-pass-lwindow-to-system nil
>>>> w32-pass-rwindow-to-system nil
>>>> w32-pass-apps-to-system nil
>>>> w32-lwindow-modifier 'super ;; Left Windows key
>>>> w32-rwindow-modifier 'super ;; Right Windows key
>>>> w32-apps-modifier 'hyper) ;; Menu key
>>>
>>>
>>> Please note that using lwindow/rwindow like this does not work for
>>> all key sequences unless you are using the patched Emacs+EmacsW32.
>>>
>>>
>>
>> Could you give me an example of this, Lennart. I use Keytweak (and
>> rearranged keycaps for Dvorak and a bilaterally symmetrical modifier ...
Show full article (2.32Kb)
no comments
1 2