Function: conf-quote-normal
conf-quote-normal is an interactive and byte-compiled function defined
in conf-mode.el.gz.
Signature
(conf-quote-normal ARG)
Documentation
Set the syntax of ' and " to punctuation.
With prefix ARG, only do it for \\=' if 1, or only for " if 2. This only affects the current buffer. Some conf files use quotes to delimit strings, while others allow quotes as simple parts of the assigned value. In those files font locking will be wrong, and you can correct it with this command. (Some files even do both, i.e. quotes delimit strings, except when they are unbalanced, but hey...)
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/conf-mode.el.gz
(defun conf-quote-normal (arg)
"Set the syntax of \\=' and \" to punctuation.
With prefix ARG, only do it for \\=' if 1, or only for \" if 2.
This only affects the current buffer. Some conf files use quotes
to delimit strings, while others allow quotes as simple parts of
the assigned value. In those files font locking will be wrong,
and you can correct it with this command. (Some files even do
both, i.e. quotes delimit strings, except when they are
unbalanced, but hey...)"
(interactive "P")
(let ((table (copy-syntax-table (syntax-table))))
(when (or (not arg) (= (prefix-numeric-value arg) 1))
(modify-syntax-entry ?\' "." table))
(when (or (not arg) (= (prefix-numeric-value arg) 2))
(modify-syntax-entry ?\" "." table))
(set-syntax-table table)
(font-lock-flush)))