aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1994-02-08 05:06:07 +0000
committerKarl Heuer1994-02-08 05:06:07 +0000
commit297d863be54ff2b6aa0c86c890f8add2118ae878 (patch)
tree42868a3ccd4df574fe0822ab070ad48bac544b0c
parente15068c4db3cc50036c03cfbf1b56113b399265a (diff)
downloademacs-297d863be54ff2b6aa0c86c890f8add2118ae878.tar.gz
emacs-297d863be54ff2b6aa0c86c890f8add2118ae878.zip
(make-syntax-table): Behave like copy-syntax-table if an argument is given,
for backward compatibility.
-rw-r--r--lisp/subr.el42
1 files changed, 22 insertions, 20 deletions
diff --git a/lisp/subr.el b/lisp/subr.el
index d47949ce419..2817d9237de 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -657,29 +657,31 @@ Wildcards and redirection are handled as usual in the shell."
657 start (1+ end))) 657 start (1+ end)))
658 (concat result (substring argument start)))) 658 (concat result (substring argument start))))
659 659
660(defun make-syntax-table () 660(defun make-syntax-table (&optional oldtable)
661 "Return a new syntax table. 661 "Return a new syntax table.
662It inherits all letters and control characters from the standard 662It inherits all letters and control characters from the standard
663syntax table; other characters are copied from the standard syntax table." 663syntax table; other characters are copied from the standard syntax table."
664 (let ((table (copy-syntax-table)) 664 (if oldtable
665 i) 665 (copy-syntax-table oldtable)
666 (setq i 0) 666 (let ((table (copy-syntax-table))
667 (while (<= i 31) 667 i)
668 (aset table i 13) 668 (setq i 0)
669 (setq i (1+ i))) 669 (while (<= i 31)
670 (setq i ?A) 670 (aset table i 13)
671 (while (<= i ?Z) 671 (setq i (1+ i)))
672 (aset table i 13) 672 (setq i ?A)
673 (setq i (1+ i))) 673 (while (<= i ?Z)
674 (setq i ?a) 674 (aset table i 13)
675 (while (<= i ?z) 675 (setq i (1+ i)))
676 (aset table i 13) 676 (setq i ?a)
677 (setq i (1+ i))) 677 (while (<= i ?z)
678 (setq i 128) 678 (aset table i 13)
679 (while (<= i 255) 679 (setq i (1+ i)))
680 (aset table i 13) 680 (setq i 128)
681 (setq i (1+ i))) 681 (while (<= i 255)
682 table)) 682 (aset table i 13)
683 (setq i (1+ i)))
684 table)))
683 685
684;; now in fns.c 686;; now in fns.c
685;(defun nth (n list) 687;(defun nth (n list)