Skip to content

This command must be called from a menu or a tool bar error on Emacs snapshot CI #330

@condy0919

Description

@condy0919

The error "This command must be called from a menu or a tool bar" comes from kill-this-buffer. The docstring of kill-this-buffer

kill-this-buffer is an interactive byte-code-function in ‘menu-bar.el’.

It can be invoked from the menu: File → Close.

(kill-this-buffer)

Kill the current buffer.
When called in the minibuffer, get out of the minibuffer
using ‘abort-recursive-edit’.

This command can be invoked only from a menu or a tool bar.  If you want
to invoke a similar command with ‘M-x’, use ‘kill-current-buffer’.

suggests to use kill-current-buffer instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions