Hooks are variables which contain Lisp functions (or lists of functions)
which are called at various times. Calc defines a number of hooks
that help you to customize it in various ways. Calc uses the Lisp
function run-hooks to invoke the hooks shown below. Several
other customization-related variables are also described here.
calc-mode-map and similar variables have been set up.
calc-refresh operation, set up the mode line display, then
evaluate any deferred calc-define properties that have not
been evaluated yet.
calc-mode-hook, this will normally happen only once
per Emacs session.
calc-quit, generally because the user
presses q or M-# c while in Calc. The Calc buffer will
be the current buffer. The hook is called as the very first
step, before the Calc window is destroyed.
split-window, set-window-buffer,
and select-window to create the Calc window.
calc-trail-buffer will contain the buffer
which the window should use. Unlike calc-window-hook,
this hook must not switch into the new window.
calc-edit (and the other "edit"
commands) when the temporary editing buffer is being created.
The buffer will have been selected and set up to be in
calc-edit-mode, but will not yet have been filled with
text. (In fact it may still have leftover text from a previous
calc-edit command.)
calc-save-modes command,
after Calc's own mode features have been inserted into the
`.emacs' buffer and just before the "End of mode settings"
message is inserted.
calc-reset) has
reset all modes. The Calc buffer will be the current buffer.
nil by default.
calc-mode-hook. If the
Calc extensions package (`calc-ext.el') has not yet been
loaded, many of these keys will be bound to calc-missing-key,
which is a command that loads the extensions package and
"retypes" the key. If your calc-mode-hook rebinds
one of these keys, it will probably be overridden when the
extensions are loaded.
calcDigit-nondigit which generally calls
exit-minibuffer and "retypes" the key.
minibuffer-local-map.
calc-store and calc-recall. This is
mostly a copy of minibuffer-local-completion-map.
calc-edit and other
temporary editing commands. It binds RET, LFD,
and C-c C-c to calc-edit-finish.
calc-save-modes.
Each entry is a list of two items, the variable (as a Lisp symbol)
and its default value. When modes are being saved, each variable
is compared with its default value (using equal) and any
non-default variables are written out.
calc and calc-quit commands; マルチタスク計算 参照 .
Since calc-mode-hook is called after this list has been
used the first time, your hook should add a variable to the
list and also call make-local-variable itself.
Go to the first, previous, next, last section, table of contents.
利用度数