From 02c95dd92cebcb71436472ce544dda5bd32af1e4 Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Thu, 2 Apr 2026 01:49:26 +0300 Subject: [PATCH] xref-edit--prepare-buffer: Prohibit insertion before group headers too * lisp/progmodes/xref.el (xref-edit--prepare-buffer): Do the previous change for group headers as well (no insertion in front). --- lisp/progmodes/xref.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el index 8018e99e7f3..2c21d08d448 100644 --- a/lisp/progmodes/xref.el +++ b/lisp/progmodes/xref.el @@ -1481,7 +1481,8 @@ between them by typing in the minibuffer with completion." match) (while (setq match (text-property-search-forward 'xref-group)) (add-text-properties (prop-match-beginning match) (prop-match-end match) - '(read-only t))) + '( read-only t + front-sticky t))) (goto-char (point-min)) (while (setq match (text-property-search-forward 'xref-item)) (let ((line-number-end (save-excursion