diff options
| author | Glenn Morris | 2007-11-28 04:17:48 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-11-28 04:17:48 +0000 |
| commit | 488f4498d44840182a299b50d933522d6b190859 (patch) | |
| tree | 32e99f93b9aa2374d3cbba6cb817165b66b99b3f | |
| parent | 9499da3817f0b30a4ba16798c82eb24f465fc29d (diff) | |
| download | emacs-488f4498d44840182a299b50d933522d6b190859.tar.gz emacs-488f4498d44840182a299b50d933522d6b190859.zip | |
Add 2007 to copyright years.
Switch license to standard GPLv3+ text.
(xsdre-gen-categories): Use mapc rather than mapcar.
| -rw-r--r-- | lisp/ChangeLog | 49 | ||||
| -rw-r--r-- | lisp/nxml/xsd-regexp.el | 80 |
2 files changed, 90 insertions, 39 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 6ab8fa7f0eb..0572bddc9d2 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,52 @@ | |||
| 1 | 2007-11-28 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * nxml/nxml-enc.el (xmltok-get-declared-encoding-position): | ||
| 4 | Declare as a function. | ||
| 5 | |||
| 6 | * nxml/nxml-maint.el (nxml-create-unicode-char-name-sets): | ||
| 7 | * nxml/nxml-mode.el (nxml-get-char-name, nxml-insert-named-char): | ||
| 8 | * nxml/xsd-regexp.el (xsdre-gen-categories): Use mapc rather than | ||
| 9 | mapcar. | ||
| 10 | |||
| 11 | * nxml/nxml-outln.el (nxml-token-start-tag-p) | ||
| 12 | (nxml-token-end-tag-p): Move definitions before use. | ||
| 13 | |||
| 14 | * nxml/nxml-rap.el (nxml-prolog-regions): Declare for compiler. | ||
| 15 | |||
| 16 | * nxml/nxml-uchnm.el (top-level) | ||
| 17 | (nxml-enable-unicode-char-name-sets-1): Use mapc rather than mapcar. | ||
| 18 | (nxml-enabled-unicode-blocks): Add custom group. | ||
| 19 | |||
| 20 | * nxml/xmltok.el (xmltok-scan-char-ref, xmltok-char-number): | ||
| 21 | Use string-to-number rather than string-to-int. | ||
| 22 | |||
| 23 | * dired-x.el (dired-omit-old-add-entry): Declare as function. | ||
| 24 | Move definition before use. | ||
| 25 | (dired-old-find-buffer-nocreate): Declare as function. | ||
| 26 | |||
| 27 | * emacs-lisp/check-declare.el (check-declare-locate): Reflow doc. | ||
| 28 | (check-declare-verify): Handle fset. | ||
| 29 | |||
| 30 | * emulation/edt.el (edt-user-emulation-setup): Test | ||
| 31 | edt-setup-user-bindings is bound before calling. | ||
| 32 | |||
| 33 | * emulation/tpu-edt.el: Don't require cl when compiling. | ||
| 34 | (tpu-emacs-search, tpu-emacs-rev-search): Declare as functions. | ||
| 35 | (tpu-edt-off): Use condition-case rather than ignore-errors. | ||
| 36 | Use with-no-warnings. | ||
| 37 | |||
| 38 | * eshell/esh-util.el (top-level): Use require rather than load for | ||
| 39 | ange-ftp. | ||
| 40 | |||
| 41 | * mail/supercite.el (sc-version): Redefine as an alias for | ||
| 42 | emacs-version. | ||
| 43 | (sc-help-address): Remove. | ||
| 44 | (sc-version): Use emacs-version rather than sc-version. | ||
| 45 | (sc-submit-bug-report): Redefine as an alias for report-emacs-bug. | ||
| 46 | |||
| 47 | * net/socks.el (socks-original-open-network-stream): Declare as | ||
| 48 | function. Move definition before use. | ||
| 49 | |||
| 1 | 2007-11-28 Jay Belanger <jay.p.belanger@gmail.com> | 50 | 2007-11-28 Jay Belanger <jay.p.belanger@gmail.com> |
| 2 | 51 | ||
| 3 | * calc/calc-ext.el (math-sqrt-raw, math-map-vec) | 52 | * calc/calc-ext.el (math-sqrt-raw, math-map-vec) |
diff --git a/lisp/nxml/xsd-regexp.el b/lisp/nxml/xsd-regexp.el index 6dbb6a74dd8..a698ce71e60 100644 --- a/lisp/nxml/xsd-regexp.el +++ b/lisp/nxml/xsd-regexp.el | |||
| @@ -1,24 +1,26 @@ | |||
| 1 | ;;; xsd-regexp.el --- translate W3C XML Schema regexps to Emacs regexps | 1 | ;;; xsd-regexp.el --- translate W3C XML Schema regexps to Emacs regexps |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2003 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2003, 2007 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: James Clark | 5 | ;; Author: James Clark |
| 6 | ;; Keywords: XML, regexp | 6 | ;; Keywords: XML, regexp |
| 7 | 7 | ||
| 8 | ;; This program is free software; you can redistribute it and/or | 8 | ;; This file is part of GNU Emacs. |
| 9 | ;; modify it under the terms of the GNU General Public License as | ||
| 10 | ;; published by the Free Software Foundation; either version 2 of | ||
| 11 | ;; the License, or (at your option) any later version. | ||
| 12 | 9 | ||
| 13 | ;; This program is distributed in the hope that it will be | 10 | ;; GNU Emacs is free software; you can redistribute it and/or modify |
| 14 | ;; useful, but WITHOUT ANY WARRANTY; without even the implied | 11 | ;; it under the terms of the GNU General Public License as published by |
| 15 | ;; warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR | 12 | ;; the Free Software Foundation; either version 3, or (at your option) |
| 16 | ;; PURPOSE. See the GNU General Public License for more details. | 13 | ;; any later version. |
| 17 | 14 | ||
| 18 | ;; You should have received a copy of the GNU General Public | 15 | ;; GNU Emacs is distributed in the hope that it will be useful, |
| 19 | ;; License along with this program; if not, write to the Free | 16 | ;; but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 20 | ;; Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, | 17 | ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 21 | ;; MA 02111-1307 USA | 18 | ;; GNU General Public License for more details. |
| 19 | |||
| 20 | ;; You should have received a copy of the GNU General Public License | ||
| 21 | ;; along with GNU Emacs; see the file COPYING. If not, write to the | ||
| 22 | ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
| 23 | ;; Boston, MA 02110-1301, USA. | ||
| 22 | 24 | ||
| 23 | ;;; Commentary: | 25 | ;;; Commentary: |
| 24 | 26 | ||
| @@ -713,7 +715,7 @@ Code is inserted into the current buffer." | |||
| 713 | (save-excursion | 715 | (save-excursion |
| 714 | (set-buffer (find-file-noselect file)) | 716 | (set-buffer (find-file-noselect file)) |
| 715 | (goto-char (point-min)) | 717 | (goto-char (point-min)) |
| 716 | (mapcar (lambda (x) (put x 'xsdre-ranges nil)) xsdre-gen-categories) | 718 | (mapc (lambda (x) (put x 'xsdre-ranges nil)) xsdre-gen-categories) |
| 717 | (while (re-search-forward "^\\([0-9A-Fa-f]*\\);[^;]*;\\([A-Z][a-z]\\);" | 719 | (while (re-search-forward "^\\([0-9A-Fa-f]*\\);[^;]*;\\([A-Z][a-z]\\);" |
| 718 | nil | 720 | nil |
| 719 | t) | 721 | t) |
| @@ -742,31 +744,31 @@ Code is inserted into the current buffer." | |||
| 742 | (cdr ranges)))) | 744 | (cdr ranges)))) |
| 743 | (t | 745 | (t |
| 744 | (put sym 'xsdre-ranges (cons code ranges)))))) | 746 | (put sym 'xsdre-ranges (cons code ranges)))))) |
| 745 | (mapcar (lambda (x) | 747 | (mapc (lambda (x) |
| 746 | (put x | 748 | (put x |
| 747 | 'xsdre-ranges | 749 | 'xsdre-ranges |
| 748 | (nreverse (get x 'xsdre-ranges))) | 750 | (nreverse (get x 'xsdre-ranges))) |
| 749 | nil) | 751 | nil) |
| 750 | xsdre-gen-categories)) | 752 | xsdre-gen-categories)) |
| 751 | (mapcar (lambda (x) | 753 | (mapc (lambda (x) |
| 752 | (let ((start (point))) | 754 | (let ((start (point))) |
| 753 | (pp (list 'xsdre-def-primitive-category | 755 | (pp (list 'xsdre-def-primitive-category |
| 754 | (list 'quote x) | 756 | (list 'quote x) |
| 755 | (list 'quote (get x 'xsdre-ranges))) | 757 | (list 'quote (get x 'xsdre-ranges))) |
| 756 | (current-buffer)) | 758 | (current-buffer)) |
| 757 | (save-excursion | 759 | (save-excursion |
| 758 | (goto-char start) | 760 | (goto-char start) |
| 759 | (down-list 2) | 761 | (down-list 2) |
| 760 | (while (condition-case err | 762 | (while (condition-case err |
| 761 | (progn | 763 | (progn |
| 762 | (forward-sexp) | 764 | (forward-sexp) |
| 763 | t) | 765 | t) |
| 764 | (error nil)) | 766 | (error nil)) |
| 765 | (when (and (< 70 (current-column)) | 767 | (when (and (< 70 (current-column)) |
| 766 | (not (looking-at ")"))) | 768 | (not (looking-at ")"))) |
| 767 | (insert "\n") | 769 | (insert "\n") |
| 768 | (lisp-indent-line)))))) | 770 | (lisp-indent-line)))))) |
| 769 | xsdre-gen-categories)) | 771 | xsdre-gen-categories)) |
| 770 | 772 | ||
| 771 | (defun xsdre-def-primitive-category (sym ranges) | 773 | (defun xsdre-def-primitive-category (sym ranges) |
| 772 | (put sym 'xsdre-ranges ranges) | 774 | (put sym 'xsdre-ranges ranges) |