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 09:57:49 -0700 (PDT) Message-ID: 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 1444755696 31668 80.91.229.3 (13 Oct 2015 17:01:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 Oct 2015 17:01:36 +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:01:32 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 1Zm2x7-0003Up-Vm for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Oct 2015 19:01:30 +0200 Original-Received: from localhost ([::1]:38178 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zm2x7-0000q5-6T for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Oct 2015 13:01:29 -0400 X-Received: by 10.182.191.34 with SMTP id gv2mr29747072obc.40.1444755470185; Tue, 13 Oct 2015 09:57:50 -0700 (PDT) X-Received: by 10.50.13.38 with SMTP id e6mr237935igc.5.1444755470167; Tue, 13 Oct 2015 09:57:50 -0700 (PDT) Original-Path: usenet.stanford.edu!news.kjsl.com!news.alt.net!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!kq10no20838768igb.0!news-out.google.com!n2ni29164igy.0!nntp.google.com!kq10no20838765igb.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 16:57:50 +0000 Original-Lines: 58 X-Received-Bytes: 3815 X-Received-Body-CRC: 3158354153 Original-Xref: usenet.stanford.edu gnu.emacs.help:215325 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:107608 Archived-At: On Tuesday, October 13, 2015 at 8:05:33 PM UTC+5:30, Shahab Shahsavari Alav= idjeh 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 Shibi > 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 (and > 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 emacs > 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 Hi Shibi Welcome to emacs! Does this work for you (outside of and independent of emacs)? $ setxkbmap -layout "us,ir" -option "grp:lalt_lshift_toggle,grp_led:scroll"= =20 If yes then you can see how to arrange for emacs to call that based on mode= (switching)?