summaryrefslogtreecommitdiff
path: root/src/json.c
diff options
context:
space:
mode:
authorGregory Heytings <gregory@heytings.org>2022-07-22 10:03:13 +0000
committerGregory Heytings <gregory@heytings.org>2022-07-22 12:06:31 +0200
commit874e2525035d45efa6fa374a2ebec3740ecc1457 (patch)
tree059221aee889a88f558802014c5680017eaec1d0 /src/json.c
parent616da8fa8efa9023f56fa731072d877e2150afbc (diff)
downloademacs-874e2525035d45efa6fa374a2ebec3740ecc1457.tar.gz
emacs-874e2525035d45efa6fa374a2ebec3740ecc1457.tar.bz2
emacs-874e2525035d45efa6fa374a2ebec3740ecc1457.zip
Improve font locking in buffers with long lines (bug#56682).
* src/dispextern.h (struct it): New 'narrowed_zv' field. * src/xdisp.c (init_iterator): Set the field. (get_narrowed_zv): New function to set the field. (handle_fontified_prop): Use the field, together with 'narrowed_begv', to narrow the portion of the buffer that 'Vfontification_functions' will see. Also bind 'inhibit-widen'. (get_narrowed_len): New function, factored out of 'get_narrowed_begv'. (unwind_narrowed_zv): New function. * src/editfns.c (syms_of_editfns): New variable and symbol 'inhibit-widen'. (Fwiden): Do nothing when 'inhibit-widen' is non-nil.
Diffstat (limited to 'src/json.c')
0 files changed, 0 insertions, 0 deletions