[Date Prev][Date Next][Thread Prev][][Date Index][Thread Index]

Re: Filters for stackexchange and youtube [SNIPPET]

In [emacs-w3m:12999]
On Fri, 01 Jun 2018 08:58:55 -0400, Boruch Baum wrote:
> I have filter functions for stackexchange and for youtube, and since
> those are very commonly used site, I thought to share it for
> consideration to be added to w3m-filter.el


(byte-compile (lambda () (replace-regexp "REGEXP" "TO-STRING")))
=> Warning: `replace-regexp' is for interactive use only;
   use `re-search-forward' and `replace-match' instead.

, I've temporarily replaced it with a function that uses
`perform-replace' in `w3m-filter-stackexchange' locally.  Anyway,
it's better to try ``make clean lisp'' before posting a patch.