From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ke Lu Newsgroups: gmane.emacs.help Subject: Re: Kill ring question Date: Wed, 28 Nov 2007 21:05:43 +0900 Organization: Bentium Ltd. (CN99) Message-ID: References: <85tzn7dav0.fsf@lola.goethe.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1196253702 32008 80.91.229.12 (28 Nov 2007 12:41:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 28 Nov 2007 12:41:42 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 28 13:41:41 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IxMEU-00041B-DO for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Nov 2007 13:41:38 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IxMEE-0003PH-VM for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Nov 2007 07:41:22 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!news.cn99.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 51 Original-NNTP-Posting-Host: softbank218118058050.bbtec.net Original-X-Trace: news.cn99.com 1196255867 24430 218.118.58.50 (28 Nov 2007 13:17:47 GMT) Original-X-Complaints-To: usenet@news.cn99.com Original-NNTP-Posting-Date: Wed, 28 Nov 2007 13:17:47 +0000 (UTC) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) Cancel-Lock: sha1:rgb8w2nJkH8LxfpLf1/n0qHsWa0= Original-Xref: shelby.stanford.edu gnu.emacs.help:154198 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:49622 Archived-At: Ke Lu writes: > Peter Dyballa 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)) )))