[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scratch/remove-locked-narrowing f85241268a1 1/4: Deactivate locked narro
From: |
Gregory Heytings |
Subject: |
scratch/remove-locked-narrowing f85241268a1 1/4: Deactivate locked narrowings |
Date: |
Fri, 10 Feb 2023 17:54:14 -0500 (EST) |
branch: scratch/remove-locked-narrowing
commit f85241268a1f35d1fabb8c8111da390b214f60cf
Author: Gregory Heytings <gregory@heytings.org>
Commit: Gregory Heytings <gregory@heytings.org>
Deactivate locked narrowings
* src/xdisp.c (handle_fontified_prop):
* src/keyboard.c (safe_run_hooks_maybe_narrowed): Deactivate
narrowings around fontification-functions, pre-command-hook and
post-command-hook.
---
src/keyboard.c | 2 +-
src/xdisp.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/keyboard.c b/src/keyboard.c
index 6f0f075e54e..2b18df994f9 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -1909,7 +1909,7 @@ safe_run_hooks_maybe_narrowed (Lisp_Object hook, struct
window *w)
specbind (Qinhibit_quit, Qt);
- if (current_buffer->long_line_optimizations_p
+ if (0
&& long_line_locked_narrowing_region_size > 0)
{
ptrdiff_t begv = get_locked_narrowing_begv (PT);
diff --git a/src/xdisp.c b/src/xdisp.c
index a19c9908616..753b131d1c1 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -4393,7 +4393,7 @@ handle_fontified_prop (struct it *it)
eassert (it->end_charpos == ZV);
- if (current_buffer->long_line_optimizations_p
+ if (0
&& long_line_locked_narrowing_region_size > 0)
{
ptrdiff_t begv = it->locked_narrowing_begv;