mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-10 05:30:45 -08:00
Package unloading. Index next-line, previous-line, forward-line.
This commit is contained in:
parent
04b6b34208
commit
b68c6256af
1 changed files with 13 additions and 1 deletions
|
|
@ -210,7 +210,16 @@ off, and make it autoload (@pxref{Autoload}). Design the package so
|
|||
that simply loading it has no visible effect---that should not enable
|
||||
the feature.@footnote{Consider that the package may be loaded
|
||||
arbitrarily by Custom for instance.} Users will request the feature by
|
||||
invoking the command.
|
||||
invoking the command, which will often be constructed as a minor mode.
|
||||
|
||||
@cindex unloading packages
|
||||
If your package contains functions which do modify oridinary Emacs
|
||||
behavior, for instance by adding functions to hooks, define a function
|
||||
@code{@var{feature}-unload-hook} where @var{feature} is the name of
|
||||
the feature the package provides. This function should undo any such
|
||||
changes, e.g.@: by turning off a minor mode, when
|
||||
@findex unload-feature
|
||||
@code{unload-feature} is used.
|
||||
|
||||
@item
|
||||
It is a bad idea to define aliases for the Emacs primitives. Use the
|
||||
|
|
@ -248,6 +257,9 @@ will be 14 characters or less, which is short enough to fit on all kinds
|
|||
of Unix systems.
|
||||
|
||||
@item
|
||||
@findex next-line
|
||||
@findex previous-line
|
||||
@findex forward-line
|
||||
Don't use @code{next-line} or @code{previous-line} in programs; nearly
|
||||
always, @code{forward-line} is more convenient as well as more
|
||||
predictable and robust. @xref{Text Lines}.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue