Package: migemo
Version: 0.40-10
Severity: normal
Tags: patch

Hi, muto-san.

I'd like to bug report for migemo.el
migemo-backward function sometimes makes [(wrong-type-argument 
integer-or-marker-p t)] error on Emacs 23. 
 (I don't know other emacs implementations have same issue.)

You can see 'http://www.namazu.org/pipermail/migemo/2006-September/000023.html'
which is written by Japanese. That is reason why current version which is
deibanized has a problem.

CVS version must be fixed. or I made a patch from above article.

Please consider pulling new source or applying the patch. 


-- System Information:
Debian Release: 6.0.2
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.38-bpo.2-686 (SMP w/4 CPU cores)
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages migemo depends on:
ii  apel                          10.8-1     portable library for emacsen
ii  emacs [emacsen]               23.2+1-7   The GNU Emacs editor (metapackage)
ii  emacs23 [emacsen]             23.2+1-7   The GNU Emacs editor (with GTK+ us
ii  libbsearch-ruby               1.5-6      a binary search library for Ruby
ii  libromkan-ruby                0.4-6      a Romaji <-> Kana conversion libra
ii  ruby                          4.5        An interpreter of object-oriented 

migemo recommends no packages.

migemo suggests no packages.

-- no debconf information
--- migemo.el.orig      2011-08-12 23:43:59.000000000 +0900
+++ migemo.el   2011-08-12 23:44:47.000000000 +0900
@@ -386,7 +386,12 @@
       (search-backward-regexp migemo-search-pattern bound noerror count)
     (or (and (not (eq this-command 'isearch-repeat-backward))
             (not (get-char-property (point) 'invisible (current-buffer)))
-            (looking-at migemo-search-pattern))
+            (or (and (looking-at migemo-search-pattern)
+                     (match-beginning 0))
+                (and (not (eq (point) (point-min)))
+                     (progn (forward-char -1)
+                            (and (looking-at migemo-search-pattern)
+                                 (match-beginning 0))))))
        (search-backward-regexp migemo-search-pattern bound noerror count))))
 
 ;; experimental

Reply via email to