all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#12838: pcomplete on a path with ~ in eshell fails with "Text is read-only"
@ 2012-11-08  9:44 Tuomas Kuismin
  2012-11-09  2:11 ` Glenn Morris
  0 siblings, 1 reply; 4+ messages in thread
From: Tuomas Kuismin @ 2012-11-08  9:44 UTC (permalink / raw)
  To: 12838

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.





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-11-19 19:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-08  9:44 bug#12838: pcomplete on a path with ~ in eshell fails with "Text is read-only" Tuomas Kuismin
2012-11-09  2:11 ` Glenn Morris
2012-11-15  8:00   ` Glenn Morris
2012-11-19 19:22     ` Stefan Monnier

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.