diff options
| author | Vibhav Pant | 2017-01-26 14:28:23 +0530 |
|---|---|---|
| committer | Vibhav Pant | 2017-01-26 14:28:23 +0530 |
| commit | 6a82d19db18f8480342cc4c1a0ad76c75df41941 (patch) | |
| tree | d051ec5a66f1486d8d507d34d92f88832959e450 | |
| parent | 4e6140b28324a9a63d54084c920206d00aed094e (diff) | |
| download | emacs-6a82d19db18f8480342cc4c1a0ad76c75df41941.tar.gz emacs-6a82d19db18f8480342cc4c1a0ad76c75df41941.zip | |
* lisp/emacs-lisp/disass.el: Fix spacing while showing jump tables
| -rw-r--r-- | lisp/emacs-lisp/disass.el | 12 |
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." | |||
| 224 | ;; if the succeeding op is byte-switch, display the jump table | 224 | ;; if the succeeding op is byte-switch, display the jump table |
| 225 | ;; used | 225 | ;; used |
| 226 | (cond ((eq (car-safe (car-safe (cdr lap))) 'byte-switch) | 226 | (cond ((eq (car-safe (car-safe (cdr lap))) 'byte-switch) |
| 227 | (insert (format "<jump-table-%s ( " (hash-table-test arg))) | 227 | (insert (format "<jump-table-%s (" (hash-table-test arg))) |
| 228 | (maphash #'(lambda (value tag) | 228 | (let ((first-time t)) |
| 229 | (insert (format "%s %s " value (cadr tag)))) | 229 | (maphash #'(lambda (value tag) |
| 230 | arg) | 230 | (if first-time |
| 231 | (setq first-time nil) | ||
| 232 | (insert " ")) | ||
| 233 | (insert (format "%s %s" value (cadr tag)))) | ||
| 234 | arg)) | ||
| 231 | (insert ")>")) | 235 | (insert ")>")) |
| 232 | ;; if the value of the constant is compiled code, then | 236 | ;; if the value of the constant is compiled code, then |
| 233 | ;; recursively disassemble it. | 237 | ;; recursively disassemble it. |