Skip to content

Conversation

wasamasa
Copy link
Contributor

@wasamasa wasamasa commented Oct 9, 2017

I've leveraged this trick from company-mode's sources where they use it to detect whether an interactive command changed the buffer. It is more reliable than checking for buffer-modified-p as undos don't reset it.

@felipeochoa felipeochoa merged commit c19d07a into felipeochoa:master Oct 9, 2017
@felipeochoa
Copy link
Owner

Thanks for the PR! Learned a cool new trick today 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants