Mercurial > emacs
comparison src/buffer.c @ 10505:4f7f9b9ff513
(syms_of_buffer) [DOS_NT]: Add missing ';'.
| author | Richard M. Stallman <rms@gnu.org> |
|---|---|
| date | Fri, 20 Jan 1995 23:40:45 +0000 |
| parents | 855923ce1e59 |
| children | 53f34c870201 |
comparison
equal
deleted
inserted
replaced
| 10504:8a1bd0598b49 | 10505:4f7f9b9ff513 |
|---|---|
| 583 } | 583 } |
| 584 | 584 |
| 585 result = Qnil; | 585 result = Qnil; |
| 586 | 586 |
| 587 { | 587 { |
| 588 /* Reference each variable in the alist in our current buffer. | |
| 589 If inquiring about the current buffer, this gets the current values, | |
| 590 so store them into the alist so the alist is up to date. | |
| 591 If inquiring about some other buffer, this swaps out any values | |
| 592 for that buffer, making the alist up to date automatically. */ | |
| 593 register Lisp_Object tail; | 588 register Lisp_Object tail; |
| 594 for (tail = buf->local_var_alist; CONSP (tail); tail = XCONS (tail)->cdr) | 589 for (tail = buf->local_var_alist; CONSP (tail); tail = XCONS (tail)->cdr) |
| 595 { | 590 { |
| 596 Lisp_Object val, elt; | 591 Lisp_Object val, elt; |
| 597 | 592 |
| 598 elt = XCONS (tail)->car; | 593 elt = XCONS (tail)->car; |
| 599 | 594 |
| 600 if (buf == current_buffer) | 595 /* Reference each variable in the alist in buf. |
| 601 val = find_symbol_value (XCONS (elt)->car); | 596 If inquiring about the current buffer, this gets the current values, |
| 602 else | 597 so store them into the alist so the alist is up to date. |
| 598 If inquiring about some other buffer, this swaps out any values | |
| 599 for that buffer, making the alist up to date automatically. */ | |
| 600 val = find_symbol_value (XCONS (elt)->car); | |
| 601 /* Use the current buffer value only if buf is the current buffer. */ | |
| 602 if (buf != current_buffer) | |
| 603 val = XCONS (elt)->cdr; | 603 val = XCONS (elt)->cdr; |
| 604 | 604 |
| 605 /* If symbol is unbound, put just the symbol in the list. */ | 605 /* If symbol is unbound, put just the symbol in the list. */ |
| 606 if (EQ (val, Qunbound)) | 606 if (EQ (val, Qunbound)) |
| 607 result = Fcons (XCONS (elt)->car, result); | 607 result = Fcons (XCONS (elt)->car, result); |
| 2983 DEFVAR_PER_BUFFER ("buffer-file-type", ¤t_buffer->buffer_file_type, | 2983 DEFVAR_PER_BUFFER ("buffer-file-type", ¤t_buffer->buffer_file_type, |
| 2984 Qnil, | 2984 Qnil, |
| 2985 "Non-nil if the visited file is a binary file.\n\ | 2985 "Non-nil if the visited file is a binary file.\n\ |
| 2986 This variable is meaningful on MS-DOG and Windows NT.\n\ | 2986 This variable is meaningful on MS-DOG and Windows NT.\n\ |
| 2987 On those systems, it is automatically local in every buffer.\n\ | 2987 On those systems, it is automatically local in every buffer.\n\ |
| 2988 On other systems, this variable is normally always nil.") | 2988 On other systems, this variable is normally always nil."); |
| 2989 #endif | 2989 #endif |
| 2990 | 2990 |
| 2991 DEFVAR_PER_BUFFER ("default-directory", ¤t_buffer->directory, | 2991 DEFVAR_PER_BUFFER ("default-directory", ¤t_buffer->directory, |
| 2992 make_number (Lisp_String), | 2992 make_number (Lisp_String), |
| 2993 "Name of default directory of current buffer. Should end with slash.\n\ | 2993 "Name of default directory of current buffer. Should end with slash.\n\ |
