Skip to content

[BUG]: ghostel autoload.el uses buffer-name instead of ghostel-buffer-name #81

Description

@jaidetree

Describe your issue

Opening a ghostel session in a separate workspace opens the previous buffer from another workspace

Claude identified the line:

(window (get-buffer-window buffer-name)))

and claims it should be using ghostel-buffer-name like the following:

(let ((buffer (get-buffer ghostel-buffer-name))
      (window (get-buffer-window ghostel-buffer-name)))

I did try that fix, and it is working now.

Steps to reproduce

  1. Open doom emacs
  2. Open any file from one project, use SPC o t to toggle a ghostel session
  3. Use SPC TAB N to create a new workspace
  4. Open a file in another project dir
  5. Use SPC o t to toggle a ghostel session

Expected

The buffer is based on safe-persp-name and so it opens the buffer specific to the workspace or creates a new shell buffer.

Actual

The last ghostel session is opened regardless of the active workspace

System information

doom-info.txt

Disclosures

  • This issue was written with/by AI.
  • I am using Claude to help diagnose and propose a fix for this issue

I am writing this issue myself, as I don't think anyone actually enjoys communicating with someone else's agent 🙂

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    Open to PRs

    None yet

    Priority

    None yet

    Projects

    • Status
      Unreviewed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions