diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-11-26 21:52:31 +0100 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-11-26 21:52:31 +0100 |
commit | 775b81c9be65b71a1d3090d5b80398a82ffc54f2 (patch) | |
tree | 48024b94444baf6edaaab5d1ffc4e862c0e6ddfb /elisp/geiser-base.el | |
parent | 0233627d20dd483745c8386b2eb5ff26b355f854 (diff) | |
download | geiser-guile-775b81c9be65b71a1d3090d5b80398a82ffc54f2.tar.gz geiser-guile-775b81c9be65b71a1d3090d5b80398a82ffc54f2.tar.bz2 |
Remove unnecessary calls to symbol-at-point
... which interns the symbol in the global obarray: rather unfriendly.
We still need to remove a few calls to that beast, and avoid intern in
the scheme reader.
Diffstat (limited to 'elisp/geiser-base.el')
-rw-r--r-- | elisp/geiser-base.el | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/elisp/geiser-base.el b/elisp/geiser-base.el index 41fb6fc..65ab061 100644 --- a/elisp/geiser-base.el +++ b/elisp/geiser-base.el @@ -70,6 +70,10 @@ (dolist (e lst (nreverse result)) (unless (member e result) (push e result))))) +(defsubst geiser--symbol-at-point () + (let ((thing (thing-at-point 'symbol))) + (and thing (make-symbol thing)))) + (provide 'geiser-base) ;;; geiser-base.el ends here |