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

Re: always text/plain on ASCII text



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