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

ibuf-ext.el not loaded #202

Closed
ehrt74 opened this issue Feb 17, 2024 · 2 comments
Closed

ibuf-ext.el not loaded #202

ehrt74 opened this issue Feb 17, 2024 · 2 comments

Comments

@ehrt74
Copy link

ehrt74 commented Feb 17, 2024

on my system i've been having trouble getting perspective to work with ibuffer. i have added the following ibuffer hook:

 (add-hook 'ibuffer-hook
		(lambda ()
		  (persp-ibuffer-set-filter-groups)
		  (unless (eq ibuffer-sorting-mode 'alphabetic)
		    (ibuffer-do-sort-by-alphabetic))))

on opening ibuffer the following error occurs:

persp-ibuffer-generate-filter-groups: Symbol’s function definition is void: ibuffer-remove-duplicates

this seems to be because ibuf-ext.el is not loaded (locate-library confirms this).

to fix this problem i've added a (require 'ibuf-ext) to my init.el. maybe this would be better added somewhere in the perspective code?

@gcv
Copy link
Collaborator

gcv commented Feb 18, 2024

I tried fixing this in 460311b, but since I don't use ibuffer regularly, I'm not sure how to test the fix correctly. It should be in MELPA now. Could you please check if that works?

@ehrt74
Copy link
Author

ehrt74 commented Feb 18, 2024

perfect! it works on my system :)

my use-package for perspective was this

  (use-package perspective
      :ensure t
      :bind (("C-x k" . persp-kill-buffer*)
	   ("s-[" . persp-prev)
	   ("s-]" . persp-next))

      :init
      (persp-mode)
      (setq persp-state-default-file (expand-file-name ".persp" user-emacs-directory))
      (add-hook 'ibuffer-hook
		(lambda ()
		  (require 'ibuf-ext) ;; <- fusxado por certigi ke 'ibuf-ext estas sxargita
		  (persp-ibuffer-set-filter-groups)
		  (unless (eq ibuffer-sorting-mode 'alphabetic)
		    (ibuffer-do-sort-by-alphabetic))))
      (add-hook 'kill-emacs-hook #'persp-state-save)
      (persp-state-load persp-state-default-file)
      (persp-switch "main")
      :custom
      (persp-mode-prefix-key (kbd "C-x x")))

i commented out (require 'ibuf-ext), ran org-babel-tangle and restarted. ibuffer works!!!

thank-you!

@ehrt74 ehrt74 closed this as completed Feb 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants