branch: externals/bufferlo
commit f17aea31568b3b31f773bae78b52d9e91f53c492
Author: shipmints <[email protected]>
Commit: shipmints <[email protected]>
Frame bookmark handler defaults to the *Messages* buffer when making a new
frame.
This optimizes performance and avoids complex mode hooks being run.
---
bufferlo.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/bufferlo.el b/bufferlo.el
index 6fe3069405..94ffc7159a 100644
--- a/bufferlo.el
+++ b/bufferlo.el
@@ -1680,7 +1680,8 @@ the message after successfully restoring the bookmark."
bufferlo-bookmark-frame-load-make-frame
(not (consp current-prefix-arg)) ; user make-frame
suppression
(not pop-up-frames)) ; make-frame implied by functions like
`bookmark-jump-other-frame'
- (setq new-frame (make-frame)))
+ (with-current-buffer (messages-buffer) ; least expensive
(fundamental-mode)
+ (setq new-frame (make-frame))))
(let ((fbm (frame-parameter nil 'bufferlo-bookmark-frame-name))
(load-policy bufferlo-bookmark-frame-load-policy))
(if fbm