* 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
* bug#12838: pcomplete on a path with ~ in eshell fails with "Text is read-only"
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
0 siblings, 1 reply; 4+ messages in thread
From: Glenn Morris @ 2012-11-09 2:11 UTC (permalink / raw)
To: Tuomas Kuismin; +Cc: 12838
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#12838: pcomplete on a path with ~ in eshell fails with "Text is read-only"
2012-11-09 2:11 ` Glenn Morris
@ 2012-11-15 8:00 ` Glenn Morris
2012-11-19 19:22 ` Stefan Monnier
0 siblings, 1 reply; 4+ messages in thread
From: Glenn Morris @ 2012-11-15 8:00 UTC (permalink / raw)
To: Tuomas Kuismin; +Cc: 12838
I installed a workaround in emacs-24 for eshell.
Hopefully someone will fix it properly at some point.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#12838: pcomplete on a path with ~ in eshell fails with "Text is read-only"
2012-11-15 8:00 ` Glenn Morris
@ 2012-11-19 19:22 ` Stefan Monnier
0 siblings, 0 replies; 4+ messages in thread
From: Stefan Monnier @ 2012-11-19 19:22 UTC (permalink / raw)
To: Glenn Morris; +Cc: 12838-done, Tuomas Kuismin
> 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
^ 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.