From: Tuomas Kuismin <tuomas.kuismin@iki.fi>
To: 12838@debbugs.gnu.org
Subject: bug#12838: pcomplete on a path with ~ in eshell fails with "Text is read-only"
Date: Thu, 08 Nov 2012 11:44:48 +0200 [thread overview]
Message-ID: <lzip9gfmy7.fsf@iki.fi> (raw)
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.
next reply other threads:[~2012-11-08 9:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-08 9:44 Tuomas Kuismin [this message]
2012-11-09 2:11 ` bug#12838: pcomplete on a path with ~ in eshell fails with "Text is read-only" Glenn Morris
2012-11-15 8:00 ` Glenn Morris
2012-11-19 19:22 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=lzip9gfmy7.fsf@iki.fi \
--to=tuomas.kuismin@iki.fi \
--cc=12838@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.