* lisp/eshell/em-prompt.el (eshell-emit-prompt): Make sure we can't insert
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 26 Mar 2013 00:42:08 +0000 (20:42 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 26 Mar 2013 00:42:08 +0000 (20:42 -0400)
into the prompt either.

Fixes: debbugs:13963

lisp/ChangeLog
lisp/eshell/em-prompt.el

index ffd158a..b6ec048 100644 (file)
@@ -1,3 +1,8 @@
+2013-03-26  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * eshell/em-prompt.el (eshell-emit-prompt): Make sure we can't insert
+       into the prompt either (bug#13963).
+
 2013-03-25  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * font-lock.el (lisp-font-lock-keywords-2): Don't highlight the "error"
index c1c4d47..c5429c5 100644 (file)
@@ -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)))