Changeset 5ec0264 in git for emacs


Ignore:
Timestamp:
Jul 2, 1999, 3:45:24 PM (25 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
3a143d010f11f13368af478242ae274faa4b4cf7
Parents:
e8d7926ff7b6049314794666722f0a7b2fae3ed8
Message:
* dirty hack to get fontification the way I wanted it (setting to
keywords-1 did not seem to work)
* starting new demo automatically exits running demo
* key-beinding for exiting demo


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

Legend:

Unmodified
Added
Removed
  • emacs/singular.el

    re8d792 r5ec0264  
    11;;; singular.el --- Emacs support for Computer Algebra System Singular
    22
    3 ;; $Id: singular.el,v 1.26 1998-08-14 06:57:23 wichmann Exp $
     3;; $Id: singular.el,v 1.27 1999-07-02 13:45:24 obachman Exp $
    44
    55;;; Commentary:
     
    216216;              "ring" "string" "vector"))
    217217
     218(defvar singular-font-lock-keywords-0
     219  '(
     220    ("^\\(> \\|. \\)" . font-lock-singular-prompt-face)
     221    ("^   [\\?].*" 0 font-lock-singular-error-face t)
     222    ("^// \\(\\*\\*.*\\)" 1 font-lock-singular-warn-face t)
     223    )
     224  "Subdued level for highlighting in singular-(interactive)-mode")
     225
    218226(defvar singular-font-lock-keywords-1
    219227  '(
     
    234242  "Gaudy level for highlihgting in singular-(interactive)-mode")
    235243
    236 (defvar singular-font-lock-keywords singular-font-lock-keywords-1
     244(defvar singular-font-lock-keywords singular-font-lock-keywords-0
    237245  "Default highlighting for singular-(interactive)-mode")
    238246
    239247(defvar singular-font-lock-defaults
    240248  '((singular-font-lock-keywords
    241      singular-font-lock-keywords-1
    242      singular-font-lock-keywords-2)
     249     singular-font-lock-keywords-0
     250     singular-font-lock-keywords-0)
    243251    nil                   ;; KEYWORDS-ONLY
    244252    nil                   ;; CASE-FOLD (ignore case when non-nil)
     
    278286  (define-key singular-interactive-mode-map "\C-c\C-l" 'singular-load-library)
    279287  (define-key singular-interactive-mode-map "\C-c\C-d" 'singular-demo-load)
     288  (define-key singular-interactive-mode-map "\C-c\C-c\C-d" 'singular-demo-exit)
    280289  (define-key singular-interactive-mode-map "\C-c\C-t" 'singular-toggle-truncate-lines)
    281290  (define-key singular-interactive-mode-map "\C-c$" 'singular-exit-singular)
     
    14741483  ;; check for running demo
    14751484  (and singular-demo-mode
    1476        (error "Another demo is already running"))
     1485       (singular-demo-exit))
    14771486
    14781487  (let ((old-point-min (point-min)))
     
    21382147    ;; pop to buffer
    21392148    (singular-debug 'interactive (message "Calling `pop-to-buffer'"))
    2140     (pop-to-buffer buffer)))
     2149    (pop-to-buffer buffer t)))
    21412150
    21422151;; for convenience only
Note: See TracChangeset for help on using the changeset viewer.