INA Lintaro | 1 Apr 2010 10:22
Picon
Picon
Favicon

A bug in text object?

Hello,

I found a bug in text object. Using '* i w' at the beginning of a word
preceded by a non-whitespace character does not work correctly. For
example, 'd i w' at the position of 'b' in the text "foo (bar)"
deletes '(', where I think it should delete 'bar'.

--

-- 
Lintaro INA

Vegard Øye | 1 Apr 2010 12:58
Picon
Favicon

A bug in text object?


> Date: Thu, 1 Apr 2010 17:22:24 +0900
> From: ina at kuis.kyoto-u.ac.jp
>
> Using '* i w' at the beginning of a word preceded by a
> non-whitespace character does not work correctly. For example,
> 'd i w' at the position of 'b' in the text "foo (bar)" deletes
> '(', where I think it should delete 'bar'.

Thanks for the bug report. This is fixed in SVN revision 166.

http://my-svn.assembla.com/svn/vimpulse

Vegard 		 	   		  
_________________________________________________________________
Windows 7: Se direkte-TV fra den b?rbare PCen. Finn ut mer.
http://windows.microsoft.com/windows-7

Fabian Braennstroem | 1 Apr 2010 14:06
Picon
Picon

issue with viper-escape-to-emacs

Hello,

with the new vimpulse, I have a problem escaping back to emacs mode. I 
need this option to run some traditional 'M-x' functions. Up to now I used:

