diff options
| author | Thomas Kleymann | 1996-11-05 10:13:31 +0000 |
|---|---|---|
| committer | Thomas Kleymann | 1996-11-05 10:13:31 +0000 |
| commit | 80440a29125778eced50abe8d4eb60ab67b0a7ba (patch) | |
| tree | a755dd6b91d7e07f00c7353b39ea0770b81520b4 /proof.el | |
| parent | b6e9d7e037c2eb6b9088fb06b2c457127db136c0 (diff) | |
fixed bug in ids-to-regexp and improved regular expression for fontifying LEGO
Diffstat (limited to 'proof.el')
| -rw-r--r-- | proof.el | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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" |
