[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

20. Editing Pascal Code

This mode is used for editing Pascal code. It is automatically invoked for buffers visiting any file ending with an extension of `.pas'.

The mode provides the following capabilities:

Other useful functions are:

pascal-mark-defun
Mark function.

pascal-insert-block
insert begin ... end;

pascal-star-comment
insert (* ... *)

pascal-comment-area
Put marked area in a comment, fixing nested comments.

pascal-uncomment-area
Uncomment an area commented with pascal-comment-area.

pascal-beg-of-defun
Move to beginning of current function.

pascal-end-of-defun
Move to end of current function.

pascal-goto-defun
Goto function prompted for in the minibuffer.

pascal-outline
Enter pascal-outline-mode (see also pascal-outline).

The variables controlling indentation/edit style are:

pascal-indent-level
Indentation of Pascal statements with respect to containing block.

pascal-case-indent
Indentation for case statements.

pascal-auto-newline
Non-nil means automatically newline after semicolons and the punctuation mark after an end.

pascal-tab-always-indent
Non-nil means TAB in Pascal mode should always reindent the current line, regardless of where in the line point is when the TAB command is used.

pascal-auto-endcomments
Non-nil means a comment { ... } is set after the ends which ends cases and functions. The name of the function or case will be set between the braces.

pascal-auto-lineup
List of contexts where auto lineup of :'s or ='s should be done.

See also the user variables pascal-type-keywords, pascal-start-keywords and pascal-separator-keywords.

Turning on Pascal mode calls the value of the variable pascal-mode-hook with no args, if that value is non-nil.

To configure this package, type:

 
  M-x customize-group RET pascal RET


[ << ] [ >> ]           [Top] [Contents] [Index] [ ? ]

This document was generated by XEmacs shared group account on December, 19 2009 using texi2html 1.65.