[slime-devel] HyperSpec 4.0, section lookup

I would like to suggest the following change to hyperspec.el --- hyperspec.el 30 Jun 2004 19:48:40 +0200 1.5 +++ hyperspec.el 02 Jul 2004 11:51:16 +0200 @@ -1135,10 +1135,9 @@ "") ".htm"))) -(defun common-lisp-hyperpsec-section-4.0 (indices) - (let ((string (format "%sBody/sec%s_" - common-lisp-hyperspec-root - (pop indices)))) +(defun common-lisp-hyperspec-section-4.0 (indices) + (let ((string (format "%sBody/sec_" + common-lisp-hyperspec-root))) (concat string (mapconcat (lambda (n) (format "%d" n)) That section naming works with the hyperspec copy I got. I hope it's the same for all copies. That the function name is misspelled suggests that that function hasn't been tested much. //Lennart Staflin

Lennart Staflin <lenst@lysator.liu.se> writes:
I would like to suggest the following change to hyperspec.el
--- hyperspec.el 30 Jun 2004 19:48:40 +0200 1.5 +++ hyperspec.el 02 Jul 2004 11:51:16 +0200 @@ -1135,10 +1135,9 @@ "") ".htm")))
-(defun common-lisp-hyperpsec-section-4.0 (indices) - (let ((string (format "%sBody/sec%s_" - common-lisp-hyperspec-root - (pop indices)))) +(defun common-lisp-hyperspec-section-4.0 (indices) + (let ((string (format "%sBody/sec_" + common-lisp-hyperspec-root))) (concat string (mapconcat (lambda (n) (format "%d" n))
That section naming works with the hyperspec copy I got. I hope it's the same for all copies. That the function name is misspelled suggests that that function hasn't been tested much.
I doubt it's been tested at all... I only wrote it last week. :-) Sorry, I only tested it for the 6.0 version; the 4.0 version was a best (though apparently not very good) effort. Cheers, Christophe -- http://www-jcsu.jesus.cam.ac.uk/~csr21/ +44 1223 510 299/+44 7729 383 757 (set-pprint-dispatch 'number (lambda (s o) (declare (special b)) (format s b))) (defvar b "~&Just another Lisp hacker~%") (pprint #36rJesusCollegeCambridge)

On Fri, 2 Jul 2004 11:58:22 +0200, Lennart Staflin <lenst@lysator.liu.se> said:
Lennart> I would like to suggest the following change to hyperspec.el Lennart> --- hyperspec.el 30 Jun 2004 19:48:40 +0200 1.5 Lennart> +++ hyperspec.el 02 Jul 2004 11:51:16 +0200 Lennart> @@ -1135,10 +1135,9 @@ Lennart> "") Lennart> ".htm"))) Lennart> -(defun common-lisp-hyperpsec-section-4.0 (indices) Lennart> - (let ((string (format "%sBody/sec%s_" Lennart> - common-lisp-hyperspec-root Lennart> - (pop indices)))) Lennart> +(defun common-lisp-hyperspec-section-4.0 (indices) Lennart> + (let ((string (format "%sBody/sec_" Lennart> + common-lisp-hyperspec-root))) Lennart> (concat string Lennart> (mapconcat (lambda (n) Lennart> (format "%d" n)) Lennart> That section naming works with the hyperspec copy I got. I hope it's Lennart> the same for all copies. That the function name is misspelled suggests Lennart> that that function hasn't been tested much. Yes, that's the right format for the numbered sections in version 4.0. __Martin

Lennart Staflin <lenst@lysator.liu.se> writes:
I would like to suggest the following change to hyperspec.el
Thanks, applied.
--- hyperspec.el 30 Jun 2004 19:48:40 +0200 1.5 +++ hyperspec.el 02 Jul 2004 11:51:16 +0200 @@ -1135,10 +1135,9 @@ "") ".htm")))
-(defun common-lisp-hyperpsec-section-4.0 (indices) - (let ((string (format "%sBody/sec%s_" - common-lisp-hyperspec-root - (pop indices)))) +(defun common-lisp-hyperspec-section-4.0 (indices) + (let ((string (format "%sBody/sec_" + common-lisp-hyperspec-root))) (concat string (mapconcat (lambda (n) (format "%d" n))
participants (4)
-
Christophe Rhodes
-
Lennart Staflin
-
Luke Gorrie
-
Martin Simmons