Code Monkey home page Code Monkey logo

Comments (16)

alphapapa avatar alphapapa commented on August 18, 2024 1

I think that should fix it. Please let me know if it seems to fix it. Thanks for your help.

from bufler.el.

adouzzy avatar adouzzy commented on August 18, 2024 1

@alphapapa 🌮 🌮 for the swift support and fix.

from bufler.el.

alphapapa avatar alphapapa commented on August 18, 2024

Thanks for your feedback.

I'll need more specific information to understand what's going on. My ~/org is also a symlink to another directory, but everything works fine for me.

Please give the specific file name of the buffer that is in the Special group, e.g. M-: (buffer-file-name (current-buffer)) RET in that buffer. Also please provide the expanded file name, i.e. M-: (expand-file-name (buffer-file-name (current-buffer))) RET.

As you can see, the *Special* group is for buffers that are not file-backed. And you can see in the code at

(defun bufler-group-dir (dirs depth buffer)
and
(defun bufler-dir-related-p (dir-a dir-b)
that both the buffer's filename and the group predicate's filename are canonicalized, which resolves symlinks. So I don't know what's going on here.

from bufler.el.

adouzzy avatar adouzzy commented on August 18, 2024

Thank you for the advice. I really liked your package.

both commands says "/home/MYUSER/org/XXX.org"
I am using emacs 28.0.50, a snapshot version.
Given more testing, I think this is not only org related.

  • My tab-bar says"DIR: ~/org" and the tab-line under it is empty.
  • For the emacs configs, it works for both tab-bar and tab-line.
  • I also tried another git repo. It suffer the same problem. Yes tab-bar, empty tab-line.
    Any ideas?

from bufler.el.

alphapapa avatar alphapapa commented on August 18, 2024

For the emacs configs, it works for both tab-bar and tab-line.

I don't know what this means.

I also tried another git repo. It suffer the same problem. Yes tab-bar, empty tab-line. Any ideas?

I'll need more information.

  • I assume you have activated bufler-tabs-mode?
  • When the tab-line is empty and you expect it to show buffers:
    • What is the active workspace, and what are its grouping rules?
    • Which buffers do you expect it to show, and what are their major modes, buffer names, and filenames?

It would be helpful if you would provide a copy of the bufler-list buffer, either as text (i.e. C-x h M-w, then paste here as code) or a screenshot.

from bufler.el.

adouzzy avatar adouzzy commented on August 18, 2024

By emacs configs, I mean all the *.el files I have inside ~/.emacs.d

Here is a screen shot of my tab-bar/ tab-line
This is when the tab-line is empty: I expected to see the README.md. (see bufler-list below)
image
This is when the tab-line is populated with buffer:
image

I am using the default grouping rules.

bufler-list output:

*Special* (3)
  **Special** (2)
    *scratch*     144                                                                           
    *Messages*    7.9k                                                                          
  bufler-list-mode (1)
    *Bufler*      604     ~/Project/au-rule-discovery/rule-idea-exploration/                    
Dir: ~/org (1)
  org-mode (1)
    inbox.org     6.8k    /home/zzhou/org/inbox.org                                             
Dir: /home/zzhou/Project/au-rule-discovery/rule-idea-exploration/ (1)
  markdown-mode (1)
    README.md     0       /home/zzhou/Project/au-rule-discovery/rule-idea-exploration/README.md 
Dir: ~/.emacs.d/ (1)
  Dir: /home/zzhou/config/emacsd/subconfigs/ (1)
    emacs-lisp-mode (1)
      wm-conf.el  9.9k    /home/zzhou/config/emacsd/subconfigs/wm-conf.el                             

from bufler.el.

alphapapa avatar alphapapa commented on August 18, 2024

Thanks. Please try the following and see if that causes the buffer to appear in the tab-line:

  1. M-: (setf bufler-cache nil) RET.
  2. Click on a different tab in the tab bar, then on the au-rule-discovery one again.

from bufler.el.

adouzzy avatar adouzzy commented on August 18, 2024

Unfortunetely, it doesn't work
please check the bufler-cache value below

bufler-cache is a variable defined in ‘bufler.el’.
Its value is shown below.

Documentation:
Cache of computed buffer groups.

Value:
(199942533359928048
 ("*Special*"
  (#("**Special**" 0 11
     (face magit-head))
   #<buffer *scratch*> #<buffer *Messages*>)
  (nil
   (#("bufler-list-mode" 0 16
      (face magit-head))
    #<buffer *Bufler*>)))
 (nil
  ("Dir: ~/org"
   (nil
    (#("org-mode" 0 8
       (face magit-head))
     #<buffer handover.org> #<buffer inbox.org>)))
  (#("Dir: /home/zzhou/Project/au-rule-discovery/rule-targeting/" 0 58
     (face magit-section-heading))
   (#("ess-r-mode" 0 10
      (face magit-head))
    #<buffer sandbox.r>))
  (#("Dir: /home/zzhou/Project/au-rule-discovery/rule-idea-exploration/" 0 65
     (face magit-section-heading))
   (#("markdown-mode" 0 13
      (face magit-head))
    #<buffer README.md>)))
 ("Dir: ~/.emacs.d/"
  (#("Dir: /home/zzhou/config/emacsd/subconfigs/" 0 42
     (face magit-section-heading))
   (#("emacs-lisp-mode" 0 15
      (face magit-head))
    #<buffer wm-conf.el>))))

from bufler.el.

alphapapa avatar alphapapa commented on August 18, 2024

Have you activated bufler-mode or only bufler-tabs-mode?

from bufler.el.

alphapapa avatar alphapapa commented on August 18, 2024

Please evaluate this form with the rule-discovery workspace selected and paste the value here:

(list :frame (selected-frame)
      :workspace-path (frame-parameter frame 'bufler-workspace-path)
      :buffers (bufler-buffers :path (frame-parameter frame 'bufler-workspace-path))
      :bufler-workspace-buffers (bufler-workspace-buffers))

from bufler.el.

adouzzy avatar adouzzy commented on August 18, 2024

I says symbol's value as variable is void: frame. I substitute frame to (selected-frame) and got
image

from bufler.el.

alphapapa avatar alphapapa commented on August 18, 2024

What commit of this repo are you running?

from bufler.el.

adouzzy avatar adouzzy commented on August 18, 2024

I installed using quelpa, this following is git log

commit d3c3846ce76a2717494e19edb5d0697e88e4abda (HEAD, origin/master, origin/HEAD)
Author: Adam Porter <[email protected]>
Date:   Mon Mar 9 19:05:54 2020 -0500

    Add/Change: (bufler-vc-refresh)

commit 711847daf506cb9eaad4c4a92431d3007490b57e (grafted, master)
Author: Adam Porter <[email protected]>
Date:   Sun Mar 8 07:44:25 2020 -0500

    Docs: Add basic explanation of 4 major features

from bufler.el.

alphapapa avatar alphapapa commented on August 18, 2024

To ensure that Quelpa has actually installed the latest commit, please do the following:

  1. Delete ~/.emacs.d/elpa/bufler*.
  2. Restart Emacs.
  3. Reinstall Bufler.

from bufler.el.

adouzzy avatar adouzzy commented on August 18, 2024

I did that all the same. I also run a emacs -q session. no change.
Here is the funny thing. when I open a buffer ".gitignore" some wired tab got opened. see top right red part
image

And I ran you debug code under that workspace and got this
image

from bufler.el.

alphapapa avatar alphapapa commented on August 18, 2024

I've located the problem and am working on it. Thanks.

from bufler.el.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.