From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Pascal J. Bourguignon" Newsgroups: gmane.emacs.help Subject: Re: Strange characters produced by M-x in emacs -nw Date: Sat, 21 Sep 2013 12:06:09 +0200 Organization: Informatimago Message-ID: <877gea5w1a.fsf@informatimago.com> References: <87r4cnmlxf.fsf@newsguy.com> <5D24468E-2A38-4F4C-AD14-9A1401683124@Web.DE> <8738oz5uh4.fsf@newsguy.com> <20130920172847.GA30192@hysteria.proulx.com> <87li2rmegr.fsf@newsguy.com> <87fvsz5faj.fsf@informatimago.com> <87wqmb5ebj.fsf@newsguy.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1379758093 7250 80.91.229.3 (21 Sep 2013 10:08:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 21 Sep 2013 10:08:13 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Sep 21 12:08:16 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 1VNK6o-0003ga-DZ for geh-help-gnu-emacs@m.gmane.org; Sat, 21 Sep 2013 12:08:14 +0200 Original-Received: from localhost ([::1]:59353 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VNK6n-0004dB-Sf for geh-help-gnu-emacs@m.gmane.org; Sat, 21 Sep 2013 06:08:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57884) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VNK6Z-0004d2-LM for help-gnu-emacs@gnu.org; Sat, 21 Sep 2013 06:08:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VNK6S-0004Px-RA for help-gnu-emacs@gnu.org; Sat, 21 Sep 2013 06:07:59 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:36763) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VNK6S-0004Pm-CU for help-gnu-emacs@gnu.org; Sat, 21 Sep 2013 06:07:52 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VNK6P-0002kG-PW for help-gnu-emacs@gnu.org; Sat, 21 Sep 2013 12:07:49 +0200 Original-Received: from 90.24.176.106 ([90.24.176.106]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 21 Sep 2013 12:07:49 +0200 Original-Received: from pjb by 90.24.176.106 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 21 Sep 2013 12:07:49 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 420 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 90.24.176.106 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9 033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR mV+hO/VvFAAAAABJRU5ErkJggg== X-Accept-Language: fr, es, en Importance: high User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) Cancel-Lock: sha1:ZGIwYWIzYjVjMTZkZGU5YmZkYmE2OGJiMmJlZGI2MGU0YTM3OGU0OQ== 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:93488 Archived-At: Harry Putnam writes: > "Pascal J. Bourguignon" writes: > >> Stefan Monnier writes: >> >>>> | mod1 Alt_L (0x40), Alt_R (0x6c), Meta_L (0xcd) >>> >>> This might be a source of problems: try to remap your Meta_L key to >>> Alt_L as follows: >>> >>> xmodmap -e 'keysym Meta_L = Alt_L' >> >> No, instead map Meta_L to a free keycode! >> Don't confuse Alt and Meta Combine them! >> Bind A-M-x and others to some useful command! > > What about some examples? Yes, I'm posting my .xmodmap each week… ! ! This is an `xmodmap' input file for the DasKeyboard 3 ! ! Bus 008 Device 005: ID 04d9:2013 Holtek Semiconductor, Inc. ! ! PC 105 keys, wide Delete, wide Enter. ! ! C- Control ! M- Meta ! S- Shift ! s- super ! H- Hyper ! O- Option ! A- Alt ! W- Window ! G- AltGr ! x, S-x, g-x, g-S-x ! ! ESC F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12 ! `~∞∝ 1!₁¹ 2@₂² 3#₃³ 4$₄⁴ 5%₅⁵ 6^₆⁶ 7₇⁷ 8*₈⁸ 9(₉⁹ 0)₀⁰ -_⊣⊥ =+⊢⊤ Backspace ! TAB qQωΩ wW€¢ eEεΕ rRρΡ tTτΤ yYψΨ uUυΥ iIιΙ oOοΟ pPπΠ [{«∀ ]}»∃ \|∖∫ ! Control aAαΑ sSσΣ dDδΔ fFφΦ gGγΓ hHθΘ jJηΗ kKκΚ lLλΛ ;:⊆⎕ '"⊇○ Return ! Shift zZζΖ xXξΞ cCχΧ vV∇√ bBβΒ nNνΝ mMμΜ ,<≤∧ .>≥∨ /?≠¬ Shift ! Multi_key Alt Meta ---- Space DigitSpace ----- Meta ModeSw Hyper Control ! ! ! Pause ∂ CapsLock Print ! Insert ∈∉ Home ⇒⇔ Prior ≡≢ ! Delete ∅≣ End ∴ ∵ Next ≈≇ ! ! Up ↑∩ ! Left ←⊂ Down ↓∪ Right →⊃ ! ! ! ! ! NumLock * / - ! Home 7 Up 8 Prior 9 ! Left 4 Begin 5 Right 6 + ! End 1 Down 2 Next 3 Ent ! Insert 0 Delete . er ! ! ! NumLock * / - ! Home 7 Up 8 Prior 9 ! Left 4 Begin 5 Right 6 + ! End 1 Down 2 Next 3 Ent ! Insert 0 Delete . er ! ! ! ! ! ! !------------------------------------------------------------ ! First line !------------------------------------------------------------ keycode 9 = Escape keycode 67 = F1 XF86_Switch_VT_1 F21 keycode 68 = F2 XF86_Switch_VT_2 F22 keycode 69 = F3 XF86_Switch_VT_3 F23 keycode 70 = F4 XF86_Switch_VT_4 F24 keycode 71 = F5 XF86_Switch_VT_5 F25 keycode 72 = F6 XF86_Switch_VT_6 F26 keycode 73 = F7 XF86_Switch_VT_7 F27 keycode 74 = F8 XF86_Switch_VT_8 F28 keycode 75 = F9 XF86_Switch_VT_9 F29 keycode 76 = F10 XF86_Switch_VT_10 F30 keycode 95 = F11 XF86_Switch_VT_11 F31 keycode 96 = F12 XF86_Switch_VT_12 F32 keycode 107 = Pause Break F33 keycode 78 = Caps_Lock Caps_Lock F34 !keycode 127 = Print Sys_Req F35 keycode 127 = Super_R Super_R !------------------------------------------------------------ ! Second line !------------------------------------------------------------ keycode 49 = grave asciitilde infinity variation keycode 10 = 1 exclam onesubscript onesuperior keycode 11 = 2 at twosubscript twosuperior keycode 12 = 3 numbersign threesubscript threesuperior keycode 13 = 4 dollar foursubscript foursuperior keycode 14 = 5 percent fivesubscript fivesuperior keycode 15 = 6 asciicircum sixsubscript sixsuperior keycode 16 = 7 ampersand sevensubscript sevensuperior keycode 17 = 8 asterisk eightsubscript eightsuperior keycode 18 = 9 parenleft ninesubscript ninesuperior keycode 19 = 0 parenright zerosubscript zerosuperior keycode 20 = minus underscore righttack downtack keycode 21 = equal plus lefttack uptack keycode 22 = BackSpace BackSpace BackSpace BackSpace !------------------------------------------------------------ ! Third line !------------------------------------------------------------ keycode 23 = Tab ISO_Left_Tab keycode 24 = q Q Greek_omega Greek_OMEGA keycode 25 = w W EuroSign cent keycode 26 = e E Greek_epsilon Greek_EPSILON keycode 27 = r R Greek_rho Greek_RHO keycode 28 = t T Greek_tau Greek_TAU keycode 29 = y Y Greek_psi Greek_PSI keycode 30 = u U Greek_upsilon Greek_UPSILON keycode 31 = i I Greek_iota Greek_IOTA keycode 32 = o O Greek_omicron Greek_OMICRON keycode 33 = p P Greek_pi Greek_PI keycode 34 = bracketleft braceleft guillemotleft 0x1002200 keycode 35 = bracketright braceright guillemotright 0x1002203 keycode 51 = backslash bar 0x1002216 integral !------------------------------------------------------------ ! Fourth line (home row) !------------------------------------------------------------ keycode 66 = Control_L keycode 38 = a A Greek_alpha Greek_ALPHA keycode 39 = s S Greek_sigma Greek_SIGMA keycode 40 = d D Greek_delta Greek_DELTA keycode 41 = f F Greek_phi Greek_PHI keycode 42 = g G Greek_gamma Greek_GAMMA keycode 43 = h H Greek_theta Greek_THETA keycode 44 = j J Greek_eta Greek_ETA keycode 45 = k K Greek_kappa Greek_KAPPA keycode 46 = l L Greek_lamda Greek_LAMDA keycode 47 = semicolon colon 0x1002286 quad keycode 48 = apostrophe quotedbl 0x1002287 circle keycode 36 = Return !------------------------------------------------------------ ! Fifth line !------------------------------------------------------------ keycode 50 = Shift_L keycode 52 = z Z Greek_zeta Greek_ZETA keycode 53 = x X Greek_xi Greek_XI keycode 54 = c C Greek_chi Greek_CHI keycode 55 = v V nabla radical keycode 56 = b B Greek_beta Greek_BETA keycode 57 = n N Greek_nu Greek_NU keycode 58 = m M Greek_mu Greek_MU keycode 59 = comma less lessthanequal logicaland keycode 60 = period greater greaterthanequal logicalor keycode 61 = slash question notequal notsign keycode 62 = Shift_R !------------------------------------------------------------ ! Sixth line !------------------------------------------------------------ keycode 37 = Multi_key keycode 133 = Alt_L keycode 64 = Meta_L keycode 65 = space space digitspace digitspace keycode 108 = Meta_R keycode 134 = Mode_switch keycode 135 = Hyper_R keycode 105 = Control_R !------------------------------------------------------------ ! Home !------------------------------------------------------------ keycode 118 = Insert Insert elementof notelementof keycode 119 = Delete Delete emptyset stricteq keycode 110 = Home Home implies ifonlyif keycode 115 = End End therefore because keycode 112 = Prior Prior identical notidentical keycode 117 = Next Next approxeq notapproxeq !------------------------------------------------------------ ! Arrows !------------------------------------------------------------ keycode 111 = Up Up uparrow intersection keycode 113 = Left Left leftarrow includedin keycode 116 = Down Down downarrow union keycode 114 = Right Right rightarrow includes !------------------------------------------------------------ ! Numerical Keypad !------------------------------------------------------------ !! ! Second line: !! !keycode 77 = Num_Lock Pointer_EnableKeys !! keycode 77 = Num_Lock !! keycode 106 = KP_Multiply XF86_ClearGrab !! keycode 63 = KP_Divide XF86_Ungrab !! keycode 82 = KP_Subtract KP_Subtract 0x1002500 0x1002550 !! !! ! Third line: !! keycode 79 = KP_Home KP_7 0x100250C 0x1002554 !! keycode 80 = KP_Up KP_8 0x100252C 0x1002566 !! keycode 81 = KP_Prior KP_9 0x1002510 0x1002557 !! !! ! Fourth line: !! keycode 83 = KP_Left KP_4 0x100251C 0x1002560 !! keycode 84 = KP_Begin KP_5 0x100253C 0x100256C !! keycode 85 = KP_Right KP_6 0x1002524 0x1002563 !! keycode 86 = KP_Add KP_Add 0x1002502 0x1002551 !! !! ! Fifth line: !! keycode 87 = KP_End KP_1 0x1002514 0x100255A !! keycode 88 = KP_Down KP_2 0x1002534 0x1002569 !! keycode 89 = KP_Next KP_3 0x1002518 0x100255D !! !! ! Sixth line: !! keycode 90 = KP_Insert KP_0 !! keycode 91 = KP_Delete KP_Decimal !! keycode 104 = KP_Enter ! Second line: keycode 77 = F13 F13 partialderivative keycode 106 = F14 F14 keycode 63 = F15 F15 keycode 82 = F16 F16 0x1002500 0x1002550 ! Third line: keycode 79 = F27 KP_7 0x100250C 0x1002554 keycode 80 = F28 KP_8 0x100252C 0x1002566 keycode 81 = F29 KP_9 0x1002510 0x1002557 ! Fourth line: keycode 83 = F24 KP_4 0x100251C 0x1002560 keycode 84 = F25 KP_5 0x100253C 0x100256C keycode 85 = F26 KP_6 0x1002524 0x1002563 keycode 86 = F17 F17 0x1002502 0x1002551 ! Fifth line: keycode 87 = F21 KP_1 0x1002514 0x100255A keycode 88 = F22 KP_2 0x1002534 0x1002569 keycode 89 = F23 KP_3 0x1002518 0x100255D ! Sixth line: !keycode 90 = F20 KP_0 keycode 90 = Super_R Super_R keycode 91 = F18 KP_Decimal keycode 104 = F19 F19 !------------------------------------------------------------ ! Modifiers !------------------------------------------------------------ clear Shift clear Lock clear Control clear Mod1 clear Mod2 clear Mod3 clear Mod4 clear Mod5 !!! In order of bits: add Shift = Shift_L Shift_R add Lock = Caps_Lock add Control = Control_L Control_R add Mod1 = Num_Lock add Mod2 = Alt_L Alt_R Mode_switch add Mod3 = Meta_L Meta_R add Mod4 = Super_L Super_R add Mod5 = Hyper_L Hyper_R !---------------------------------------------------------------------------- ! Multi_key Sequences (»Compose«) ! ! ! '!' is the comment character for xmodmap(1), thus it's omnipresent here. ! ! See also: ! MIT: $SRC/xc/nls/X11/locale/Compose/iso8859-1 ! XFree86: /usr/X11R6/lib/X11/locale/iso8859-1/Compose ! Solaris' Openwin: /usr/openwin/include/X11/Suncompose.h ! /usr/openwin/lib/locale/*/Compose ! Irix6: compose(5) ! ! !---------------------------------------------------------------------------- ! ! In X11R6, there are even 7bit compose sequences, like for video terminals: ! ! + + : # ! A A : @ ! ( ( : [ ! ) ) : ] ! ( - : { ! ) - : } ! / / , / < : \ ! > : ^ ! / ^, V L : | ! - : ~ ! !---------------------------------------------------------------------------- ! 8bit sequences in rather compressed form: ! ! From: Christian Weisgerber ! Newsgroups: de.comp.os.unix.x11 ! Subject: Re: 8 keysym pro keycode !? -- wie benutzen ? ! Message-ID: <869tp8$5d4$1@bigeye.rhein-neckar.de> ! ! | no-break space ¦ broken bar || ! ­ soft hyphen -- µ micro sign /U ! ¡ inverted ! !! ¿ inverted ? ?? ! ¢ cent sign C/ or C| £ pound sign L- or L= ! ¤ currency sign XO or X0 ¥ yen sign Y- or Y= ! § section sign SO or S! or S0 ¶ pilcrow sign P! ! ¨ diaeresis "" or " ¯ macron _^ or -^ ! ´ acute accent '' ¸ cedilla ,, ! © copyright sign CO or C0 ® registered sign RO ! ª feminine ordinal A_ º masculine ordinal O_ ! « opening angle brackets << » closing angle brakets >> ! ° degree sign 0^ ¹ superscript 1 1^ ! ² superscript 2 2^ ³ superscript 3 3^ ! ± plus or minus sign +- ¼ fraction one-quarter 14 ! ½ fraction one-half 12 ¾ fraction three-quarter 34 ! · middle dot .^ or .. ¬ not sign -, ! × multiplication sign xx ÷ division sign :- ! ! À A grave A` à a grave a` ! Á A acute A' á a acute a' !  A circumflex A^ â a circumflex a^ ! à A tilde A~ ã a tilde a~ ! Ä A diaeresis A" ä a diaeresis a" ! Å A ring A* å a ring a* ! Æ AE ligature AE æ ae ligature ae ! ! Ç C cedilla C, ç c cedilla c, ! ! È E grave E` è e grave e` ! É E acute E' é e acute e' ! Ê E circumflex E^ ê e circumflex e^ ! Ë E diaeresis E" ë e diaeresis e" ! ! Ì I grave I` ì i grave i` ! Í I acute I' í i acute i' ! Î I circumflex I^ î i circumflex i^ ! Ï I diaeresis I" ï i diaeresis i" ! ! Ð capital eth D- ð small eth d- ! ! Ñ N tilde N~ ñ n tilde n~ ! ! Ò O grave O` ò o grave o` ! Ó O acute O' ó o acute o' ! Ô O circumflex O^ ô o circumflex o^ ! Õ O tilde O~ õ o tilde o~ ! Ö O diaeresis O" ö o diaeresis o" ! Ø O slash O/ ø o slash o/ ! ! Ù U grave U` ù u grave u` ! Ú U acute U' ú u acute u' ! Û U circumflex U^ û u circumflex u^ ! Ü U diaeresis U" ü u diaeresis u" ! ! Ý Y acute Y' ý y acute y' ! ! Þ capital thorn TH þ small thorn th ! ! ß German small sharp s ss ÿ y diaeresis y" -- __Pascal Bourguignon__ http://www.informatimago.com/