Function: viper-set-parsing-style-toggling-macro
viper-set-parsing-style-toggling-macro is an interactive and
byte-compiled function defined in viper-cmd.el.gz.
Signature
(viper-set-parsing-style-toggling-macro UNSET)
Documentation
Set or unset %%% as a macro that toggles comment parsing for parentheses.
This is used in conjunction with the % command.
By default, sets the macro which will toggle whether comment fields should
be parsed for matching parentheses. With a prefix argument, unsets the
macro instead.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/emulation/viper-cmd.el.gz
(defun viper-set-parsing-style-toggling-macro (unset)
"Set or unset `%%%' as a macro that toggles comment parsing for parentheses.
This is used in conjunction with the `%' command.
By default, sets the macro which will toggle whether comment fields should
be parsed for matching parentheses. With a prefix argument, unsets the
macro instead."
(interactive "P")
(or noninteractive
(if (not unset)
(progn
;; Make %%% toggle parsing comments for matching parentheses
(viper-record-kbd-macro
"%%%" 'vi-state
[(meta x) v i p e r - t o g g l e - p a r s e - s e x p - i g n o r e - c o m m e n t s return]
't)
(if (called-interactively-p 'interactive)
(message
"%%%%%% now toggles whether comments should be parsed for matching parentheses")))
(viper-unrecord-kbd-macro "%%%" 'vi-state))))