-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
See issue #19
- Loading branch information
Showing
1 changed file
with
7 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
;; Author: Mariano Montone <[email protected]> | ||
;; 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." | ||
|
7b70a20
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will not work for text properties not at the beginning of string.
7b70a20
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See
object-intervals