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

tabbar-buffer-update-groups was not receiving results from tabbar-buffer-list-function #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

TakaakiFuruse
Copy link

I tried to hide some tabs with "*" from my tabbar.
After some google search, I found out that overriding "tabbar-buffer-list" does the work.
So I have added

(defun dotspacemacs/user-config ()
  (defun tabbar-buffer-list ()
    (delq nil
          (mapcar #'(lambda (b)
                      (cond
                       ((eq (current-buffer) b) b)
                       ((char-equal ?\  (aref (buffer-name b) 0)) nil)
                       ((equal "buffer *scratch*" (buffer-name b)) b)
                       ((buffer-live-p b) b)))
                   (buffer-list))))

to my .spacemacs file.

However, strangely, my tabbar kept showing me some buffers with "*".

After the fix. It started working.
I have no experience of Lisp, so I am not sure what I am doing, but I can say it started working.
Would you take look at this?

Editor : Spacemacs 0.200.13 (Emacs 25.3.2)
OS : Mint linux 18.3

@dholm dholm force-pushed the master branch 2 times, most recently from bf9adce to 0aec0e2 Compare July 26, 2018 17:31
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

Successfully merging this pull request may close these issues.

1 participant