What does "SAVED and set. (Mismatch)" (and specifically "mismatch") mean in emacs settings?

I was just trying to tweak some export options org-mode

in emacs and that's why I did M-x customize-group org-export-html. This is caused by the Customize buffer, and among other things, I decided to change org-export-html-postamble-format

to something larger that I liked.

Perhaps relevant: During this process, I used multiple C-oto open new lines, so the value would look nice to me on the screen and I could tell what I was doing. When this is done, I pressed the button Stateand selected Save for Future Sessions

. Since (I assume) from newlines C-o, he said:

CHANGED outside Customize; operating on it here may be unreliable. (mismatch)

So, I then chose Reset to Saved

which got rid of it, but replaced it with this:

SAVED and set. (mismatch)

OK, so ... everything is fine ... except ... In both of these lines, what does it mean (mismatch)

? What is the discrepancy between what is being saved in my init emacs file and what I am looking at? What's the mismatch between ... Well, looking back, I even see some post settings that say:

STANDARD. (mismatch)

Standard and nonconformity? (There are others who are just talking STANDARD.

, by the way.)

I want to understand what "inconsistency" means. Any hints?

Thank!


Addenda

I just dug into a bit cus-edit.el

and found this in the comments:

;; 8. mismatch

;;    The widget value is not valid member of the :type specified for the
;;    option.

      

It helps a little ... does it just mean the type specifier is org-mode

wrong? Looking at this (in org-html.el

) it indicates :type 'string

, but it actually looks like a plist (even its default looks like '(("en" "[data here]"))

.) Is this just bad cleanliness from the outside org-mode

? But then even another variable here says "inconsistency" but logically logically has a meaning that makes sense. Meaning t

(and I checked in emacs init and it's just a character t

, no quotes or whatever) and the type specifier for that is:

:type '(choice (const :tag "No postamble" nil) (const :tag "Auto preamble" 'auto) (const :tag "Default formatting string" t) (string :tag "Custom formatting string") (function :tag "Function (must return a string)")))

... which seems to match this third line. Not? Is it a '(choice ...

valid value for :type

?

+3


source to share


2 answers


It looks like two errors:

  • trivial in org-html.el, which declares :type 'string

    for that variable, even though the value of the variable is not a string.

  • an error in the setting that says "changed the external setting" in this inappropriate case, even though the mismatch did indeed come directly from the setting and not outside of it.



Please report it M-x report-emacs-bug

.

+1


source


Because (I'm guessing) of the Co lines, he said: EDIT out of setting; it can be unreliable here. (Inconsistency)



I have never looked into the details, but I would assume that "CHANGED outside customize" almost certainly means that somewhere in your configuration, a variable org-export-html-postamble-format

is being set directly in code. The error text does not, of course, suggest that this could be caused if the variable was only set through the configuration interface.

0


source







All Articles