branch: externals/beframe
commit 9e102cfface611a48889aca0e6bb637ed9b2e6db
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>
Remove obsolete code
---
framed-buffers.el | 12 ++----------
1 file changed, 2 insertions(+), 10 deletions(-)
diff --git a/framed-buffers.el b/framed-buffers.el
index 7f288a7245..a69696abc8 100644
--- a/framed-buffers.el
+++ b/framed-buffers.el
@@ -227,19 +227,11 @@ If FRAME is nil, use the current frame."
(setq framed-buffers--read-buffer-function read-buffer-function
read-buffer-function #'framed-buffers-read-buffer)
(add-hook 'after-make-frame-functions
#'framed-buffers--frame-predicate)
- (add-hook 'after-make-frame-functions #'framed-buffers--rename-frame)
- ;; NOTE 2023-01-30: I prefer not to install an advice. It is
- ;; needed for `consult-buffer' and maybe others, but there may
- ;; be a better way.
- ;;
- ;; (advice-add #'buffer-list :override #'framed-buffers--buffer-list)
- )
+ (add-hook 'after-make-frame-functions #'framed-buffers--rename-frame))
(setq read-buffer-function framed-buffers--read-buffer-function
framed-buffers--read-buffer-function nil)
(remove-hook 'after-make-frame-functions #'framed-buffers--frame-predicate)
- (remove-hook 'after-make-frame-functions #'framed-buffers--rename-frame)
- ;; (advice-remove #'buffer-list #'framed-buffers--buffer-list)
- ))
+ (remove-hook 'after-make-frame-functions #'framed-buffers--rename-frame)))
;;;; Integration with `consult'