summaryrefslogtreecommitdiff
path: root/elisp/geiser-base.el
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2010-09-11 22:46:10 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2010-09-11 22:46:10 +0200
commit5a3362429fc4b3daee7cab0718f2c1cadc467ab3 (patch)
treed5bf72d1c629787aa84904d369c8a365953df83f /elisp/geiser-base.el
parent2c6127d54ed940a988ffc31a7285400d6df16e32 (diff)
downloadgeiser-chez-5a3362429fc4b3daee7cab0718f2c1cadc467ab3.tar.gz
geiser-chez-5a3362429fc4b3daee7cab0718f2c1cadc467ab3.tar.bz2
A better way of doing the above
Diffstat (limited to 'elisp/geiser-base.el')
-rw-r--r--elisp/geiser-base.el11
1 files changed, 10 insertions, 1 deletions
diff --git a/elisp/geiser-base.el b/elisp/geiser-base.el
index 868288c..4793616 100644
--- a/elisp/geiser-base.el
+++ b/elisp/geiser-base.el
@@ -1,6 +1,6 @@
;;; geiser-base.el --- shared bits
-;; Copyright (C) 2009 Jose Antonio Ortega Ruiz
+;; Copyright (C) 2009, 2010 Jose Antonio Ortega Ruiz
;; This program is free software; you can redistribute it and/or
;; modify it under the terms of the Modified BSD License. You should
@@ -67,6 +67,15 @@
(insert str)
(put-text-property p (point) 'face face)))
+
+(defmacro geiser--save-msg (&rest body)
+ (let ((msg (make-symbol "msg")))
+ `(let ((,msg (current-message)))
+ ,@body
+ (message ,msg))))
+
+(put 'geiser--save-msg 'lisp-indent-function 0)
+
(provide 'geiser-base)
;;; geiser-base.el ends here