From d2e44120a83f55e98598bd8d2c7e10f577b97324 Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Thu, 25 Nov 2010 21:01:19 +0100 Subject: Tidier titles for doc browser Just justifying and indenting them. --- elisp/geiser-doc.el | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'elisp') diff --git a/elisp/geiser-doc.el b/elisp/geiser-doc.el index a25dd96..2e8b4a2 100644 --- a/elisp/geiser-doc.el +++ b/elisp/geiser-doc.el @@ -216,12 +216,10 @@ help (e.g. browse an HTML page) implementing this method.") (defun geiser-doc--insert-title (title) (let ((p (point))) - (if (not (listp title)) - (insert (format "%s" title)) - (insert "(" (format "%s" (car title))) - (dolist (a (cdr title)) - (insert " " (if (eq a :rest) "." (format "%s" a)))) - (insert ")")) + (insert (format "%s" title)) + (fill-paragraph) + (let ((indent-line-function 'lisp-indent-line)) + (indent-region p (point))) (put-text-property p (point) 'face 'geiser-font-lock-doc-title) (newline))) -- cgit v1.2.3