8000 Comprehensive assertions · Issue #111 · sunrise-commander/sunrise-commander · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Comprehensive assertions #111
Open
Open
@lassik

Description

@lassik

We should probably add an assertion to almost every function that checks the function is called in the right context (i.e. the right kind of buffer and window is active, and Sunrise is in the right state).

The state information should be computed afresh at the start of each interactive command, and cached in a global variable that is dynamically bound via let for the duration of the command. We should probably wrap this into a macro:

(sunrise--in-directory-window
   ...do stuff...)

(sunrise--in-viewer-window
   ...do stuff...)

Could also have

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0