Function: electric-pascal-tab
electric-pascal-tab is an interactive and byte-compiled function
defined in pascal.el.gz.
Signature
(electric-pascal-tab)
Documentation
Function called when TAB is pressed in Pascal mode.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/pascal.el.gz
(defun electric-pascal-tab ()
"Function called when TAB is pressed in Pascal mode."
(interactive)
;; Do nothing if within a string or in a CPP directive.
(if (or (pascal-within-string)
(and (not (bolp))
(save-excursion (beginning-of-line) (eq (following-char) ?#))))
(insert "\t")
;; If pascal-tab-always-indent, indent the beginning of the line.
(if pascal-tab-always-indent
(save-excursion
(beginning-of-line)
(pascal-indent-line))
(if (save-excursion
(skip-chars-backward " \t")
(bolp))
(pascal-indent-line)
(insert "\t")))
(pascal-indent-command)))