all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Harry Putnam <reader@newsguy.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Sanest way to make emacs behave on a Solaris OS
Date: Mon, 29 Jul 2013 14:18:28 -0400	[thread overview]
Message-ID: <x661vt2psb.fsf@newsguy.com> (raw)
In-Reply-To: icob9kbwvu.fsf@home.home

Dan Espen <despen@verizon.net> writes:

> Harry Putnam <reader@newsguy.com> writes:
>
>> I hope there may be a longtime emacs on Solaris user in the house who
>> can tell me the sanest way to make emacs behave on that OS.
>>
>> I'm running a recent install of openindiana (one of the offshoot
>> solaris OS's) and its been a good long while since I've run Solaris. 
>>
>> The biggest problem is that the M (alt) key is not recognized on
>> solaris and so one must use the Esc key which is really awkward.  And
>> it seems I vaguely recall some other problems too, but right now that
>> Esc key thing is such an absolute pain I haven't got that far.
>>
>> I realize I can do some key re-assignments but I seem to remember
>> there being some drawbacks to that too.  So anyway, someone who has
>> run emacs on Solaris will maybe know a comprehensive solution I can
>> try. 
>
> Haven't had my hands on Solaris for a while, so from memory:
>
> Are you running under X or in a terminal?
>
> I'm going to assume you are running under X.
>
> Under X you want the left alt key to emit Alt_L.
> Use xev to see what the key emits.
>
> Alt_L should show up as mod1 when you display modifiers.
> Use the command:
>
> xmodmap -pm

Thanks for the input.
Running X yes, but will also use emacs in terminal mode.

xev reveals Alt is Alt_L:
  KeyRelease event, serial 133, synthetic NO, window 0x4000019,
      root 0x101, subw 0x400001a, time 64504583, (255,507), root:(952,559),
      state 0x8, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
      XLookupString gives 0 bytes: 
      XFilterEvent returns: False

xmodmap -pm reveals that Alt_L is mod1:
  shift       Shift_L (0x32),  Shift_R (0x3e)
  lock        Caps_Lock (0x42)
  control     Control_L (0x25),  Control_R (0x6d)
  mod1        Alt_L (0x40)
  mod2        Num_Lock (0x4d)
  mod3      
  mod4        Meta_L (0x73),  Meta_R (0x74),  Super_L (0x7f),  Hyper_L (0x80)
  mod5        Mode_switch (0x5d),  ISO_Level3_Shift (0x71),  ISO_Level3_Shift (0x7c)

By the way, xev reveals the following for the Esc key on emacs

  KeyRelease event, serial 133, synthetic NO, window 0x4000019,
      root 0x101, subw 0x400001a, time 64689391, (457,441), root:(1154,493),
      state 0x0, keycode 9 (keysym 0xff1b, Escape), same_screen YES,
      XLookupString gives 1 bytes: (1b) "
  FilterEvent returns: False

From your post it appears you are saying if Alt emits Alt_L and Alt_L is
mapped to mod1... I should be good to go.  Is that right?

Because it appears that Alt does emit Alt_L and Alt_l is mapped to mod1
but it is not recognized as M in emacs.. as in such commands as 
M-x whatever RET

What I get when I press the Alt key in emacs is "A-x is not defined." So
have to press Esc x to run M-x. 

I mentioned it is an antique version of emacs:
  GNU Emacs 23.1.1 (x86_64-pc-solaris2.11, X toolkit) of 2012-09-23 on
 oidev0
If that makes a difference.

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

