mirror of
https://github.com/rabbibotton/clog.git
synced 2025-12-06 10:40:45 -08:00
focus window if exist instead of create popup
This commit is contained in:
parent
3b309036b6
commit
6fc6f84f60
1 changed files with 24 additions and 21 deletions
|
|
@ -32,6 +32,9 @@
|
|||
(defun on-open-file-ext (obj &key open-file popup)
|
||||
(if (and *open-external-with-emacs* open-file)
|
||||
(swank:ed-in-emacs open-file)
|
||||
(let ((win (window-to-top-by-title obj open-file)))
|
||||
(if win
|
||||
(window-focus win)
|
||||
(if *open-external-using-clog-popups*
|
||||
(let ((pop (open-clog-popup obj
|
||||
:specs (if (or popup *open-external-source-in-popup*)
|
||||
|
|
@ -52,7 +55,7 @@
|
|||
:specs (if (or popup *open-external-source-in-popup*)
|
||||
"width=800,height=600"
|
||||
"")
|
||||
:name "_blank"))))
|
||||
:name "_blank"))))))
|
||||
|
||||
(defun on-open-file (obj &key open-file
|
||||
(title "New Source Editor")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue