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: Using AltGr as standard modifier key in emacs Date: Tue, 13 Oct 2015 16:41:08 +0330 Message-ID: <87wpuqzzf7.fsf@fedora22.zzgraph> 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 1444757306 28258 80.91.229.3 (13 Oct 2015 17:28:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 Oct 2015 17:28:26 +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:28:19 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 1Zm3N4-0004nB-9n for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Oct 2015 19:28:18 +0200 Original-Received: from localhost ([::1]:36438 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zm0ta-0006jC-Al for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Oct 2015 10:49:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52572) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZlzMV-00061l-T2 for help-gnu-emacs@gnu.org; Tue, 13 Oct 2015 09:11:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZlzMR-0008KC-J4 for help-gnu-emacs@gnu.org; Tue, 13 Oct 2015 09:11:27 -0400 Original-Received: from mail-wi0-x231.google.com ([2a00:1450:400c:c05::231]:34432) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZlzMR-0008Jk-D8 for help-gnu-emacs@gnu.org; Tue, 13 Oct 2015 09:11:23 -0400 Original-Received: by wicgb1 with SMTP id gb1so88948962wic.1 for ; Tue, 13 Oct 2015 06:11:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:user-agent:date:message-id:mime-version :content-type:content-transfer-encoding; bh=/XihXnafygZRPTU7PLFzToR68+mNe5EXw8fBHyyIBc8=; b=wRt/Wdps+OnT4ApDPnQnDTKgjitWdWBd4kWtPtfIkpmp1f7DN4gf6p19X4uC+/y5ax 0H8hwq1AwL/aL5fTnaD0K3b+0h4chXcpbx9dXOTJviotu2BbEaVVJnV45v/EHgLtoa+S VcHLmbOnHQEj4G6u8PqJYogiZ6kwrrEsNiaDnJ8AMaJkfUCxEnJXdZRUkcTrpXciIHl/ 9scXcXsHAgpulNLK4MGsYQs3WlXlk3GftYVSJZBAi7K1S7XrzkdTnBy9qYgSmRK0wMt+ bpiCoJIatgpIF7eqgDCM7sTURRHNAE/Zg1OMuTcM/eITZhv1pZNEppOpM+yhmwjYDrss WmYg== X-Received: by 10.194.81.169 with SMTP id b9mr37047943wjy.3.1444741872603; Tue, 13 Oct 2015 06:11:12 -0700 (PDT) Original-Received: from localhost ([91.99.33.211]) by smtp.gmail.com with ESMTPSA id kr10sm3608873wjc.25.2015.10.13.06.11.10 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Oct 2015 06:11:11 -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::231 X-Mailman-Approved-At: Tue, 13 Oct 2015 10:34:36 -0400 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:107610 Archived-At: Hi there 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. 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. But waht is my question? 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 =C3=A1 to (kbd rightalt-a))? Why I don't simply use my D.E. input method support and keyboard layout switcher instead? 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. I appreciate any answer which can help me to get it working. What I'm using right now is 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 Thank You Shahab