From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: LanX Newsgroups: gmane.emacs.help Subject: Re: CUA-mode and conflicts with C-x commands Date: Thu, 6 May 2010 05:04:50 -0700 (PDT) Organization: http://groups.google.com Message-ID: <03acc372-d6b4-4c02-862a-54ddaa8dcb77@d39g2000yqa.googlegroups.com> References: <68b58ad4-99cc-4b41-bb3e-d498a1706a75@x12g2000yqx.googlegroups.com> <411d9563-65d0-4c25-aa93-539086993542@d19g2000yqf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1273165591 3506 80.91.229.12 (6 May 2010 17:06:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 6 May 2010 17:06:31 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 06 19:06:26 2010 connect(): No such file or directory Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OA4Wm-00045G-KW for geh-help-gnu-emacs@m.gmane.org; Thu, 06 May 2010 19:06:24 +0200 Original-Received: from localhost ([127.0.0.1]:46234 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OA4Mu-0001Yb-MR for geh-help-gnu-emacs@m.gmane.org; Thu, 06 May 2010 12:56:12 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!d39g2000yqa.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 37 Original-NNTP-Posting-Host: 188.97.6.139 Original-X-Trace: posting.google.com 1273147490 12434 127.0.0.1 (6 May 2010 12:04:50 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 6 May 2010 12:04:50 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: d39g2000yqa.googlegroups.com; posting-host=188.97.6.139; posting-account=W9fpQwoAAADZYmkl-8sXk1VPxG3rq-Pd User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.0.18) Gecko/2010021502 Ubuntu/8.10 (intrepid) Firefox/3.0.18,gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:177980 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:73512 Archived-At: I told you already: > E.g. S-C-x does a toggle of the writing direction in my Firefox ... go into a textarea and see yourself how it looks like to write like in Hebrew or Arabic. I tried this yesterday: ------------------------------------- (defun cua-cut-region-xx (arg) "do cua-cut-region only if there is a region" (interactive "P") (if mark-active (cua-cut-region arg) (cua-exchange-point-and-mark arg) ) ) (local-set-key (kbd "C-x C-x") 'cua-cut-region-xx) ------------------------------------- but it's not really working, seems like I have to dive deeper into the mechanisms of cua. ahh now I see why: ------------------------------------------ from "cua-prefix-override-inhibit-delay" ... As a special case, if the prefix keys repeated within this time, the first prefix key is discarded, so typing a prefix key twice in quick succession will also inhibit overriding the prefix key. ------------------------------------------ so quickly C-x C-x has the same meaning like your S-C-x. well better ... but still not ergonomic...