[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: always text/plain on ASCII text
On Fri, 25 Jan 2019 10:39:13 +0900, Katsumi Yamaoka wrote:
> Anyway, there are three reasons your custom type mismatching.
Oops, there are four reasons, sorry.
4. No `file' and `url' choice
cf. w3m-content-type-alist's doc string.
> (setq my-test
> (assoc-delete-all "\\`application/x-[bg]zip2?\\'"
> (copy-sequence w3m-content-type-alist)
> (lambda (a b) (string-match b a))))
assoc-delete-all is a function only in Emacs 27. What it does
there is to delete items of which the first element matches
"\\`application/x-[bg]zip2?\\'" from w3m-content-type-alist.