Hi, I loaded the new gri-mode.el v2.68 with gri v2.5.11 and got a
small string of errors, some seemingly originating in a few --flagname
instead of -flagname text in the file. All of the --flagname lines
caused the (No such file or directory) error until I changed them to
the format shown in "man gv". But the stopper for me is a problem with
-scale. I'm running gv version 3.5.8
from my Emacs *Messages* buffer trying to plot a valid gri file using the Gri button:
Loading gri-mode (source)...
Loading easymenu...done
Loading gri-mode (source)...done
Loading easy-mmode...done
Using syntax for gri version 2.12.11
Scanning gri functions, variables and synonyms ( 0%)
Scanning gri functions, variables and synonyms (100%)
gri -b -y junk.gri (on newly saved file)
(Shell command succeeded with no output)
Running gri done.
gv -portrait -watch -scale 0 -antialias /home/tom/junk.ps
Gri command completed with no output.
gri-view: gv: Cannot open file -scale 0 (No such file or directory)
Looks like the values are not being passed, rather the tags are when I punch the emacs menu buttons to change scale.
Here are the few lines I had to change to get this far (original lines
commented out):
2920,2923c2920,2926
< "--orientation=landscape"
< "--orientation=portrait")))
< (setq scale (format "--scale=%s" (int-to-string gri*view-scale)))
< (setq watch (if gri*view-watch "--watch" "--nowatch"))
---
> "-landscape"
> "-portrait")))
> ;; "--orientation=landscape"
> ;; "--orientation=portrait")))
> (setq scale (format "-scale %s" (int-to-string gri*view-scale)))
> ;; (setq scale (format "--scale=%s" (int-to-string gri*view-scale)))
> (setq watch (if gri*view-watch "-watch" "-nowatch"))
2925c2928,2929
< (if gri*view-noantialias "--noantialias" "--antialias")))
---
> (if gri*view-noantialias "-noantialias" "-antialias")))
> ;; (if gri*view-noantialias "--noantialias" "--antialias")))
I also put in the gri*view-command customization, which caused an error:
From my .emacs file:
;; gri scientific plotting tool
(setq gri*WWW-program "/usr/bin/mozilla")
(setq gri*WWW-page "/usr/share/doc/gri-2.12.11/html/index.html")
(setq gri*directory-tree "/usr/share/gri")
(autoload 'gri-mode "gri-mode" "Enter gri-mode." t)
(setq auto-mode-alist
(cons '("\\.gri$" . gri-mode) auto-mode-alist))
(add-hook 'emacs-gri-mode-hook 'turn-on-font-lock)
(setq gri*view-command \"gv -media letter\")
Emacs spits out:
An error has occurred while loading `/home/tom/.emacs':
Symbol's value as variable is void: \"gv
Thanks,
Tom
Logged In: YES
user_id=1501047
To find where the break in functionality is, I've reverted down to gri-mode v2.64 and all seems to work. So the break for my setup is between 2.64 and 2.68
Logged In: YES
user_id=1501047
To find where the break in functionality lies with my setup,
I've backed down to gri-mode v2.64 from v2.68 and everything
appears to work.