]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/emacs-lisp/disass.el: Fix spacing while showing jump tables
authorVibhav Pant <vibhavp@gmail.com>
Thu, 26 Jan 2017 08:58:23 +0000 (14:28 +0530)
committerVibhav Pant <vibhavp@gmail.com>
Thu, 26 Jan 2017 08:58:23 +0000 (14:28 +0530)
lisp/emacs-lisp/disass.el

index 22c1c962a39e2fbfde8b3cc208b83cb7cab3725a..66673b4d26c1b1d84aff92f839db972e67483643 100644 (file)
@@ -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.