diff options
| author | Mark Oteiza | 2016-11-07 21:31:47 -0500 |
|---|---|---|
| committer | Mark Oteiza | 2016-11-07 21:40:05 -0500 |
| commit | 73d47d22197175f08b2dd62e76d7138872e611d2 (patch) | |
| tree | 54c8713fd66bf8442d1713d3c85efa907aaef081 /src/buffer.c | |
| parent | 8c9cc9f5c02133fe08f3a1743d5ce0d2019c4d81 (diff) | |
| download | emacs-73d47d22197175f08b2dd62e76d7138872e611d2.tar.gz emacs-73d47d22197175f08b2dd62e76d7138872e611d2.zip | |
Remove obsolete default-FOO variables
* etc/NEWS: Indicate the removed variables.
* lisp/emacs-lisp/edebug.el (edebug-outside-mark): Fix comment.
* lisp/subr.el (default-mode-line-format, default-header-line-format):
(default-line-spacing, default-abbrev-mode, default-ctl-arrow):
(default-truncate-lines, default-left-margin, default-tab-width):
(default-case-fold-search, default-left-margin-width):
(default-right-margin-width, default-left-fringe-width):
(default-right-fringe-width, default-fringes-outside-margins):
(default-scroll-bar-width, default-vertical-scroll-bar):
(default-indicate-empty-lines, default-indicate-buffer-boundaries):
(default-fringe-indicator-alist, default-fringe-cursor-alist):
(default-scroll-up-aggressively, default-scroll-down-aggressively):
(default-fill-column, default-cursor-type):
(default-cursor-in-non-selected-windows):
(default-buffer-file-coding-system, default-major-mode):
(default-enable-multibyte-characters): Remove obsolete declarations.
* src/buffer.c (default-mode-line-format, default-header-line-format):
(default-line-spacing, default-abbrev-mode, default-ctl-arrow):
(default-truncate-lines, default-left-margin, default-tab-width):
(default-case-fold-search, default-left-margin-width):
(default-right-margin-width, default-left-fringe-width):
(default-right-fringe-width, default-fringes-outside-margins):
(default-scroll-bar-width, default-vertical-scroll-bar):
(default-indicate-empty-lines, default-indicate-buffer-boundaries):
(default-fringe-indicator-alist, default-fringe-cursor-alist):
(default-scroll-up-aggressively, default-scroll-down-aggressively):
(default-fill-column, default-cursor-type):
(default-cursor-in-non-selected-windows):
(default-buffer-file-coding-system, default-major-mode):
(default-enable-multibyte-characters): Remove.
* src/fileio.c (choose_write_coding_system): Fix comment.
* src/lisp.h (DEFVAR_BUFFER_DEFAULTS): Remove.
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 141 |
1 files changed, 0 insertions, 141 deletions
diff --git a/src/buffer.c b/src/buffer.c index 3d205bb71ba..aa556b75bc6 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -5413,144 +5413,6 @@ syms_of_buffer (void) | |||
| 5413 | Fput (Qprotected_field, Qerror_message, | 5413 | Fput (Qprotected_field, Qerror_message, |
| 5414 | build_pure_c_string ("Attempt to modify a protected field")); | 5414 | build_pure_c_string ("Attempt to modify a protected field")); |
| 5415 | 5415 | ||
| 5416 | DEFVAR_BUFFER_DEFAULTS ("default-mode-line-format", | ||
| 5417 | mode_line_format, | ||
| 5418 | doc: /* Default value of `mode-line-format' for buffers that don't override it. | ||
| 5419 | This is the same as (default-value \\='mode-line-format). */); | ||
| 5420 | |||
| 5421 | DEFVAR_BUFFER_DEFAULTS ("default-header-line-format", | ||
| 5422 | header_line_format, | ||
| 5423 | doc: /* Default value of `header-line-format' for buffers that don't override it. | ||
| 5424 | This is the same as (default-value \\='header-line-format). */); | ||
| 5425 | |||
| 5426 | DEFVAR_BUFFER_DEFAULTS ("default-cursor-type", cursor_type, | ||
| 5427 | doc: /* Default value of `cursor-type' for buffers that don't override it. | ||
| 5428 | This is the same as (default-value \\='cursor-type). */); | ||
| 5429 | |||
| 5430 | DEFVAR_BUFFER_DEFAULTS ("default-line-spacing", | ||
| 5431 | extra_line_spacing, | ||
| 5432 | doc: /* Default value of `line-spacing' for buffers that don't override it. | ||
| 5433 | This is the same as (default-value \\='line-spacing). */); | ||
| 5434 | |||
| 5435 | DEFVAR_BUFFER_DEFAULTS ("default-cursor-in-non-selected-windows", | ||
| 5436 | cursor_in_non_selected_windows, | ||
| 5437 | doc: /* Default value of `cursor-in-non-selected-windows'. | ||
| 5438 | This is the same as (default-value \\='cursor-in-non-selected-windows). */); | ||
| 5439 | |||
| 5440 | DEFVAR_BUFFER_DEFAULTS ("default-abbrev-mode", | ||
| 5441 | abbrev_mode, | ||
| 5442 | doc: /* Default value of `abbrev-mode' for buffers that do not override it. | ||
| 5443 | This is the same as (default-value \\='abbrev-mode). */); | ||
| 5444 | |||
| 5445 | DEFVAR_BUFFER_DEFAULTS ("default-ctl-arrow", | ||
| 5446 | ctl_arrow, | ||
| 5447 | doc: /* Default value of `ctl-arrow' for buffers that do not override it. | ||
| 5448 | This is the same as (default-value \\='ctl-arrow). */); | ||
| 5449 | |||
| 5450 | DEFVAR_BUFFER_DEFAULTS ("default-enable-multibyte-characters", | ||
| 5451 | enable_multibyte_characters, | ||
| 5452 | doc: /* Default value of `enable-multibyte-characters' for buffers not overriding it. | ||
| 5453 | This is the same as (default-value \\='enable-multibyte-characters). */); | ||
| 5454 | |||
| 5455 | DEFVAR_BUFFER_DEFAULTS ("default-buffer-file-coding-system", | ||
| 5456 | buffer_file_coding_system, | ||
| 5457 | doc: /* Default value of `buffer-file-coding-system' for buffers not overriding it. | ||
| 5458 | This is the same as (default-value \\='buffer-file-coding-system). */); | ||
| 5459 | |||
| 5460 | DEFVAR_BUFFER_DEFAULTS ("default-truncate-lines", | ||
| 5461 | truncate_lines, | ||
| 5462 | doc: /* Default value of `truncate-lines' for buffers that do not override it. | ||
| 5463 | This is the same as (default-value \\='truncate-lines). */); | ||
| 5464 | |||
| 5465 | DEFVAR_BUFFER_DEFAULTS ("default-fill-column", | ||
| 5466 | fill_column, | ||
| 5467 | doc: /* Default value of `fill-column' for buffers that do not override it. | ||
| 5468 | This is the same as (default-value \\='fill-column). */); | ||
| 5469 | |||
| 5470 | DEFVAR_BUFFER_DEFAULTS ("default-left-margin", | ||
| 5471 | left_margin, | ||
| 5472 | doc: /* Default value of `left-margin' for buffers that do not override it. | ||
| 5473 | This is the same as (default-value \\='left-margin). */); | ||
| 5474 | |||
| 5475 | DEFVAR_BUFFER_DEFAULTS ("default-tab-width", | ||
| 5476 | tab_width, | ||
| 5477 | doc: /* Default value of `tab-width' for buffers that do not override it. | ||
| 5478 | NOTE: This controls the display width of a TAB character, and not | ||
| 5479 | the size of an indentation step. | ||
| 5480 | This is the same as (default-value \\='tab-width). */); | ||
| 5481 | |||
| 5482 | DEFVAR_BUFFER_DEFAULTS ("default-case-fold-search", | ||
| 5483 | case_fold_search, | ||
| 5484 | doc: /* Default value of `case-fold-search' for buffers that don't override it. | ||
| 5485 | This is the same as (default-value \\='case-fold-search). */); | ||
| 5486 | |||
| 5487 | DEFVAR_BUFFER_DEFAULTS ("default-left-margin-width", | ||
| 5488 | left_margin_cols, | ||
| 5489 | doc: /* Default value of `left-margin-width' for buffers that don't override it. | ||
| 5490 | This is the same as (default-value \\='left-margin-width). */); | ||
| 5491 | |||
| 5492 | DEFVAR_BUFFER_DEFAULTS ("default-right-margin-width", | ||
| 5493 | right_margin_cols, | ||
| 5494 | doc: /* Default value of `right-margin-width' for buffers that don't override it. | ||
| 5495 | This is the same as (default-value \\='right-margin-width). */); | ||
| 5496 | |||
| 5497 | DEFVAR_BUFFER_DEFAULTS ("default-left-fringe-width", | ||
| 5498 | left_fringe_width, | ||
| 5499 | doc: /* Default value of `left-fringe-width' for buffers that don't override it. | ||
| 5500 | This is the same as (default-value \\='left-fringe-width). */); | ||
| 5501 | |||
| 5502 | DEFVAR_BUFFER_DEFAULTS ("default-right-fringe-width", | ||
| 5503 | right_fringe_width, | ||
| 5504 | doc: /* Default value of `right-fringe-width' for buffers that don't override it. | ||
| 5505 | This is the same as (default-value \\='right-fringe-width). */); | ||
| 5506 | |||
| 5507 | DEFVAR_BUFFER_DEFAULTS ("default-fringes-outside-margins", | ||
| 5508 | fringes_outside_margins, | ||
| 5509 | doc: /* Default value of `fringes-outside-margins' for buffers that don't override it. | ||
| 5510 | This is the same as (default-value \\='fringes-outside-margins). */); | ||
| 5511 | |||
| 5512 | DEFVAR_BUFFER_DEFAULTS ("default-scroll-bar-width", | ||
| 5513 | scroll_bar_width, | ||
| 5514 | doc: /* Default value of `scroll-bar-width' for buffers that don't override it. | ||
| 5515 | This is the same as (default-value \\='scroll-bar-width). */); | ||
| 5516 | |||
| 5517 | DEFVAR_BUFFER_DEFAULTS ("default-vertical-scroll-bar", | ||
| 5518 | vertical_scroll_bar_type, | ||
| 5519 | doc: /* Default value of `vertical-scroll-bar' for buffers that don't override it. | ||
| 5520 | This is the same as (default-value \\='vertical-scroll-bar). */); | ||
| 5521 | |||
| 5522 | DEFVAR_BUFFER_DEFAULTS ("default-indicate-empty-lines", | ||
| 5523 | indicate_empty_lines, | ||
| 5524 | doc: /* Default value of `indicate-empty-lines' for buffers that don't override it. | ||
| 5525 | This is the same as (default-value \\='indicate-empty-lines). */); | ||
| 5526 | |||
| 5527 | DEFVAR_BUFFER_DEFAULTS ("default-indicate-buffer-boundaries", | ||
| 5528 | indicate_buffer_boundaries, | ||
| 5529 | doc: /* Default value of `indicate-buffer-boundaries' for buffers that don't override it. | ||
| 5530 | This is the same as (default-value \\='indicate-buffer-boundaries). */); | ||
| 5531 | |||
| 5532 | DEFVAR_BUFFER_DEFAULTS ("default-fringe-indicator-alist", | ||
| 5533 | fringe_indicator_alist, | ||
| 5534 | doc: /* Default value of `fringe-indicator-alist' for buffers that don't override it. | ||
| 5535 | This is the same as (default-value \\='fringe-indicator-alist). */); | ||
| 5536 | |||
| 5537 | DEFVAR_BUFFER_DEFAULTS ("default-fringe-cursor-alist", | ||
| 5538 | fringe_cursor_alist, | ||
| 5539 | doc: /* Default value of `fringe-cursor-alist' for buffers that don't override it. | ||
| 5540 | This is the same as (default-value \\='fringe-cursor-alist). */); | ||
| 5541 | |||
| 5542 | DEFVAR_BUFFER_DEFAULTS ("default-scroll-up-aggressively", | ||
| 5543 | scroll_up_aggressively, | ||
| 5544 | doc: /* Default value of `scroll-up-aggressively'. | ||
| 5545 | This value applies in buffers that don't have their own local values. | ||
| 5546 | This is the same as (default-value \\='scroll-up-aggressively). */); | ||
| 5547 | |||
| 5548 | DEFVAR_BUFFER_DEFAULTS ("default-scroll-down-aggressively", | ||
| 5549 | scroll_down_aggressively, | ||
| 5550 | doc: /* Default value of `scroll-down-aggressively'. | ||
| 5551 | This value applies in buffers that don't have their own local values. | ||
| 5552 | This is the same as (default-value \\='scroll-down-aggressively). */); | ||
| 5553 | |||
| 5554 | DEFVAR_PER_BUFFER ("header-line-format", | 5416 | DEFVAR_PER_BUFFER ("header-line-format", |
| 5555 | &BVAR (current_buffer, header_line_format), | 5417 | &BVAR (current_buffer, header_line_format), |
| 5556 | Qnil, | 5418 | Qnil, |
| @@ -5621,9 +5483,6 @@ A string is printed verbatim in the mode line except for %-constructs: | |||
| 5621 | %% -- print %. %- -- print infinitely many dashes. | 5483 | %% -- print %. %- -- print infinitely many dashes. |
| 5622 | Decimal digits after the % specify field width to which to pad. */); | 5484 | Decimal digits after the % specify field width to which to pad. */); |
| 5623 | 5485 | ||
| 5624 | DEFVAR_BUFFER_DEFAULTS ("default-major-mode", major_mode, | ||
| 5625 | doc: /* Value of `major-mode' for new buffers. */); | ||
| 5626 | |||
| 5627 | DEFVAR_PER_BUFFER ("major-mode", &BVAR (current_buffer, major_mode), | 5486 | DEFVAR_PER_BUFFER ("major-mode", &BVAR (current_buffer, major_mode), |
| 5628 | Qsymbolp, | 5487 | Qsymbolp, |
| 5629 | doc: /* Symbol for current buffer's major mode. | 5488 | doc: /* Symbol for current buffer's major mode. |