From unknown Sat Jun 14 19:17:08 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17829: 24.4.50; `C-t' in empty minibuffer traps user in read-only text Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 21 Jun 2014 17:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 17829 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 17829@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.140337046924690 (code B ref -1); Sat, 21 Jun 2014 17:08:01 +0000 Received: (at submit) by debbugs.gnu.org; 21 Jun 2014 17:07:49 +0000 Received: from localhost ([127.0.0.1]:56314 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WyOlY-0006Q9-Hb for submit@debbugs.gnu.org; Sat, 21 Jun 2014 13:07:48 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34977) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WyOlW-0006Pt-2t for submit@debbugs.gnu.org; Sat, 21 Jun 2014 13:07:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WyOlG-00068A-CX for submit@debbugs.gnu.org; Sat, 21 Jun 2014 13:07:40 -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=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:49227) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WyOlG-000686-9x for submit@debbugs.gnu.org; Sat, 21 Jun 2014 13:07:30 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36623) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WyOl7-0005PA-Fo for bug-gnu-emacs@gnu.org; Sat, 21 Jun 2014 13:07:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WyOkw-00063L-SX for bug-gnu-emacs@gnu.org; Sat, 21 Jun 2014 13:07:21 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:33474) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WyOkw-000634-Lo for bug-gnu-emacs@gnu.org; Sat, 21 Jun 2014 13:07:10 -0400 Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s5LH785X017426 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sat, 21 Jun 2014 17:07:08 GMT Received: from userz7022.oracle.com (userz7022.oracle.com [156.151.31.86]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s5LH77dv011282 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 21 Jun 2014 17:07:07 GMT Received: from abhmp0003.oracle.com (abhmp0003.oracle.com [141.146.116.9]) by userz7022.oracle.com (8.14.5+Sun/8.14.4) with ESMTP id s5LH769a008098 for ; Sat, 21 Jun 2014 17:07:06 GMT MIME-Version: 1.0 Message-ID: <73f7a6e9-a0bf-495c-a585-e707129e1cb7@default> Date: Sat, 21 Jun 2014 10:07:04 -0700 (PDT) From: Drew Adams X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6691.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] 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-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 (----) emacs -Q `C-t' is `transpose-chars'.=20 `M-x C-t' gives you a "Text is read-only" error, and it moves point backward into the minibuffer prompt. Repeating it does not move point further backward but continues to raise the error. Trying to type text then results in the same error message. The user can become confused, not realizing that point is in fact inside the prompt area. S?he can then use `C-f' to move back out of the prompt area, but `C-t' should be smarter. `transpose-chars' should presumably limit itself to field motion, or should in some other way take such a situation into account. In GNU Emacs 24.4.50.1 (i686-pc-mingw32) of 2014-06-17 on ODIEONE Bzr revision: 117359 monnier@iro.umontreal.ca-20140617193358-2t1nl1te9gc2mq= rx Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --prefix=3D/c/Devel/emacs/snapshot/trunk --enable-checking=3Dyes,glyphs 'CFLAGS=3D-O0 -g3' LDFLAGS=3D-Lc:/Devel/emacs/lib 'CPPFLAGS=3D-DGC_MCHECK=3D1 -Ic:/Devel/emacs/include'' From unknown Sat Jun 14 19:17:08 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17829: 24.4.50; `C-t' in empty minibuffer traps user in read-only text Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 21 Jun 2014 22:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17829 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Drew Adams Cc: 17829@debbugs.gnu.org Received: via spool by 17829-submit@debbugs.gnu.org id=B17829.140338846225009 (code B ref 17829); Sat, 21 Jun 2014 22:08:01 +0000 Received: (at 17829) by debbugs.gnu.org; 21 Jun 2014 22:07:42 +0000 Received: from localhost ([127.0.0.1]:56474 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WyTRl-0006VJ-VB for submit@debbugs.gnu.org; Sat, 21 Jun 2014 18:07:42 -0400 Received: from alc-vshost7.dreamhost.com ([69.163.216.107]:37779 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WyTRi-0006V9-VP for 17829@debbugs.gnu.org; Sat, 21 Jun 2014 18:07:40 -0400 Received: from localhost.jurta.org (ps18281.dreamhostps.com [69.163.222.226]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 695A1378502CA0; Sat, 21 Jun 2014 15:07:37 -0700 (PDT) From: Juri Linkov Organization: JURTA References: <73f7a6e9-a0bf-495c-a585-e707129e1cb7@default> Date: Sun, 22 Jun 2014 01:01:04 +0300 In-Reply-To: <73f7a6e9-a0bf-495c-a585-e707129e1cb7@default> (Drew Adams's message of "Sat, 21 Jun 2014 10:07:04 -0700 (PDT)") Message-ID: <87vbrt2a8v.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 1.6 (+) 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: > `M-x C-t' gives you a "Text is read-only" error, and it moves point > backward into the minibuffer prompt. Repeating it does not move point > further backward but continues to raise the error. I often get into the same trap when mistyping C-t instead of C-y to yank text into the minibuffer. This is one of possible fixes: [...] Content analysis details: (1.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.6 RCVD_IN_BRBL_LASTEXT RBL: RCVD_IN_BRBL_LASTEXT [69.163.216.107 listed in bb.barracudacentral.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: 1.6 (+) 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: > `M-x C-t' gives you a "Text is read-only" error, and it moves point > backward into the minibuffer prompt. Repeating it does not move point > further backward but continues to raise the error. I often get into the same trap when mistyping C-t instead of C-y to yank text into the minibuffer. This is one of possible fixes: [...] Content analysis details: (1.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.6 RCVD_IN_BRBL_LASTEXT RBL: RCVD_IN_BRBL_LASTEXT [69.163.216.107 listed in bb.barracudacentral.org] > `M-x C-t' gives you a "Text is read-only" error, and it moves point > backward into the minibuffer prompt. Repeating it does not move point > further backward but continues to raise the error. I often get into the same trap when mistyping C-t instead of C-y to yank text into the minibuffer. This is one of possible fixes: === modified file 'lisp/simple.el' --- lisp/simple.el 2014-01-31 06:42:29 +0000 +++ lisp/simple.el 2014-06-21 21:54:06 +0000 @@ -5902,7 +5902,8 @@ (defun transpose-chars (arg) and drag it forward past ARG other characters (backward if ARG negative). If no argument and at end of line, the previous two chars are exchanged." (interactive "*P") - (and (null arg) (eolp) (forward-char -1)) + (when (and (null arg) (eolp) (not (get-text-property (1- (point)) 'read-only))) + (forward-char -1)) (transpose-subr 'forward-char (prefix-numeric-value arg))) (defun transpose-words (arg) From unknown Sat Jun 14 19:17:08 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Drew Adams Subject: bug#17829: closed (Re: bug#17829: 24.4.50; `C-t' in empty minibuffer traps user in read-only text) Message-ID: References: <87k37o45m8.fsf@mail.jurta.org> <73f7a6e9-a0bf-495c-a585-e707129e1cb7@default> X-Gnu-PR-Message: they-closed 17829 X-Gnu-PR-Package: emacs Reply-To: 17829@debbugs.gnu.org Date: Tue, 08 Jul 2014 08:29:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1404808143-3871-1" This is a multi-part message in MIME format... ------------=_1404808143-3871-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #17829: 24.4.50; `C-t' in empty minibuffer traps user in read-only text which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 17829@debbugs.gnu.org. --=20 17829: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D17829 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1404808143-3871-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 17829-done) by debbugs.gnu.org; 8 Jul 2014 08:28:20 +0000 Received: from localhost ([127.0.0.1]:46519 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X4Ql9-0000zB-QX for submit@debbugs.gnu.org; Tue, 08 Jul 2014 04:28:20 -0400 Received: from alc-vshost7.dreamhost.com ([69.163.216.107]:54088 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X4Ql7-0000yx-Bl for 17829-done@debbugs.gnu.org; Tue, 08 Jul 2014 04:28:17 -0400 Received: from localhost.jurta.org (ps18281.dreamhostps.com [69.163.222.226]) by ps18281.dreamhostps.com (Postfix) with ESMTP id DBD5F34831CD8F; Tue, 8 Jul 2014 01:28:15 -0700 (PDT) From: Juri Linkov To: Drew Adams Subject: Re: bug#17829: 24.4.50; `C-t' in empty minibuffer traps user in read-only text Organization: JURTA References: <73f7a6e9-a0bf-495c-a585-e707129e1cb7@default> Date: Tue, 08 Jul 2014 11:27:59 +0300 In-Reply-To: <73f7a6e9-a0bf-495c-a585-e707129e1cb7@default> (Drew Adams's message of "Sat, 21 Jun 2014 10:07:04 -0700 (PDT)") Message-ID: <87k37o45m8.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 2.4 (++) 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: Version: 24.4.50 > `M-x C-t' gives you a "Text is read-only" error, and it moves point > backward into the minibuffer prompt. Repeating it does not move point > further backward but continues to raise the error. [...] Content analysis details: (2.4 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.7 RCVD_IN_XBL RBL: Received via a relay in Spamhaus XBL [69.163.216.107 listed in zen.spamhaus.org] 1.6 RCVD_IN_BRBL_LASTEXT RBL: RCVD_IN_BRBL_LASTEXT [69.163.216.107 listed in bb.barracudacentral.org] X-Debbugs-Envelope-To: 17829-done Cc: 17829-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: 2.4 (++) 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: Version: 24.4.50 > `M-x C-t' gives you a "Text is read-only" error, and it moves point > backward into the minibuffer prompt. Repeating it does not move point > further backward but continues to raise the error. [...] Content analysis details: (2.4 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.7 RCVD_IN_XBL RBL: Received via a relay in Spamhaus XBL [69.163.216.107 listed in zen.spamhaus.org] 1.6 RCVD_IN_BRBL_LASTEXT RBL: RCVD_IN_BRBL_LASTEXT [69.163.216.107 listed in bb.barracudacentral.org] Version: 24.4.50 > `M-x C-t' gives you a "Text is read-only" error, and it moves point > backward into the minibuffer prompt. Repeating it does not move point > further backward but continues to raise the error. Fixed in the trunk since it's not a regression. ------------=_1404808143-3871-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 21 Jun 2014 17:07:49 +0000 Received: from localhost ([127.0.0.1]:56314 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WyOlY-0006Q9-Hb for submit@debbugs.gnu.org; Sat, 21 Jun 2014 13:07:48 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34977) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WyOlW-0006Pt-2t for submit@debbugs.gnu.org; Sat, 21 Jun 2014 13:07:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WyOlG-00068A-CX for submit@debbugs.gnu.org; Sat, 21 Jun 2014 13:07:40 -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=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:49227) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WyOlG-000686-9x for submit@debbugs.gnu.org; Sat, 21 Jun 2014 13:07:30 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36623) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WyOl7-0005PA-Fo for bug-gnu-emacs@gnu.org; Sat, 21 Jun 2014 13:07:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WyOkw-00063L-SX for bug-gnu-emacs@gnu.org; Sat, 21 Jun 2014 13:07:21 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:33474) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WyOkw-000634-Lo for bug-gnu-emacs@gnu.org; Sat, 21 Jun 2014 13:07:10 -0400 Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s5LH785X017426 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sat, 21 Jun 2014 17:07:08 GMT Received: from userz7022.oracle.com (userz7022.oracle.com [156.151.31.86]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s5LH77dv011282 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 21 Jun 2014 17:07:07 GMT Received: from abhmp0003.oracle.com (abhmp0003.oracle.com [141.146.116.9]) by userz7022.oracle.com (8.14.5+Sun/8.14.4) with ESMTP id s5LH769a008098 for ; Sat, 21 Jun 2014 17:07:06 GMT MIME-Version: 1.0 Message-ID: <73f7a6e9-a0bf-495c-a585-e707129e1cb7@default> Date: Sat, 21 Jun 2014 10:07:04 -0700 (PDT) From: Drew Adams To: bug-gnu-emacs@gnu.org Subject: 24.4.50; `C-t' in empty minibuffer traps user in read-only text X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6691.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] 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 (----) emacs -Q `C-t' is `transpose-chars'.=20 `M-x C-t' gives you a "Text is read-only" error, and it moves point backward into the minibuffer prompt. Repeating it does not move point further backward but continues to raise the error. Trying to type text then results in the same error message. The user can become confused, not realizing that point is in fact inside the prompt area. S?he can then use `C-f' to move back out of the prompt area, but `C-t' should be smarter. `transpose-chars' should presumably limit itself to field motion, or should in some other way take such a situation into account. In GNU Emacs 24.4.50.1 (i686-pc-mingw32) of 2014-06-17 on ODIEONE Bzr revision: 117359 monnier@iro.umontreal.ca-20140617193358-2t1nl1te9gc2mq= rx Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --prefix=3D/c/Devel/emacs/snapshot/trunk --enable-checking=3Dyes,glyphs 'CFLAGS=3D-O0 -g3' LDFLAGS=3D-Lc:/Devel/emacs/lib 'CPPFLAGS=3D-DGC_MCHECK=3D1 -Ic:/Devel/emacs/include'' ------------=_1404808143-3871-1--