diff options
| author | Wolfgang Jenkner | 2015-03-27 02:54:39 +0100 |
|---|---|---|
| committer | Wolfgang Jenkner | 2015-03-27 03:47:08 +0100 |
| commit | 792d44b3c31d2a682607ab8b79ae7d26b7402f41 (patch) | |
| tree | dacaaf290f706944a8585d7932cf23cacbca24fc /test/ChangeLog | |
| parent | 1d02107dab6f844a7c537bb5e98aff4e5f061246 (diff) | |
| download | emacs-792d44b3c31d2a682607ab8b79ae7d26b7402f41.tar.gz emacs-792d44b3c31d2a682607ab8b79ae7d26b7402f41.zip | |
Preserve face text properties in comint prompt.
Fixes: debbugs:20084
* lisp/font-lock.el (font-lock--remove-face-from-text-property): New
function. Adapted from the previously commented out
remove-single-text-property.
Remove previously unused and commented out auxiliary function
remove-text-property and obsolete comment.
* lisp/comint.el (comint-output-filter): Use it to remove
comint-highlight-prompt.
(comint-snapshot-last-prompt, comint-output-filter): Use
font-lock-prepend-text-property for comint-highlight-prompt.
* test/automated/textprop-tests.el: New file.
(textprop-tests-font-lock--remove-face-from-text-property): New test.
Thus, the original face text property of a prompt "candidate" (the
last line of an output chunk not ending with a newline) is
preserved. This amends the fix for bug#14744.
Diffstat (limited to 'test/ChangeLog')
| -rw-r--r-- | test/ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ChangeLog b/test/ChangeLog index a9cad319ead..30b88412468 100644 --- a/test/ChangeLog +++ b/test/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2015-03-27 Wolfgang Jenkner <wjenkner@inode.at> | ||
| 2 | |||
| 3 | * automated/textprop-tests.el: New file. | ||
| 4 | (textprop-tests-font-lock--remove-face-from-text-property): New test. | ||
| 5 | |||
| 1 | 2015-03-24 Michael Albinus <michael.albinus@gmx.de> | 6 | 2015-03-24 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 7 | ||
| 3 | * automated/tramp-tests.el (tramp-test18-file-attributes) | 8 | * automated/tramp-tests.el (tramp-test18-file-attributes) |