From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: s.sanjeevkumar@gmail.com Newsgroups: gmane.emacs.help Subject: Re: delete-selection-mode on viper Date: Mon, 10 Sep 2012 19:37:42 -0700 (PDT) Message-ID: <7b70ffab-03ee-4fff-ad8f-f0f13542428a@googlegroups.com> References: <3A628C44DD01480A8E8363F90D1ED093@us.oracle.com> <216122.77444.qm@web63008.mail.re1.yahoo.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1347331217 14869 80.91.229.3 (11 Sep 2012 02:40:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Sep 2012 02:40:17 +0000 (UTC) Cc: Maindoor , help-gnu-emacs@gnu.org To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 11 04:40:20 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TBGOh-0000oO-Fz for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Sep 2012 04:40:19 +0200 Original-Received: from localhost ([::1]:39087 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBGOd-0002W5-OC for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Sep 2012 22:40:15 -0400 Original-Received: by 10.66.85.199 with SMTP id j7mr3106861paz.36.1347331063029; Mon, 10 Sep 2012 19:37:43 -0700 (PDT) Original-Received: by 10.68.189.202 with SMTP id gk10mr911788pbc.11.1347331063010; Mon, 10 Sep 2012 19:37:43 -0700 (PDT) Original-Path: usenet.stanford.edu!4no408618pbn.1!news-out.google.com!t10ni4303pbh.0!nntp.google.com!r4no410739pbs.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=202.129.82.218; posting-account=iNscTAoAAACKbGF4Fs7f9pc-DBnmU6VU Original-NNTP-Posting-Host: 202.129.82.218 User-Agent: G2/1.0 Injection-Date: Tue, 11 Sep 2012 02:37:43 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:194371 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:86715 Archived-At: On Friday, January 7, 2011 7:17:58 PM UTC+11, Le Wang wrote: > Here are steps I would take to try to trouble-shoot in Emacs. >=20 >=20 >=20 > emacs -Qfdelete-selection-mode > o >=20 >=20 > Reading commentary at beginning of source ... >=20 >=20 > This seems promising: >=20 >=20 >=20 >=20 > ;; Commands which will delete the selection need a 'delete-selection > ;; property on their symbols; commands which insert text but don't > ;; have this property won't delete the selection. >=20 >=20 >=20 > google "emacs how to set property on command" >=20 >=20 > Find out >=20 >=20 >=20 >=20 > put is a built-in function in `C source code'. >=20 >=20 >=20 >=20 > (put SYMBOL PROPNAME VALUE) >=20 >=20 >=20 >=20 > Store SYMBOL's PROPNAME property with value VALUE. >=20 >=20 > It can be retrieved with `(get SYMBOL PROPNAME)'. >=20 >=20 > Fire up viper mode (I don't use it). >=20 >=20 >=20 > k[paste key cord] >=20 >=20 > Jot down what the command name. =A0Try something like: >=20 >=20 >=20 > (put '[viper-paste-func] =A0'delete-selection t) >=20 >=20 > >=20 >=20 >=20 > See if it worked. =A0If it did, add the "(put ..." line to your .emacs.el >=20 >=20 > On Fri, Jan 7, 2011 at 9:29 AM, Maindoor wrote: >=20 > Hi, >=20 >=20 >=20 > I am using viper in emacs, as I come from a vim background. >=20 > When using regular emacs delete-selection-mode works fine, >=20 > but when I use the viper mode, the paste does not work as >=20 > expected. I'm sure others would have faced this issue too, >=20 > any suggestions on how to workaround this ? >=20 >=20 >=20 > Thanks, >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 > --=20 > Le Thanks Le. Yes it worked.