"Fossies" - the Fresh Open Source Software Archive

Member "TeXmacs-2.1.2-src/plugins/pari/progs/init-pari.scm" (5 May 2022, 1138 Bytes) of package /linux/misc/TeXmacs-2.1.2-src.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Lisp source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "init-pari.scm": 2.1.1_vs_2.1.2.

    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))