[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: `*' interactive spec in some text-killing functions

From: David Kastrup
Subject: Re: `*' interactive spec in some text-killing functions
Date: Wed, 27 Jun 2007 16:08:54 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.51 (gnu/linux)

"Juanma Barranquero" <address@hidden> writes:

> The following functions from simple.el do not have the `*' interactive
> spec: zap-to-char, kill-line, kill-whole-line, kill-word,
> backward-kill-word. (They don't have a call to
> `barf-if-buffer-read-only', either).
> Using any of them in a read-only buffer does not delete text, but it
> moves the point forward (or backward, in the case of
> `backward-kill-word'), which is weird.
> Is that intended, or should they have `*' in the interactive spec?

The purpose of not having `*' presumably is to have them affect the
kill-ring.  In order to provide similar behavior upon multiple kills
as in a non-readonly-buffer, it appears reasonable to move across the
(non-happening) kill.

> Additionally, `overwrite-mode' and `binary-overwrite-mode' do not
> have `*' either. It is customary not to do so for minor modes, it is
> an oversight, or it is really preferred not to get an error message
> in interactive uses of the overwrite modes?

Uh what?  Switching to overwrite-mode/binary-overwrite-mode does not
change the buffer, does it?

David Kastrup

reply via email to

[Prev in Thread] Current Thread [Next in Thread]