]> git.eshelyaron.com Git - emacs.git/commitdiff
Make `C-u C-x =' be more verbose about invisible characters
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 22 Apr 2022 12:58:59 +0000 (14:58 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 22 Apr 2022 12:58:59 +0000 (14:58 +0200)
* lisp/descr-text.el (describe-text-properties-1): Note confusing
bits about invisible characters (bug#3400).

lisp/descr-text.el

index a8160889325a1454b9c83e2907488771bd5c7c39..0f01ad676ae7fa350ec01bb3f047f4c8e9ea8b91 100644 (file)
@@ -176,6 +176,10 @@ otherwise."
        (insert "\n"))
       ;; Text properties
       (when properties
+        (when (plist-get properties 'invisible)
+          (insert "\nNote that character has an invisibility property,\n"
+                  "  so the character displayed at point in the buffer may\n"
+                  "  differ from the character described here.\n"))
        (newline)
        (insert "There are text properties here:\n")
        (describe-property-list properties)))))