aboutsummaryrefslogtreecommitdiff
path: root/proof.el
diff options
context:
space:
mode:
authorThomas Kleymann1996-11-05 10:13:31 +0000
committerThomas Kleymann1996-11-05 10:13:31 +0000
commit80440a29125778eced50abe8d4eb60ab67b0a7ba (patch)
treea755dd6b91d7e07f00c7353b39ea0770b81520b4 /proof.el
parentb6e9d7e037c2eb6b9088fb06b2c457127db136c0 (diff)
fixed bug in ids-to-regexp and improved regular expression for fontifying LEGO
Diffstat (limited to 'proof.el')
-rw-r--r--proof.el8
1 files changed, 3 insertions, 5 deletions
diff --git a/proof.el b/proof.el
index 26c1e749..96b673bc 100644
--- a/proof.el
+++ b/proof.el
@@ -3,7 +3,7 @@
;; rearranging Thomas Schreiber's code.
;; Maintainer: LEGO Team <lego@dcs.ed.ac.uk>
-;; Time-stamp: <30 Oct 96 tms /home/tms/elisp/proof.el>
+;; Time-stamp: <05 Nov 96 tms /home/tms/elisp/proof.el>
;; Thanks to David Aspinall, Robert Boyer, Rod Burstall,
;; James McKinna, Mark Ruys, Martin Steffen, Perdita Stevens
@@ -129,13 +129,11 @@
s end-of-word-occurence)) separator)))))
+
(defun ids-to-regexp (l)
"transforms a non-empty list of identifiers `l' into a regular
expression matching any of its elements"
- (let ((tail (cdr l))
- (id (concat "\\<" (regexp-quote (car l)) "\\>")))
- (if (atom tail) (regexp-quote id)
- (concat id "\\|" (ids-to-regexp tail)))))
+(mapconcat (lambda (s) (concat "\\<" s "\\>")) l "\\|"))
(defun w3-remove-file-name (address)
"remove the file name in a World Wide Web address"