Dear Wolfgang,
thanks for your quick reply. The error message in the *TEMP* buffer
showed me that it was me who caused the problem -- I did not adjust
the path for ProcedureFinder.ozf as I did in your previous version (I
don't like having such a functor lying in my root directory). As as
idea, you might consider installing this functor as an executable
with ozmake, then the user only needs to make sure that such
executables are in the PATH.
However, it appears that ozfind is not reading me OZRC. Any idea?
Anyway, thanks again for this tool -- it works great and will really
save me time. It now finds my own code, both in a functor and in some
plain OPI file. After the appropriate setting, even my ModuleLink is
accepted. Also things like Number.'*' work now. You workaround for
finding classes with comments like
%% Object::Class, AnotherObject::ClassB
is neat :)
I tried installing Emacs-w3m, but due to its dependencies (e.g.,
gc.h) I better postpone that :)
BTW, there is some browser control contribution in Mogul. It needs
updating, but this idea is rather simple. Below is the idea in a
nutshell, this is a copy from the Mogul contribution with a little
edit I did years ago. I never tried the Windows line, "open" always
works nice on a Mac, but the naive default approach tries to open a
new Firefox instance all the time. There is certainly some way around
that...
declare
% Browser = {Init.getStrasheelaEnv firefox}
Browser = "/Applications/Firefox.app/Contents/MacOS/firefox"
IsWin32=({Property.get 'platform.os'}==win32)
IsMac=({Property.get 'platform.name'}=='i486-darwin')
%%
proc{DisplayUrl URL}
try
if IsWin32 then
%% rundll32 url.dll,FileProtocolHandler http://www.mozart-oz.org
_={OS.exec "rundll32" ["url.dll,FileProtocolHandler" URL] true}
elseif IsMac then
_={OS.exec "open" [URL] true}
else
%% netscape -remote openURL(http://www.mozart-oz.org)
ExitCode={OS.system Browser#" -raise -remote 'openURL("#URL#")'"}
in
if ExitCode\=0 then
%% Command failed, start up the browser with: netscape http://
www.mozart-oz.org
%% {System.showInfo "netscape "#URL}
_={OS.exec Browser [URL] true}
end
end
catch EE then
{OS.wait _ _}
raise browserError(URL EE) end
%% {System.showError "Error bringing up browser\n"#
{Value.toVirtualString EE 100 100}}
end
end
{DisplayUrl "http://www.mozart-oz.org"}
Again, thanks for your tool!
Best
Torsten
On Mar 27, 2008, at 8:09 PM, Wolfgang Meyer wrote:
Dear Torsten,
I'm sorry that ozfind does not (yet) work on your system.
I hope I didn't accidentally introduce a local dependency or something
similar...
If Emacs ends up in dir mode, this usually means that
"ProcedureFinder.ozf" crashed early with an exception. This
exception is
written into a temporary Emacs buffer.
Usually this buffer is closed after execution. To make sure that
we can
see the exception, please change the Lisp function oz-find-
procedure in
".emacs" like this:
;; show source code
(let ((cl (string-to-number (thing-at-point 'line))))
(forward-line)
(let ((cc (string-to-number (thing-at-point 'line))))
;; (kill-buffer nil) ;; OUT-COMMENT THIS LINE
(if (string= fn "self")
(switch-to-buffer cb)
(find-file fn)
)
Re-evaluate oz-find-procedure or restart Emacs.
Now try to use ozfind.
Afterwards look at the contents of the buffer "*TEMP*" (or
"*TEMP*<X>").
Cheers,
Wolfgang
Torsten Anders wrote:
Dear Wolfgang,
thanks for your tool and sorry for my late reply.
Unfortunately, I was not able to install ozfind successfully.
Regardless of what I ask from ozfind, it appears that I always end up
in dir mode (which -- you told before -- means that ozfind
crashed). I
tried both with and without setting the args --mozart-sources etc, I
tried removing my OZRC, and I tried removing my arg --linkPattern --
still, no success.
Is there a way to enable debugging information, so I could give you a
more informative error description?
Thank you!
Best
Torsten
PS: I am using your latest version (just downloaded ozfind 0.1),
Mozart Compiler 1.3.99 (20070703), and
Aquamacs Distribution 1.3a, which is based GNU Emacs 22.1.91.2 -- all
running on MacOS 10.4.10.
On Mar 17, 2008, at 9:53 PM, Wolfgang Meyer wrote:
Dear all,
I finished a new version of my code navigation tool, which from
now on
is called "ozfind".
ozfind is a source code navigation tool and documentation finder for
Mozart/Oz, integrated into GNU Emacs.
Besides a number of bug fixes, it contains two new important
features:
- It is now possible to navigate to the source code of methods (with
some limitations).
- You can now look up the documentation of system functions
directly in
Emacs (with Emacs-w3m installed).
Download: http://code.google.com/p/oz-code/
README: http://ozfind.jottit.com/
Cheers,
Wolfgang
____________________________________________________________________
_____________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users
--
Torsten Anders
Interdisciplinary Centre for Computer Music Research
University of Plymouth
Office: +44-1752-233667
Private: +44-1752-558917
http://strasheela.sourceforge.net
http://www.torsten-anders.de
_____________________________________________________________________
____________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users
______________________________________________________________________
___________
mozart-users mailing list mozart-
[EMAIL PROTECTED]
http://www.mozart-oz.org/mailman/listinfo/mozart-users
--
Torsten Anders
Interdisciplinary Centre for Computer Music Research
University of Plymouth
Office: +44-1752-233667
Private: +44-1752-558917
http://strasheela.sourceforge.net
http://www.torsten-anders.de
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users