From 8f661793b1f2a98f69388746a5bf09485c38f600 Mon Sep 17 00:00:00 2001 From: James Thomas Date: Fri, 23 Aug 2024 10:43:39 +0530 Subject: [PATCH] Keep local keymap out of vc-git-stash-get-at-point * lisp/vc/vc-git.el (vc-git-stash-get-at-point): Return the substring without text properties (bug#72768). (cherry picked from commit 2aef1acc4d2e34fc63b4d9cfd2b0a6a9c08602fb) --- lisp/vc/vc-git.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el index 76388211545..2a7c8ae5fc4 100644 --- a/lisp/vc/vc-git.el +++ b/lisp/vc/vc-git.el @@ -2142,7 +2142,7 @@ This command shares argument histories with \\[rgrep] and \\[grep]." (goto-char point) (beginning-of-line) (if (looking-at "^ +\\({[0-9]+}\\):") - (match-string 1) + (match-string-no-properties 1) (error "Cannot find stash at point")))) ;; vc-git-stash-delete-at-point must be called from a vc-dir buffer. -- 2.39.5