Skip to content

Prefer work buffers to temp buffers #643

@shipmints

Description

@shipmints

The macro with-work-buffer is much more efficient than with-temp-buffer as it reuses buffers from a shared pool and eliminates gc pressure.

Despite work buffers being new to Emacs 31, the Emacs compat library supports with-work-buffer so perhaps backward compatibility is solved and no agent-shell wrapper is needed to switch to work buffers. See https://github.com/emacs-compat/compat/blob/a0d646554730471579de8b33b0194077fd05abe1/compat-31.el#L387

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions