emacs-devel
[Top][All Lists]
Advanced

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

Re: master daea9b3 1/2: Read mailcaps again only when necessary


From: Lars Ingebrigtsen
Subject: Re: master daea9b3 1/2: Read mailcaps again only when necessary
Date: Mon, 01 Nov 2021 20:04:33 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Stefan Monnier <monnier@iro.umontreal.ca> writes:

> That's pretty close to my suggestion to pass the hash-table as a second
> arg, yes.

Sort of something like:

(setq mailcap-data
      (file-refresh-if-changed
       (or mailcap-data (make-instance 'file-data-cache
                                       :file "/etc/mailcap"
                                       :refresher #'mailcap-parse-file))))

and then the data would be in

(slot-value mailcap-data 'data)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



reply via email to

[Prev in Thread] Current Thread [Next in Thread]