emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/inspector 7b70a203d7: Inspect string text properties


From: ELPA Syncer
Subject: [elpa] externals/inspector 7b70a203d7: Inspect string text properties
Date: Thu, 9 Mar 2023 12:57:58 -0500 (EST)

branch: externals/inspector
commit 7b70a203d77421b737e3c39f9ca92f09111b4e96
Author: Mariano Montone <marianomontone@gmail.com>
Commit: Mariano Montone <marianomontone@gmail.com>

    Inspect string text properties
    
    See issue #19
---
 inspector.el | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/inspector.el b/inspector.el
index e284c124e2..9ed59aa30f 100644
--- a/inspector.el
+++ b/inspector.el
@@ -5,7 +5,7 @@
 ;; Author: Mariano Montone <marianomontone@gmail.com>
 ;; URL: https://github.com/mmontone/emacs-inspector
 ;; Keywords: debugging, tool, lisp, development
-;; Version: 0.20
+;; Version: 0.21
 ;; Package-Requires: ((emacs "27.1"))
 
 ;; This program is free software; you can redistribute it and/or modify
@@ -563,7 +563,12 @@ is expected to be used.")
 (cl-defmethod inspector-inspect-object ((string string))
   "Render inspector buffer for STRING."
   (inspector--insert-title "string")
-  (prin1 string (current-buffer)))
+  (prin1 string (current-buffer))
+  (let ((text-properties (text-properties-at 0 string)))
+    (when text-properties
+      (newline 2)
+      (inspector--insert-label "Text properties")
+      (inspector--insert-inspect-button text-properties))))
 
 (cl-defmethod inspector-inspect-object ((array array))
   "Render inspector buffer for ARRAY."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]