[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to open full window programmatically?
From: |
Jean Louis |
Subject: |
Re: How to open full window programmatically? |
Date: |
Thu, 3 Dec 2020 08:36:29 +0300 |
User-agent: |
Mutt/2.0 (3d08634) (2020-11-07) |
* Jamie Beardslee <jdb@jamzattack.xyz> [2020-12-03 04:03]:
> By "open full window", do you mean (delete-other-windows)?
This here does not work:
(defun hyperscope-key ()
(interactive)
(let ((buffer "*HyperScope*"))
(if (bufferp (get-buffer buffer))
(cond ((and (one-window-p) hyperscope-full-window) (switch-to-buffer
buffer))
((and (not (one-window-p)) hyperscope-full-window) (progn
(switch-to-buffer-other-window buffer)
(delete-other-windows)))
((one-window-p) (switch-to-buffer buffer))
((not (one-window-p)) (switch-to-buffer-other-window buffer)))
(hyperscope))))
One time it opens split window from one window, second time opens full
window with one window.
hyperscope-full-window is true
(one-window-p) is true
I do not know why first condition is not working every time but every
second time.
- How to open full window programmatically?, Jean Louis, 2020/12/02
- Re: How to open full window programmatically?, Jamie Beardslee, 2020/12/02
- Re: How to open full window programmatically?,
Jean Louis <=
- Re: How to open full window programmatically?, Emanuel Berg, 2020/12/03
- Re: How to open full window programmatically?, Jean Louis, 2020/12/03
- Re: How to open full window programmatically?, Emanuel Berg, 2020/12/03
- Re: How to open full window programmatically?, Jean Louis, 2020/12/03
- Re: How to open full window programmatically?, Emanuel Berg, 2020/12/03
Re: How to open full window programmatically?, Emanuel Berg, 2020/12/02