:group 'sml)
(defcustom sml-program-name "sml"
- "*Program to run as ML."
- :group 'sml-proc
+ "Program to run as ML."
:type '(string))
(defcustom sml-default-arg ""
- "*Default command line option to pass, if any."
- :group 'sml-proc
+ "Default command line option to pass, if any."
:type '(string))
(defcustom sml-host-name ""
- "*Host on which to run ML."
- :group 'sml-proc
+ "Host on which to run ML."
:type '(string))
(defcustom sml-config-file "~/.smlproc.sml"
- "*File that should be fed to the ML process when started."
- :group 'sml-proc
+ "File that should be fed to the ML process when started."
:type '(string))
(defcustom sml-compile-command "CM.make()"
("CMB.make()" . "pathconfig")
("CM.make()" . "sources.cm")
("use \"load-all\"" . "load-all"))
- "*Commands used by default by `sml-compile'.
+ "Commands used by default by `sml-compile'.
Each command is associated with its \"main\" file.
It is perfectly OK to associate several files with a command or several
commands with the same file.")
specified when running the command \\[sml-cd].")
(defcustom sml-prompt-regexp "^[-=>#] *"
- "*Regexp used to recognise prompts in the inferior ML process."
- :group 'sml-proc
+ "Regexp used to recognise prompts in the inferior ML process."
:type '(regexp))
(defvar sml-error-regexp-alist
(when sml-error-overlay
(unless (overlayp sml-error-overlay)
(let ((ol sml-error-overlay))
- (setq sml-error-overlay (make-overlay 0 0))
+ (setq sml-error-overlay (make-overlay (point) (point)))
(overlay-put sml-error-overlay 'face (if (symbolp ol) ol 'region))))
- (if undo (move-overlay sml-error-overlay 1 1 (current-buffer))
- ;; if active regions, signals mark not active if no region set
- (let ((beg (or beg (region-beginning)))
- (end (or end (region-end))))
- (move-overlay sml-error-overlay beg end (current-buffer))))))
+ (if undo (delete-overlay sml-error-overlay)
+ ;; If active regions, signals mark not active if no region set.
+ (move-overlay sml-error-overlay
+ (or beg (region-beginning)) (or end (region-end))
+ (current-buffer)))))
(provide 'sml-proc)