Documentation Fix for quack.el on Windows
Wednesday, November 5, 2003
I mentioned in my previous posting that I was having trouble with Quack not positioning to the correct section of the HTML documentation under Windows (both IE6 and Mozilla). This was only occurring when the documentation was local (e.g. -- "file://" rather than "http://"). I made a minor mod to quack.el so that:
- If PLT documentation is available locally and the user wants to browse the manual, the local file is used.
- If the PLT keyword indexes and documentation are local and the user wants to jump to the keyword-specific documentation, the local keyword indexes are used but the web-based documentation is accessed (the "(w32-shell-execute "open" url)" form in browse-url on Windows only seems to have a problem linking to node-specific documentation when the documentation is local).
*** 2413,2419 ****
;; keywords for this manual.
(when kw-p
(quack-warning "Could not find keywords file for manual "%S"."
! sym)))))
;; The location is an unrecognized symbol, so just barf.
(t (quack-internal-error))))
;; The location is something other than a string or symbol, so just barf.
--- 2413,2421 ----
;; keywords for this manual.
(when kw-p
(quack-warning "Could not find keywords file for manual "%S"."
! sym)))
! (if (string-match "windows" (symbol-name system-type))
! (setq kw-base web-base))))
;; The location is an unrecognized symbol, so just barf.
(t (quack-internal-error))))
;; The location is something other than a string or symbol, so just barf.Hopefully, Neil will figure out a more permanent fix; however, this will let me use his context-specific help when I'm working with PLT Scheme code.

