1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-02 02:10:46 -08:00
emacs/test
Wolfgang Jenkner 792d44b3c3 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.
2015-03-27 03:47:08 +01:00
..
automated Preserve face text properties in comint prompt. 2015-03-27 03:47:08 +01:00
cedet Spelling fixes 2015-02-21 20:01:05 -08:00
indent Have `sgml-attribute-offset' control SGML attribute indentation 2015-03-22 20:47:43 -07:00
BidiCharacterTest.txt Added initial version of biditest.el and Unicode data file it needs. 2014-09-06 17:35:55 +03:00
biditest.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
ChangeLog Preserve face text properties in comint prompt. 2015-03-27 03:47:08 +01:00
README
redisplay-testsuite.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
rmailmm.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00

This directory contains files intended to test various aspects of
Emacs's functionality.  Please help add tests!

(Also, see etc/compilation.txt for compilation mode font lock tests.)