summaryrefslogtreecommitdiff
path: root/elisp
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2013-07-01 15:18:14 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2013-07-01 15:18:14 +0200
commite7786d09fa1a672770efcce970d52ba4649936e1 (patch)
tree87f601408a540815fdf4c7e95ca00a4a38ecb409 /elisp
parent3e6571e855035f1f3bf428eba814c46ec04fb3fc (diff)
downloadgeiser-e7786d09fa1a672770efcce970d52ba4649936e1.tar.gz
geiser-e7786d09fa1a672770efcce970d52ba4649936e1.tar.bz2
Preventing session.el messing up with geiser-doc--history
Session seems to be recovering the value of geiser-doc--history badly (see issue #7 for @achitu's discoveries), and since it is, in fact, not a good idea to save it anyway, we've added an eval-on-load deregistering the variable from session's list.
Diffstat (limited to 'elisp')
-rw-r--r--elisp/geiser-doc.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/elisp/geiser-doc.el b/elisp/geiser-doc.el
index 9d2f98a..7e2970b 100644
--- a/elisp/geiser-doc.el
+++ b/elisp/geiser-doc.el
@@ -1,6 +1,6 @@
;;; geiser-doc.el -- accessing scheme-provided documentation
-;; Copyright (C) 2009, 2010, 2011, 2012 Jose Antonio Ortega Ruiz
+;; Copyright (C) 2009, 2010, 2011, 2012, 2013 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
@@ -62,6 +62,9 @@ help (e.g. browse an HTML page) implementing this method.")
(setq geiser-doc--history (geiser-doc--make-history))
+(eval-after-load "session.el"
+ '(add-to-list 'session-globals-exclude 'geiser-doc--history))
+
(defsubst geiser-doc--history-current ()
(car geiser-doc--history))