help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: delete-selection-mode on viper


From: s . sanjeevkumar
Subject: Re: delete-selection-mode on viper
Date: Mon, 10 Sep 2012 19:37:42 -0700 (PDT)
User-agent: G2/1.0

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.
> 
> 
> 
> emacs -Q<C-h>fdelete-selection-mode
> <C-x>o<tab><enter>
> 
> 
> Reading commentary at beginning of source ...
> 
> 
> This seems promising:
> 
> 
> 
> 
> ;; 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.
> 
> 
> 
> google "emacs how to set property on command"
> 
> 
> Find out
> 
> 
> 
> 
> put is a built-in function in `C source code'.
> 
> 
> 
> 
> (put SYMBOL PROPNAME VALUE)
> 
> 
> 
> 
> Store SYMBOL's PROPNAME property with value VALUE.
> 
> 
> It can be retrieved with `(get SYMBOL PROPNAME)'.
> 
> 
> Fire up viper mode (I don't use it).
> 
> 
> 
> <C-h>k[paste key cord]
> 
> 
> Jot down what the command name.  Try something like:
> 
> 
> 
> (put '[viper-paste-func]  'delete-selection t)
> 
> 
> <C-x><C-e>
> 
> 
> 
> See if it worked.  If it did, add the "(put ..." line to your .emacs.el
> 
> 
> On Fri, Jan 7, 2011 at 9:29 AM, Maindoor <sanjee...@yahoo.com> wrote:
> 
> Hi,
> 
> 
> 
> I am using viper in emacs, as I come from a vim background.
> 
> When using regular emacs delete-selection-mode works fine,
> 
> but when I use the viper mode, the paste does not work as
> 
> expected. I'm sure others would have faced this issue too,
> 
> any suggestions on how to workaround this ?
> 
> 
> 
> Thanks,
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> -- 
> Le

Thanks Le. Yes it worked.


reply via email to

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