(define-key viper-vi-global-user-map (kbd "\\\\") 'viper-escape-to-emacs)

Unfortunately, this does not work anymore, as using M(Esc) for the next 
command cancels this escape and inserts the second of the backslash into 
the buffer...

Would be nice, if you have a hint!
Regards!
Fabian

Vegard Øye | 1 Apr 2010 14:55
Picon
Favicon

issue with viper-escape-to-emacs


> Date: Thu, 1 Apr 2010 14:06:14 +0200
> From: f.braennstroem at gmx.de
>
> Hello,
>
> with the new vimpulse, I have a problem escaping back to emacs mode. I
> need this option to run some traditional 'M-x' functions. Up to now I used:
>
> (define-key viper-vi-global-user-map (kbd "\\\\") 'viper-escape-to-emacs)
>
> Unfortunately, this does not work anymore, as using M(Esc) for the next
> command cancels this escape and inserts the second of the backslash into
> the buffer...

I'm sorry, but I can't reproduce this. What M-x functions do you need
Emacs state for? And why do you rebind `viper-escape-to-emacs' from \
to \\? Please provide more details. :)

Anyway, a quick workaround: C-z toggles Emacs state indefinitely. When
you are done running the necessary commands, press C-z to go back to
vi state again.

Vegard 		 	   		  
_________________________________________________________________
Windows Live? Mail. Flere kontoer p? ett sted.
http://download.live.com/wlmail

Fabian Braennstroem | 1 Apr 2010 15:04
Picon
Picon

issue with viper-escape-to-emacs

Thanks for the quick reply!

On 04/01/2010 02:55 PM, Vegard ?ye wrote:
>> Date: Thu, 1 Apr 2010 14:06:14 +0200
>> From: f.braennstroem at gmx.de
>>
>> Hello,
>>
>> with the new vimpulse, I have a problem escaping back to emacs mode. I
>> need this option to run some traditional 'M-x' functions. Up to now I used:
>>
>> (define-key viper-vi-global-user-map (kbd "\\\\") 'viper-escape-to-emacs)
>>
>> Unfortunately, this does not work anymore, as using M(Esc) for the next
>> command cancels this escape and inserts the second of the backslash into
>> the buffer...
>
> I'm sorry, but I can't reproduce this. What M-x functions do you need
> Emacs state for? And why do you rebind `viper-escape-to-emacs' from \
> to \\? Please provide more details. :)
I need it for functions like to include entries in the bibtex-file and 
e.g. replacing strings in a file.
I rebind it, as I have some other keybindings to \t, \e , \] and \,

>
> Anyway, a quick workaround: C-z toggles Emacs state indefinitely. When
> you are done running the necessary commands, press C-z to go back to
> vi state again.

Yes, I know this, but that's not really comfortable.
(Continue reading)

Vegard Øye | 1 Apr 2010 15:25
Picon
Favicon

issue with viper-escape-to-emacs


> Date: Thu, 1 Apr 2010 15:04:07 +0200
> From: f.braennstroem at gmx.de
>
>>> (define-key viper-vi-global-user-map (kbd "\\\\") 'viper-escape-to-emacs)
>>>
>>> Unfortunately, this does not work anymore, as using M(Esc) for the
>>> next command cancels this escape and inserts the second of the
>>> backslash into the buffer...
>>
>> I'm sorry, but I can't reproduce this. What M-x functions do you
>> need Emacs state for? And why do you rebind `viper-escape-to-emacs'
>> from \ to \\? Please provide more details. :)
>
> I need it for functions like to include entries in the bibtex-file
> and e.g. replacing strings in a file. I rebind it, as I have some
> other keybindings to \t, \e , \] and \,

Right. What are the precise keystrokes (M-x view-lossage)? What does
your .emacs file look like (position of the line above)? What version
of Emacs are you using? I can't help you before I observe the same
behavior in my own editor.

By the way, Emacs' M-% (`query-replace') and M-x replace-regexp both
work fine in vi state for me. Am I missing something?

Vegard 		 	   		  
_________________________________________________________________
Nye Windows 7: PCen som passer for deg. Finn ut mer.
http://windows.microsoft.com/shop
(Continue reading)

Fabian Braennstroem | 1 Apr 2010 15:37
Picon
Picon

issue with viper-escape-to-emacs

On 04/01/2010 03:25 PM, Vegard ?ye wrote:
>> Date: Thu, 1 Apr 2010 15:04:07 +0200
>> From: f.braennstroem at gmx.de
>>
>>>> (define-key viper-vi-global-user-map (kbd "\\\\") 'viper-escape-to-emacs)
>>>>
>>>> Unfortunately, this does not work anymore, as using M(Esc) for the
>>>> next command cancels this escape and inserts the second of the
>>>> backslash into the buffer...
>>> I'm sorry, but I can't reproduce this. What M-x functions do you
>>> need Emacs state for? And why do you rebind `viper-escape-to-emacs'
>>> from \ to \\? Please provide more details. :)
>> I need it for functions like to include entries in the bibtex-file
>> and e.g. replacing strings in a file. I rebind it, as I have some
>> other keybindings to \t, \e , \] and \,
>
> Right. What are the precise keystrokes (M-x view-lossage)? What does
> your .emacs file look like (position of the line above)? What version
> of Emacs are you using? I can't help you before I observe the same
> behavior in my own editor.

Currently, I have this, which should affect vim/viper/vimpluse... in my 
.emacs:

(require 'redo)
(require 'rect-mark)
(setq viper-mode t)                     ; enable Viper at load time
(setq viper-ex-style-editing nil) ; can backspace past start of insert / 
line
(require 'viper)                  ; load Viper
(Continue reading)

Vegard Øye | 1 Apr 2010 19:44
Picon
Favicon

issue with viper-escape-to-emacs


Hi again, Fabian!

I /think/ I fixed the problem in the latest revision. Would you please
check it out and report if there's any difference? :)

Vegard 		 	   		  
_________________________________________________________________
Windows 7: Se direkte-TV fra den b?rbare PCen. Finn ut mer.
http://windows.microsoft.com/windows-7

Fabian Braennstroem | 2 Apr 2010 13:38
Picon
Picon

issue with viper-escape-to-emacs

Hi Vegard,

yes, you did... works nice! Thanks a lot!

Fabian
On 04/01/2010 07:44 PM, Vegard ?ye wrote:
> Hi again, Fabian!
>
> I /think/ I fixed the problem in the latest revision. Would you please
> check it out and report if there's any difference? :)
>
> Vegard 		 	   		
> _________________________________________________________________
> Windows 7: Se direkte-TV fra den b?rbare PCen. Finn ut mer.
> http://windows.microsoft.com/windows-7
> _______________________________________________
> implementations-list mailing list
> implementations-list at lists.ourproject.org
> https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list

Jason Spiro | 8 Apr 2010 21:26
Picon

upcoming release & changes

On Sat, Mar 6, 2010 at 11:23 AM, Vegard ?ye <vegard_oye at hotmail.com> wrote:
...
> Jason, what do you think? Is this one of those rare exception cases?

I don't know.

The ideal would be if gd gave imenu-like behavior in both Vim and
Vimpulse.  But for now, I'm not sure what would be best.

BTW, the reason for the slow replies is that I'm about a month behind
on my email.  :)

--

-- 
Jason Spiro: software/web developer, packager, trainer, IT consultant.
I support Linux, UNIX, Windows, and more. Contact me to discuss your needs.
+1 (416) 992-3445 / www.jspiro.com


Gmane