Gack... I just noticed that the Windows key (Meta_L acts like M (alt)
key to emacs.

xev shows this for Windows key:

  KeyRelease event, serial 134, synthetic NO, window 0x4000019,
      root 0x101, subw 0x400001a, time 66248204, (504,302), root:(1197,383),
      state 0x40, keycode 115 (keysym 0xffe7, Meta_L), same_screen YES,
      XLookupString gives 0 bytes: 
      XFilterEvent returns: False

xmodmap -pm shows it as Mod4
  xmodmap:  up to 4 keys per modifier, (keycodes in parentheses):

  shift       Shift_L (0x32),  Shift_R (0x3e)
  lock        Caps_Lock (0x42)
  control     Control_L (0x25),  Control_R (0x6d)
  mod1        Alt_L (0x40)
  mod2        Num_Lock (0x4d)
  mod3      
  mod4        Meta_L (0x73),  Meta_R (0x74),  Super_L (0x7f),  Hyper_L (0x80)
  mod5        Mode_switch (0x5d),  ISO_Level3_Shift (0x71),  ISO_Level3_Shift (0x7c)

At least that key is way better than the escape key.




  reply	other threads:[~2013-07-29 18:18 UTC|newest]

Thread overview: 60+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.2072.1375151019.12400.help-gnu-emacs@gnu.org>
2013-07-30  2:32 ` Sanest way to make emacs behave on a Solaris OS Dan Espen
2013-07-29 18:18   ` Harry Putnam [this message]
     [not found]   ` <mailman.2176.1375205273.12400.help-gnu-emacs@gnu.org>
2013-07-30 18:00     ` Dan Espen
2013-07-30 18:16 ` Emanuel Berg
2013-07-31  3:23   ` Harry Putnam
     [not found]   ` <mailman.2199.1375241187.12400.help-gnu-emacs@gnu.org>
2013-07-31 17:55     ` Emanuel Berg
2013-07-31 18:26       ` Emanuel Berg
2013-08-02 12:48       ` Harry Putnam
2013-08-03  7:03         ` Bob Proulx
2013-08-05  2:32           ` Harry Putnam
2013-08-05  2:51             ` Stefan Monnier
     [not found]             ` <mailman.2500.1375671147.12400.help-gnu-emacs@gnu.org>
2013-08-05  7:59               ` Emanuel Berg
2013-08-05 13:43                 ` Stefan Monnier
2013-08-04  5:32                   ` Harry Putnam
2013-08-05 22:40                     ` Stefan Monnier
2013-08-04 10:35                       ` Harry Putnam
2013-08-06  5:49                         ` Bob Proulx
2013-08-06 12:52                       ` Harry Putnam
2013-08-06 13:09                         ` Peter Dyballa
     [not found]                         ` <mailman.2603.1375794577.12400.help-gnu-emacs@gnu.org>
2013-08-06 21:33                           ` Emanuel Berg
2013-08-05 13:55                 ` Dan Espen
2013-08-05 20:16             ` Bob Proulx
2013-08-04 10:10               ` Harry Putnam
     [not found]               ` <mailman.2580.1375742208.12400.help-gnu-emacs@gnu.org>
2013-08-05 22:47                 ` Emanuel Berg
     [not found]             ` <mailman.2569.1375733828.12400.help-gnu-emacs@gnu.org>
2013-08-05 22:04               ` Emanuel Berg
2013-08-05 22:29                 ` Bob Proulx
     [not found]                 ` <mailman.2579.1375741786.12400.help-gnu-emacs@gnu.org>
2013-08-05 22:44                   ` Emanuel Berg
     [not found]           ` <mailman.2498.1375670121.12400.help-gnu-emacs@gnu.org>
2013-08-05  7:58             ` Emanuel Berg
2013-08-05 14:48               ` Eli Zaretskii
     [not found]               ` <mailman.2536.1375714107.12400.help-gnu-emacs@gnu.org>
2013-08-05 15:32                 ` Dan Espen
2013-08-05 16:50                   ` Eli Zaretskii
2013-08-05 18:03                   ` Emanuel Berg
2013-08-05 18:51                     ` Dan Espen
2013-08-05 17:51                 ` Emanuel Berg
2013-08-05 18:23                   ` Eli Zaretskii
2013-08-05 19:25                     ` Óscar Fuentes
     [not found]                     ` <mailman.2559.1375730782.12400.help-gnu-emacs@gnu.org>
2013-08-05 22:23                       ` Emanuel Berg
     [not found]                   ` <mailman.2552.1375727048.12400.help-gnu-emacs@gnu.org>
2013-08-05 18:25                     ` Emanuel Berg
2013-08-05 19:03                       ` Eli Zaretskii
     [not found]         ` <mailman.2419.1375513430.12400.help-gnu-emacs@gnu.org>
2013-08-03 10:42           ` Emanuel Berg
2013-08-05 20:04             ` Bob Proulx
     [not found]             ` <mailman.2567.1375733090.12400.help-gnu-emacs@gnu.org>
2013-08-05 21:53               ` Emanuel Berg
2013-08-05 23:21               ` Emanuel Berg
2013-08-05 23:41               ` Dan Espen
2013-08-06  5:54                 ` Bob Proulx
2013-08-06 21:15                 ` Emanuel Berg
2013-08-07  0:38                   ` Dan Espen
2013-08-07 12:06                     ` Emanuel Berg
2013-08-08 15:36                       ` Emanuel Berg
2013-08-07  0:22                 ` Emanuel Berg
2013-08-08 15:43                 ` Emanuel Berg
2013-08-08 18:08                   ` Dan Espen
2013-08-08 20:19                     ` Emanuel Berg
     [not found]       ` <mailman.2372.1375447876.12400.help-gnu-emacs@gnu.org>
2013-08-02 18:34         ` Emanuel Berg
2013-08-02 13:02   ` Harry Putnam
     [not found]   ` <mailman.2374.1375448728.12400.help-gnu-emacs@gnu.org>
2013-08-02 18:39     ` Emanuel Berg
2013-08-02 19:12       ` Emanuel Berg
2013-08-02 18:52     ` Emanuel Berg
2013-08-02 19:32       ` Emanuel Berg
2013-07-30  2:20 Harry Putnam

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=x661vt2psb.fsf@newsguy.com \
    --to=reader@newsguy.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.