[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: current working file name in gschemrc



Peter TB Brett wrote:

>   (define %file-print file-print)
>   (define (file-print)
>     (print-command (format #f "lp -d PDF -t \"~A\"" (get-selected-filename)))
>     (gschem-use-rc-values)
>     (%file-print))
> 
> It is horrible and nasty, but it seems to work.

It does work!
How does it work? By replacing an internal gschem script?

I modified the print command line a bit to get the file name
rather than the complete path:
    (print-command (format #f "lp -d PDF -t \"~A\"" (basename (get-selected-filename) ".sch")))
 
What is the prupose of ~A in this line?

---<)kaimartin(>---
-- 
Kai-Martin Knaak
Öffentlicher PGP-Schlüssel:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x6C0B9F53



_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user