From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#18952: 24.4; delete weirdness in cua mode Date: Fri, 07 Nov 2014 14:56:07 -0500 Message-ID: References: <5459CDAD.8000902@groveronline.com> <837fz9vdlx.fsf@gnu.org> <545A742A.7010108@groveronline.com> <545A88A9.1010900@groveronline.com> <545B1821.8070007@groveronline.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1415390252 27634 80.91.229.3 (7 Nov 2014 19:57:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Nov 2014 19:57:32 +0000 (UTC) Cc: 18952-done@debbugs.gnu.org To: Andy Grover Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 07 20:57:24 2014 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 1Xmpet-0005UC-RE for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Nov 2014 20:57:23 +0100 Original-Received: from localhost ([::1]:33710 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xmpet-0003Az-Hv for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Nov 2014 14:57:23 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48743) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xmpej-00034Q-5I for bug-gnu-emacs@gnu.org; Fri, 07 Nov 2014 14:57:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XmpeZ-0004Xj-VV for bug-gnu-emacs@gnu.org; Fri, 07 Nov 2014 14:57:13 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55932) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XmpeZ-0004Xa-TH for bug-gnu-emacs@gnu.org; Fri, 07 Nov 2014 14:57:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XmpeZ-0006H7-Nf for bug-gnu-emacs@gnu.org; Fri, 07 Nov 2014 14:57:03 -0500 Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Nov 2014 19:57:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 18952 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 18952@debbugs.gnu.org, monnier@iro.umontreal.ca, andy@groveronline.com Original-Received: via spool by 18952-done@debbugs.gnu.org id=D18952.141539017024027 (code D ref 18952); Fri, 07 Nov 2014 19:57:03 +0000 Original-Received: (at 18952-done) by debbugs.gnu.org; 7 Nov 2014 19:56:10 +0000 Original-Received: from localhost ([127.0.0.1]:53139 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xmpdh-0006FS-Pi for submit@debbugs.gnu.org; Fri, 07 Nov 2014 14:56:09 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:29734) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xmpdg-0006FJ-AS for 18952-done@debbugs.gnu.org; Fri, 07 Nov 2014 14:56:08 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvAMAOatTlRLd+sd/2dsb2JhbABcgw6DYoZ+yDmDGgQCAoEcFwEBfIQDAQEDAVYjBQsLNBIUGA0kiEsJy3IBAQEBAQEEAQEBAR6RCAeESwWLZKY8gW+EFh+CegEBAQ X-IPAS-Result: AvAMAOatTlRLd+sd/2dsb2JhbABcgw6DYoZ+yDmDGgQCAoEcFwEBfIQDAQEDAVYjBQsLNBIUGA0kiEsJy3IBAQEBAQEEAQEBAR6RCAeESwWLZKY8gW+EFh+CegEBAQ X-IronPort-AV: E=Sophos;i="5.04,797,1406606400"; d="scan'208";a="96231572" Original-Received: from 75-119-235-29.dsl.teksavvy.com (HELO pastel.home) ([75.119.235.29]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 07 Nov 2014 14:56:07 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 465E08874; Fri, 7 Nov 2014 14:56:07 -0500 (EST) In-Reply-To: <545B1821.8070007@groveronline.com> (Andy Grover's message of "Wed, 05 Nov 2014 22:41:37 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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:95686 Version:24.5 > Ah! ok, I also have cua-highlight-region-shift-only t in my Customize > section, so I hit this without trying? But here's a way to repro, > starting from emacs -Q: Ah, I see it now. I installed the patch below, which seems to fix it. Thanks, Stefan === modified file 'lisp/emulation/cua-base.el' --- lisp/emulation/cua-base.el 2014-10-31 15:31:27 +0000 +++ lisp/emulation/cua-base.el 2014-11-07 19:51:19 +0000 @@ -1199,7 +1199,7 @@ (defun cua--select-keymaps () ;; Setup conditions for selecting the proper keymaps in cua--keymap-alist. (setq cua--ena-region-keymap - (and mark-active (not deactivate-mark))) + (and (region-active-p) (not deactivate-mark))) (setq cua--ena-prefix-override-keymap (and cua--ena-region-keymap cua-enable-cua-keys