From unknown Thu Sep 11 16:39:24 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#12838 <12838@debbugs.gnu.org> To: bug#12838 <12838@debbugs.gnu.org> Subject: Status: pcomplete on a path with ~ in eshell fails with "Text is read-only" Reply-To: bug#12838 <12838@debbugs.gnu.org> Date: Thu, 11 Sep 2025 23:39:24 +0000 retitle 12838 pcomplete on a path with ~ in eshell fails with "Text is read= -only" reassign 12838 emacs submitter 12838 Tuomas Kuismin severity 12838 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 08 11:56:40 2012 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. From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 08 21:11:34 2012 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 To: Tuomas Kuismin Subject: Re: bug#12838: pcomplete on a path with ~ in eshell fails with "Text is read-only" 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-Debbugs-No-Ack: yes 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-Debbugs-Envelope-To: 12838 Cc: 12838@debbugs.gnu.org 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 debbugs-submit-bounces@debbugs.gnu.org Thu Nov 15 03:01:05 2012 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 To: Tuomas Kuismin Subject: Re: bug#12838: pcomplete on a path with ~ in eshell fails with "Text is read-only" 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-Debbugs-No-Ack: yes 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-Debbugs-Envelope-To: 12838 Cc: 12838@debbugs.gnu.org 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 debbugs-submit-bounces@debbugs.gnu.org Mon Nov 19 14:24:10 2012 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 From unknown Thu Sep 11 16:39:24 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 18 Dec 2012 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