Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
cfbd1a6f
Commit
cfbd1a6f
authored
Jun 16, 2006
by
Richard M. Stallman
Browse files
(Coding Conventions): Better explain conventions for definition constructs.
parent
55111a56
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
lispref/tips.texi
lispref/tips.texi
+8
-5
No files found.
lispref/tips.texi
View file @
cfbd1a6f
...
...
@@ -204,11 +204,14 @@ say which functions are replaced, and how the behavior of the
replacements differs from that of the originals.
@item
Avoid using macros that define functions and variables with names that
are constructed. It is best for maintenance when the name of the
function or variable being defined is given explicitly in the source
code, as the second element of the list---as it is when you use
@code{defun}, @code{defalias}, @code{defvar} and @code{defcustom}.
Constructs that define a function or variable should be macros,
not functions, and their names should start with @samp{def}.
@item
Macros that define a functions or variables should take the name to be
defined as the first argument. That will help various tools find the
definition automatically. Avoid constructing the names in the macro
itself, since that would confuse these tools.
@item
Please keep the names of your Emacs Lisp source files to 13 characters
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment