emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

feature/improved-locked-narrowing 18fa159fa9: ; * src/xdisp.c (get_locke


From: Gregory Heytings
Subject: feature/improved-locked-narrowing 18fa159fa9: ; * src/xdisp.c (get_locked_narrowing_begv): Minor change.
Date: Sun, 27 Nov 2022 05:26:31 -0500 (EST)

branch: feature/improved-locked-narrowing
commit 18fa159fa91b515f2281b83648961fdc5e21aca7
Author: Gregory Heytings <gregory@heytings.org>
Commit: Gregory Heytings <gregory@heytings.org>

    ; * src/xdisp.c (get_locked_narrowing_begv): Minor change.
---
 src/editfns.c | 2 +-
 src/xdisp.c   | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/editfns.c b/src/editfns.c
index a3a8f3edef..b364f441b5 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -2786,7 +2786,7 @@ reset_outermost_narrowings (void)
 }
 
 /* Helper functions to save and restore the narrowing locks of the
-   current buffer in save-restriction.  */
+   current buffer in Fsave_restriction.  */
 static Lisp_Object
 narrowing_locks_save (void)
 {
diff --git a/src/xdisp.c b/src/xdisp.c
index 138c364679..331fbe0212 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -3538,9 +3538,8 @@ get_locked_narrowing_begv (ptrdiff_t pos)
 {
   if (long_line_locked_narrowing_region_size == 0)
     return BEGV;
-  int begv;
   int len = long_line_locked_narrowing_region_size / 2;
-  begv = max (pos - len, BEGV);
+  int begv = max (pos - len, BEGV);
   int limit = long_line_locked_narrowing_bol_search_limit;
   while (limit)
     {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]