From: David Kastrup <dak@gnu.org>
Cc: reinhard.kotucha@web.de, emacs-devel@gnu.org
Subject: Re: find-file and backward-kill-word
Date: Tue, 12 Oct 2004 10:31:41 +0200 [thread overview]
Message-ID: <x5fz4k5ocy.fsf@lola.goethe.zz> (raw)
In-Reply-To: <200410120059.i9C0x3O16263@raven.dms.auburn.edu> (Luc Teirlinck's message of "Mon, 11 Oct 2004 19:59:03 -0500 (CDT)")
Luc Teirlinck <teirllm@dms.auburn.edu> writes:
> Reinhard Kotucha wrote:
>
> When I run find-file I get a prompt like this:
>
> Find file: /tmp/reinhard/
>
> I can edit everything on the right to the space after the colon. For
> instance, beginning-of-line moves the cursor to the first slash.
>
> So far so good. But if I then run the command backward-kill-word
> (M-DEL), the cursor moves to the "f" of the word "file" and I get the
> message
>
> Text is read-only: #<buffer *Minibuf-1*>
>
> That is not a bug.
It is also not pretty.
> You are right after the prompt: `Find file: '. `backward-kill-word'
> kills the preceding word, in this case `file: '. Of course, `file:
> ' is read-only, so it can not be deleted. But it is copied to the
> kill ring, which in certain situations could be useful. The cursor
> moves to the `f' to allow a following `backward-kill-word' to
> prepend `Find ' to the kill-ring entry, which would then be `Find
> file: '.
>
> See `(emacs)Killing' for details.
Perhaps we should not move the cursor when "killing" readonly
material? It would have the disadvantage that using kill-word three
times will not copy three words into the kill buffer, but I don't
think that killing readonly text is used so often that we need to
provide this sort of "convenience". If we signal an error, I don't
think we should really move point, either.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
next prev parent reply other threads:[~2004-10-12 8:31 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-11 21:00 find-file and backward-kill-word Reinhard Kotucha
2004-10-12 0:59 ` Luc Teirlinck
2004-10-12 8:31 ` David Kastrup [this message]
2004-10-12 13:06 ` Luc Teirlinck
2004-10-12 13:22 ` David Kastrup
2004-10-13 2:15 ` Richard Stallman
2004-10-12 14:16 ` Alan Shutko
2004-10-12 21:58 ` Reinhard Kotucha
2004-10-13 1:55 ` Luc Teirlinck
2004-10-13 20:45 ` Alan Shutko
2004-10-15 0:26 ` Richard Stallman
2004-10-16 1:00 ` Stefan Daschek
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=x5fz4k5ocy.fsf@lola.goethe.zz \
--to=dak@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=reinhard.kotucha@web.de \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).