Subject: bug#29972: 25.3; dired-hide-details-mode does not persist in desktop session

From: Noam Postavsky <[email-masked]>
Date: Fri, 5 Jan 2018 13:29:49 -0500

On Fri, Jan 5, 2018 at 1:20 PM, Eli Zaretskii <[email-masked]> wrote:
>> From: Jimmy Yuen Ho Wong <[email-masked]>
>> Date: Fri, 5 Jan 2018 17:42:49 +0000
>> Cc: [email-masked]
>>
>> The fundamental reason appears to be desktop.el needs an efficient and reliable way to know what buffer
>> local variables are minor modes, since `minor-mode-list` is just a global list of loaded minor-modes,
>> `minor-mode-alist` is as close as you get.
>
> So maybe desktop.el should have defcustom with the list of minor
> modes, whose default value is computed from minor-mode-alist, but
> which users could customize to add any additional minor modes?

Would it help if define-minor-mode recorded what the
variable/expression is (e.g., by putting a property on the function
symbol)?
This could also be useful for define-globalized-minor-mode (see
Bug#29081 - for which the current suggestion is to do without that,
but if such a thing has two uses, it will likely be helpful in even
more situations).