GNU bug report logs - #12838
pcomplete on a path with ~ in eshell fails with "Text is read-only"

Previous Next

Package: emacs;

Reported by: Tuomas Kuismin <tuomas.kuismin <at> iki.fi>

Date: Thu, 8 Nov 2012 16:57:04 UTC

Severity: normal

Found in version 24.2

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#12838: closed (pcomplete on a path with ~ in eshell fails
 with "Text is read-only")
Date: Mon, 19 Nov 2012 19:25:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Mon, 19 Nov 2012 14:22:58 -0500
with message-id <jwvwqxhz9fv.fsf-monnier+bug#12838 <at> gnu.org>
and subject line Re: bug#12838: pcomplete on a path with ~ in eshell fails with "Text is read-only"
has caused the debbugs.gnu.org bug report #12838,
regarding pcomplete on a path with ~ in eshell fails with "Text is read-only"
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
12838: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=12838
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Tuomas Kuismin <tuomas.kuismin <at> iki.fi>
To: submit <at> debbugs.gnu.org
Subject: pcomplete on a path with ~ in eshell fails with "Text is read-only"
Date: Thu, 08 Nov 2012 11:44:48 +0200
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.


[Message part 3 (message/rfc822, inline)]
From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 12838-done <at> debbugs.gnu.org, Tuomas Kuismin <tuomas.kuismin <at> iki.fi>
Subject: Re: bug#12838: pcomplete on a path with ~ in eshell fails with
	"Text is read-only"
Date: Mon, 19 Nov 2012 14:22:58 -0500
> 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


This bug report was last modified 12 years and 270 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.