1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-29 07:58:28 +00:00

Add field' to erc-display-prompt'

* 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
This commit is contained in:
Deniz Dogan 2012-04-10 04:51:39 +02:00 committed by Lars Magne Ingebrigtsen
parent 6c3eab3008
commit ec3e5f739a
2 changed files with 8 additions and 0 deletions

View 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

View 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))