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: Wed, 14 Oct 2015 10:17:45 +0330 Message-ID: <87mvvmosj2.fsf@fedora22.zzgraph> References: <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 1444805384 430 80.91.229.3 (14 Oct 2015 06:49:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Oct 2015 06:49:44 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Yuri Khan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 14 08:49: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 1ZmFsS-0003Zr-Ba for geh-help-gnu-emacs@m.gmane.org; Wed, 14 Oct 2015 08:49:32 +0200 Original-Received: from localhost ([::1]:40781 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZmFsR-0002lO-K6 for geh-help-gnu-emacs@m.gmane.org; Wed, 14 Oct 2015 02:49:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38766) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZmFqq-0002Zb-P6 for help-gnu-emacs@gnu.org; Wed, 14 Oct 2015 02:47:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZmFqn-0003zR-GD for help-gnu-emacs@gnu.org; Wed, 14 Oct 2015 02:47:52 -0400 Original-Received: from mail-wi0-x22d.google.com ([2a00:1450:400c:c05::22d]:35619) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZmFqn-0003zN-AD for help-gnu-emacs@gnu.org; Wed, 14 Oct 2015 02:47:49 -0400 Original-Received: by wicge5 with SMTP id ge5so221780319wic.0 for ; Tue, 13 Oct 2015 23:47:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type:content-transfer-encoding; bh=EpJgjjlc/NWWsEMtot+WJxpM7E0hc5hgZ94M1QjtsBA=; b=d33CGirZSrk76dlj7wUefhENU/kBCIlh78XXDuasPgbZ02meLmg/h6DlcDBj+5GgSa 8kRN1wj3B69xLrLoymRwvLewt1YfulBwE3t+l1CjEKvBSw9VmQ5I3dwWIqbYTYeliQnf rAv+IZFNgUn9DHhboZhRy8qhubs4cvFFc39OB8X8PJRa21g6YMhdZBV1rY7SM+IxPa95 u2cHkNzJehbh74S6cFN1EhOG+3TMfu1jGQEP36usLCggnnflJTjtvwQOn+eW1rGiq7TF XxGXGSBVwbndehe5Gg5u56vr7IO7Uh239p0vRtVqwawsGNlEFlizaR4MxumWXy/6Fdpe LX5w== X-Received: by 10.194.52.6 with SMTP id p6mr2059929wjo.119.1444805268728; Tue, 13 Oct 2015 23:47:48 -0700 (PDT) Original-Received: from localhost ([188.245.89.233]) by smtp.gmail.com with ESMTPSA id xa5sm7990714wjc.20.2015.10.13.23.47.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Oct 2015 23:47:47 -0700 (PDT) In-Reply-To: (Yuri Khan's message of "Wed, 14 Oct 2015 12:05:18 +0600") 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::22d 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:107633 Archived-At: Yuri Khan writes: > On Tue, Oct 13, 2015 at 7:11 PM, Shahab Shahsavari Alavidjeh > wrote: >> 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. > > > > It would be a great help if modifiers and certain prefixes caused > Emacs to ignore the active layout and interpret the base keys > according to the primary layout, which will be one of Latin layouts in > most cases. (Which exact Latin layout will vary from user to user =E2=80= =94 US > QWERTY, German QWERTZ, French AZERTY, Dvorak, Colemak, etc.) > Thanks Yuri I completely agree with you on that, this approach is way better and more practical. And it can completely solve my problem. > There are workarounds involving key-translation-map to make Emacs > pretend that it got C-q when it gets C-=D0=B9, but they are ugly, > unreliable, and incomplete. Ideally, it should happen at the > underlying OS integration boundary. While it's bound to C-q to pass non-ASCII characters to Emacs as keybindings, which is briefly documented here https://www.gnu.org/software/emacs/manual/html_node/emacs/Init-Non_002dA= SCII.html#Init-Non_002dASCII There should be no problem for Emacs to accept other combinations of M- C- with non-ASCII characters as ASCII equivalent to the key pressed on relevant primary keyboard layout. But I think the problem with AltGr still is a valid problem, because it makes huge inconsistency between Emacs's own quail layouts, where many of them already standardized with AltGr as modifier in graphical environment layouts. IMO what you proposed is a very good and practical feature to get implemented in Emacs. And it will make life a lot easier for people using non-Latin scripts to use Emacs. But I think of AltGr problem as a bug, which if get resolved can temporarily solve the problem for these people (if there's any besides me!) before the feature you proposed get implemented.