From 8d4c974ee04e4b9e452bcc1b7cf20f5cf76cc6dd Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Mon, 25 Mar 2013 20:42:08 -0400 Subject: [PATCH] * lisp/eshell/em-prompt.el (eshell-emit-prompt): Make sure we can't insert into the prompt either. Fixes: debbugs:13963 --- lisp/ChangeLog | 5 +++++ lisp/eshell/em-prompt.el | 1 + 2 files changed, 6 insertions(+) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ffd158abe60..b6ec0480a2c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2013-03-26 Stefan Monnier + + * eshell/em-prompt.el (eshell-emit-prompt): Make sure we can't insert + into the prompt either (bug#13963). + 2013-03-25 Stefan Monnier * font-lock.el (lisp-font-lock-keywords-2): Don't highlight the "error" diff --git a/lisp/eshell/em-prompt.el b/lisp/eshell/em-prompt.el index c1c4d4730f9..c5429c59bd6 100644 --- a/lisp/eshell/em-prompt.el +++ b/lisp/eshell/em-prompt.el @@ -122,6 +122,7 @@ arriving, or after." (add-text-properties 0 (length prompt) '(read-only t face eshell-prompt + front-sticky (face read-only) rear-nonsticky (face read-only)) prompt)) (eshell-interactive-print prompt))) -- 2.39.2