From: miha Date: Sun, 19 Dec 2021 11:02:11 +0000 (+0100) Subject: Fix prompt colors in comint-snapshot-last-prompt X-Git-Tag: emacs-29.0.90~3577^2~10 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7fd900ff3a780a83422241552902cfe3c2ecb1d8;p=emacs.git Fix prompt colors in comint-snapshot-last-prompt * lisp/comint.el (comint-snapshot-last-prompt): Fix colorization of the prompt (bug#11883). --- diff --git a/lisp/comint.el b/lisp/comint.el index 5f99f560cf3..3decb80ff0b 100644 --- a/lisp/comint.el +++ b/lisp/comint.el @@ -2036,7 +2036,7 @@ the start, the cdr to the end of the last prompt recognized.") Freezes the `font-lock-face' text property in place." (when comint-last-prompt (with-silent-modifications - (font-lock-prepend-text-property + (font-lock-append-text-property (car comint-last-prompt) (cdr comint-last-prompt) 'font-lock-face 'comint-highlight-prompt))