I put 'portable' in quotes because, as we all know, Emacs works with plain text and this plain text is innately portable. However, the format of this plain text is not.
My particular use-case is with Org documents. I have various customizations set up for Org, but I would like to use the defaults for one particular document as to use a 'neutral third-party' format. Normally I would use my defaults, but this document is being shared among peer developers – each likely to have their own customizations.
How can I get a list of variables that have been customized in the buffer and insert either (with a
C-u prefix) their default values or their local values?