From unknown Thu Sep 11 16:39:34 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#18952 <18952@debbugs.gnu.org> To: bug#18952 <18952@debbugs.gnu.org> Subject: Status: 24.4; delete weirdness in cua mode Reply-To: bug#18952 <18952@debbugs.gnu.org> Date: Thu, 11 Sep 2025 23:39:34 +0000 retitle 18952 24.4; delete weirdness in cua mode reassign 18952 emacs submitter 18952 Andy Grover severity 18952 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 05 02:12:12 2014 Received: (at submit) by debbugs.gnu.org; 5 Nov 2014 07:12:12 +0000 Received: from localhost ([127.0.0.1]:49428 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XlulH-0003ij-Po for submit@debbugs.gnu.org; Wed, 05 Nov 2014 02:12:12 -0500 Received: from eggs.gnu.org ([208.118.235.92]:51984) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XlulF-0003ia-Gv for submit@debbugs.gnu.org; Wed, 05 Nov 2014 02:12:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xlul7-00012A-BS for submit@debbugs.gnu.org; Wed, 05 Nov 2014 02:12:09 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.8 required=5.0 tests=AC_HTML_NONSENSE_TAGS, BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:51921) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xlul7-000124-9K for submit@debbugs.gnu.org; Wed, 05 Nov 2014 02:12:01 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53671) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xlul1-000684-Bp for bug-gnu-emacs@gnu.org; Wed, 05 Nov 2014 02:12:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xlukv-00010L-EK for bug-gnu-emacs@gnu.org; Wed, 05 Nov 2014 02:11:55 -0500 Received: from pigeon.buunabet.com ([198.145.19.6]:37553) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xlukv-0000wr-6I for bug-gnu-emacs@gnu.org; Wed, 05 Nov 2014 02:11:49 -0500 Received: by pigeon.buunabet.com (Postfix, from userid 501) id CCC725FEBE; Tue, 4 Nov 2014 23:11:46 -0800 (PST) Received: from [192.168.1.62] (c-24-20-141-252.hsd1.or.comcast.net [24.20.141.252]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by pigeon.buunabet.com (Postfix) with ESMTPSA id DD9BB5FEA7 for ; Tue, 4 Nov 2014 23:11:41 -0800 (PST) Message-ID: <5459CDAD.8000902@groveronline.com> Date: Tue, 04 Nov 2014 23:11:41 -0800 From: Andy Grover User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Subject: 24.4; delete weirdness in cua mode Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit 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-Received-From: 208.118.235.17 X-Spam-Score: -3.1 (---) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.1 (---) to reproduce: 1) hold down up or down-arrow while editing init.el then release 2) hit backspace expected behavior: one character deleted existing behavior: seemingly-random huge amount of stuff in the buffer deleted Thanks -- Andy In GNU Emacs 24.4.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.14.3) of 2014-10-27 on buildhw-05.phx2.fedoraproject.org Windowing system distributor `Fedora Project', version 11.0.11601000 Configured using: `configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-dbus --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xft --with-xpm --with-x-toolkit=gtk3 --with-gpm=no build_alias=x86_64-redhat-linux-gnu host_alias=x86_64-redhat-linux-gnu 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' 'LDFLAGS=-Wl,-z,relro '' Important settings: value of $LANG: en_US.utf8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: superword-mode: t delete-selection-mode: t show-paren-mode: t desktop-save-mode: t cua-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t global-prettify-symbols-mode: t prettify-symbols-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t size-indication-mode: t column-number-mode: t line-number-mode: t Recent input: C-s C-c C-z C-z C-z C-SPC C-z C-SPC C-z C-z M-w Recent messages: cua-scroll-down: Beginning of buffer Mark set Undo! [3 times] Mark cleared Undo! Mark cleared Undo! [2 times] byte-code: Beginning of buffer [20 times] Note: file is write protected View mode: type C-h for help, h for commands, q to quit. Load-path shadows: /home/agrover/.emacs.d/elpa/flymake-0.4.16/flymake hides /usr/share/emacs/24.4/lisp/progmodes/flymake Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils goto-addr thingatpt noutline outline easy-mmode view python json comint ring ansi-color vc-git flycheck find-func help-mode rx pcase subr-x dash cc-styles cc-align cc-engine cc-vars cc-defs midnight ido swbuff superword subword flymake-autoloads info easymenu pkg-info-autoloads epl-autoloads rust-mode-autoloads cm-mode-autoloads package epg-config saveplace delsel paren desktop frameset cl-loaddefs cl-lib cua-base cus-start cus-load time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 146580 5509) (symbols 48 25089 0) (miscs 40 60 154) (strings 32 31826 5250) (string-bytes 1 941333) (vectors 16 16342) (vector-slots 8 451999 3474) (floats 8 99 375) (intervals 56 802 4) (buffers 960 14) (heap 1024 49667 1054)) From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 05 11:03:48 2014 Received: (at 18952) by debbugs.gnu.org; 5 Nov 2014 16:03:48 +0000 Received: from localhost ([127.0.0.1]:50166 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xm33j-00020H-Kx for submit@debbugs.gnu.org; Wed, 05 Nov 2014 11:03:47 -0500 Received: from mtaout22.012.net.il ([80.179.55.172]:44613) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xm33h-000209-9h for 18952@debbugs.gnu.org; Wed, 05 Nov 2014 11:03:46 -0500 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NEK00900PTYSD00@a-mtaout22.012.net.il> for 18952@debbugs.gnu.org; Wed, 05 Nov 2014 18:03:44 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NEK0097GPY58EB0@a-mtaout22.012.net.il>; Wed, 05 Nov 2014 18:03:42 +0200 (IST) Date: Wed, 05 Nov 2014 18:03:38 +0200 From: Eli Zaretskii Subject: Re: bug#18952: 24.4; delete weirdness in cua mode In-reply-to: <5459CDAD.8000902@groveronline.com> X-012-Sender: halo1@inter.net.il To: Andy Grover Message-id: <837fz9vdlx.fsf@gnu.org> References: <5459CDAD.8000902@groveronline.com> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 18952 Cc: 18952@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Date: Tue, 04 Nov 2014 23:11:41 -0800 > From: Andy Grover > > > to reproduce: > 1) hold down up or down-arrow while editing init.el then release > 2) hit backspace > > expected behavior: one character deleted > > existing behavior: seemingly-random huge amount of stuff in the buffer > deleted Are you sure you didn't type S- several times? This: > Recent input: > C-s > > > > C-c > > > C-z C-z says you did. From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 05 14:02:12 2014 Received: (at 18952) by debbugs.gnu.org; 5 Nov 2014 19:02:12 +0000 Received: from localhost ([127.0.0.1]:50354 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xm5qN-0006g5-TN for submit@debbugs.gnu.org; Wed, 05 Nov 2014 14:02:12 -0500 Received: from pigeon.buunabet.com ([198.145.19.6]:37583) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xm5qL-0006fw-Fi for 18952@debbugs.gnu.org; Wed, 05 Nov 2014 14:02:10 -0500 Received: by pigeon.buunabet.com (Postfix, from userid 501) id 0837C5FEC1; Wed, 5 Nov 2014 11:02:07 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pigeon.buunabet.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=ALL_TRUSTED,URIBL_BLOCKED autolearn=unavailable version=3.3.1 Received: from [192.168.1.62] (c-24-20-141-252.hsd1.or.comcast.net [24.20.141.252]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by pigeon.buunabet.com (Postfix) with ESMTPSA id 948DA5FEA7; Wed, 5 Nov 2014 11:02:02 -0800 (PST) Message-ID: <545A742A.7010108@groveronline.com> Date: Wed, 05 Nov 2014 11:02:02 -0800 From: Andy Grover User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Eli Zaretskii Subject: Re: bug#18952: 24.4; delete weirdness in cua mode References: <5459CDAD.8000902@groveronline.com> <837fz9vdlx.fsf@gnu.org> In-Reply-To: <837fz9vdlx.fsf@gnu.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 18952 Cc: 18952@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) On 11/05/2014 08:03 AM, Eli Zaretskii wrote: >> Date: Tue, 04 Nov 2014 23:11:41 -0800 >> From: Andy Grover >> >> >> to reproduce: >> 1) hold down up or down-arrow while editing init.el then release >> 2) hit backspace >> >> expected behavior: one character deleted >> >> existing behavior: seemingly-random huge amount of stuff in the buffer >> deleted > > Are you sure you didn't type S- several times? This: > >> Recent input: >> C-s >> >> >> >> C-c >> >> >> C-z C-z > > says you did. > Yes exactly, define a region with shift-down, then arrow down (region disappears) then hitting backspace deletes to start of region, instead of a single character. Setting transient-mark-mode makes the problem go away. But isn't cua-mode supposed to work without transient-mark-mode? -- Andy From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 05 15:16:55 2014 Received: (at 18952) by debbugs.gnu.org; 5 Nov 2014 20:16:55 +0000 Received: from localhost ([127.0.0.1]:50425 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xm70g-0000G3-Rl for submit@debbugs.gnu.org; Wed, 05 Nov 2014 15:16:55 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:14425) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xm70e-0000Fv-Mr for 18952@debbugs.gnu.org; Wed, 05 Nov 2014 15:16:53 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Au4MAOatTlRLd+sd/2dsb2JhbABcgw6DYoZ+y1MEAgKBHBcBAXyEAwEBAwFWIwULCzQSFBgNJIhLCctyAQEBAQYBAQEBHpEIB4RLBYtkpjyBb4QWH4J6AQEB X-IPAS-Result: Au4MAOatTlRLd+sd/2dsb2JhbABcgw6DYoZ+y1MEAgKBHBcBAXyEAwEBAwFWIwULCzQSFBgNJIhLCctyAQEBAQYBAQEBHpEIB4RLBYtkpjyBb4QWH4J6AQEB X-IronPort-AV: E=Sophos;i="5.04,797,1406606400"; d="scan'208";a="96051633" 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; 05 Nov 2014 15:16:51 -0500 Received: by pastel.home (Postfix, from userid 20848) id 9CD947AB7; Wed, 5 Nov 2014 15:16:51 -0500 (EST) From: Stefan Monnier To: Andy Grover Subject: Re: bug#18952: 24.4; delete weirdness in cua mode Message-ID: References: <5459CDAD.8000902@groveronline.com> <837fz9vdlx.fsf@gnu.org> <545A742A.7010108@groveronline.com> Date: Wed, 05 Nov 2014 15:16:51 -0500 In-Reply-To: <545A742A.7010108@groveronline.com> (Andy Grover's message of "Wed, 05 Nov 2014 11:02:02 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 18952 Cc: Eli Zaretskii , 18952@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > Setting transient-mark-mode makes the problem go away. But isn't > cua-mode supposed to work without transient-mark-mode? Yes, it works. But clearly, some of the interactions haven't been tested yet. You could have mentioned earlier that you disabled transient-mark-mode. Stefan From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 05 15:29:34 2014 Received: (at 18952) by debbugs.gnu.org; 5 Nov 2014 20:29:34 +0000 Received: from localhost ([127.0.0.1]:50450 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xm7Cv-0000bF-V1 for submit@debbugs.gnu.org; Wed, 05 Nov 2014 15:29:34 -0500 Received: from pigeon.buunabet.com ([198.145.19.6]:37622) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xm7Ct-0000b6-RC for 18952@debbugs.gnu.org; Wed, 05 Nov 2014 15:29:32 -0500 Received: by pigeon.buunabet.com (Postfix, from userid 501) id 8B00A5FEBE; Wed, 5 Nov 2014 12:29:30 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pigeon.buunabet.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=ALL_TRUSTED autolearn=unavailable version=3.3.1 Received: from [192.168.1.22] (c-24-20-141-252.hsd1.or.comcast.net [24.20.141.252]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by pigeon.buunabet.com (Postfix) with ESMTPSA id 037925FEA8; Wed, 5 Nov 2014 12:29:29 -0800 (PST) Message-ID: <545A88A9.1010900@groveronline.com> Date: Wed, 05 Nov 2014 12:29:29 -0800 From: Andy Grover User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Stefan Monnier Subject: Re: bug#18952: 24.4; delete weirdness in cua mode References: <5459CDAD.8000902@groveronline.com> <837fz9vdlx.fsf@gnu.org> <545A742A.7010108@groveronline.com> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 18952 Cc: Eli Zaretskii , 18952@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) On 11/05/2014 12:16 PM, Stefan Monnier wrote: >> Setting transient-mark-mode makes the problem go away. But isn't >> cua-mode supposed to work without transient-mark-mode? > > Yes, it works. But clearly, some of the interactions haven't been > tested yet. > > You could have mentioned earlier that you disabled transient-mark-mode. Sorry, just a noob Emacser here :-) But I didn't disable transient-mark-mode, setting cua-mode via the dropdown menu appears to disable it. HTH -- Andy From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 05 17:45:29 2014 Received: (at 18952) by debbugs.gnu.org; 5 Nov 2014 22:45:29 +0000 Received: from localhost ([127.0.0.1]:50548 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xm9KS-0005Xq-Jk for submit@debbugs.gnu.org; Wed, 05 Nov 2014 17:45:28 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:8035) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xm9KR-0005Xi-9V for 18952@debbugs.gnu.org; Wed, 05 Nov 2014 17:45:27 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Au4MAOatTlRLd+sd/2dsb2JhbABcgw6DYoZ+y1MEAgKBHBcBAXyEAwEBAwFWIwULCzQSFBgNJIhLCctyAQEBAQEFAQEBAQEdkQgHhEsFi2SmPIFvhBYfgnoBAQE X-IPAS-Result: Au4MAOatTlRLd+sd/2dsb2JhbABcgw6DYoZ+y1MEAgKBHBcBAXyEAwEBAwFWIwULCzQSFBgNJIhLCctyAQEBAQEFAQEBAQEdkQgHhEsFi2SmPIFvhBYfgnoBAQE X-IronPort-AV: E=Sophos;i="5.04,797,1406606400"; d="scan'208";a="96064112" 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; 05 Nov 2014 17:45:26 -0500 Received: by pastel.home (Postfix, from userid 20848) id 78FD68874; Wed, 5 Nov 2014 17:45:26 -0500 (EST) From: Stefan Monnier To: Andy Grover Subject: Re: bug#18952: 24.4; delete weirdness in cua mode Message-ID: References: <5459CDAD.8000902@groveronline.com> <837fz9vdlx.fsf@gnu.org> <545A742A.7010108@groveronline.com> <545A88A9.1010900@groveronline.com> Date: Wed, 05 Nov 2014 17:45:26 -0500 In-Reply-To: <545A88A9.1010900@groveronline.com> (Andy Grover's message of "Wed, 05 Nov 2014 12:29:29 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 18952 Cc: Eli Zaretskii , 18952@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > Sorry, just a noob Emacser here :-) But I didn't disable > transient-mark-mode, setting cua-mode via the dropdown menu appears to > disable it. Ah, that's a more serious bug, then, thanks. Stefan From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 05 22:06:36 2014 Received: (at 18952) by debbugs.gnu.org; 6 Nov 2014 03:06:37 +0000 Received: from localhost ([127.0.0.1]:50685 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XmDPA-0007kR-Cg for submit@debbugs.gnu.org; Wed, 05 Nov 2014 22:06:36 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:43154) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XmDP8-0007kI-LI for 18952@debbugs.gnu.org; Wed, 05 Nov 2014 22:06:34 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Au4MAOatTlRLd+sd/2dsb2JhbABcgw6DYoZ+y1MEAgKBHBcBAXyEAwEBAwFWIwULCzQSFBgNJIhLCctyAQEBAQYBAQEBHpEIB4RLBYtkpjyBb4QWH4J6AQEB X-IPAS-Result: Au4MAOatTlRLd+sd/2dsb2JhbABcgw6DYoZ+y1MEAgKBHBcBAXyEAwEBAwFWIwULCzQSFBgNJIhLCctyAQEBAQYBAQEBHpEIB4RLBYtkpjyBb4QWH4J6AQEB X-IronPort-AV: E=Sophos;i="5.04,797,1406606400"; d="scan'208";a="96074953" Received: from 75-119-235-29.dsl.teksavvy.com (HELO ceviche.home) ([75.119.235.29]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 05 Nov 2014 22:06:34 -0500 Received: by ceviche.home (Postfix, from userid 20848) id 6D9F1660D4; Wed, 5 Nov 2014 22:06:33 -0500 (EST) From: Stefan Monnier To: Andy Grover Subject: Re: bug#18952: 24.4; delete weirdness in cua mode Message-ID: References: <5459CDAD.8000902@groveronline.com> <837fz9vdlx.fsf@gnu.org> <545A742A.7010108@groveronline.com> <545A88A9.1010900@groveronline.com> Date: Wed, 05 Nov 2014 22:06:33 -0500 In-Reply-To: <545A88A9.1010900@groveronline.com> (Andy Grover's message of "Wed, 05 Nov 2014 12:29:29 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 18952 Cc: Eli Zaretskii , 18952@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > Sorry, just a noob Emacser here :-) But I didn't disable > transient-mark-mode, setting cua-mode via the dropdown menu appears to > disable it. It doesn't for me. Could you provide a *precise* recipe? I tried: emacs -Q Options => Use CUA keys (Cut/Paste with C-x/C-c/C-v) S-right S-right right right backspace and the backspace only deleted one char. And M-: transient-mark-mode RET tells me it's still enabled. Stefan From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 06 01:41:43 2014 Received: (at 18952) by debbugs.gnu.org; 6 Nov 2014 06:41:43 +0000 Received: from localhost ([127.0.0.1]:50956 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XmGlK-0005B6-JE for submit@debbugs.gnu.org; Thu, 06 Nov 2014 01:41:42 -0500 Received: from pigeon.buunabet.com ([198.145.19.6]:37720) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XmGlH-0005Ax-Oy for 18952@debbugs.gnu.org; Thu, 06 Nov 2014 01:41:40 -0500 Received: by pigeon.buunabet.com (Postfix, from userid 501) id 2B4495FEBE; Wed, 5 Nov 2014 22:41:38 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pigeon.buunabet.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=ALL_TRUSTED autolearn=unavailable version=3.3.1 Received: from [192.168.1.62] (c-24-20-141-252.hsd1.or.comcast.net [24.20.141.252]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by pigeon.buunabet.com (Postfix) with ESMTPSA id 8BE225FEA7; Wed, 5 Nov 2014 22:41:37 -0800 (PST) Message-ID: <545B1821.8070007@groveronline.com> Date: Wed, 05 Nov 2014 22:41:37 -0800 From: Andy Grover User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Stefan Monnier Subject: Re: bug#18952: 24.4; delete weirdness in cua mode References: <5459CDAD.8000902@groveronline.com> <837fz9vdlx.fsf@gnu.org> <545A742A.7010108@groveronline.com> <545A88A9.1010900@groveronline.com> In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 18952 Cc: Eli Zaretskii , 18952@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) On 11/05/2014 07:06 PM, Stefan Monnier wrote: >> Sorry, just a noob Emacser here :-) But I didn't disable >> transient-mark-mode, setting cua-mode via the dropdown menu appears to >> disable it. > > It doesn't for me. Could you provide a *precise* recipe? > > I tried: > > emacs -Q > Options => Use CUA keys (Cut/Paste with C-x/C-c/C-v) > S-right S-right right right backspace > > and the backspace only deleted one char. And M-: transient-mark-mode RET > tells me it's still enabled. > 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: emacs -Q Set Options => Use CUA keys (Cut/Paste with C-x/C-c/C-v) Unset Options => Use CUA keys (Cut/Paste with C-x/C-c/C-v) M-x set-variable cua-highlight-region-shift-only t Set Options => Use CUA keys (Cut/Paste with C-x/C-c/C-v) S-down S-down down down backspace or alternatively, use a .emacs containing just: (custom-set-variables '(cua-highlight-region-shift-only t) '(cua-mode t nil (cua-base))) HTH -- Andy From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 07 14:56:10 2014 Received: (at 18952-done) by debbugs.gnu.org; 7 Nov 2014 19:56:10 +0000 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 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" 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 Received: by pastel.home (Postfix, from userid 20848) id 465E08874; Fri, 7 Nov 2014 14:56:07 -0500 (EST) From: Stefan Monnier To: Andy Grover Subject: Re: bug#18952: 24.4; delete weirdness in cua mode Message-ID: References: <5459CDAD.8000902@groveronline.com> <837fz9vdlx.fsf@gnu.org> <545A742A.7010108@groveronline.com> <545A88A9.1010900@groveronline.com> <545B1821.8070007@groveronline.com> Date: Fri, 07 Nov 2014 14:56:07 -0500 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) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 18952-done Cc: Eli Zaretskii , 18952-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) 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 From unknown Thu Sep 11 16:39:34 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 06 Dec 2014 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator