[emacs-w3m:13081] Re: always text/plain on ASCII text

Boruch Baum <[email protected]>
Newsgroups gmane.emacs.w3m
Message-ID <[email protected]>
On 2019-01-24 04:46, Boruch Baum wrote:
>
> On 2019-01-24 08:01, Emanuel Berg wrote:
> > When I visit a text file with Emacs-w3m,
> > e.g. [1], it asks me
(snip)
> There's a variable `w3m-content-type-alist'
(snip)

Katsumi-san,

I made an attempt to create a defcustom for the variable. The following
seemed good but fails to match. Any ideas?

(defcustom my-test nil
  "doc string"
  :group 'w3m
  :type
    '(repeat
       (group :indent 12
         (string :tag "Mimetype")
         (string :tag "Regexp of suffix")
         (choice :tag "Method" :indent 16
           (function :tag "Lisp function")
           (group    :tag "External command and parameters\n"  :indent 16
             (string :format "Command: %v")
             (repeat :tag "Command parameters"
               (string :format "Command parameter: %v\n"))))
         (choice :tag "Override"
           (function :tag "Lisp function" :format "Lisp function: %v\n")
           (string   :tag "Content type" :format "Content type: %v\n\n")))))

-- 
hkp://keys.gnupg.net
CA45 09B5 5351 7C11 A9D1  7286 0036 9E45 1595 8BC0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.