aboutsummaryrefslogtreecommitdiffstats
path: root/src/undo.c
diff options
context:
space:
mode:
authorJim Blandy1992-01-13 21:48:08 +0000
committerJim Blandy1992-01-13 21:48:08 +0000
commit265a9e559da4ac72d154ecd638c51801b3e97847 (patch)
tree633e4dc50761c2cd5201a7874e23eee9e51aecea /src/undo.c
parentd427b66a664c0e1ffc818dfa5b87b45b4857d2ae (diff)
downloademacs-265a9e559da4ac72d154ecd638c51801b3e97847.tar.gz
emacs-265a9e559da4ac72d154ecd638c51801b3e97847.zip
*** empty log message ***
Diffstat (limited to 'src/undo.c')
-rw-r--r--src/undo.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/undo.c b/src/undo.c
index 2993dc77d5e..852771764f1 100644
--- a/src/undo.c
+++ b/src/undo.c
@@ -127,7 +127,7 @@ but another undo command will undo to the previous boundary.")
127 if (EQ (current_buffer->undo_list, Qt)) 127 if (EQ (current_buffer->undo_list, Qt))
128 return Qnil; 128 return Qnil;
129 tem = Fcar (current_buffer->undo_list); 129 tem = Fcar (current_buffer->undo_list);
130 if (!NULL (tem)) 130 if (!NILP (tem))
131 current_buffer->undo_list = Fcons (Qnil, current_buffer->undo_list); 131 current_buffer->undo_list = Fcons (Qnil, current_buffer->undo_list);
132 return Qnil; 132 return Qnil;
133} 133}
@@ -197,7 +197,7 @@ truncate_undo_list (list, minsize, maxsize)
197 either before or after it. The lower threshold, MINSIZE, 197 either before or after it. The lower threshold, MINSIZE,
198 tells us to truncate after it. If its size pushes past 198 tells us to truncate after it. If its size pushes past
199 the higher threshold MAXSIZE as well, we truncate before it. */ 199 the higher threshold MAXSIZE as well, we truncate before it. */
200 if (NULL (elt)) 200 if (NILP (elt))
201 { 201 {
202 if (size_so_far > maxsize) 202 if (size_so_far > maxsize)
203 break; 203 break;
@@ -222,11 +222,11 @@ truncate_undo_list (list, minsize, maxsize)
222 } 222 }
223 223
224 /* If we scanned the whole list, it is short enough; don't change it. */ 224 /* If we scanned the whole list, it is short enough; don't change it. */
225 if (NULL (next)) 225 if (NILP (next))
226 return list; 226 return list;
227 227
228 /* Truncate at the boundary where we decided to truncate. */ 228 /* Truncate at the boundary where we decided to truncate. */
229 if (!NULL (last_boundary)) 229 if (!NILP (last_boundary))
230 { 230 {
231 XCONS (last_boundary)->cdr = Qnil; 231 XCONS (last_boundary)->cdr = Qnil;
232 return list; 232 return list;
@@ -249,7 +249,7 @@ Return what remains of the list.")
249 /* If the head of the list is a boundary, it is the boundary 249 /* If the head of the list is a boundary, it is the boundary
250 preceding this command. Get rid of it and don't count it. */ 250 preceding this command. Get rid of it and don't count it. */
251 tem = Fcar (list); 251 tem = Fcar (list);
252 if (NULL (tem)) 252 if (NILP (tem))
253 list = Fcdr (list); 253 list = Fcdr (list);
254#endif 254#endif
255 255
@@ -260,7 +260,7 @@ Return what remains of the list.")
260 Lisp_Object next, car, cdr; 260 Lisp_Object next, car, cdr;
261 next = Fcar (list); 261 next = Fcar (list);
262 list = Fcdr (list); 262 list = Fcdr (list);
263 if (NULL (next)) 263 if (NILP (next))
264 break; 264 break;
265 car = Fcar (next); 265 car = Fcar (next);
266 cdr = Fcdr (next); 266 cdr = Fcdr (next);