Mercurial > emacs
comparison src/buffer.c @ 107741:0e10810ea0f9
Merge from trunk
author | Jan D. <jan.h.d@swipnet.se> |
---|---|
date | Thu, 01 Apr 2010 08:50:44 +0200 |
parents | 772da445ced7 |
children | 912a8c0c9a8a |
comparison
equal
deleted
inserted
replaced
107740:cc6fa055586c | 107741:0e10810ea0f9 |
---|---|
2277 swapfield (overlays_after, struct Lisp_Overlay *); | 2277 swapfield (overlays_after, struct Lisp_Overlay *); |
2278 swapfield (overlay_center, EMACS_INT); | 2278 swapfield (overlay_center, EMACS_INT); |
2279 swapfield (undo_list, Lisp_Object); | 2279 swapfield (undo_list, Lisp_Object); |
2280 swapfield (mark, Lisp_Object); | 2280 swapfield (mark, Lisp_Object); |
2281 swapfield (enable_multibyte_characters, Lisp_Object); | 2281 swapfield (enable_multibyte_characters, Lisp_Object); |
2282 swapfield (bidi_display_reordering, Lisp_Object); | |
2283 swapfield (bidi_paragraph_direction, Lisp_Object); | |
2282 /* FIXME: Not sure what we should do with these *_marker fields. | 2284 /* FIXME: Not sure what we should do with these *_marker fields. |
2283 Hopefully they're just nil anyway. */ | 2285 Hopefully they're just nil anyway. */ |
2284 swapfield (pt_marker, Lisp_Object); | 2286 swapfield (pt_marker, Lisp_Object); |
2285 swapfield (begv_marker, Lisp_Object); | 2287 swapfield (begv_marker, Lisp_Object); |
2286 swapfield (zv_marker, Lisp_Object); | 2288 swapfield (zv_marker, Lisp_Object); |
5204 | 5206 |
5205 XSETFASTINT (buffer_defaults.tab_width, 8); | 5207 XSETFASTINT (buffer_defaults.tab_width, 8); |
5206 buffer_defaults.truncate_lines = Qnil; | 5208 buffer_defaults.truncate_lines = Qnil; |
5207 buffer_defaults.word_wrap = Qnil; | 5209 buffer_defaults.word_wrap = Qnil; |
5208 buffer_defaults.ctl_arrow = Qt; | 5210 buffer_defaults.ctl_arrow = Qt; |
5211 buffer_defaults.bidi_display_reordering = Qnil; | |
5209 buffer_defaults.direction_reversed = Qnil; | 5212 buffer_defaults.direction_reversed = Qnil; |
5213 buffer_defaults.bidi_paragraph_direction = Qnil; | |
5210 buffer_defaults.cursor_type = Qt; | 5214 buffer_defaults.cursor_type = Qt; |
5211 buffer_defaults.extra_line_spacing = Qnil; | 5215 buffer_defaults.extra_line_spacing = Qnil; |
5212 buffer_defaults.cursor_in_non_selected_windows = Qt; | 5216 buffer_defaults.cursor_in_non_selected_windows = Qt; |
5213 | 5217 |
5214 #ifdef DOS_NT | 5218 #ifdef DOS_NT |
5289 buffer_permanent_local_flags[idx++] = 1; | 5293 buffer_permanent_local_flags[idx++] = 1; |
5290 #endif | 5294 #endif |
5291 XSETFASTINT (buffer_local_flags.syntax_table, idx); ++idx; | 5295 XSETFASTINT (buffer_local_flags.syntax_table, idx); ++idx; |
5292 XSETFASTINT (buffer_local_flags.cache_long_line_scans, idx); ++idx; | 5296 XSETFASTINT (buffer_local_flags.cache_long_line_scans, idx); ++idx; |
5293 XSETFASTINT (buffer_local_flags.category_table, idx); ++idx; | 5297 XSETFASTINT (buffer_local_flags.category_table, idx); ++idx; |
5298 XSETFASTINT (buffer_local_flags.bidi_display_reordering, idx); ++idx; | |
5294 XSETFASTINT (buffer_local_flags.direction_reversed, idx); ++idx; | 5299 XSETFASTINT (buffer_local_flags.direction_reversed, idx); ++idx; |
5300 XSETFASTINT (buffer_local_flags.bidi_paragraph_direction, idx); ++idx; | |
5295 XSETFASTINT (buffer_local_flags.buffer_file_coding_system, idx); | 5301 XSETFASTINT (buffer_local_flags.buffer_file_coding_system, idx); |
5296 /* Make this one a permanent local. */ | 5302 /* Make this one a permanent local. */ |
5297 buffer_permanent_local_flags[idx++] = 1; | 5303 buffer_permanent_local_flags[idx++] = 1; |
5298 XSETFASTINT (buffer_local_flags.left_margin_cols, idx); ++idx; | 5304 XSETFASTINT (buffer_local_flags.left_margin_cols, idx); ++idx; |
5299 XSETFASTINT (buffer_local_flags.right_margin_cols, idx); ++idx; | 5305 XSETFASTINT (buffer_local_flags.right_margin_cols, idx); ++idx; |
5545 | 5551 |
5546 DEFVAR_LISP_NOPRO ("default-ctl-arrow", | 5552 DEFVAR_LISP_NOPRO ("default-ctl-arrow", |
5547 &buffer_defaults.ctl_arrow, | 5553 &buffer_defaults.ctl_arrow, |
5548 doc: /* Default value of `ctl-arrow' for buffers that do not override it. | 5554 doc: /* Default value of `ctl-arrow' for buffers that do not override it. |
5549 This is the same as (default-value 'ctl-arrow). */); | 5555 This is the same as (default-value 'ctl-arrow). */); |
5550 | |
5551 DEFVAR_LISP_NOPRO ("default-direction-reversed", | |
5552 &buffer_defaults.direction_reversed, | |
5553 doc: /* Default value of `direction-reversed' for buffers that do not override it. | |
5554 This is the same as (default-value 'direction-reversed). */); | |
5555 | 5556 |
5556 DEFVAR_LISP_NOPRO ("default-enable-multibyte-characters", | 5557 DEFVAR_LISP_NOPRO ("default-enable-multibyte-characters", |
5557 &buffer_defaults.enable_multibyte_characters, | 5558 &buffer_defaults.enable_multibyte_characters, |
5558 doc: /* *Default value of `enable-multibyte-characters' for buffers not overriding it. | 5559 doc: /* *Default value of `enable-multibyte-characters' for buffers not overriding it. |
5559 This is the same as (default-value 'enable-multibyte-characters). */); | 5560 This is the same as (default-value 'enable-multibyte-characters). */); |
5807 | 5808 |
5808 The variable `coding-system-for-write', if non-nil, overrides this variable. | 5809 The variable `coding-system-for-write', if non-nil, overrides this variable. |
5809 | 5810 |
5810 This variable is never applied to a way of decoding a file while reading it. */); | 5811 This variable is never applied to a way of decoding a file while reading it. */); |
5811 | 5812 |
5812 DEFVAR_PER_BUFFER ("direction-reversed", ¤t_buffer->direction_reversed, | 5813 DEFVAR_PER_BUFFER ("direction-reversed", |
5813 Qnil, | 5814 ¤t_buffer->direction_reversed, Qnil, |
5814 doc: /* *Non-nil means lines in the buffer are displayed right to left. */); | 5815 doc: /* Non-nil means set beginning of lines at the right edge of the window. |
5815 | 5816 See also the variable `bidi-display-reordering'. */); |
5816 DEFVAR_PER_BUFFER ("truncate-lines", ¤t_buffer->truncate_lines, Qnil, | 5817 |
5818 DEFVAR_PER_BUFFER ("bidi-display-reordering", | |
5819 ¤t_buffer->bidi_display_reordering, Qnil, | |
5820 doc: /* Non-nil means reorder bidirectional text for display in the visual order. | |
5821 See also the variable `direction-reversed'. */); | |
5822 | |
5823 DEFVAR_PER_BUFFER ("bidi-paragraph-direction", | |
5824 ¤t_buffer->bidi_paragraph_direction, Qnil, | |
5825 doc: /* *If non-nil, forces directionality of text paragraphs in the buffer. | |
5826 | |
5827 If this is nil (the default), the direction of each paragraph is | |
5828 determined by the first strong directional character of its text. | |
5829 The values of `right-to-left' and `left-to-right' override that. | |
5830 Any other value is treated as nil. | |
5831 | |
5832 This variable has no effect unless the buffer's value of | |
5833 \`bidi-display-reordering' is non-nil. */); | |
5834 | |
5835 DEFVAR_PER_BUFFER ("truncate-lines", ¤t_buffer->truncate_lines, Qnil, | |
5817 doc: /* *Non-nil means do not display continuation lines. | 5836 doc: /* *Non-nil means do not display continuation lines. |
5818 Instead, give each line of text just one screen line. | 5837 Instead, give each line of text just one screen line. |
5819 | 5838 |
5820 Note that this is overridden by the variable | 5839 Note that this is overridden by the variable |
5821 `truncate-partial-width-windows' if that variable is non-nil | 5840 `truncate-partial-width-windows' if that variable is non-nil |