From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Shahab Shahsavari Alavidjeh Newsgroups: gmane.emacs.help Subject: Re: Using AltGr as standard modifier key in emacs Date: Tue, 13 Oct 2015 21:14:46 +0330 Message-ID: <87zizm4q9d.fsf@fedora22.zzgraph> References: <902f4b3f-2c82-4d07-b940-67278871bde3@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1444758384 13796 80.91.229.3 (13 Oct 2015 17:46:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 Oct 2015 17:46:24 +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:46:18 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 1Zm3eT-0005Qp-Qn for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Oct 2015 19:46:17 +0200 Original-Received: from localhost ([::1]:38436 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zm3eT-0007Av-AF for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Oct 2015 13:46:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41572) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zm3dA-00063a-67 for help-gnu-emacs@gnu.org; Tue, 13 Oct 2015 13:44:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zm3d6-00041k-Nr for help-gnu-emacs@gnu.org; Tue, 13 Oct 2015 13:44:56 -0400 Original-Received: from mail-wi0-x229.google.com ([2a00:1450:400c:c05::229]:37007) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zm3d6-00041N-IZ for help-gnu-emacs@gnu.org; Tue, 13 Oct 2015 13:44:52 -0400 Original-Received: by wijq8 with SMTP id q8so43074335wij.0 for ; Tue, 13 Oct 2015 10:44:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version:content-type:content-transfer-encoding; bh=/iaI0aEuwE58xMvAGhZUq6aFZLRpPYl6uNCNnvTkSLs=; b=uD+0enFhfPWlJDWc19FhkU9j7V5wP5XXItedCl1vssQ7tsP6Ka/Z81uA8EdU3c04Qi T60mjl8+Hb192VXoc67em7oF7wLx7fY6Aua/foD4dtBKpfnjIOmhdV46FovM7liXykhu EPbDG9ez6aDqihCOGqJfDfv03DY4Uhs4zezaEbmUk+Tvmfzkyp5vOfrNZzQBeLHbMfkb 0JINkfHp7bgNaTnWrzp9/W5eN49Z90fBlnMo1eGXVvxaYA17Hma/fKwIZbME4lTzx7KX liKtTL3kG/qffQ2RqUsy0T+XB05FJnnwOaBT4jakb30zWXHJrYsg01wKsoiwfwOfziBf Yl/Q== X-Received: by 10.180.8.106 with SMTP id q10mr21143508wia.92.1444758291875; Tue, 13 Oct 2015 10:44:51 -0700 (PDT) Original-Received: from localhost ([188.245.98.79]) by smtp.gmail.com with ESMTPSA id pk7sm4995210wjb.2.2015.10.13.10.44.49 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Oct 2015 10:44:50 -0700 (PDT) In-Reply-To: <902f4b3f-2c82-4d07-b940-67278871bde3@googlegroups.com> (Rusi's message of "Tue, 13 Oct 2015 10:05:27 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::229 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:107613 Archived-At: Rusi writes: > 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 A= lavidjeh wrote: >> >=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 ema= cs >> > or even when I want to save a file to disk. >> Does this work for you (outside of and independent of emacs)? >>=20 >> $ setxkbmap -layout "us,ir" -option "grp:lalt_lshift_toggle,grp_led:scro= ll"=20 >>=20 >> If yes then you can see how to arrange for emacs to call that based on m= ode (switching)? > > Just to clarify: > That command (on my ubuntu 15.4 box) switches from us to ir(ani)=C2=B9 wh= en given > a l-alt, l-shift chord. Same switches back ie its a toggle > > =C2=B9 Well actually not sure about the Irani! Emacs says its Arabic! Thanks for reply, There's no problem with keyboard switcher, the problem is I want to use built-in input method in Emacs (Which I can switch it with `(kbd "\C-\\")'), Why? because in Emacs everything is keyboard driven and when I want to copy or kill or save I have to switch back to en layout, press shortcuts and again switch the layout. By Emacs quail input methods I can easily use keybindings and shortcuts without switching layout (It's smart). Keyboard layouts works fine outside of Emacs, I have my AltGr key working outside of Emacs and inside of it both correctly working out of the box and I layout switcher works perfect (though I'm using gnome-3.?? and the keybinding is Super-Space) I can use ir or any other keyboard layout even inside Emacs (ir stands for Iran, the name of the language is Farsi or Persian which makes the codename fa_IR just like United States and English which makes the codename en_US) So my problem is not that I can not switch keyboard layout, the problem is that I want to have a working state which I can use 3rd level shift from inside Emacs input method or a workaround which give me ability to use Emacs keybindings (C- M- stuff) without changing keyboard layouts.