aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2024-03-02 03:43:14 -0500
committerEli Zaretskii2024-03-02 03:43:14 -0500
commit170c6557922dad7e6e9bc0d6dadf6c080108fd42 (patch)
treec68265fcb4be289633639b63945b8a16fbc94ca2 /src
parentc3dc64a1071acc1f622094f91d8f046afedb7b45 (diff)
parentae80192d97b8d0e54a9429091cd84190bdbeb49e (diff)
downloademacs-170c6557922dad7e6e9bc0d6dadf6c080108fd42.tar.gz
emacs-170c6557922dad7e6e9bc0d6dadf6c080108fd42.zip
Merge from origin/emacs-29
ae80192d97b ; * src/buffer.c (Fmake_indirect_buffer): Doc fix. 2549eabc97f Fix typos in vnvni.el. 647cecc853e ; * lisp/vc/vc.el (vc-clone): Fix wording of doc string. 383ccf6d51f Avoid assertion violations in bidi.c b7cef701cb5 * lisp/files.el (hack-one-local-variable): Use `set-auto-... 05308001759 Fix infinite recursion in gdb-mi.el
Diffstat (limited to 'src')
-rw-r--r--src/bidi.c3
-rw-r--r--src/buffer.c10
2 files changed, 10 insertions, 3 deletions
diff --git a/src/bidi.c b/src/bidi.c
index a2b5054cb60..36d1a0496b8 100644
--- a/src/bidi.c
+++ b/src/bidi.c
@@ -2908,7 +2908,6 @@ bidi_resolve_brackets (struct bidi_it *bidi_it)
2908 } 2908 }
2909 else if (bidi_it->bracket_pairing_pos != eob) 2909 else if (bidi_it->bracket_pairing_pos != eob)
2910 { 2910 {
2911 eassert (bidi_it->resolved_level == -1);
2912 /* If the cached state shows an increase of embedding level due 2911 /* If the cached state shows an increase of embedding level due
2913 to an isolate initiator, we need to update the 1st cached 2912 to an isolate initiator, we need to update the 1st cached
2914 state of the next run of the current isolating sequence with 2913 state of the next run of the current isolating sequence with
@@ -2917,6 +2916,7 @@ bidi_resolve_brackets (struct bidi_it *bidi_it)
2917 if (bidi_it->level_stack[bidi_it->stack_idx].level > prev_level 2916 if (bidi_it->level_stack[bidi_it->stack_idx].level > prev_level
2918 && ISOLATE_STATUS (bidi_it, bidi_it->stack_idx)) 2917 && ISOLATE_STATUS (bidi_it, bidi_it->stack_idx))
2919 { 2918 {
2919 eassert (bidi_it->resolved_level == -1);
2920 bidi_record_type_for_neutral (&prev_for_neutral, prev_level, 0); 2920 bidi_record_type_for_neutral (&prev_for_neutral, prev_level, 0);
2921 bidi_record_type_for_neutral (&next_for_neutral, prev_level, 1); 2921 bidi_record_type_for_neutral (&next_for_neutral, prev_level, 1);
2922 } 2922 }
@@ -2931,6 +2931,7 @@ bidi_resolve_brackets (struct bidi_it *bidi_it)
2931 } 2931 }
2932 else if (bidi_it->bracket_pairing_pos == -1) 2932 else if (bidi_it->bracket_pairing_pos == -1)
2933 { 2933 {
2934 eassert (bidi_it->resolved_level == -1);
2934 /* Higher levels were not BPA-resolved yet, even if 2935 /* Higher levels were not BPA-resolved yet, even if
2935 cached by bidi_find_bracket_pairs. Force application 2936 cached by bidi_find_bracket_pairs. Force application
2936 of BPA to the new level now. */ 2937 of BPA to the new level now. */
diff --git a/src/buffer.c b/src/buffer.c
index e235ff8f9f8..126f3eb055a 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -796,14 +796,20 @@ DEFUN ("make-indirect-buffer", Fmake_indirect_buffer, Smake_indirect_buffer,
796BASE-BUFFER should be a live buffer, or the name of an existing buffer. 796BASE-BUFFER should be a live buffer, or the name of an existing buffer.
797 797
798NAME should be a string which is not the name of an existing buffer. 798NAME should be a string which is not the name of an existing buffer.
799
800Interactively, prompt for BASE-BUFFER (offering the current buffer as
801the default), and for NAME (offering as default the name of a recently
802used buffer).
803
799Optional argument CLONE non-nil means preserve BASE-BUFFER's state, 804Optional argument CLONE non-nil means preserve BASE-BUFFER's state,
800such as major and minor modes, in the indirect buffer. 805such as major and minor modes, in the indirect buffer.
801
802CLONE nil means the indirect buffer's state is reset to default values. 806CLONE nil means the indirect buffer's state is reset to default values.
803 807
804If optional argument INHIBIT-BUFFER-HOOKS is non-nil, the new buffer 808If optional argument INHIBIT-BUFFER-HOOKS is non-nil, the new buffer
805does not run the hooks `kill-buffer-hook', 809does not run the hooks `kill-buffer-hook',
806`kill-buffer-query-functions', and `buffer-list-update-hook'. */) 810`kill-buffer-query-functions', and `buffer-list-update-hook'.
811
812Interactively, CLONE and INHIBIT-BUFFER-HOOKS are nil. */)
807 (Lisp_Object base_buffer, Lisp_Object name, Lisp_Object clone, 813 (Lisp_Object base_buffer, Lisp_Object name, Lisp_Object clone,
808 Lisp_Object inhibit_buffer_hooks) 814 Lisp_Object inhibit_buffer_hooks)
809{ 815{