From unknown Thu Sep 11 16:39:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#12838: pcomplete on a path with ~ in eshell fails with "Text is read-only" Resent-From: Tuomas Kuismin Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Nov 2012 16:57:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12838 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 12838@debbugs.gnu.org X-Debbugs-Original-To: submit@debbugs.gnu.org Received: via spool by submit@debbugs.gnu.org id=B.13523938001720 (code B ref -1); Thu, 08 Nov 2012 16:57:04 +0000 Received: (at submit) by debbugs.gnu.org; 8 Nov 2012 16:56:40 +0000 Received: from localhost ([127.0.0.1]:56336 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TWVPE-0000Rd-7B for submit@debbugs.gnu.org; Thu, 08 Nov 2012 11:56:40 -0500 Received: from mail.kapsi.fi ([217.30.184.167]:57538) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TWOfM-0006Xs-El for submit@debbugs.gnu.org; Thu, 08 Nov 2012 04:44:54 -0500 Received: from [195.110.41.9] (helo=magellan.local) by mail.kapsi.fi with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1TWOfJ-0002DC-Mf for submit@debbugs.gnu.org; Thu, 08 Nov 2012 11:44:49 +0200 From: Tuomas Kuismin User-agent: mu4e 0.9.9.5-dev3; emacs 24.2.50.1 Date: Thu, 08 Nov 2012 11:44:48 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-SA-Exim-Connect-IP: 195.110.41.9 X-SA-Exim-Mail-From: tuomas.kuismin@iki.fi X-SA-Exim-Scanned: No (on mail.kapsi.fi); SAEximRunCond expanded to false X-Spam-Score: 0.8 (/) X-Mailman-Approved-At: Thu, 08 Nov 2012 11:55:22 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.8 (/) Package: Emacs Version: 24.2 Reproducing: + Start emacs with "emacs -Q" + Start eshell with M-x eshell + Ignore case in eshell completion with M-x set-variable -> eshell-cmpl-ignore-case -> t + Exit eshell with the command "exit" + Restart eshell with M-x eshell + Create a file in your home directory with the command "touch ~/foo" + Try to complete said file (in eshell) by typing "cat ~/f" and pressing TAB Result: No completion is done, message "Text is read-only" appears. Expected result: "cat ~/foo" appears on screen. Workaround: Add the following to your init file: (add-hook 'eshell-mode-hook (lambda () (setq pcomplete-expand-before-complete t))) This results in the ~ being expanded (removed) from the path before completing, thus circumventing the issue. To my knowledge, this bug exists on Linux and Mac, Emacs 24.2 and the repository. From unknown Thu Sep 11 16:39:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#12838: pcomplete on a path with ~ in eshell fails with "Text is read-only" Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 09 Nov 2012 02:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12838 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Tuomas Kuismin Cc: 12838@debbugs.gnu.org Received: via spool by 12838-submit@debbugs.gnu.org id=B12838.135242709530542 (code B ref 12838); Fri, 09 Nov 2012 02:12:01 +0000 Received: (at 12838) by debbugs.gnu.org; 9 Nov 2012 02:11:35 +0000 Received: from localhost ([127.0.0.1]:56749 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TWe4E-0007wZ-Dc for submit@debbugs.gnu.org; Thu, 08 Nov 2012 21:11:34 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:53708) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TWe4C-0007wS-K6 for 12838@debbugs.gnu.org; Thu, 08 Nov 2012 21:11:33 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1TWe47-0007bl-1W; Thu, 08 Nov 2012 21:11:27 -0500 From: Glenn Morris References: X-Spook: Osama BATF S Box USDOJ PET Skipjack radar fraud X-Ran: U5.8$1p9Up/>!vGHuhZ.|\mUc4Ja2XdW^^Av--J>)"$|'l7H X-Hue: red X-Attribution: GM Date: Thu, 08 Nov 2012 21:11:26 -0500 In-Reply-To: (Tuomas Kuismin's message of "Thu, 08 Nov 2012 11:44:48 +0200") Message-ID: <25sj8j4jap.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -4.6 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.6 (----) Tuomas Kuismin wrote: > Reproducing: > + Start emacs with "emacs -Q" > + Start eshell with M-x eshell > + Ignore case in eshell completion with M-x set-variable -> eshell-cmpl-ignore-case -> t > + Exit eshell with the command "exit" > + Restart eshell with M-x eshell aka emacs -Q --eval '(setq eshell-cmpl-ignore-case t)' -f eshell > + Create a file in your home directory with the command "touch ~/foo" > + Try to complete said file (in eshell) by typing "cat ~/f" and pressing TAB > > Result: No completion is done, message "Text is read-only" appears. Thanks for the report, with similar symptoms to the closed http://debbugs.gnu.org/5067. This is a bug in pcomplete-insert-entry, which tries to delete "/home/user/f" from a buffer that contains only "~/f", and so ends up trying to delete the read-only prompt. There is a FIXME comment in the source about this... It works fine in 23.4, not in 24.1 and later. From unknown Thu Sep 11 16:39:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#12838: pcomplete on a path with ~ in eshell fails with "Text is read-only" Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Nov 2012 08:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12838 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Tuomas Kuismin Cc: 12838@debbugs.gnu.org Received: via spool by 12838-submit@debbugs.gnu.org id=B12838.135296646521056 (code B ref 12838); Thu, 15 Nov 2012 08:02:02 +0000 Received: (at 12838) by debbugs.gnu.org; 15 Nov 2012 08:01:05 +0000 Received: from localhost ([127.0.0.1]:43743 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TYuNk-0005TW-FS for submit@debbugs.gnu.org; Thu, 15 Nov 2012 03:01:04 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:45143) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TYuNi-0005TN-3G for 12838@debbugs.gnu.org; Thu, 15 Nov 2012 03:01:02 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1TYuN3-0004T5-OC; Thu, 15 Nov 2012 03:00:21 -0500 From: Glenn Morris References: <25sj8j4jap.fsf@fencepost.gnu.org> X-Spook: Sundevil INSCOM Afghanistan Kh-11 Europol Uzi pink noise X-Ran: r8$XG|L)@MLt"{Z@4xG=Xb)1r\0p<,@E#in8BNes=w$^V65Jx`=2s+?4P)urQCd|$GW~9' X-Hue: blue X-Attribution: GM Date: Thu, 15 Nov 2012 03:00:21 -0500 In-Reply-To: <25sj8j4jap.fsf@fencepost.gnu.org> (Glenn Morris's message of "Thu, 08 Nov 2012 21:11:26 -0500") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -4.4 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.2 (-----) I installed a workaround in emacs-24 for eshell. Hopefully someone will fix it properly at some point. From unknown Thu Sep 11 16:39:14 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.428 (Entity 5.428) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Tuomas Kuismin Subject: bug#12838: closed (Re: bug#12838: pcomplete on a path with ~ in eshell fails with "Text is read-only") Message-ID: References: X-Gnu-PR-Message: they-closed 12838 X-Gnu-PR-Package: emacs Reply-To: 12838@debbugs.gnu.org Date: Mon, 19 Nov 2012 19:25:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1353353102-24005-1" This is a multi-part message in MIME format... ------------=_1353353102-24005-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #12838: pcomplete on a path with ~ in eshell fails with "Text is read-only" 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 12838@debbugs.gnu.org. --=20 12838: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D12838 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1353353102-24005-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 12838-done) by debbugs.gnu.org; 19 Nov 2012 19:24:10 +0000 Received: from localhost ([127.0.0.1]:55530 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TaWx0-0006E5-Dp for submit@debbugs.gnu.org; Mon, 19 Nov 2012 14:24:10 -0500 Received: from relais.videotron.ca ([24.201.245.36]:60893) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TaWww-0006Dr-LJ for 12838-done@debbugs.gnu.org; Mon, 19 Nov 2012 14:24:08 -0500 MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from ceviche.home ([24.201.208.110]) by VL-VM-MR004.ip.videotron.ca (Oracle Communications Messaging Exchange Server 7u4-22.01 64bit (built Apr 21 2011)) with ESMTP id <0MDR00CO61UB4X60@VL-VM-MR004.ip.videotron.ca> for 12838-done@debbugs.gnu.org; Mon, 19 Nov 2012 14:23:00 -0500 (EST) Received: by ceviche.home (Postfix, from userid 20848) id 50F60660FF; Mon, 19 Nov 2012 14:22:58 -0500 (EST) From: Stefan Monnier To: Glenn Morris Subject: Re: bug#12838: pcomplete on a path with ~ in eshell fails with "Text is read-only" Message-id: References: <25sj8j4jap.fsf@fencepost.gnu.org> Date: Mon, 19 Nov 2012 14:22:58 -0500 In-reply-to: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Spam-Score: 1.5 (+) 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: > I installed a workaround in emacs-24 for eshell. > Hopefully someone will fix it properly at some point. Thanks. The completion-at-point version of pcomplete works here, so I installed a different workaround, and the "fix it properly" will be to move to completion-at-point. [...] Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [24.201.245.36 listed in list.dnswl.org] 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.5000] 0.0 T_HDRS_LCASE Odd capitalization of message header 0.0 T_MANY_HDRS_LCASE Odd capitalization of multiple message headers X-Debbugs-Envelope-To: 12838-done Cc: 12838-done@debbugs.gnu.org, Tuomas Kuismin X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 1.5 (+) 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: > I installed a workaround in emacs-24 for eshell. > Hopefully someone will fix it properly at some point. Thanks. The completion-at-point version of pcomplete works here, so I installed a different workaround, and the "fix it properly" will be to move to completion-at-point. [...] Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [24.201.245.36 listed in list.dnswl.org] 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.5000] > I installed a workaround in emacs-24 for eshell. > Hopefully someone will fix it properly at some point. Thanks. The completion-at-point version of pcomplete works here, so I installed a different workaround, and the "fix it properly" will be to move to completion-at-point. Stefan ------------=_1353353102-24005-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 8 Nov 2012 16:56:40 +0000 Received: from localhost ([127.0.0.1]:56336 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TWVPE-0000Rd-7B for submit@debbugs.gnu.org; Thu, 08 Nov 2012 11:56:40 -0500 Received: from mail.kapsi.fi ([217.30.184.167]:57538) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TWOfM-0006Xs-El for submit@debbugs.gnu.org; Thu, 08 Nov 2012 04:44:54 -0500 Received: from [195.110.41.9] (helo=magellan.local) by mail.kapsi.fi with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1TWOfJ-0002DC-Mf for submit@debbugs.gnu.org; Thu, 08 Nov 2012 11:44:49 +0200 From: Tuomas Kuismin To: submit@debbugs.gnu.org Subject: pcomplete on a path with ~ in eshell fails with "Text is read-only" User-agent: mu4e 0.9.9.5-dev3; emacs 24.2.50.1 Date: Thu, 08 Nov 2012 11:44:48 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-SA-Exim-Connect-IP: 195.110.41.9 X-SA-Exim-Mail-From: tuomas.kuismin@iki.fi X-SA-Exim-Scanned: No (on mail.kapsi.fi); SAEximRunCond expanded to false X-Spam-Score: 0.8 (/) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 08 Nov 2012 11:55:22 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.8 (/) Package: Emacs Version: 24.2 Reproducing: + Start emacs with "emacs -Q" + Start eshell with M-x eshell + Ignore case in eshell completion with M-x set-variable -> eshell-cmpl-ignore-case -> t + Exit eshell with the command "exit" + Restart eshell with M-x eshell + Create a file in your home directory with the command "touch ~/foo" + Try to complete said file (in eshell) by typing "cat ~/f" and pressing TAB Result: No completion is done, message "Text is read-only" appears. Expected result: "cat ~/foo" appears on screen. Workaround: Add the following to your init file: (add-hook 'eshell-mode-hook (lambda () (setq pcomplete-expand-before-complete t))) This results in the ~ being expanded (removed) from the path before completing, thus circumventing the issue. To my knowledge, this bug exists on Linux and Mac, Emacs 24.2 and the repository. ------------=_1353353102-24005-1--