Inhibit tab-bar in childframe (#23)

This commit is contained in:
Yuan Fu 2019-10-08 10:26:46 -04:00
parent 138386aa32
commit 0fffdf9a11
No known key found for this signature in database
GPG Key ID: 56E19BC57664A442

View File

@ -209,6 +209,8 @@ You can use C-g to hide the doc."
(let ((doc-buffer (get-buffer-create eldoc-box--buffer))) (let ((doc-buffer (get-buffer-create eldoc-box--buffer)))
(with-current-buffer doc-buffer (with-current-buffer doc-buffer
(setq mode-line-format nil) (setq mode-line-format nil)
(when (bound-and-true-p global-tab-line-mode)
(setq tab-line-format nil))
;; without this, clicking childframe will make doc buffer the current buffer ;; without this, clicking childframe will make doc buffer the current buffer
;; and `eldoc-box--maybe-cleanup' in `eldoc-box--cleanup-timer' will clear the childframe ;; and `eldoc-box--maybe-cleanup' in `eldoc-box--cleanup-timer' will clear the childframe
(buffer-face-set 'eldoc-box-body) (buffer-face-set 'eldoc-box-body)