@@ -493,37 +493,6 @@ Each element is of the form (ID . DOC) where both ID and DOC are strings.
493493DOC should be a concise single-line string describing the construct in which
494494the keyword is used." )
495495
496- (eval-and-compile
497- (defalias 'haskell-doc-split-string
498- (if (condition-case ()
499- (split-string " " nil t )
500- (wrong-number-of-arguments nil ))
501- 'split-string
502- ; ; copied from Emacs 22
503- (lambda (string &optional separators omit-nulls )
504- (let ((keep-nulls (not (if separators omit-nulls t )))
505- (rexp (or separators " [ \f\t\n\r\v ]+" ))
506- (start 0 )
507- notfirst
508- (list nil ))
509- (while (and (string-match rexp string
510- (if (and notfirst
511- (= start (match-beginning 0 ))
512- (< start (length string)))
513- (1+ start) start))
514- (< start (length string)))
515- (setq notfirst t )
516- (if (or keep-nulls (< start (match-beginning 0 )))
517- (setq list
518- (cons (substring string start (match-beginning 0 ))
519- list )))
520- (setq start (match-end 0 )))
521- (if (or keep-nulls (< start (length string)))
522- (setq list
523- (cons (substring string start)
524- list )))
525- (nreverse list ))))))
526-
527496
528497(defun haskell-doc-extract-types (url )
529498 (with-temp-buffer
@@ -636,7 +605,7 @@ the keyword is used.")
636605 ; ; module vars)
637606 nil )
638607 (setq curclass nil ))
639- (dolist (var (haskell-doc- split-string vars comma-re t ))
608+ (dolist (var (split-string vars comma-re t ))
640609 (if (string-match " (.*)" var) (setq var (substring var 1 -1 )))
641610 (push (cons var type) elems))))
642611 ; ; A datatype decl.
@@ -657,7 +626,7 @@ the keyword is used.")
657626 (if (string-match " ,\\ '" type)
658627 (setq type (substring type 0 -1 )))
659628 (setq type (concat name " -> " type))
660- (dolist (var (haskell-doc- split-string vars comma-re t ))
629+ (dolist (var (split-string vars comma-re t ))
661630 (if (string-match " (.*)" var)
662631 (setq var (substring var 1 -1 )))
663632 (push (cons var type) elems))))))))
@@ -1251,8 +1220,6 @@ URL is the URL of the online doc."
12511220 (append (default-value 'minor-mode-alist )
12521221 '((haskell-doc-mode haskell-doc-minor-mode-string)))))
12531222
1254- ; ; a dummy definition needed for XEmacs (I know, it's horrible :-(
1255-
12561223
12571224(defvar haskell-doc-keymap
12581225 (let ((map (make-sparse-keymap )))
@@ -1490,13 +1457,8 @@ current buffer."
14901457 ; ; In Emacs 19.29 and later, and XEmacs 19.13 and later, all
14911458 ; ; messages are recorded in a log. Do not put haskell-doc messages
14921459 ; ; in that log since they are legion.
1493- (if (eval-when-compile (fboundp 'display-message ))
1494- ; ; XEmacs 19.13 way of preventing log messages.
1495- ; ;(display-message 'no-log (format <args>))
1496- ; ; XEmacs 19.15 seems to be a bit different.
1497- (display-message 'message (format " %s " doc))
1498- (let ((message-log-max nil ))
1499- (message " %s " doc)))))))
1460+ (let ((message-log-max nil ))
1461+ (message " %s " doc))))))
15001462
15011463(defvar haskell-doc-current-info--interaction-last nil
15021464 " If non-nil, a previous eldoc message from an async call, that
0 commit comments