Function: dcl-save-nondefault-options
dcl-save-nondefault-options is an interactive and byte-compiled
function defined in dcl-mode.el.gz.
Signature
(dcl-save-nondefault-options)
Documentation
Save changed DCL mode options for this buffer.
Saves or updates all DCL mode related options that don't have their
default values in a Local Variables: section at the end of the
current buffer.
No entries are removed from the Local Variables: section. This means
that if a variable is given a non-default value in the section and
later is manually reset to its default value, the variable's entry will
still be present in the Local Variables: section with its old value.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/dcl-mode.el.gz
;;;-------------------------------------------------------------------------
(defun dcl-save-nondefault-options ()
"Save changed DCL mode options for this buffer.
Saves or updates all DCL mode related options that don't have their
default values in a `Local Variables:' section at the end of the
current buffer.
No entries are removed from the `Local Variables:' section. This means
that if a variable is given a non-default value in the section and
later is manually reset to its default value, the variable's entry will
still be present in the `Local Variables:' section with its old value."
(interactive "*")
(mapcar (lambda (option-assoc)
(let* ((option (car option-assoc))
(option-name (symbol-name option)))
(if (and (string-equal "dcl-"
(substring option-name 0 4))
(not (equal (default-value option)
(symbol-value option))))
(dcl-save-local-variable option "$! "))))
dcl-option-alist))