Backport trunk 2013-03-26T00:42:08Z!monnier@iro.umontreal.ca em-prompt fix
authorStefan Monnier <monnier@iro.umontreal.ca>
Sat, 6 Apr 2013 23:05:53 +0000 (16:05 -0700)
committerGlenn Morris <rgm@gnu.org>
Sat, 6 Apr 2013 23:05:53 +0000 (16:05 -0700)
* lisp/eshell/em-prompt.el (eshell-emit-prompt):
Make sure we can't insert into the prompt either.

Fixes: debbugs:13963

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

index 5783761..dd209f7 100644 (file)
@@ -1,3 +1,8 @@
+2013-04-06  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-26  Fabián Ezequiel Gallina  <fabian@anue.biz>
 
        Un-indent after "pass" and "return" statements (Bug#13888)
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)))