girzel / ebdb

An EIEIO port of BBDB, Emacs' contact-management package
67 stars 11 forks source link

I can't let ebdb-search-transform-functions work #39

Closed tumashu closed 7 years ago

tumashu commented 7 years ago
(defun eh-ebdb-search-chinese (string)
  (if (functionp 'pyim-isearch-build-search-regexp)
      (pyim-isearch-build-search-regexp string)
    string))

(setq ebdb-search-transform-functions
      '(eh-ebdb-search-chinese))
girzel commented 7 years ago

Would you see if that fixes it?

tumashu commented 7 years ago

I can search chinese when I call ebdb command, but ebdb-complete can not work again, ebdb-complete use the following sexp:

(ebdb (ebdb-search-style) "fs")
girzel commented 7 years ago

Okay, I think this should fix it once and for all!

girzel commented 7 years ago

Also, I've been looking into character folding in searches, and am adding that as an option in searching. Check out the variable char-fold-table. It's possible we could just add Chinese character folding to this table, though I don't know how feasible that would be.

tumashu commented 7 years ago

make search feature powful is a good job.