From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Aura Kelloniemi Newsgroups: gmane.emacs.bugs Subject: bug#22566: 24.5; Make shift key translation a customizable feature Date: Wed, 10 Feb 2016 19:15:31 +0200 Message-ID: <8737t0lc5o.fsf@sange.fi> References: <877fijxj0w.fsf@sange.fi> <874mdlobij.fsf@sange.fi> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1455124587 7371 80.91.229.3 (10 Feb 2016 17:16:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Feb 2016 17:16:27 +0000 (UTC) To: rms@gnu.org, 22566@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 10 18:16:14 2016 Return-path: Envelope-to: geb-bug-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 1aTYNC-000455-FR for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Feb 2016 18:16:14 +0100 Original-Received: from localhost ([::1]:41249 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTYN8-0006ni-HI for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Feb 2016 12:16:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38417) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTYN4-0006nX-Fd for bug-gnu-emacs@gnu.org; Wed, 10 Feb 2016 12:16:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aTYN0-0006wC-B8 for bug-gnu-emacs@gnu.org; Wed, 10 Feb 2016 12:16:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54311) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTYN0-0006w8-7j for bug-gnu-emacs@gnu.org; Wed, 10 Feb 2016 12:16:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aTYN0-0004vB-4O for bug-gnu-emacs@gnu.org; Wed, 10 Feb 2016 12:16:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Aura Kelloniemi Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 Feb 2016 17:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22566 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: rms@gnu.org, bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.145512455818904 (code B ref -1); Wed, 10 Feb 2016 17:16:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Feb 2016 17:15:58 +0000 Original-Received: from localhost ([127.0.0.1]:35219 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aTYMw-0004uq-3C for submit@debbugs.gnu.org; Wed, 10 Feb 2016 12:15:58 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:47383) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aTYMu-0004ua-OY for submit@debbugs.gnu.org; Wed, 10 Feb 2016 12:15:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aTYMo-0006um-IW for submit@debbugs.gnu.org; Wed, 10 Feb 2016 12:15:51 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:48302) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTYMo-0006uh-FR for submit@debbugs.gnu.org; Wed, 10 Feb 2016 12:15:50 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38348) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTYMn-0006mO-Ag for bug-gnu-emacs@gnu.org; Wed, 10 Feb 2016 12:15:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aTYMj-0006tR-8n for bug-gnu-emacs@gnu.org; Wed, 10 Feb 2016 12:15:49 -0500 Original-Received: from smtp.nebula.fi ([2001:1bc8:100c:f220::66]:39947) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTYMi-0006sr-QD; Wed, 10 Feb 2016 12:15:45 -0500 Original-Received: from solaria (xdsl-176-187.nblnetworks.fi [217.30.176.187]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.nebula.fi (Postfix) with ESMTPS id 4CB2DD00897; Wed, 10 Feb 2016 19:15:32 +0200 (EET) In-Reply-To: User-Agent: Notmuch/0.21 (http://notmuchmail.org) Emacs/24.5.1 (x86_64-unknown-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:112861 Archived-At: Richard Stallman writes: > Thanks, now I see. The idea of this is so the shifted keys > by default have the same meaning as the unshifted ones. One of my points is that this behaviour is not logical. There is no similar functionality available for other modifier keys (ctonrol, alt, meta, super, hyper, etc.). When working with text terminals it happens often that some key combinations sends the same escape seuqnce for plain key press and shifted key press. Sometimes termcap is lacking correct information and emacs does not interpret the sequence correctly. Emacs' shift translation adds yet another step for debugging these issues. Shift translation may be useful to some people and I'm not asking for removing it from emacs, just making it customizable - it shouldn't be a big change. > Why is it a problem for you? Well, two reasons: First reason is that sometimes I press wrong keys, and instead of reporting an error, emacs does something else - it tries to guess what I wanted, and probably gets it wrong. This happens often if I open an Org file in text-mode (because the file's extension is not .org, this happens automatically). Then I forget that I'm not in org-mode and use shifted arrow keys, but of course they don't work in a way I expected. The other problem is that I've lately been adding support for shifted function keys to my Linux console keymap. Emacs' shift translation has made my debugging harder, because when I use the describe-key-briefly command to check if emacs got a shifted function key right, it just reports something like this: " runs the command right-word" even though I pressed . But when I open an org-file in org-mode and try the same key combination, emacs now says: " runs the command org-shiftcontrolright". Describe-key-briefly should at least report that it is doing some translation. It already does this reporting for non-function keys. There is a question about this issues on stackexchange, to which I posted a link in my original message. There the OP is complaining about the same things that I am, mostly, but adds some other points. The link is here again, for reference: http://unix.stackexchange.com/questions/25649/is-it-possible-to-stop-emacs-from-down-translating-my-key-chords -- Aura