From unknown Fri Aug 15 12:51:22 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#17741 <17741@debbugs.gnu.org> To: bug#17741 <17741@debbugs.gnu.org> Subject: Status: 24.3; problem with cua-mode text insertion Reply-To: bug#17741 <17741@debbugs.gnu.org> Date: Fri, 15 Aug 2025 19:51:22 +0000 retitle 17741 24.3; problem with cua-mode text insertion reassign 17741 emacs submitter 17741 andrea.rossetti@gmail.com severity 17741 minor thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 09 02:45:12 2014 Received: (at submit) by debbugs.gnu.org; 9 Jun 2014 06:45:12 +0000 Received: from localhost ([127.0.0.1]:41763 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WttKR-0006WI-5Q for submit@debbugs.gnu.org; Mon, 09 Jun 2014 02:45:11 -0400 Received: from eggs.gnu.org ([208.118.235.92]:41293) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WttKP-0006W1-8m for submit@debbugs.gnu.org; Mon, 09 Jun 2014 02:45:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WttKD-0008V5-RV for submit@debbugs.gnu.org; Mon, 09 Jun 2014 02:45:03 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=AC_HTML_NONSENSE_TAGS, BAYES_50, FREEMAIL_FROM,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:60627) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WttKD-0008V0-O0 for submit@debbugs.gnu.org; Mon, 09 Jun 2014 02:44:57 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42996) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WttK8-0003ZS-4n for bug-gnu-emacs@gnu.org; Mon, 09 Jun 2014 02:44:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WttK2-0008Sf-LC for bug-gnu-emacs@gnu.org; Mon, 09 Jun 2014 02:44:52 -0400 Received: from mail-we0-x233.google.com ([2a00:1450:400c:c03::233]:37210) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WttK2-0008SO-A9 for bug-gnu-emacs@gnu.org; Mon, 09 Jun 2014 02:44:46 -0400 Received: by mail-we0-f179.google.com with SMTP id w62so893538wes.24 for ; Sun, 08 Jun 2014 23:44:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:user-agent:mime-version :content-type; bh=U6sf7NKhOCbktKzqRxGF7ndB9DU972Fk09mXswVctB0=; b=FFpE8NsRTJ4Q95SELAK4N2aI6Cm/mbYs2R1M86Xbzf55XYdksqZD/PH751bYwb4dW5 LF7PoTpFkQ1VO1P6I80OieO7Ea60LF14xgg/CHlByN2kiJ+wTSsiGosPtWUXXXUUcws0 sL/VFsLPrxOtPFIoadvLkZ/miCAeM5MZ89KPA1hGSX6Idgeu/6J6lnqkVqD8EtoI0gqv HJ0SSbReb4/WONKD/tkUzt3j6FKJyNuhq4ZHyhPGuKilSzphcNZcxgBhWHg1mnQG1K2y bNGRoev7TJ3e3j8oLjBi6/ZA0oSoODC43y4MNog+roozg76ItgDyzo95U+qrc14c7u7Z EGyA== X-Received: by 10.14.204.73 with SMTP id g49mr3327947eeo.2.1402296284674; Sun, 08 Jun 2014 23:44:44 -0700 (PDT) Received: from LAPTOP-ANDREA.laptop-andrea.trieste.it (net-93-144-100-89.cust.dsl.teletu.it. [93.144.100.89]) by mx.google.com with ESMTPSA id x3sm42883782een.17.2014.06.08.23.44.43 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 08 Jun 2014 23:44:43 -0700 (PDT) From: andrea.rossetti@gmail.com To: bug-gnu-emacs@gnu.org Subject: 24.3; problem with cua-mode text insertion Date: Mon, 09 Jun 2014 08:44:41 +0200 Message-ID: <84ppiilgyu.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) 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: -4.0 (----) Hello everyone, 1) when starting emacs -Q and type these keystrokes: M-x cua-mode RET M-< C-RET M-> 1 C-RET Emacs insertes char "1" in every *second* column of the buffer, but the desired result (and the expected behaviour) was that "1" should have been inserted in every *first* column. 2) the problem does not happen if I extend down the rectangle with multiple "C-n" instead of "M->". In other words these keystrokes: M-x cua-mode RET M-< C-RET C-n C-n C-n C-n 1 C-RET insert "1" in every first column of the buffer (which is the desired result). May I please ask for some confirmation: is the case 1) really a bug, or did I misunderstand some aspect of cua-mode. Thanks in advance, kindest regards. Andrea This bug report will be sent to the Bug-GNU-Emacs mailing list and the GNU bug tracker at debbugs.gnu.org. Please check that the From: line contains a valid email address. After a delay of up to one day, you should receive an acknowledgment at that address. Please write in English if possible, as the Emacs maintainers usually do not have translators for other languages. Please describe exactly what actions triggered the bug, and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file c:/Users/andrea/Documents/Programmi/emacs/etc/DEBUG. In GNU Emacs 24.3.1 (i386-mingw-nt6.1.7600) of 2013-03-17 on MARVIN Windowing system distributor `Microsoft Corp.', version 6.1.7600 Configured using: `configure --with-gcc (4.7) --cflags -ID:/devel/emacs/libs/libXpm-3.5.8/include -ID:/devel/emacs/libs/libXpm-3.5.8/src -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include -ID:/devel/emacs/libs/giflib-4.1.4-1/include -ID:/devel/emacs/libs/jpeg-6b-4/include -ID:/devel/emacs/libs/tiff-3.8.2-1/include -ID:/devel/emacs/libs/gnutls-3.0.9/include -ID:/devel/emacs/libs/libiconv-1.13.1-1-dev/include -ID:/devel/emacs/libs/libxml2-2.7.8/include/libxml2' Important settings: value of $LANG: ITA locale-coding-system: cp1252 default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: cua-mode: t tooltip-mode: t mouse-wheel-mode: t tool-bar-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 line-number-mode: t transient-mark-mode: t Recent input: M-x c u a - m o d e M-< M-> 1 M-x b u g - r e e m a c s - b u g r e p o r t - e m Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Cua mode enabled Mark set [2 times] C-?:help M-p:pad M-o:open M-c:close M-b:blank M-s:string M-f:fill M-i:incr M-n:seq Making completion list... Load-path shadows: None found. 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 mail-prsvr mail-utils help-mode easymenu cua-rect rect cus-start cus-load cua-base time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp w32-common-fns disp-table w32-win w32-vars tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-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 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 w32 multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 09 13:03:04 2014 Received: (at 17741) by debbugs.gnu.org; 9 Jun 2014 17:03:04 +0000 Received: from localhost ([127.0.0.1]:42163 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wu2yO-0000NJ-8f for submit@debbugs.gnu.org; Mon, 09 Jun 2014 13:03:04 -0400 Received: from mercure.iro.umontreal.ca ([132.204.24.67]:54696) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wu2yL-0000Mq-MV for 17741@debbugs.gnu.org; Mon, 09 Jun 2014 13:03:02 -0400 Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id E51DD24133; Mon, 9 Jun 2014 13:02:59 -0400 (EDT) Received: from lechon.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 6BB2D1E5B74; Mon, 9 Jun 2014 13:02:34 -0400 (EDT) Received: by lechon.iro.umontreal.ca (Postfix, from userid 20848) id 4DECFB4167; Mon, 9 Jun 2014 13:02:34 -0400 (EDT) From: Stefan Monnier To: andrea.rossetti@gmail.com Subject: Re: bug#17741: 24.3; problem with cua-mode text insertion Message-ID: References: <84ppiilgyu.fsf@gmail.com> Date: Mon, 09 Jun 2014 13:02:34 -0400 In-Reply-To: <84ppiilgyu.fsf@gmail.com> (andrea rossetti's message of "Mon, 09 Jun 2014 08:44:41 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82, MC_TSTLAST 0.00) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-Spam-Status: No X-Spam-Score: -3.0 (---) X-Debbugs-Envelope-To: 17741 Cc: 17741@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: -3.0 (---) > May I please ask for some confirmation: is the case 1) > really a bug, or did I misunderstand some aspect of > cua-mode. Thanks in advance, kindest regards. Good question. I think it's "by design": - M-> in cua-rectangle-mark-mode means "extend vertically to bottom of buffer". - when the rectangle has 1-char width, whether insertion is done before/after is determined by whether the cursor is at the top or at the bottom of the rectangle. - M-> does not move the cursor to (one of) the bottom corners. So if you hit RET (which cycles through the different rectangle corners) before typing "1" in your recipe, the ones will be inserted where you expect them. I don't find this choice of behavior for M-> very intuitive from an "Emacs binding" point of view, but then I'm not a CUA user. Stefan From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 04 20:01:23 2014 Received: (at 17741-done) by debbugs.gnu.org; 5 Jul 2014 00:01:23 +0000 Received: from localhost ([127.0.0.1]:43230 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X3DPq-0001BJ-5z for submit@debbugs.gnu.org; Fri, 04 Jul 2014 20:01:22 -0400 Received: from mail-we0-f176.google.com ([74.125.82.176]:61587) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X3DPj-0001B1-4R for 17741-done@debbugs.gnu.org; Fri, 04 Jul 2014 20:01:16 -0400 Received: by mail-we0-f176.google.com with SMTP id u56so2187854wes.7 for <17741-done@debbugs.gnu.org>; Fri, 04 Jul 2014 17:01:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:date:message-id:user-agent:mime-version:content-type; bh=pSWhexqcH4m0cBdT8U341P/nwtztjCGS4oUw3VnduDI=; b=JiPBqHdylOeHUvMD1tveUsCHbZSWN+c1KpXGesTSVco01KWgMIa0/g//FOX0NUfkr0 IV9wAV9Mc5ymEn9+mLQPHIlPcvwjiJw7/tk5Kd+VHWorRaPJ3JQAF3Llm2WxI+gnNjK3 EXC2d9OYq2zqQTxg6BLdkjWQHw32++fWY5rLNVbECdCve7man+VYe7wWje/OkVmX0Tct MOL0U71neaHG1ajviSQuXDlSFkdENDXNKv7KONY599UZF+oHsMHZSsImQTRSbDDNb3h9 W244aV0pzGL3X3RgJAHmiuYQQCXUF2ALAJirlJH58n+t6FAIFhKIuerMCcgVRKb9qv+9 324g== X-Received: by 10.180.212.9 with SMTP id ng9mr24047547wic.46.1404518465297; Fri, 04 Jul 2014 17:01:05 -0700 (PDT) Received: from LAPTOP-ANDREA.laptop-andrea.trieste.it (net-93-144-112-183.cust.dsl.teletu.it. [93.144.112.183]) by mx.google.com with ESMTPSA id d3sm84642619wiy.13.2014.07.04.17.01.03 for <17741-done@debbugs.gnu.org> (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 04 Jul 2014 17:01:04 -0700 (PDT) From: Andrea Rossetti To: 17741-done@debbugs.gnu.org Date: Sat, 05 Jul 2014 02:01:05 +0200 Message-ID: <84bnt4smgu.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Thanks Stefan for the explanation! Cheers, Andrea [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (andrea.rossetti[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [74.125.82.176 listed in list.dnswl.org] 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid X-Debbugs-Envelope-To: 17741-done 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: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Thanks Stefan for the explanation! Cheers, Andrea [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [74.125.82.176 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (andrea.rossetti[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid Thanks Stefan for the explanation! Cheers, Andrea From unknown Fri Aug 15 12:51:22 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, 02 Aug 2014 11:24:04 +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