summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/disass.el
diff options
context:
space:
mode:
authorVibhav Pant <vibhavp@gmail.com>2017-01-26 14:28:23 +0530
committerVibhav Pant <vibhavp@gmail.com>2017-01-26 14:28:23 +0530
commit6a82d19db18f8480342cc4c1a0ad76c75df41941 (patch)
treed051ec5a66f1486d8d507d34d92f88832959e450 /lisp/emacs-lisp/disass.el
parent4e6140b28324a9a63d54084c920206d00aed094e (diff)
downloademacs-6a82d19db18f8480342cc4c1a0ad76c75df41941.tar.gz
* lisp/emacs-lisp/disass.el: Fix spacing while showing jump tables
Diffstat (limited to 'lisp/emacs-lisp/disass.el')
-rw-r--r--lisp/emacs-lisp/disass.el12
1 files changed, 8 insertions, 4 deletions
diff --git a/lisp/emacs-lisp/disass.el b/lisp/emacs-lisp/disass.el
index 22c1c962a39..66673b4d26c 100644
--- a/lisp/emacs-lisp/disass.el
+++ b/lisp/emacs-lisp/disass.el
@@ -224,10 +224,14 @@ OBJ should be a call to BYTE-CODE generated by the byte compiler."
;; if the succeeding op is byte-switch, display the jump table
;; used
(cond ((eq (car-safe (car-safe (cdr lap))) 'byte-switch)
- (insert (format "<jump-table-%s ( " (hash-table-test arg)))
- (maphash #'(lambda (value tag)
- (insert (format "%s %s " value (cadr tag))))
- arg)
+ (insert (format "<jump-table-%s (" (hash-table-test arg)))
+ (let ((first-time t))
+ (maphash #'(lambda (value tag)
+ (if first-time
+ (setq first-time nil)
+ (insert " "))
+ (insert (format "%s %s" value (cadr tag))))
+ arg))
(insert ")>"))
;; if the value of the constant is compiled code, then
;; recursively disassemble it.