]> git.eshelyaron.com Git - emacs.git/commitdiff
; * src/keyboard.c (safe_run_hooks_maybe_narrowed): Fix broken merge.
authorGregory Heytings <gregory@heytings.org>
Thu, 4 Aug 2022 11:57:27 +0000 (11:57 +0000)
committerGregory Heytings <gregory@heytings.org>
Thu, 4 Aug 2022 12:02:25 +0000 (14:02 +0200)
src/keyboard.c

index a730dfe4fda440b19f0be991621d3fcda1f7858a..02e02448ff8a8b8760e86e8855c4bd945dd2a07e 100644 (file)
@@ -1907,9 +1907,9 @@ safe_run_hooks_maybe_narrowed (Lisp_Object hook, struct window *w)
   specbind (Qinhibit_quit, Qt);
 
   if (current_buffer->long_line_optimizations_p)
-    Fnarrow_to_region (make_fixnum (get_narrowed_begv (w, PT)),
-                      make_fixnum (get_narrowed_zv (w, PT)),
-                      Qt);
+    narrow_to_region_internal (make_fixnum (get_narrowed_begv (w, PT)),
+                              make_fixnum (get_narrowed_zv (w, PT)),
+                              true);
 
   run_hook_with_args (2, ((Lisp_Object []) {hook, hook}), safe_run_hook_funcall);
   unbind_to (count, Qnil);