Mercurial > emacs
comparison lispref/tips.texi @ 8669:62d1138d10de
entered into RCS
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 30 Aug 1994 19:32:53 +0000 |
parents | c5927c75b2b5 |
children | 0bec3b6bac2f |
comparison
equal
deleted
inserted
replaced
8668:011660f7aae9 | 8669:62d1138d10de |
---|---|
159 @end itemize | 159 @end itemize |
160 | 160 |
161 If you just want to move point, or replace a certain string, without any | 161 If you just want to move point, or replace a certain string, without any |
162 of the other features intended for interactive users, you can replace | 162 of the other features intended for interactive users, you can replace |
163 these functions with one or two lines of simple Lisp code. | 163 these functions with one or two lines of simple Lisp code. |
164 | |
165 @item | |
166 Use lists rather than vectors, except when there is a particular reason | |
167 to use a vector. Lisp has more facilities for manipulating lists than | |
168 for vectors, and working with lists is usually more convenient. | |
169 | |
170 Vectors are advantageous for tables that are substantial in size and are | |
171 accessed in random order (not searched front to back), provided there is | |
172 no need to insert or delete elements (only lists allow that). | |
164 | 173 |
165 @item | 174 @item |
166 The recommended way to print a message in the echo area is with | 175 The recommended way to print a message in the echo area is with |
167 the @code{message} function, not @code{princ}. @xref{The Echo Area}. | 176 the @code{message} function, not @code{princ}. @xref{The Echo Area}. |
168 | 177 |