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.
This commit is contained in:
parent
f069ea4f84
commit
3f3d98ee58
2 changed files with 4 additions and 2 deletions
|
@ -699,7 +699,7 @@ okay. See `mode-line-format'.")
|
|||
buffer-file-format buffer-auto-save-file-format
|
||||
buffer-display-count buffer-display-time
|
||||
enable-multibyte-characters
|
||||
buffer-file-coding-system))
|
||||
buffer-file-coding-system truncate-lines))
|
||||
|
||||
;; We have base64, md5 and sha1 functions built in now.
|
||||
(provide 'base64)
|
||||
|
|
|
@ -5134,7 +5134,9 @@ init_buffer_once (void)
|
|||
XSETFASTINT (BVAR (&buffer_local_flags, selective_display), idx); ++idx;
|
||||
XSETFASTINT (BVAR (&buffer_local_flags, selective_display_ellipses), idx); ++idx;
|
||||
XSETFASTINT (BVAR (&buffer_local_flags, tab_width), idx); ++idx;
|
||||
XSETFASTINT (BVAR (&buffer_local_flags, truncate_lines), idx); ++idx;
|
||||
XSETFASTINT (BVAR (&buffer_local_flags, truncate_lines), idx);
|
||||
/* Make this one a permanent local. */
|
||||
buffer_permanent_local_flags[idx++] = 1;
|
||||
XSETFASTINT (BVAR (&buffer_local_flags, word_wrap), idx); ++idx;
|
||||
XSETFASTINT (BVAR (&buffer_local_flags, ctl_arrow), idx); ++idx;
|
||||
XSETFASTINT (BVAR (&buffer_local_flags, fill_column), idx); ++idx;
|
||||
|
|
Loading…
Add table
Reference in a new issue