Re: grep

Kazuhiro Ito <[email protected]> Sat, 01 Sep 2018 09:25:35 +0900
Newsgroups gmane.mail.wanderlust.general
Message-ID <86wos62hds.wl--xmue__23986.5172458396$1535761518$gmane$org@d1.dion.ne.jp>
> So what is the menu command "Tools"/"Search Files (grep)" supposed to
> do, as it does not grep the messages?

As Erik described, it is provided by Emacs, not Wanderlust.
Wanderlust does not suppose that it is used with Wanderlust.

Actually grep searching is not useful especially in searching
non-ascii characters.  Because such characters are encoded in various
coding system and content transfer encoding (such as quoted printable
and base64).  So, we recommend you to use 'V' (wl-summary-virtual) or
'?' (wl-summary-pick) in Summary buffer.


If you really need to grep in your localdir directory, try below and
run "Tools"/"Search Files (grep)" from Summary buffer.

(defun wl-summary-cd (&optional f)
  (let* ((folder (or f wl-summary-buffer-elmo-folder))
	 (type (elmo-folder-type-internal folder))
	 (target
	  (cond
	   ((eq type 'localdir)
	    (elmo-localdir-folder-directory-internal folder))
	   ((eq type 'pipe)
	    (wl-summary-cd (elmo-pipe-folder-dst-internal folder)))
	   ((eq type 'filter)
	    (wl-summary-cd (elmo-filter-folder-target-internal folder))))))
    (when target
      (cd target))))
(eval-after-load "wl-summary"
  '(add-hook 'wl-summary-prepared-hook 'wl-summary-cd))

-- 
Kazuhiro Ito