1 2 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 3 ;; 4 ;; MODULE : init-pari.scm 5 ;; DESCRIPTION : Initialize pari plugin 6 ;; COPYRIGHT : (C) 1999-2020 Joris van der Hoeven, Darcy Shen 7 ;; 8 ;; This software falls under the GNU general public license version 3 or later. 9 ;; It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE 10 ;; in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>. 11 ;; 12 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 13 14 (define (cas-supports-completions-set! must-be-pari) (noop)) ;; obsolete 15 16 (define (pari-commander s) 17 (string-append (char->string #\002) 18 "special:" s 19 (char->string #\005) "\n")) 20 21 (plugin-configure pari 22 (:macpath "Pari*" "Contents/MacOS/PariGP") 23 (:macpath "Pari*" "Contents/Resources/bin") 24 (:winpath "PARI*" ".") 25 (:winpath "Pari*" ".") 26 (:require (url-exists-in-path? "gp")) 27 (:launch "gp --texmacs") 28 (:session "Pari") 29 (:scripts "Pari") 30 (:tab-completion #t) 31 (:commander ,pari-commander)) 32 33 (when (supports-pari?) 34 (import-from (pari-menus)) 35 (plugin-input-converters pari))