Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correctly preserve original basic-save-buffer. #199

Merged
merged 1 commit into from Jul 8, 2015

Conversation

rothmichaels
Copy link
Contributor

monkey-patch.el was defining an alias live-mp-orig-basic-save-buffer
which was bound to the symbol basic-save-buffer. After redefining
basic-save-buffer with the call (defalias 'basic-save-buffer 'live-mp-new-basic-save-buffer), both basic-save-buffer and
live-mp-orig-basic-save-buffer were both bound to the function
live-mp-new-basic-save-buffer.

Instead, the backup alias should be bound to the function directly, not
the symbol.

*monkey-patch.el* was defining an alias `live-mp-orig-basic-save-buffer`
 which wasz bound to the symbol `basic-save-buffer`. After redefining
 `basic-save-buffer` with the call `(defalias 'basic-save-buffer
 'live-mp-new-basic-save-buffer)`, both `basic-save-buffer` and
 `live-mp-orig-basic-save-buffer` were both bound to the function
 `live-mp-new-basic-save-buffer`.

 Instead, the backup alias should be bound to the function directly, not
 the symbol.
@rothmichaels
Copy link
Contributor Author

Forgot to mention in my original pull request, but the reason this is needed is to be able to revert the functionality of basic-save-buffer.

rothmichaels added a commit to rothmichaels/emacs-live that referenced this pull request May 21, 2015
samaaron added a commit that referenced this pull request Jul 8, 2015
Correctly preserve original `basic-save-buffer`.
@samaaron samaaron merged commit d762752 into overtone:master Jul 8, 2015
@samaaron
Copy link
Member

samaaron commented Jul 8, 2015

Good call, thanks :-)

@rothmichaels rothmichaels deleted the basic-save-buffer-alias branch August 5, 2015 17:18
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.

None yet

2 participants