Changeset 2135c8a in git


Ignore:
Timestamp:
Jul 31, 1998, 10:18:30 AM (25 years ago)
Author:
Jens Schmidt <schmidt@…>
Branches:
(u'spielwiese', 'df6a8e29030ff93c6ad53051028727af7d339fa0')
Children:
9c935cb36b6c027f643525b80ad9895107ae13e6
Parents:
93d8a1cb14f2b3272db6edf854c5de11ee960447
Message:
	* singular.el (singular-strip-prompts-filter): new function.
	  Added to `comint-output-filter-functions'.

	* singular.el (singular-debug): doc fix

	* singular.el (singular-process): new macro
	  (singular-remove-prompt): doc fix
	  (singular-fold-section): doc fix


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

Legend:

Unmodified
Added
Removed
  • emacs/singular.el

    r93d8a1 r2135c8a  
    11;;; singular.el --- Emacs support for Computer Algebra System Singular
    22
    3 ;; $Id: singular.el,v 1.14 1998-07-31 08:04:32 wichmann Exp $
     3;; $Id: singular.el,v 1.15 1998-07-31 08:18:30 schmidt Exp $
    44
    55;;; Commentary:
     
    5858;;{{{ Debugging stuff
    5959(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.
     61Currently, there are the modes `interactive', `interactive-filter',
     62`interactive-simple-secs', and `interactive-sections'.")
    6263
    6364(defun singular-debug-format (string)
     
    159160
    160161(make-face 'singular-output-face)
     162;(set-face-font 'singular-output-face "-adobe-courier-bold-o-*-*-18-*-*-*-*-*-*-*")
    161163(set-face-background 'singular-output-face "Wheat")
    162164(defvar singular-output-face 'singular-output-face
     
    327329More precisely, removes prompts from first beginning of line before
    328330BEG to END.
    329 Removes all but the last prompt of a seuqnce if that sequence ends at
     331Removes all but the last prompt of a sequence if that sequence ends at
    330332END.
    331333The region between BEG and END should be accessible."
     
    806808
    807809(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
     812interactively.
     813Unfolds folded sections and folds unfolded sections."
    811814  (interactive (list (singular-section-at (point))))
    812815  (let ((start (singular-section-start section))
     
    830833;;}}}
    831834
    832 ;;{{{ Debugging input and output filters
     835;;{{{ Input and output filters
     836
     837;; debugging filters
    833838(defun singular-debug-input-filter (string)
    834839  "Echo STRING in mini-buffer."
     
    842847                  (message "Output filter: %s"
    843848                           (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)))
    844855;;}}}
    845856
     
    12971308                  (add-hook 'comint-output-filter-functions
    12981309                            'singular-debug-output-filter nil t))
     1310  (add-hook 'comint-output-filter-functions
     1311            'singular-remove-prompt-filter nil t)
    12991312
    13001313  (run-hooks 'singular-interactive-mode-hook))
Note: See TracChangeset for help on using the changeset viewer.