Skip to content

Commit

Permalink
Merge pull request #615 from mpereira/master
Browse files Browse the repository at this point in the history
Make `embark-export` abide to `display-buffer-alist`
  • Loading branch information
oantolin committed Mar 23, 2023
2 parents 2a89517 + 0c06b00 commit 59f9a19
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions embark.el
Expand Up @@ -3120,17 +3120,17 @@ buffer."
(alist-get t embark-exporters-alist))))
(if (eq exporter 'embark-collect)
(embark-collect)
(let ((after embark-after-export-hook)
(cmd embark--command)
(name (embark--descriptive-buffer-name 'export))
(rerun (embark--rerun-function #'embark-export))
(buffer (save-excursion
(funcall exporter candidates)
(current-buffer))))
(let* ((after embark-after-export-hook)
(cmd embark--command)
(name (embark--descriptive-buffer-name 'export))
(rerun (embark--rerun-function #'embark-export))
(buffer (save-excursion
(funcall exporter candidates)
(rename-buffer name t)
(current-buffer))))
(embark--quit-and-run
(lambda ()
(pop-to-buffer buffer)
(rename-buffer name t)
(setq embark--rerun-function rerun)
(use-local-map
(make-composed-keymap
Expand Down

0 comments on commit 59f9a19

Please sign in to comment.