Function: cperl-toggle-set-debug-unwind
cperl-toggle-set-debug-unwind is an interactive and byte-compiled
function defined in cperl-mode.el.gz.
Signature
(cperl-toggle-set-debug-unwind ARG &optional BACKTRACE)
Documentation
Toggle (or, with numeric argument, set) debugging state of syntaxification.
Nonpositive numeric argument ARG disables debugging messages. The message summarizes which regions it was decided to rescan for syntactic constructs. BACKTRACE is added to ARG if provided.
The message looks like this:
Syxify req=123..138 actual=101..146 done-to: 112=>146 statepos: 73=>117
Numbers are character positions in the buffer. REQ provides the range to
rescan requested by font-lock. ACTUAL is the range actually resyntaxified;
for correct operation it should start and end outside any special syntactic
construct. DONE-TO and STATEPOS indicate changes to internal caches maintained
by CPerl.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/cperl-mode.el.gz
(defun cperl-toggle-set-debug-unwind (arg &optional backtrace)
"Toggle (or, with numeric argument, set) debugging state of syntaxification.
Nonpositive numeric argument ARG disables debugging messages. The
message summarizes which regions it was decided to rescan for syntactic
constructs. BACKTRACE is added to ARG if provided.
The message looks like this:
Syxify req=123..138 actual=101..146 done-to: 112=>146 statepos: 73=>117
Numbers are character positions in the buffer. REQ provides the range to
rescan requested by `font-lock'. ACTUAL is the range actually resyntaxified;
for correct operation it should start and end outside any special syntactic
construct. DONE-TO and STATEPOS indicate changes to internal caches maintained
by CPerl."
(interactive "P")
(or arg
(setq arg (if (eq cperl-syntaxify-by-font-lock
(if backtrace 'backtrace 'message))
0 1)))
(setq arg (if (> arg 0) (if backtrace 'backtrace 'message) t))
(setq cperl-syntaxify-by-font-lock arg)
(message "Debugging messages of syntax unwind %sabled."
(if (eq arg t) "dis" "en")))