Changeset 6e3bdda in git
- Timestamp:
- Sep 16, 1999, 1:06:45 PM (25 years ago)
- Branches:
- (u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '38dfc5131670d387a89455159ed1e071997eec94')
- Children:
- 6a0d85b26b900050d5794adc5f301cac04f63c67
- Parents:
- 0f9a8423955ade8ec26e2364b05c1bb951aa7831
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
emacs/singular.el
r0f9a842 r6e3bdda 1 1 ;;; singular.el --- Emacs support for Computer Algebra System Singular 2 2 3 ;; $Id: singular.el,v 1.4 2 1999-09-14 21:00:59wichmann Exp $3 ;; $Id: singular.el,v 1.43 1999-09-16 11:06:45 wichmann Exp $ 4 4 5 5 ;;; Commentary: … … 429 429 singular-interactive-font-lock-keywords-2 430 430 '( 431 ("^ [\\?].*`\\(\\sw\\sw+\\)`" 1 font-lock-reference-name-face t) 431 ;; note: we use font-lock-reference-face here even Emacs says that 432 ;; this face is obsolete and suggests to use font-lock-constant-face, 433 ;; since XEmacs20/21 does not know the constant-face but the 434 ;; reference-face. 435 ("^ [\\?].*`\\(\\sw\\sw+;?\\)`" 1 font-lock-reference-face t) 432 436 )) 433 437 "Gaudy level highlighting for Singular interactive mode.") … … 655 659 (list 656 660 "Commands" 657 ["Fold Latest Output" singular-folding-fold-latest-output t] 661 ["Fold/Unfold Latest Output" singular-folding-toggle-fold-latest-output t] 662 ["Fold/Unfold At Point" singular-folding-toggle-fold-at-point-or-all t] 658 663 ["Fold All Output" singular-folding-fold-all-output t] 659 ["Fold At Point" singular-folding-fold-at-point t]660 "---"661 ["Unfold Latest Output" singular-folding-unfold-latest-output t]662 664 ["Unfold All Output" singular-folding-unfold-all-output t] 663 ["Unfold At Point" singular-folding-unfold-at-point t]664 665 "--" 665 666 (append … … 668 669 ["Load File..." singular-load-file t] 669 670 "---" 670 ["Load Demo" singular-demo-load (not singular-demo-mode)] 671 ["Load Demo..." singular-demo-load (or singular-demo-exit-on-load 672 (not singular-demo-mode))] 671 673 ["Exit Demo" singular-demo-exit singular-demo-mode] 672 674 "---" … … 686 688 "---" 687 689 ["Preferences" (customize-group 'singular-interactive) t] 688 [" Help" singular-help t])))690 ["Singular Help" singular-help t]))) 689 691 690 692 (defun customize-singular-interactive () … … 3042 3044 (if singular-demo-exit-on-load 3043 3045 ;; silently exit running demo 3044 (singular-demo-exit )3046 (singular-demo-exit t) 3045 3047 (error "There already is a demo running, exit with `singular-demo-exit' first"))) 3046 3048 … … 3101 3103 (force-mode-line-update)) 3102 3104 3103 (defun singular-demo-exit ( )3105 (defun singular-demo-exit (&optional no-message) 3104 3106 "Prematurely exit Singular demo mode. 3105 3107 Cleans up everything that is left from the demo. … … 3117 3119 ;; this is unwind-protected 3118 3120 (narrow-to-region old-point-min old-point-max))) 3119 (singular-demo-exit-internal))) 3121 (singular-demo-exit-internal) 3122 (or no-message 3123 (if singular-demo-print-messages (message "Demo exited"))))) 3120 3124 3121 3125 (defun singular-demo-show-next-chunk () … … 3818 3822 (singular-debug 'interactive 3819 3823 (message "exit-cleanup called")) 3820 (singular-demo-exit )3824 (singular-demo-exit t) 3821 3825 (singular-scan-header-exit) 3822 3826 (singular-menu-deinstall-libraries) … … 3831 3835 (message "Sentinel: %s" (substring message 0 -1))) 3832 3836 3833 (singular-debug 'interactive3834 (message "Sentinel: proc= %s, mark= %s" process (process-mark process)))3835 3837 (if (string-match "finished\\|exited\\|killed" message) 3836 3838 (let ((process-buffer (process-buffer process))) … … 3851 3853 (delete-process process) 3852 3854 (save-excursion 3855 ;; Because of timing problems it would be better if 3856 ;; singular-exit-sentinel would insert this string (see Version 1.41) 3857 ;; but this is not possible for XEmacs: The function (process-mark) 3858 ;; called within singular-exit-sentinel returns a mark with no 3859 ;; associated buffer! 3853 3860 (goto-char mark) 3854 3861 (insert "// ** Singular process killed **\n"))))
Note: See TracChangeset
for help on using the changeset viewer.