From: piscesboy on 21 Mar 2010 12:16 I have slime installed on Mac OS X 10.6.2 and have downloaded the hyperspec and placed it in directory: /Library/Application Support/Lisp/Hyperspec-7-0/ I tried configuring slime to open up the hyperspec inside the emacs session whenever I am in lisp mode and type m-x hyperspec-lookup. This is supposed to open up a w3m browser to view the hyperspec page. Here is what my .emacs file looks like: ;file start (add-to-list 'load-path "/opt/local/share/emacs/site-lisp/slime") (require 'slime-autoloads) (setq slime-lisp-implementations `((clisp ("/opt/local/bin/clisp" "-q")) (ccl ("/opt/local/bin/ccl")))) (add-hook 'lisp-mode-hook (lambda () (cond ((not (featurep 'slime)) (require 'slime) (normal-mode))))) (eval-after-load "slime" '(slime-setup '(slime-fancy slime-banner))) (setq common-lisp-hyperspec-root "file:/Library/Application Support/ Lisp/HyperSpec-7-0") (require 'w3m-load) (require 'w3m) ;file end As you can see, clisp and ccl are my two default lisps, and the hyperspec is installed in its directory. I use emacs-w3m web browser to try and open the hyperspec. But when I am in lisp mode editing a file and I type: m-x hyperspec-lookup then the symbol name, nothing happens.
From: Erik Winkels on 21 Mar 2010 15:26 piscesboy <oraclmaster(a)gmail.com> wrote: > > (setq common-lisp-hyperspec-root "file:/Library/Application Support/ > Lisp/HyperSpec-7-0") I don't know anything about OSX and I'm posting from my phone so I can't even check my own config but if the above path is an url then you should need three slashes after "file:" like this: file:///Library/App...
From: piscesboy on 21 Mar 2010 15:33 On Mar 21, 3:26 pm, Erik Winkels <aeri...(a)xs4all.nl> wrote: > piscesboy <oraclmas...(a)gmail.com> wrote: > > > (setq common-lisp-hyperspec-root "file:/Library/Application Support/ > > Lisp/HyperSpec-7-0") > > I don't know anything about OSX and I'm posting from my phone so I can't > even check my own config but if the above path is an url then you should > need three slashes after "file:" > like this: file:///Library/App... I tried changing it. Still nothing happens.
From: vanekl on 21 Mar 2010 16:20 "piscesboy" <oraclmaster(a)gmail.com> wrote in message news:82e45de4-f618-4328-91fc-4c30eddbc9af(a)l25g2000yqd.googlegroups.com... >I have slime installed on Mac OS X 10.6.2 and have downloaded the > hyperspec and placed it in directory: > > /Library/Application Support/Lisp/Hyperspec-7-0/ > > I tried configuring slime to open up the hyperspec inside the emacs > session whenever I am in lisp mode and type m-x hyperspec-lookup. This > is supposed to open up a w3m browser to view the hyperspec page. > > Here is what my .emacs file looks like: > > ;file start > > (add-to-list 'load-path "/opt/local/share/emacs/site-lisp/slime") > (require 'slime-autoloads) > > (setq slime-lisp-implementations > `((clisp ("/opt/local/bin/clisp" "-q")) > (ccl ("/opt/local/bin/ccl")))) > > (add-hook 'lisp-mode-hook > (lambda () > (cond ((not (featurep 'slime)) > (require 'slime) > (normal-mode))))) > > (eval-after-load "slime" > '(slime-setup '(slime-fancy slime-banner))) > > (setq common-lisp-hyperspec-root "file:/Library/Application Support/ > Lisp/HyperSpec-7-0") > (require 'w3m-load) > (require 'w3m) > > ;file end > > As you can see, clisp and ccl are my two default lisps, and the > hyperspec is installed in its directory. I use emacs-w3m web browser > to try and open the hyperspec. > > But when I am in lisp mode editing a file and I type: > > m-x hyperspec-lookup > > then the symbol name, nothing happens. Hyperspec lookup is not performed by either of your CL programs (ccl or clisp), but by Emacs Lisp, so you don't need to spend time trying to make CL work. I don't use w3m so I can't help there. I assume you have tested w3m and know it works, and have tried setting your default browser to something other than w3m. I'm also assuming you have a recent version of slime. Do you have a slime/hyperspec.el file? Try doing a, M-: common-lisp-hyperspec-symbols You should see a list of lisp symbols below the mode line/status bar. If not, your hyperspec.el file is probably not loading. Try doing a, M-x browse-url<rtn>http://www.google.com/ It should open your browser if it is an external program. (not sure what affect it would have with w3m.) [http://www.emacswiki.org/emacs/BrowseUrl] Is your browswer in your path (if you are using an external program such as safari)? Will it start from the command line and from within emacs shell? What happens when you do a M-x shell<return>firefox-or-safari-or-another-external-browser Evaluate: M-: common-lisp-hyperspec-root Is this variable pointing to the right http location? I have mine set to, "http://www.lispworks.com/documentation/HyperSpec/" [careful about the capitalization; some web sites, such as lispworks.com, are case sensitive] The typical web browser does not know how to handle the following single-slash protocol (it's missing two slashes): "file:/Libr... Instead, it should be: "file:///Libr... [http://en.wikipedia.org/wiki/File_URI_scheme#Meaning_of_slash_character] Not sure about w3m, though. What happens when you try, M-: (browse-url "file:///Library/Application Support/Lisp/HyperSpec-7-0/Body/f_car_c.htm") Can you do a, M-: (common-lisp-hyperspec "car") your browser should open on the CL 'car' page. You can try explicitly setting your browser to something other than w3m. If you have firefox installed, in the *scratch* buffer, try evaluating this: (setq browse-url-browser-function 'browse-url-firefox browse-url-new-window-flag t browse-url-firefox-new-window-is-tab t) and then see if hyperspec-lookup works. I hope at least one of the suggestions helped, but since I'm more of a Linux/Windows guy I probably don't have anything more to add if you remain stuck.
From: Pascal J. Bourguignon on 21 Mar 2010 16:27 piscesboy <oraclmaster(a)gmail.com> writes: > On Mar 21, 3:26�pm, Erik Winkels <aeri...(a)xs4all.nl> wrote: >> piscesboy <oraclmas...(a)gmail.com> wrote: >> >> > (setq common-lisp-hyperspec-root "file:/Library/Application Support/ >> > Lisp/HyperSpec-7-0") >> >> I don't know anything about OSX and I'm posting from my phone so I can't >> even check my own config but if the above path is an url then you should >> need three slashes after "file:" >> like this: file:///Library/App... > > I tried changing it. Still nothing happens. I have a final / in my hyperspec root. -- __Pascal Bourguignon__
|
Next
|
Last
Pages: 1 2 Prev: How to check if file is a regular file (not directory)? Next: Not a bug - a feature! |