File tree Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -125,21 +125,9 @@ This function calls `json-mode--update-auto-mode' to change the
125
125
126
126
;;;### autoload
127
127
(defun json-mode-show-path ()
128
+ " Print the path to the node at point to the minibuffer, and yank to the kill ring."
128
129
(interactive )
129
- (let ((temp-name " *json-path*" ))
130
- (with-output-to-temp-buffer temp-name (jsons-print-path))
131
-
132
- (let ((temp-window (get-buffer-window temp-name)))
133
- ; ; delete the window if we have one,
134
- ; ; so we can recreate it in the correct position
135
- (if temp-window
136
- (delete-window temp-window))
137
-
138
- ; ; always put the temp window below the json window
139
- (set-window-buffer (if (fboundp 'split-window-below )
140
- (split-window-below )
141
- (split-window-vertically )) temp-name))
142
- ))
130
+ (message (jsons-print-path)))
143
131
144
132
(define-key json-mode-map (kbd " C-c C-p" ) 'json-mode-show-path )
145
133
You can’t perform that action at this time.
0 commit comments