From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.help Subject: Re: Sanest way to make emacs behave on a Solaris OS Date: Mon, 29 Jul 2013 14:18:28 -0400 Organization: Still searching... Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1375205280 24414 80.91.229.3 (30 Jul 2013 17:28:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Jul 2013 17:28:00 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 30 19:28:02 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V4DiL-00041Z-Ax for geh-help-gnu-emacs@m.gmane.org; Tue, 30 Jul 2013 19:28:01 +0200 Original-Received: from localhost ([::1]:39758 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V4DiK-0003K0-Un for geh-help-gnu-emacs@m.gmane.org; Tue, 30 Jul 2013 13:28:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54552) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V4Di5-0003Js-L3 for help-gnu-emacs@gnu.org; Tue, 30 Jul 2013 13:27:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V4Dhx-0001sF-8Z for help-gnu-emacs@gnu.org; Tue, 30 Jul 2013 13:27:45 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:53448) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V4Dhx-0001rw-2J for help-gnu-emacs@gnu.org; Tue, 30 Jul 2013 13:27:37 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1V4Dhw-0003p0-2a for help-gnu-emacs@gnu.org; Tue, 30 Jul 2013 19:27:36 +0200 Original-Received: from z65-50-57-227.ips.direcpath.com ([65.50.57.227]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 30 Jul 2013 19:27:36 +0200 Original-Received: from reader by z65-50-57-227.ips.direcpath.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 30 Jul 2013 19:27:36 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 103 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: z65-50-57-227.ips.direcpath.com User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (usg-unix-v) Cancel-Lock: sha1:6X/wBTPwhA2V+7OCnnkI/x5XwsI= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:92562 Archived-At: Dan Espen writes: > Harry Putnam 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.