From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Davis Herring Newsgroups: gmane.emacs.devel Subject: Re: `C-b' is backward-char, `left' is left-char - why? Date: Tue, 31 May 2011 08:18:56 -0600 Organization: XCP-1 Message-ID: <4DE4F8D0.7010800@lanl.gov> References: <6F4054004B154CFB8E2753172D316C13@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1306851556 10596 80.91.229.12 (31 May 2011 14:19:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 31 May 2011 14:19:16 +0000 (UTC) Cc: Drew Adams , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 31 16:19:12 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QRPmp-0003d6-PO for ged-emacs-devel@m.gmane.org; Tue, 31 May 2011 16:19:11 +0200 Original-Received: from localhost ([::1]:59488 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRPmp-0001VI-9b for ged-emacs-devel@m.gmane.org; Tue, 31 May 2011 10:19:11 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:58734) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRPmh-0001Ur-OH for emacs-devel@gnu.org; Tue, 31 May 2011 10:19:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QRPmd-0001dz-EV for emacs-devel@gnu.org; Tue, 31 May 2011 10:19:03 -0400 Original-Received: from proofpoint4.lanl.gov ([204.121.3.52]:35477) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRPmd-0001do-70 for emacs-devel@gnu.org; Tue, 31 May 2011 10:18:59 -0400 Original-Received: from mailrelay1.lanl.gov (mailrelay1.lanl.gov [128.165.4.101]) by proofpoint4.lanl.gov (8.14.3/8.14.3) with ESMTP id p4VEIvtr002890; Tue, 31 May 2011 08:18:57 -0600 Original-Received: from x-mail.lanl.gov (x-mail.lanl.gov [128.165.4.125]) by mailrelay1.lanl.gov (Postfix) with ESMTP id 6961E16425F; Tue, 31 May 2011 08:18:57 -0600 (MDT) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by x-mail.lanl.gov (Postfix) with ESMTP id 67BAD1DC804B; Tue, 31 May 2011 08:18:57 -0600 (MDT) X-NIE-2-Virus-Scanner: amavisd-new at x-mail.lanl.gov Original-Received: from [128.165.123.182] (xray-r03.lanl.gov [128.165.123.182]) by x-mail.lanl.gov (Postfix) with ESMTP id 46DE61DC804A; Tue, 31 May 2011 08:18:57 -0600 (MDT) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110310 Lanikai/3.1.9 In-Reply-To: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.4.6813, 1.0.148, 0.0.0000 definitions=2011-05-31_05:2011-05-31, 2011-05-31, 1970-01-01 signatures=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Received-From: 204.121.3.52 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:139971 Archived-At: On 05/29/2011 09:57 PM, Stefan Monnier wrote: >>> I can see why you'd want that, >> Well, good. Is there a way to get it? That's the question. > > AFAICT, there is no way to get it in the general and default case (when > bidi-display-reordering is non-nil), which is the only case which would > make sense to solve. I think what Drew wants is to have in startup.el something like ;; ...load .emacs (if (default-value 'bidi-display-reordering) (global-set-key (kbd "") 'left-char) (global-set-key (kbd "") 'backward-char)) ;; ...and C-f, M-b, M-f, etc. along the lines of the other "preference detection" code like that for unibyte. I don't know if this is a good idea, but it does solve his problem without introducing `magic-backward/left-dwim-char' bound to C-b and . Davis -- This product is sold by volume, not by mass. If it appears too dense or too sparse, it is because mass-energy conversion has occurred during shipping.