diff options
| author | Glenn Morris | 2017-11-30 12:40:46 -0500 |
|---|---|---|
| committer | Glenn Morris | 2017-11-30 12:40:46 -0500 |
| commit | 3f3d98ee5851840228786390ee7dbf851d144eb8 (patch) | |
| tree | 603ee531e73c69e2281a4163062be52fd8ca903f /src/buffer.c | |
| parent | f069ea4f84a94bfbbd444073729f81fdd27c9445 (diff) | |
| download | emacs-3f3d98ee5851840228786390ee7dbf851d144eb8.tar.gz emacs-3f3d98ee5851840228786390ee7dbf851d144eb8.zip | |
Make truncate-lines permanently local (bug#15396)
Width of lines relative to display is rarely a function of major mode.
* src/buffer.c (init_buffer_once) <truncate-lines>:
Flag as permanently local.
* lisp/bindings.el (truncate-lines): Add permanent-local property.
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c index c6f9eb28e25..12a467daae4 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -5134,7 +5134,9 @@ init_buffer_once (void) | |||
| 5134 | XSETFASTINT (BVAR (&buffer_local_flags, selective_display), idx); ++idx; | 5134 | XSETFASTINT (BVAR (&buffer_local_flags, selective_display), idx); ++idx; |
| 5135 | XSETFASTINT (BVAR (&buffer_local_flags, selective_display_ellipses), idx); ++idx; | 5135 | XSETFASTINT (BVAR (&buffer_local_flags, selective_display_ellipses), idx); ++idx; |
| 5136 | XSETFASTINT (BVAR (&buffer_local_flags, tab_width), idx); ++idx; | 5136 | XSETFASTINT (BVAR (&buffer_local_flags, tab_width), idx); ++idx; |
| 5137 | XSETFASTINT (BVAR (&buffer_local_flags, truncate_lines), idx); ++idx; | 5137 | XSETFASTINT (BVAR (&buffer_local_flags, truncate_lines), idx); |
| 5138 | /* Make this one a permanent local. */ | ||
| 5139 | buffer_permanent_local_flags[idx++] = 1; | ||
| 5138 | XSETFASTINT (BVAR (&buffer_local_flags, word_wrap), idx); ++idx; | 5140 | XSETFASTINT (BVAR (&buffer_local_flags, word_wrap), idx); ++idx; |
| 5139 | XSETFASTINT (BVAR (&buffer_local_flags, ctl_arrow), idx); ++idx; | 5141 | XSETFASTINT (BVAR (&buffer_local_flags, ctl_arrow), idx); ++idx; |
| 5140 | XSETFASTINT (BVAR (&buffer_local_flags, fill_column), idx); ++idx; | 5142 | XSETFASTINT (BVAR (&buffer_local_flags, fill_column), idx); ++idx; |