Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatibility with package mini-frame #57

Closed
JuanGarcia345 opened this issue Aug 6, 2020 · 7 comments
Closed

Incompatibility with package mini-frame #57

JuanGarcia345 opened this issue Aug 6, 2020 · 7 comments

Comments

@JuanGarcia345
Copy link

Hi!

Really nice package here, it feels very snappy and is simple to use, thank you for your work!

Unfortunately it seems that it's not really compatible with mini-frame. For instance, C-s keeps moving the cursor back to the beginning of the prompt and then input is reversed.

To reproduce, evaluate code below in an emacs -Q and try C-s

(defvar bootstrap-version)
(let ((bootstrap-file
       (expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
      (bootstrap-version 5))
  (unless (file-exists-p bootstrap-file)
    (with-current-buffer
        (url-retrieve-synchronously
         "https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
         'silent 'inhibit-cookies)
      (goto-char (point-max))
      (eval-print-last-sexp)))
  (load bootstrap-file nil 'nomessage))

(straight-use-package 'mini-frame)
(straight-use-package 'ctrlf)

(ctrlf-mode +1)
(mini-frame-mode +1)
@raxod502
Copy link
Member

I can confirm the issue. Thank you for the report.

@raxod502
Copy link
Member

See also radian-software/selectrum#169 (comment).

@JuanGarcia345
Copy link
Author

Thank you very much for your answer, on my side I'm still using the version 26.3 of Emacs

GNU Emacs 26.3 (build 1, x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2020-05-17, modified by Debian

Could this be a problem on the mini-frame side?

@raxod502
Copy link
Member

Unfortunately, I do not know enough about the package to say. You could consider asking the maintainer; perhaps they will be more knowledgeable. It is certainly too early to say which package is at fault, or if it is an Emacs bug.

@muffinmad
Copy link

With mini-frame-mode enabled (window-buffer (minibuffer-selected-window)) will return minibuffer buffer instead of last selected buffer. Thus re-search-forward is running in the minibuffer that leads to the issue.

muffinmad added a commit to muffinmad/emacs-mini-frame that referenced this issue Aug 28, 2020
minibuffer-selected-window must return window selected just before mini-frame window was selected.
radian-software/ctrlf#57
@muffinmad
Copy link

Must be fixed by muffinmad/emacs-mini-frame@41d87d1

@raxod502
Copy link
Member

That's great, thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants