summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2024-03-13 02:48:58 +0000
committerjao <jao@gnu.org>2024-03-13 02:48:58 +0000
commitf0701cdcae5b13dacea8ab5af2a0147110eca654 (patch)
tree1aec8f5889311009ac25dbc195aaee2bffe14dad
parentec7f8368425362377e371e7efa29d2cf3aa857f1 (diff)
downloadelibs-f0701cdcae5b13dacea8ab5af2a0147110eca654.tar.gz
elibs-f0701cdcae5b13dacea8ab5af2a0147110eca654.tar.bz2
jao-minibuffer: hack for pdf viewers no longer needed!
-rw-r--r--lib/eos/jao-minibuffer.el10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/eos/jao-minibuffer.el b/lib/eos/jao-minibuffer.el
index 50c17a8..95356dc 100644
--- a/lib/eos/jao-minibuffer.el
+++ b/lib/eos/jao-minibuffer.el
@@ -1,6 +1,6 @@
;;; jao-minibuffer.el --- using the minibuffer to report status -*- lexical-binding: t; -*-
-;; Copyright (C) 2020, 2021, 2022 jao
+;; Copyright (C) 2020, 2021, 2022, 2024 jao
;; Author: jao <mail@jao.io>
;; Keywords: extensions
@@ -62,11 +62,9 @@
(if (> w 0) (jao-minibuffer--trim msg w) "")))))
(defun jao-minibuffer--insert (msg)
- (let ((hack (derived-mode-p 'pdf-view-mode 'doc-view-mode)))
- (with-current-buffer jao-minibuffer--name
- (delete-region (point-min) (point-max))
- (insert msg)
- (when hack (other-window 1) (other-window -1)))))
+ (with-current-buffer jao-minibuffer--name
+ (delete-region (point-min) (point-max))
+ (insert msg)))
(defun jao-minibuffer--strip-prev (msg)
(if-let ((n (text-property-any 0 (length msg) :minibuffer-message t msg)))