Replies: 1 comment
-
Inside src/ext/prompt-window.lisp we see that Tab is bound to the I tried to call it in I call it inside (defun prompt-for-aux (&key (prompt-string (alexandria:required-argument :prompt-string))
(initial-string (alexandria:required-argument :initial-string))
(parameters (alexandria:required-argument :parameters))
(body-function (alexandria:required-argument :body-function))
(syntax-table nil)
(edit-callback nil)
(special-keymap nil))
(when (frame-floating-prompt-window (current-frame))
(editor-error "recursive use of prompt window"))
(run-hooks *prompt-activate-hook*)
(with-current-window (current-window)
(let* ((prompt-window (create-prompt prompt-string
initial-string
parameters)))
(switch-to-prompt-window prompt-window)
(handler-case
(with-unwind-setf (((frame-floating-prompt-window (current-frame))
prompt-window))
(let ((*post-command-hook* *post-command-hook*))
(when edit-callback
(add-hook *post-command-hook*
(lambda ()
(when (typep (this-command) 'lem:editable-advice)
(funcall edit-callback (get-input-string))))))
;; Simulate a first TAB, show the choices:
(lem/prompt-window::prompt-completion) ;; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
(with-special-keymap (special-keymap)
(if syntax-table
(with-current-syntax syntax-table
(funcall body-function))
(funcall body-function))))
(lem/completion-mode:completion-end)
(delete-prompt prompt-window)
(run-hooks *prompt-deactivate-hook*))
(execute-condition (e)
(execute-input e)))))) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently,
find-file
,describe-symbol
, theses commands that uses the prompt will not show the candidates straight away.Instead, it requires one
tab
.What can I do to get the prompt to show them on activation?
This one in particular I find very difficult to adjust to from the setup I have in emacs.
Beta Was this translation helpful? Give feedback.
All reactions