]> git.eshelyaron.com Git - emacs.git/commitdiff
Add `field' to `erc-display-prompt'
authorDeniz Dogan <deniz@dogan.se>
Tue, 10 Apr 2012 02:51:39 +0000 (04:51 +0200)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Tue, 10 Apr 2012 02:51:39 +0000 (04:51 +0200)
* erc.el (erc-display-prompt): Adds the field text property to the
ERC prompt.  This allows users to use `kill-whole-line' to kill
all text back to the prompt given that it's on a single line.

Fixes: debbugs:10841
lisp/erc/ChangeLog
lisp/erc/erc.el

index 34aa015d7ac657bbd14fb4497510a40a5f7e4f5a..9f858ba96e5123fe59e6ce73febdb2db1b1a1316 100644 (file)
@@ -1,3 +1,10 @@
+2012-04-10  Deniz Dogan  <deniz@dogan.se>  (tiny change)
+
+       * erc.el (erc-display-prompt): Adds the field text property to the
+       ERC prompt.  This allows users to use `kill-whole-line' to kill
+       all text back to the prompt given that it's on a single line
+       (bug#10841).
+
 2012-04-09  Chong Yidong  <cyd@gnu.org>
 
        * erc.el (erc-cmd-SET): Call custom-variable-p instead of
index 62b701204d19bc7adff19e0c23430fc9e7270084..b79c2fd6c5e240c30cea050c6cad64c5af533bdb 100644 (file)
@@ -3646,6 +3646,7 @@ If FACE is non-nil, it will be used to propertize the prompt.  If it is nil,
                                     'start-open t ; XEmacs
                                     'rear-nonsticky t ; Emacs
                                     'erc-prompt t
+                                    'field t
                                     'front-sticky t
                                     'read-only t))
        (erc-put-text-property 0 (1- (length prompt))