-
-
Notifications
You must be signed in to change notification settings - Fork 338
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
opening file from virtual buffer leads to empty buffer #839
Comments
Hello, Just noticed it works when I use "C-x b" instead of "C-x C-b" ! |
Although I found my way out of this issue, it may still be something to fix as my observed behaviour should imho not occur : if a virtual buffer appears in the list, it should be handled normally. |
C-x C-b calls |
Found a similar bug, not sure if I should open a new report: In one of my packages there is some code (not critical, can live without it) that wraps Original report: bmag/ivy-purpose#1 |
Virtual buffers work properly only for
|
I realize that. What I find weird is that the candidates for |
This is caused by the following lines in Lines 1845 to 1846 in dfabc02
Because So this is definitely a bug in Ivy; question is, is it OK to reuse this issue or should I open a new one? |
@basil-conto Let's keep this issue. I agree that this looks like a bug. |
I had the same problem and reading this issue I figured out that purpose mode replaces my binds and calls switch-buffer directly. I thought it should work but #839 (comment) explains why it doesn't. In case some of you use purpose mode that might be it. |
Thanks, please test. |
I've just installed ivy, wanting especially the virtual buffers (fast access to recent files).
Unfortunately, although C-x C-b lists recently opened files, hitting RET on them opens an empty buffer.
I've tried removing big parts of my config file to narrow the issue but got no success.
Here is my config :
`
(use-package counsel
:ensure t
:init
(ivy-mode 1)
:config
(setq ivy-use-virtual-buffers t)
(setq ivy-count-format "(%d/%d) ")
(global-set-key (kbd "C-s") 'swiper)
(global-set-key (kbd "M-x") 'counsel-M-x)
(global-set-key (kbd "C-x C-f") 'counsel-find-file)
(global-set-key (kbd " f") 'counsel-describe-function)
(global-set-key (kbd " v") 'counsel-describe-variable)
(global-set-key (kbd " l") 'counsel-find-library)
(global-set-key (kbd " i") 'counsel-info-lookup-symbol)
(global-set-key (kbd " u") 'counsel-unicode-char)
(global-set-key (kbd "C-c C-r") 'ivy-resume)
(setq ivy-re-builders-alist
'((read-file-name-internal . ivy--regex-fuzzy)
(t . ivy--regex-plus)))
`
I've installed and activated recentf (although the list was correctly populated without) but nothing got better.
The variable ivy--virtual-buffers seems correct :
`
ivy--virtual-buffers is a variable defined in ‘ivy.el’.
Its value is shown below.
Documentation:
Store the virtual buffers alist.
Value:
((#("configuration.org" 0 17
(face ivy-virtual))
. "/home/mikael/.emacs.d/configuration.org")
`
Any idea about what could be wrong or how to debug this further ?
Thanks
Mikael
The text was updated successfully, but these errors were encountered: