这是我以前的帖子(is it possible to preprocess the input string before isearch-forward in Emacs)的继续。我正在尝试使用变量isearch-search-fun-function来实现jpkotta的答案。我只是建议isearch-search-fun-default包含我自己的功能(isearch-str-forward
让我把从Emacs Lisp: How to use ad-get-arg and ad-get-args? (defun my-add (a b &optional c)
(+ a b)
(unless c
(setq c 4)))
(defadvice my-add (after my-log-on (a b &optional c) activate)