Michael Heerdegen writes: > Thierry Volpiatto writes: > >> Or even better would be to eval directly the getter and tell user >> "mode is %s" on/off instead of proposing to eval. > > AFAIU, this is not about telling whether the mode is on at the moment, > but to tell the user - or programmer - how to check that. > >> IIUC the only expessions we may have are (default-value >> 'global-foo-mode) for global mmodes or foo-mode for normal mmodes. > > No, there are more complicated ones, like these: > > (frame-parameter nil 'auto-raise) - auto-raise-mode > (frame-parameter nil 'auto-lower) - auto-lower-mode > (show-paren--enabled-p) - show-paren-local-mode > (get-scroll-bar-mode) - scroll-bar-mode > (and buffer-auto-save-file-name > (>= buffer-saved-size 0)) - auto-save-mode > (eq (terminal-parameter nil 'normal-erase-is-backspace) 1) > - normal-erase-is-backspace-mode > (eq standard-display-table iso-ascii-display-table) > - iso-ascii-mode > > AFAIU that piece of docstring we discuss is especially helpful in these > special cases. Ok, good to know, thanks. > [ did we lose emacs-dev intentially btw? ] No, don't know what's happened, now CCing to all. > > Regards, > > Michael. -- Thierry