all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: Tuomas Kuismin <tuomas.kuismin@iki.fi>
Cc: 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 21:11:26 -0500	[thread overview]
Message-ID: <25sj8j4jap.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <lzip9gfmy7.fsf@iki.fi> (Tuomas Kuismin's message of "Thu, 08 Nov 2012 11:44:48 +0200")

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.





  reply	other threads:[~2012-11-09  2:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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=25sj8j4jap.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=12838@debbugs.gnu.org \
    --cc=tuomas.kuismin@iki.fi \
    /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.