Re: implementations-list Digest, Vol 36, Issue 14
Thanks Frank and take your time with the fix :). I have filed the bug here https://bitbucket.org/lyro/evil/issue/23/problems-with-tag-text-object for tracking. I have couple of other questions and I apologize in advance if they are documented somewhere already, 1. I am sure there would be a simple way to avoid certain key bindings from evil. I prefer to map out Alt-. (which on emacs is search-tag) and related mappings from evil to emacs default. Currently I am messing around with evil-map.el everytime I do a sync. I am sure there is a better way. 2. How do I make certain modes to not appear in vi modes. For example I use gtags-mode and when in Gtags-Select mode (where it shows the list of matching tags), it defaults to vi normal mode (which I'd be fine with except pressing enter in vi normal mode does not go to the tag in source file). Currently I have to do C-z to go to emacs-mode and then press enter etc. Thanks & Regards, Neeraj Sharma On Wed, Oct 19, 2011 at 3:00 AM, < [email protected]> wrote:
Send implementations-list mailing list submissions to [email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list
or, via email, send a message with subject or body 'help' to [email protected]
You can reach the person managing the list at [email protected]
When replying, please edit your Subject line so it is more specific than "Re: Contents of implementations-list digest..."
Today's Topics:
1. Re: possible bug (or my mistake ;-) (damien.thiriet77) 2. Incorrect behaviour of cat etc text objects in evil (Neeraj Sharma) 3. Re: Incorrect behaviour of cat etc text objects in evil (Frank Fischer) 4. ! in evil (Tordek)
----------------------------------------------------------------------
Message: 1 Date: Tue, 18 Oct 2011 20:47:10 +0200 From: "damien.thiriet77" <[email protected]> Subject: Re: possible bug (or my mistake ;-) To: Frank Fischer <[email protected]>, [email protected] Message-ID: <21464965.5071.1318963630271.JavaMail.www@wwinf8204> Content-Type: text/plain; charset=UTF-8
Thank you very much for your quick answer,
I made it with the (define-key evil-normal-state-map "c" nil) (define-key evil-motion-state-map "c" 'backward-char) It might be useful to put two lines about this remapping issue in the project pdf. I would also suggest a few lines of explanation about each state (insert or visual are quite obvious for me, so does emacs, but I am quite confused about the motion state and couldn?t explain why h,j,k,l are mapped there and not in insert mode). Evil will however greatly improve my work?
Damien Thiriet
On Fri, Oct 14, 2011 at 12:04:43PM +0200, F?lix Sipma wrote:
Hi!
I also use "b?po" and I confirm this bug. In order to get it work I had to remap each "normal key" to "nil" before mapping it to a "motion key".
Ex:
(define-key evil-normal-state-map "c" nil) (define-key evil-motion-state-map "c" 'backward-char)
This is exactly what you have to do (right now). The problem is that the key-bindings are in different keymaps. And it is important that some keys may be bound in different keymaps, e.g., "i" is bound to 'evil-insert in evil-normal-state-map and to 'evil-inner-text-objects-map in evil-operator-state-map.
Perhaps another function which binds some keysequence in one map and removes all active bindings in other maps may be convenient, something like
(evil-remap evil-motion-state-map "c" 'backward-char :remove evil-normal-state-map)
or the other way around
(evil-remap evil-motion-state-map "i" 'what-ever :keep evil-operator-state-map)
I have no idea what the best solution is.
Frank
Une messagerie gratuite, garantie ? vie et des services en plus, ?a vous tente ? Je cr?e ma bo?te mail www.laposte.net
------------------------------
Message: 2 Date: Tue, 18 Oct 2011 23:13:50 -0700 From: Neeraj Sharma <[email protected]> Subject: Incorrect behaviour of cat etc text objects in evil To: [email protected] Message-ID: <CAMcucSiDu2688J24nLuZ17yZSie+iRQO21=6+SH_JzL5W4yq4Q@mail.gmail.com
Content-Type: text/plain; charset="iso-8859-1"
I am not sure if this is still the right place to report issues. Please let me know if there is some sort of issue tracker etc. used by evil.
I found that on a simple html as below if cursor is placed in anchor tag and you do "cat" or "dat" or "cit" or "dit" it does not work correctly. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head>
</head> <body> <a href="http://www.google.com"> *[cursor]* Google</a> </body> </html>
For example when I do cat the end result is <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head>
</head>
</body> </html>
while I think the expected result is
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head>
</head> <body>
</body> </html>
Thanks & Regards, Neeraj Sharma
Neeraj Sharma <[email protected]> writes:
2. How do I make certain modes to not appear in vi modes. For example I use gtags-mode and when in Gtags-Select mode (where it shows the list of matching tags), it defaults to vi normal mode (which I'd be fine with except pressing enter in vi normal mode does not go to the tag in source file). Currently I have to do C-z to go to emacs-mode and then press enter etc.
One way might be to add the appropriate command to turn off evil mode to the mode hooks for those modes. I actually take the opposite approach. I do not have evil enabled globally. Instead, I add "(evil-local-mode 1)" to the mode hooks for those modes I want to use evil with (e.g. text, emacs-lisp, org, maxima, matlab, message, ...). This does lead to some confusion sometimes but generally works quite well. -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.90.1 + No Gnus v0.18
On Fri, Oct 21, 2011 at 10:12 AM, Eric S Fraga <[email protected]> wrote:
Neeraj Sharma <[email protected]> writes:
2. How do I make certain modes to not appear in vi modes. For example I use (...) Currently I have to do C-z to go to emacs-mode and then press enter etc.
One way might be to add the appropriate command to turn off evil mode to the mode hooks for those modes. (...)
Nah, just M-x customize-variable evil-emacs-state-modes Cheers, -- José A. Romero L. [email protected] "We who cut mere stones must always be envisioning cathedrals." (Quarry worker's creed)
José A. Romero L. <[email protected]> writes:
On Fri, Oct 21, 2011 at 10:12 AM, Eric S Fraga <[email protected]> wrote:
Neeraj Sharma <[email protected]> writes:
2. How do I make certain modes to not appear in vi modes. For example I use (...) Currently I have to do C-z to go to emacs-mode and then press enter etc.
One way might be to add the appropriate command to turn off evil mode to the mode hooks for those modes. (...)
Nah, just M-x customize-variable evil-emacs-state-modes
Cheers,
Ah, very nice. Thanks. Missed that the first time around... -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.90.1 + No Gnus v0.18
participants (3)
-
Eric S Fraga -
José A. Romero L. -
Neeraj Sharma