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

Re: always text/plain on ASCII text



In [emacs-w3m:13082]
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.