From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rusi Newsgroups: gmane.emacs.help Subject: Re: Using AltGr as standard modifier key in emacs Date: Tue, 13 Oct 2015 10:05:27 -0700 (PDT) Message-ID: <902f4b3f-2c82-4d07-b940-67278871bde3@googlegroups.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1444756290 9862 80.91.229.3 (13 Oct 2015 17:11:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 Oct 2015 17:11:30 +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 Oct 13 19:11:29 2015 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 1Zm36j-0004nY-NR for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Oct 2015 19:11:26 +0200 Original-Received: from localhost ([::1]:38213 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zm36i-0004lD-Ts for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Oct 2015 13:11:24 -0400 X-Received: by 10.31.182.10 with SMTP id g10mr29529264vkf.7.1444755927644; Tue, 13 Oct 2015 10:05:27 -0700 (PDT) X-Received: by 10.50.142.9 with SMTP id rs9mr241803igb.6.1444755927610; Tue, 13 Oct 2015 10:05:27 -0700 (PDT) Original-Path: usenet.stanford.edu!5no944001qgg.0!news-out.google.com!n2ni29175igy.0!nntp.google.com!kq10no18253926igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=61.1.38.140; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui Original-NNTP-Posting-Host: 61.1.38.140 User-Agent: G2/1.0 Injection-Date: Tue, 13 Oct 2015 17:05:27 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:215326 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:107609 Archived-At: On Tuesday, October 13, 2015 at 10:27:52 PM UTC+5:30, Rusi wrote: > On Tuesday, October 13, 2015 at 8:05:33 PM UTC+5:30, Shahab Shahsavari Al= avidjeh wrote: > > Hi there > >=20 > > While that's my first post here, I'm going to introduce myself a little > > bit, and I think this introduction might be relevant to my question > > here, I'm Shahab Shahsavari Alavidjeh (simply everyone can call me Shib= i > > if that's too hard to pronounce) and I'm using emacs for my day to day > > tasks (as a writer and translator) for writing and organizing my > > tasks. Well I'm not a software developer or an emacs expert by any > > means, therefor my questions or requests may seems dumb. > >=20 > > Well I'm an Iranian and a Persian speaker, which leads us right to the > > problem, while emacs has great support for UTF-8 and complex script > > languages (like Persian) and there is a well maintained quail input > > method package for farsi (thanks to Mohsen Banan > > http://mohsen.1.banan.byname.net/) there's a huge problem with that (an= d > > as I already reviewed the code for hebrew, arabic and even latin-alt > > input methods this problem exists there too) There is no implementation > > for AltGr key or ISO_Level3_Shift key in elisp. So every input method > > re-implemented a different modifier key and bind the third or forth > > level modification to that. (in persian that key is "\" in hebrew that > > key is "`" in latin-alt that key seems to be "_" in latin-post the key > > is ",") which IMO is a very inconsistent way of implementation. > >=20 > > But waht is my question? > >=20 > > is there any way to work around this problem and assign a modifier key > > to "Right Alt Key" on keyboard which is accessible through elisp > > customization? something which I can assign a character (for example = =E1 > > to (kbd rightalt-a))? > >=20 > > Why I don't simply use my D.E. input method support and keyboard layout > > switcher instead? > >=20 > > I'm currently using it, that's my best option right now, but then I > > should switch keyboard layouts whenever I want to run a command in emac= s > > or even when I want to save a file to disk. > >=20 > > I appreciate any answer which can help me to get it working. > >=20 > > What I'm using right now is > >=20 > > GNU Emacs 24.5.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.16.6) of > > 2015-09-14 on buildvm-10.phx2.fedoraproject.org > >=20 > > Thank You > > Shahab >=20 > Hi Shibi > Welcome to emacs! >=20 > Does this work for you (outside of and independent of emacs)? >=20 > $ setxkbmap -layout "us,ir" -option "grp:lalt_lshift_toggle,grp_led:scrol= l"=20 >=20 > If yes then you can see how to arrange for emacs to call that based on mo= de (switching)? Just to clarify: That command (on my ubuntu 15.4 box) switches from us to ir(ani)=B9 when gi= ven a l-alt, l-shift chord. Same switches back ie its a toggle =B9 Well actually not sure about the Irani! Emacs says its Arabic!