diff options
| author | Richard M. Stallman | 1994-01-03 07:41:00 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-01-03 07:41:00 +0000 |
| commit | 984f718a65b057dd63c3c3a5fd8ce9da5b87e2bb (patch) | |
| tree | 4012fc21f1076bf796c53368c27c931334d16672 | |
| parent | 4f8804a1e59f29007ccf33fd103ef047bdfcd9b1 (diff) | |
| download | emacs-984f718a65b057dd63c3c3a5fd8ce9da5b87e2bb.tar.gz emacs-984f718a65b057dd63c3c3a5fd8ce9da5b87e2bb.zip | |
(make-syntax-table): New function; no longer an alias
for copy-syntax-table.
| -rw-r--r-- | lisp/subr.el | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/lisp/subr.el b/lisp/subr.el index fce4a56e79b..943c82f4941 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -403,7 +403,6 @@ as returned by the `event-start' and `event-end' functions." | |||
| 403 | 403 | ||
| 404 | ;;;; Obsolescent names for functions. | 404 | ;;;; Obsolescent names for functions. |
| 405 | 405 | ||
| 406 | (defalias 'make-syntax-table 'copy-syntax-table) | ||
| 407 | (defalias 'dot 'point) | 406 | (defalias 'dot 'point) |
| 408 | (defalias 'dot-marker 'point-marker) | 407 | (defalias 'dot-marker 'point-marker) |
| 409 | (defalias 'dot-min 'point-min) | 408 | (defalias 'dot-min 'point-min) |
| @@ -655,6 +654,30 @@ Wildcards and redirection are handle as usual in the shell." | |||
| 655 | start (1+ end))) | 654 | start (1+ end))) |
| 656 | (concat result (substring argument start)))) | 655 | (concat result (substring argument start)))) |
| 657 | 656 | ||
| 657 | (defun make-syntax-table () | ||
| 658 | "Return a new syntax table. | ||
| 659 | It inherits all letters and control characters from the standard | ||
| 660 | syntax table; other characters are copied from the standard syntax table." | ||
| 661 | (let ((table (copy-syntax-table)) | ||
| 662 | i) | ||
| 663 | (setq i 0) | ||
| 664 | (while (<= i 31) | ||
| 665 | (aset table i 13) | ||
| 666 | (setq i (1+ i))) | ||
| 667 | (setq i ?A) | ||
| 668 | (while (<= i ?Z) | ||
| 669 | (aset table i 13) | ||
| 670 | (setq i (1+ i))) | ||
| 671 | (setq i ?a) | ||
| 672 | (while (<= i ?z) | ||
| 673 | (aset table i 13) | ||
| 674 | (setq i (1+ i))) | ||
| 675 | (setq i 128) | ||
| 676 | (while (<= i 255) | ||
| 677 | (aset table i 13) | ||
| 678 | (setq i (1+ i))) | ||
| 679 | table)) | ||
| 680 | |||
| 658 | ;; now in fns.c | 681 | ;; now in fns.c |
| 659 | ;(defun nth (n list) | 682 | ;(defun nth (n list) |
| 660 | ; "Returns the Nth element of LIST. | 683 | ; "Returns the Nth element of LIST. |