evil conflicts in c-mode

Jim Green student.northwestern at gmail.com
Thu Dec 8 00:43:20 CET 2011


On 7 December 2011 09:34, Frank Fischer
<frank.fischer at mathematik.tu-chemnitz.de> wrote:
> On Wed, Dec 07, 2011 at 02:42:07AM +0000, Jim Green wrote:
>> I got the following error(I think expected) when make clean emacs
>
> Well, no. No such error should occur.
>
>> , but
>> enter works
>> perfectly as tested above for a test c++ file. I found that in my
>> cc-mode.rc.el I copied from somewhere else ret is redefined...
>>
>> sorry about wasting your time and Thanks for such a great debugging trick!
>>
>> Jim.
>>
>> my emacs version is GNU Emacs 24.0.92.1
>>
>>
>> Selector: t
>> Passed: 127
>> Failed: 2 (2 unexpected)
>> Total:  129/129
>>
>> Started at:   2011-12-06 21:35:41-0500
>> Finished.
>> Finished at:  2011-12-06 21:35:43-0500
>>
>> ........................................F.....................................................................F..................
>>
>> F evil-test-extract-count
>>     Test `evil-extract-count'
>>     Info: Exact with count
>>     (error "No command bound to \346")
>
> I have an idea for this bug. Could you please test the patch appended
> to this mail and check if this error still occurs?

I applied patch

 ~/.emacs.d/evil
 % git diff
diff --git a/evil-tests.el b/evil-tests.el
index e89918a..32b8ee6 100644
--- a/evil-tests.el
+++ b/evil-tests.el
@@ -4234,8 +4234,8 @@ if no previous selection")
     (ert-info ("Exact with count")
       (should (equal (evil-extract-count "420x")
                      (list 420 'evil-delete-char "x" nil)))
-      (should (equal (evil-extract-count "420\M-f")
-                     (list 420 'forward-word "\M-f" nil)))
+      (should (equal (evil-extract-count (vconcat "420" (kbd "M-f")))
+                     (list 420 'forward-word (vconcat (kbd "M-f")) nil)))
       (should (equal (evil-extract-count "2301g0")
                      (list 2301 'evil-beginning-of-visual-line "g0" nil))))

but still got the errors:

Selector: t
Passed: 127
Failed: 2 (2 unexpected)
Total:  129/129

Started at:   2011-12-07 18:41:11-0500
Finished.
Finished at:  2011-12-07 18:41:14-0500

........................................F.....................................................................F..................

F evil-test-extract-count
    Test `evil-extract-count'
    Info: Exact with count
    (error "No command bound to [134217830]")

F evil-test-rot13-repeat
    Test repeating of `evil-rot13'
    (ert-test-failed
     ((should
       (string=
	(buffer-substring
	 (max ... ...)
	 (point))
	before))
      :form
      (string= " buffer" ";; Guvf")
      :value nil))


>
>>
>> F evil-test-rot13-repeat
>>     Test repeating of `evil-rot13'
>>     (ert-test-failed
>>      ((should
>>        (string=
>>       (buffer-substring
>>        (max ... ...)
>>        (point))
>>       before))
>>       :form
>>       (string= " buffer" ";; Guvf")
>>       :value nil))
>
> I have no real idea what's happening here (it works on my box). If I
> look at the test code I suppose that the cursor after executing
>
> g ? M-Right
>
> is placed at the wrong position (the test assumes that point does not
> move when executing this command), but I have to check if your Emacs
> version behaves differently.

my emacs is:
GNU Emacs 24.0.92.1 (x86_64-pc-linux-gnu, GTK+ Version 2.20.1)
 of 2011-12-06 on cw-bkp0, modified by Debia

Thankfor checking the code, it doesn't affect daily use.

Jim



More information about the implementations-list mailing list