summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2014-09-23 03:20:50 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2014-09-23 03:23:03 +0200
commit8658dc2e8dd89eb21cd035f7a16af10285f99566 (patch)
treedd087e10083acfa5c502af7f06ac04e89571da33
parent354b09ca1d7e1f830bbe3875f1a0a7fc24b14b4d (diff)
downloadgeiser-chez-8658dc2e8dd89eb21cd035f7a16af10285f99566.tar.gz
geiser-chez-8658dc2e8dd89eb21cd035f7a16af10285f99566.tar.bz2
A better name for geiser-doc-symbol--fill-current-symbol
Which moreover complies with the unwritten naming conventions we use: geiser-doc--render-docstring.
-rw-r--r--elisp/geiser-company.el4
-rw-r--r--elisp/geiser-doc.el7
2 files changed, 6 insertions, 5 deletions
diff --git a/elisp/geiser-company.el b/elisp/geiser-company.el
index 1c4b5f0..eea3469 100644
--- a/elisp/geiser-company.el
+++ b/elisp/geiser-company.el
@@ -1,6 +1,6 @@
;; geiser-company.el -- integration with company-mode
-;; Copyright (C) 2009, 2010, 2011, 2012, 2013 Jose Antonio Ortega Ruiz
+;; Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014 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
@@ -49,7 +49,7 @@
(if (or (not ds) (not (listp ds)))
(message "No documentation available for '%s'" symbol)
(with-current-buffer (get-buffer-create "*company-documentation*")
- (geiser-doc-symbol--fill-current-buffer ds symbol module impl)
+ (geiser-doc--render-docstring ds symbol module impl)
(current-buffer)))))
(defun geiser-company--location (id)
diff --git a/elisp/geiser-doc.el b/elisp/geiser-doc.el
index 981a87c..b357bc6 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, 2013 Jose Antonio Ortega Ruiz
+;; Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014 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
@@ -287,7 +287,8 @@ help (e.g. browse an HTML page) implementing this method.")
impl)
impl))))
-(defun geiser-doc-symbol--fill-current-buffer (docstring symbol &optional module impl)
+(defun geiser-doc--render-docstring
+ (docstring symbol &optional module impl)
(erase-buffer)
(geiser-doc--insert-title
(geiser-autodoc--str* (cdr (assoc "signature" docstring))))
@@ -309,7 +310,7 @@ help (e.g. browse an HTML page) implementing this method.")
(if (or (not ds) (not (listp ds)))
(message "No documentation available for '%s'" symbol)
(geiser-doc--with-buffer
- (geiser-doc-symbol--fill-current-buffer ds symbol module impl))
+ (geiser-doc--render-docstring ds symbol module impl))
(geiser-doc--pop-to-buffer)))))
(defun geiser-doc-symbol-at-point (&optional arg)