p(9)
[Home]
[Commands]
[Variables]
[Macro-Dev]
[Glossary]
SYNOPSIS
FILES
hkpascal.emf - Pascal hook definition
pascal.eaf - Pascal abbreviation file
pascal.etf - Pascal template file.
EXTENSIONS
DESCRIPTION
The pascal file type template provides simple hilighting of Pascal files, the template provides minimal hilighting.
Abbreviations
The installation comes with a default abbreviation file for Pascal file editing which can be used by writing short abbreviations like "if", "el" (else) or "be" (begin/end) - and then pressing the key-binding for the
expand-abbrev-handle(3) command. The list of abbreviations can be used interactively in the GUI version of MicroEmacs using the
abbrev-list(3) command.
Folding and Information Hiding
Generic folding is enabled within the Pascal file. The folds occur about functions, procedures, record or classes as long as these declarations are on one line and and at a line starting with the End; keyword.
collapse-all(3) (un)folds all regions in the file,
collapse-current(3) (un)folds the current region.
Navigation via Item List
The Pascal mode offers beside folding as well support for displaying an outline of the functions, procedures, records and classes or objects for easy navigation using the
item-list(3) command.
Working Environment
compile(3) may be invoked to rebuild the source, the user is prompted to save any files.
Short Cuts
The short cut keys used within the buffer are:-
C-c C-c - Comment out the current line.
C-c C-d - Uncomment the current line.
C-c C-e - Comment to the end of the line with stars (*).
A-C-i - Restyle the current region.
esc q - Format a comment.
esc o - Format a comment.
f2 - (Un)fold the current region.
C-f2 - (Un)fold all regions.
f6 - List items.
esc f6 - Close item list,
Executing, Formatting and Linting Pascal Code
The Pascal file hook supports the
file-exec(3), the
file-format(3) and the
file-lint(3) macros. The tools and compilers which are currently the Free Pascal provided ones, so "fpc" as compiler, used as well as linter and "ptop" the formatter which comes with the Free Pascal installation.
BUGS
SEE ALSO
abbrev-list(3),
collapse-all(3),
collapse-current(3),
compile(3),
expand-abbrev-handle(3),
file-exec(3),
file-format(3),
file-lint(3),
item-list(3),
restyle-buffer(3),
restyle-region(3),
time(2m).
Supported File Types
(c) Copyright JASSPA 2025
Last Modified: 2025/08/28
Generated On: 2025/09/29