emacs-emojify

fork of https://github.com/iqbalansari/emacs-emojify
Log | Files | Refs | LICENSE

commit 808f1526b154c311a47c96024e62c94a873d3a5a
parent 0f7b2ec972712d389e83cfb7ecab151000a68b74
Author: Iqbal Ansari <iqbalansari02@yahoo.com>
Date:   Sat, 28 Nov 2015 08:48:56 +0530

Make sure we save buffer state while logging in `emojify-message`

Diffstat:
Memojify.el | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/emojify.el b/emojify.el @@ -103,9 +103,10 @@ errors during operation.") This is a substitute to `message' since using it during redisplay causes errors. FORMAT-STRING and ARGS are same as the arguments to `message'." (when emojify-debug-mode - (with-current-buffer (get-buffer-create "emojify-log") - (insert (apply #'format format-string args)) - (insert "\n")))) + (emojify-with-saved-buffer-state + (with-current-buffer (get-buffer-create "emojify-log") + (insert (apply #'format format-string args)) + (insert "\n"))))) (defun emojify--get-relevant-region () "Try getting region in buffer that completely covers the current window."