aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPo Lu2023-04-03 08:12:03 +0800
committerPo Lu2023-04-03 08:12:03 +0800
commit8bca62d552a3ca5dc262f916055d9d443d360af8 (patch)
treebce57bc68ebf8f3490d5fee6b986b245ae594649 /src
parent1d84b4b28659b5f2cc60872ce095e3887bed6fdd (diff)
parentc108132d3bb69d0cc8d2e0222a781dff9abca087 (diff)
downloademacs-8bca62d552a3ca5dc262f916055d9d443d360af8.tar.gz
emacs-8bca62d552a3ca5dc262f916055d9d443d360af8.zip
Merge remote-tracking branch 'origin/master' into feature/android
Diffstat (limited to 'src')
-rw-r--r--src/comp.c8
-rw-r--r--src/eval.c3
-rw-r--r--src/xdisp.c5
3 files changed, 13 insertions, 3 deletions
diff --git a/src/comp.c b/src/comp.c
index 5cbe441dd7f..9ff3efedbdd 100644
--- a/src/comp.c
+++ b/src/comp.c
@@ -5910,6 +5910,14 @@ For internal use. */);
5910 Vcomp_loaded_comp_units_h = 5910 Vcomp_loaded_comp_units_h =
5911 CALLN (Fmake_hash_table, QCweakness, Qvalue, QCtest, Qequal); 5911 CALLN (Fmake_hash_table, QCweakness, Qvalue, QCtest, Qequal);
5912 5912
5913 DEFVAR_LISP ("comp-subr-arities-h", Vcomp_subr_arities_h,
5914 doc: /* Hash table recording the arity of Lisp primitives.
5915This is in case they are redefined so the compiler still knows how to
5916compile calls to them.
5917subr-name -> arity
5918For internal use. */);
5919 Vcomp_subr_arities_h = CALLN (Fmake_hash_table, QCtest, Qequal);
5920
5913 Fprovide (intern_c_string ("native-compile"), Qnil); 5921 Fprovide (intern_c_string ("native-compile"), Qnil);
5914#endif /* #ifdef HAVE_NATIVE_COMP */ 5922#endif /* #ifdef HAVE_NATIVE_COMP */
5915 5923
diff --git a/src/eval.c b/src/eval.c
index eb40c953f96..1a4d3ad0307 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -3400,7 +3400,7 @@ DEFUN ("fetch-bytecode", Ffetch_bytecode, Sfetch_bytecode,
3400 return object; 3400 return object;
3401} 3401}
3402 3402
3403/* Return true if SYMBOL currently has a let-binding 3403/* Return true if SYMBOL's default currently has a let-binding
3404 which was made in the buffer that is now current. */ 3404 which was made in the buffer that is now current. */
3405 3405
3406bool 3406bool
@@ -3415,6 +3415,7 @@ let_shadows_buffer_binding_p (struct Lisp_Symbol *symbol)
3415 struct Lisp_Symbol *let_bound_symbol = XSYMBOL (specpdl_symbol (p)); 3415 struct Lisp_Symbol *let_bound_symbol = XSYMBOL (specpdl_symbol (p));
3416 eassert (let_bound_symbol->u.s.redirect != SYMBOL_VARALIAS); 3416 eassert (let_bound_symbol->u.s.redirect != SYMBOL_VARALIAS);
3417 if (symbol == let_bound_symbol 3417 if (symbol == let_bound_symbol
3418 && p->kind != SPECPDL_LET_LOCAL /* bug#62419 */
3418 && EQ (specpdl_where (p), buf)) 3419 && EQ (specpdl_where (p), buf))
3419 return 1; 3420 return 1;
3420 } 3421 }
diff --git a/src/xdisp.c b/src/xdisp.c
index 7cde3d30885..046d1f78452 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -18593,8 +18593,9 @@ try_scrolling (Lisp_Object window, bool just_this_one_p,
18593 start_display (&it, w, startp); 18593 start_display (&it, w, startp);
18594 18594
18595 if (arg_scroll_conservatively) 18595 if (arg_scroll_conservatively)
18596 amount_to_scroll = max (dy, frame_line_height 18596 amount_to_scroll
18597 * max (scroll_step, temp_scroll_step)); 18597 = min (max (dy, frame_line_height),
18598 frame_line_height * arg_scroll_conservatively);
18598 else if (scroll_step || temp_scroll_step) 18599 else if (scroll_step || temp_scroll_step)
18599 amount_to_scroll = scroll_max; 18600 amount_to_scroll = scroll_max;
18600 else 18601 else