all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to setopt mm-inline-media-tests?
@ 2024-07-11 16:26 Tomas Volf
  2024-07-12  0:22 ` Michael Heerdegen via Users list for the GNU Emacs text editor
  0 siblings, 1 reply; 2+ messages in thread
From: Tomas Volf @ 2024-07-11 16:26 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

I am trying to modify mm-inline-media-tests, but not matter what I do I cannot
get rid of following warning:

    [..] does not match type (repeat (list (regexp :tag MIME type) (function :tag Display function) (function :tag Display test)))

I even get this warning when I just set the variable to its default value
(executed under emacs -Q):

    (require 'mm-decode)
    (setopt mm-inline-media-tests mm-inline-media-tests)

Could someone please point me into the right direction what is the expected way
to modify the value without getting the warning?

Thank you,
Tomas Volf

--
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to setopt mm-inline-media-tests?
  2024-07-11 16:26 How to setopt mm-inline-media-tests? Tomas Volf
@ 2024-07-12  0:22 ` Michael Heerdegen via Users list for the GNU Emacs text editor
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Heerdegen via Users list for the GNU Emacs text editor @ 2024-07-12  0:22 UTC (permalink / raw)
  To: help-gnu-emacs

Tomas Volf <~@wolfsden.cz> writes:

>     [..] does not match type (repeat (list (regexp :tag MIME type)
> (function :tag Display function) (function :tag Display test)))
>
> I even get this warning when I just set the variable to its default value
> (executed under emacs -Q):
>
>     (require 'mm-decode)
>     (setopt mm-inline-media-tests mm-inline-media-tests)
>
> Could someone please point me into the right direction what is the
> expected way
> to modify the value without getting the warning?

Make all of the referred functions defined:

(require 'mm-decode)
(require 'mm-view)   ; <- !
(setopt mm-inline-media-tests mm-inline-media-tests)


Michael.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-07-12  0:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-11 16:26 How to setopt mm-inline-media-tests? Tomas Volf
2024-07-12  0:22 ` Michael Heerdegen via Users list for the GNU Emacs text editor

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.