Changeset 2135c8a in git
- Timestamp:
- Jul 31, 1998, 10:18:30 AM (25 years ago)
- Branches:
- (u'spielwiese', 'df6a8e29030ff93c6ad53051028727af7d339fa0')
- Children:
- 9c935cb36b6c027f643525b80ad9895107ae13e6
- Parents:
- 93d8a1cb14f2b3272db6edf854c5de11ee960447
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
emacs/singular.el
r93d8a1 r2135c8a 1 1 ;;; singular.el --- Emacs support for Computer Algebra System Singular 2 2 3 ;; $Id: singular.el,v 1.1 4 1998-07-31 08:04:32 wichmannExp $3 ;; $Id: singular.el,v 1.15 1998-07-31 08:18:30 schmidt Exp $ 4 4 5 5 ;;; Commentary: … … 58 58 ;;{{{ Debugging stuff 59 59 (defvar singular-debug nil 60 "*List of modes to debug or `all' to debug all modes. 61 Currently, only the mode `interactive' is supported.") 60 "*List of modes to debug or t to debug all modes. 61 Currently, there are the modes `interactive', `interactive-filter', 62 `interactive-simple-secs', and `interactive-sections'.") 62 63 63 64 (defun singular-debug-format (string) … … 159 160 160 161 (make-face 'singular-output-face) 162 ;(set-face-font 'singular-output-face "-adobe-courier-bold-o-*-*-18-*-*-*-*-*-*-*") 161 163 (set-face-background 'singular-output-face "Wheat") 162 164 (defvar singular-output-face 'singular-output-face … … 327 329 More precisely, removes prompts from first beginning of line before 328 330 BEG to END. 329 Removes all but the last prompt of a se uqnce if that sequence ends at331 Removes all but the last prompt of a sequence if that sequence ends at 330 332 END. 331 333 The region between BEG and END should be accessible." … … 806 808 807 809 (defun singular-fold-section (section) 808 "Fold SECTION. 809 Folds section at point and goes to beginning of section if called 810 interactively." 810 "(Un)fold SECTION. 811 (Un)folds section at point and goes to beginning of section if called 812 interactively. 813 Unfolds folded sections and folds unfolded sections." 811 814 (interactive (list (singular-section-at (point)))) 812 815 (let ((start (singular-section-start section)) … … 830 833 ;;}}} 831 834 832 ;;{{{ Debugging input and output filters 835 ;;{{{ Input and output filters 836 837 ;; debugging filters 833 838 (defun singular-debug-input-filter (string) 834 839 "Echo STRING in mini-buffer." … … 842 847 (message "Output filter: %s" 843 848 (singular-debug-format string)))) 849 850 ;; stripping prompts 851 (defun singular-remove-prompt-filter (&optional string) 852 "Strip prompts from last simple section." 853 (singular-remove-prompt comint-last-output-start 854 (singular-process-mark))) 844 855 ;;}}} 845 856 … … 1297 1308 (add-hook 'comint-output-filter-functions 1298 1309 'singular-debug-output-filter nil t)) 1310 (add-hook 'comint-output-filter-functions 1311 'singular-remove-prompt-filter nil t) 1299 1312 1300 1313 (run-hooks 'singular-interactive-mode-hook))
Note: See TracChangeset
for help on using the changeset viewer.