Skip to content

Broken helm-find-file when using history #2750

Description

@ermingol23

What happened?

I have configured Helm to use a separate frame (without any decoration), for instance for showing candidates when opening a file. When you press M-p to get to the history and select one of the listed items using 'Return' and then press the 'Backspace' key (without first entering any new characters) you start deleting characters to the left of '.' in the shown buffer. That is after an entry was selected from the history the first three lines in the buffer are

Find Files (C-l: Go up one level).
.
..

When you then press 'Delete' one time you get

Find Files (C-l: Go up one level).
..

(You can control where the deletion starts by pressing up and down arrow keys to select the row where you want to start deleting characters in the buffer)

If you then press 'Delete' 10 more times (nothing more seems to happen until the 10th key-press) you get

.
..

That is the header 'Find Files (C-l: Go up one level)' disappears.

Note: M-p opens up a new frame and if you press 'C-g' instead of 'q' focus moves back to the original frame but you have one "extra frame" left; M-p opens up an additional (borderless) frame instead of reusing the existing pop-up frame. The only way I have found out to close it is to go to 'scratch' buffer and then issue the command '(delete-frame (selected-frame))' in that buffer. If I press 'q' I enter a 'q' into the buffer showing completion suggestions.

How to reproduce?

Start Helm with 'emacs-helm.sh' script.

Configure Helm in 'scratch' buffer

(custom-set-variables
 '(helm-buffers-fuzzy-matching t)
 '(helm-recentf-fuzzy-match t)
 '(helm-display-function 'helm-display-buffer-in-own-frame)
)

Press the following key combinations
'C-x C-f'
'M-p'
<select an entry from the history using 'Return'>
'Backspace'
'C-g'

Restart Emacs using 'emacs-helm.sh' script and configure as above, but do these key-presses instead
'C-x C-f'
'M-p'
'C-g'
'q'

Helm Version

Master branch

Emacs Version

Emacs-30+

OS

GNU/Linux

Relevant backtrace (if possible)


Minimal configuration

  • I agree using a minimal configuration
  • I am not using Spacemacs to reproduce this bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions