Changeset 6e3bdda in git


Ignore:
Timestamp:
Sep 16, 1999, 1:06:45 PM (25 years ago)
Author:
Tim Wichmann <wichmann@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '38dfc5131670d387a89455159ed1e071997eec94')
Children:
6a0d85b26b900050d5794adc5f301cac04f63c67
Parents:
0f9a8423955ade8ec26e2364b05c1bb951aa7831
Message:
1999-09-16  T. Wichmann  <wichmann@arboretum.itwm.uni-kl.de>

	* singular.el (singular-interactive-mode-menu-2):
	folding/unfolding menu changed

1999-09-15  T. Wichmann  <wichmann@arboretum.itwm.uni-kl.de>

	* singular.el (singular-interactive-mode-menu-2): "Load Demo" menu
	item now is always enabled, if `singular-demo-exit-on-load' is t
	(singular-demo-exit): Added optional argument no-message
	(singular-interactive-font-lock-keywords-3): use
	font-lock-reference-face instead of f-l-reference-name-face


git-svn-id: file:///usr/local/Singular/svn/trunk@3613 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • emacs/singular.el

    r0f9a842 r6e3bdda  
    11;;; singular.el --- Emacs support for Computer Algebra System Singular
    22
    3 ;; $Id: singular.el,v 1.42 1999-09-14 21:00:59 wichmann Exp $
     3;; $Id: singular.el,v 1.43 1999-09-16 11:06:45 wichmann Exp $
    44
    55;;; Commentary:
     
    429429   singular-interactive-font-lock-keywords-2
    430430   '(
    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)
    432436     ))
    433437  "Gaudy level highlighting for Singular interactive mode.")
     
    655659     (list
    656660      "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]
    658663      ["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]
    662664      ["Unfold All Output" singular-folding-unfold-all-output t]
    663       ["Unfold At Point" singular-folding-unfold-at-point t]
    664665      "--"
    665666      (append
     
    668669      ["Load File..." singular-load-file t]
    669670      "---"
    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))]
    671673      ["Exit Demo" singular-demo-exit singular-demo-mode]
    672674      "---"
     
    686688                        "---"
    687689                        ["Preferences" (customize-group 'singular-interactive) t]
    688                         ["Help" singular-help t])))
     690                        ["Singular Help" singular-help t])))
    689691
    690692(defun customize-singular-interactive ()
     
    30423044      (if singular-demo-exit-on-load
    30433045          ;; silently exit running demo
    3044           (singular-demo-exit)
     3046          (singular-demo-exit t)
    30453047        (error "There already is a demo running, exit with `singular-demo-exit' first")))
    30463048
     
    31013103  (force-mode-line-update))
    31023104
    3103 (defun singular-demo-exit ()
     3105(defun singular-demo-exit (&optional no-message)
    31043106  "Prematurely exit Singular demo mode.
    31053107Cleans up everything that is left from the demo.
     
    31173119        ;; this is unwind-protected
    31183120        (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")))))
    31203124
    31213125(defun singular-demo-show-next-chunk ()
     
    38183822  (singular-debug 'interactive
    38193823                  (message "exit-cleanup called"))
    3820   (singular-demo-exit)
     3824  (singular-demo-exit t)
    38213825  (singular-scan-header-exit)
    38223826  (singular-menu-deinstall-libraries)
     
    38313835                    (message "Sentinel: %s" (substring message 0 -1)))
    38323836
    3833     (singular-debug 'interactive
    3834                     (message "Sentinel: proc= %s, mark= %s" process (process-mark process)))
    38353837    (if (string-match "finished\\|exited\\|killed" message)
    38363838        (let ((process-buffer (process-buffer process)))
     
    38513853    (delete-process process)
    38523854    (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!
    38533860      (goto-char mark)
    38543861      (insert "// ** Singular process killed **\n"))))
Note: See TracChangeset for help on using the changeset viewer.