Mercurial > emacs
comparison src/buffer.c @ 10967:b53b84b6f46d
(reset_buffer_local_variables): Init invisibility.
(init_buffer_once): Set up buffer_local_flags for it.
(syms_of_buffer): New variable `buffer-invisibility-spec'.
| author | Richard M. Stallman <rms@gnu.org> |
|---|---|
| date | Sat, 11 Mar 1995 22:36:29 +0000 |
| parents | 3aea65d9eb68 |
| children | 8482ccc01ec7 |
comparison
equal
deleted
inserted
replaced
| 10966:e55f4cc120b6 | 10967:b53b84b6f46d |
|---|---|
| 1 /* Buffer manipulation primitives for GNU Emacs. | 1 /* Buffer manipulation primitives for GNU Emacs. |
| 2 Copyright (C) 1985, 1986, 1987, 1988, 1989, 1993, 1994 | 2 Copyright (C) 1985, 1986, 1987, 1988, 1989, 1993, 1994, 1995 |
| 3 Free Software Foundation, Inc. | 3 Free Software Foundation, Inc. |
| 4 | 4 |
| 5 This file is part of GNU Emacs. | 5 This file is part of GNU Emacs. |
| 6 | 6 |
| 7 GNU Emacs is free software; you can redistribute it and/or modify | 7 GNU Emacs is free software; you can redistribute it and/or modify |
| 449 b->downcase_table = Vascii_downcase_table; | 449 b->downcase_table = Vascii_downcase_table; |
| 450 b->upcase_table = Vascii_upcase_table; | 450 b->upcase_table = Vascii_upcase_table; |
| 451 b->case_canon_table = Vascii_canon_table; | 451 b->case_canon_table = Vascii_canon_table; |
| 452 b->case_eqv_table = Vascii_eqv_table; | 452 b->case_eqv_table = Vascii_eqv_table; |
| 453 b->buffer_file_type = Qnil; | 453 b->buffer_file_type = Qnil; |
| 454 b->invisibility_spec = Qt; | |
| 455 | |
| 454 #if 0 | 456 #if 0 |
| 455 b->sort_table = XSTRING (Vascii_sort_table); | 457 b->sort_table = XSTRING (Vascii_sort_table); |
| 456 b->folding_sort_table = XSTRING (Vascii_folding_sort_table); | 458 b->folding_sort_table = XSTRING (Vascii_folding_sort_table); |
| 457 #endif /* 0 */ | 459 #endif /* 0 */ |
| 458 | 460 |
| 2724 XSETINT (buffer_local_flags.mode_name, -1); | 2726 XSETINT (buffer_local_flags.mode_name, -1); |
| 2725 XSETINT (buffer_local_flags.undo_list, -1); | 2727 XSETINT (buffer_local_flags.undo_list, -1); |
| 2726 XSETINT (buffer_local_flags.mark_active, -1); | 2728 XSETINT (buffer_local_flags.mark_active, -1); |
| 2727 XSETINT (buffer_local_flags.point_before_scroll, -1); | 2729 XSETINT (buffer_local_flags.point_before_scroll, -1); |
| 2728 XSETINT (buffer_local_flags.file_truename, -1); | 2730 XSETINT (buffer_local_flags.file_truename, -1); |
| 2731 XSETINT (buffer_local_flags.invisibility_spec, -1); | |
| 2729 | 2732 |
| 2730 XSETFASTINT (buffer_local_flags.mode_line_format, 1); | 2733 XSETFASTINT (buffer_local_flags.mode_line_format, 1); |
| 2731 XSETFASTINT (buffer_local_flags.abbrev_mode, 2); | 2734 XSETFASTINT (buffer_local_flags.abbrev_mode, 2); |
| 2732 XSETFASTINT (buffer_local_flags.overwrite_mode, 4); | 2735 XSETFASTINT (buffer_local_flags.overwrite_mode, 4); |
| 2733 XSETFASTINT (buffer_local_flags.case_fold_search, 8); | 2736 XSETFASTINT (buffer_local_flags.case_fold_search, 8); |
| 3244 functions; it should only affect their performance."); | 3247 functions; it should only affect their performance."); |
| 3245 | 3248 |
| 3246 DEFVAR_PER_BUFFER ("point-before-scroll", ¤t_buffer->point_before_scroll, Qnil, | 3249 DEFVAR_PER_BUFFER ("point-before-scroll", ¤t_buffer->point_before_scroll, Qnil, |
| 3247 "Value of point before the last series of scroll operations, or nil."); | 3250 "Value of point before the last series of scroll operations, or nil."); |
| 3248 | 3251 |
| 3252 DEFVAR_PER_BUFFER ("buffer-invisibility-spec", | |
| 3253 ¤t_buffer->invisibility_spec, Qnil, | |
| 3254 "Invisibility spec of this buffer.\n\ | |
| 3255 The default is t, which means that text is invisible\n\ | |
| 3256 if it has a non-nil `invisible' property.\n\ | |
| 3257 If the value is a list, a text character is invisible if its `invisible'\n\ | |
| 3258 property is an element in that list.\n\ | |
| 3259 If an element is a cons cell of the for (PROP . ELLIPSIS),\n\ | |
| 3260 then characters with property value PROP is invisible,\n\ | |
| 3261 and they have an ellipsis as well if ELLIPSIS is non-nil."); | |
| 3262 | |
| 3249 DEFVAR_LISP ("transient-mark-mode", &Vtransient_mark_mode, | 3263 DEFVAR_LISP ("transient-mark-mode", &Vtransient_mark_mode, |
| 3250 "*Non-nil means deactivate the mark when the buffer contents change."); | 3264 "*Non-nil means deactivate the mark when the buffer contents change."); |
| 3251 Vtransient_mark_mode = Qnil; | 3265 Vtransient_mark_mode = Qnil; |
| 3252 | 3266 |
| 3253 DEFVAR_LISP ("inhibit-read-only", &Vinhibit_read_only, | 3267 DEFVAR_LISP ("inhibit-read-only", &Vinhibit_read_only, |
