From: Ke Lu <lu@luxdo.jp>
To: help-gnu-emacs@gnu.org
Subject: Re: Kill ring question
Date: Wed, 28 Nov 2007 21:05:43 +0900 [thread overview]
Message-ID: <m3prxuo9rc.fsf@www.luxdo.jp> (raw)
In-Reply-To: m3d4tv9qs9.fsf@www.luxdo.jp
Ke Lu <lu@luxdo.jp> writes:
> Peter Dyballa <Peter_Dyballa@Web.DE> writes:
>
>> Am 27.11.2007 um 15:25 schrieb David Kastrup:
>>
>>> Delete the previous N characters (following if N is negative).
>>> Optional second arg KILLFLAG non-nil means kill instead (save in kill ring).
>>> Interactively, N is the prefix arg, and KILLFLAG is set if
>>> N was explicitly specified.
>>
>> Indeed ... Strange behaviour, anyway. Does it come from a time when GNU Emacs
>> did not have undo?
>>
>> --
>> Mit friedvollen Grüßen
>>
>> Pete === -Q
>> ==<__/% >>
>> _____________(_)____@_____________________________
>
> Thanks all.
> I use viper, and sometimes I don't want de, d%, d$, ce, c%, c$ .etc
> killring text, I just want delete text of change text,
> Is there any switch to do it?
I Can't get any more ideas, So the only thing I can do is
;; Add to .emacs
(global-set-key (kbd "C-S-k")
(lambda ()
(interactive)
(if mark-active
(progn
(delete-region (region-beginning) (region-end))
)
(call-interactively 'mark-word)
(delete-region (region-beginning) (region-end))
)))
;; add to .viper
(define-key viper-vi-global-user-map "K"
(lambda ()
(interactive)
(if mark-active
(progn
(delete-region (region-beginning) (region-end))
)
(call-interactively 'mark-word)
(delete-region (region-beginning) (region-end))
)))
next prev parent reply other threads:[~2007-11-28 12:05 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-27 13:30 Kill ring question Ke Lu
2007-11-27 14:15 ` Peter Dyballa
[not found] ` <mailman.4177.1196173021.18990.help-gnu-emacs@gnu.org>
2007-11-27 14:25 ` David Kastrup
2007-11-27 15:18 ` Peter Dyballa
[not found] ` <mailman.4181.1196176718.18990.help-gnu-emacs@gnu.org>
2007-11-28 0:07 ` Ke Lu
2007-11-28 12:05 ` Ke Lu [this message]
2007-11-28 16:32 ` Peter Dyballa
[not found] ` <mailman.4260.1196267695.18990.help-gnu-emacs@gnu.org>
2007-11-28 23:52 ` Ke Lu
2007-11-27 14:57 ` Bastien
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=m3prxuo9rc.fsf@www.luxdo.jp \
--to=lu@luxdo.jp \
--cc=help-gnu-emacs@gnu.org \
/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.