diff options
| author | Dave Love | 2001-12-12 12:35:36 +0000 |
|---|---|---|
| committer | Dave Love | 2001-12-12 12:35:36 +0000 |
| commit | 5f3648c49c5cd573a0c94bc54d35afe29be58849 (patch) | |
| tree | 89afdff1f67b13d60b35906a91134c348d4ef976 | |
| parent | 0ee25e8e37b5c57a7e8d2e526c189cbf0c5239a6 (diff) | |
| download | emacs-5f3648c49c5cd573a0c94bc54d35afe29be58849.tar.gz emacs-5f3648c49c5cd573a0c94bc54d35afe29be58849.zip | |
Remove autoload cookies. Fix registration
of diacritic composition function.
| -rw-r--r-- | lisp/language/european.el | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/lisp/language/european.el b/lisp/language/european.el index 4020339376f..800e5f79dfd 100644 --- a/lisp/language/european.el +++ b/lisp/language/european.el | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1995, 1997, 2001 Electrotechnical Laboratory, JAPAN. | 3 | ;; Copyright (C) 1995, 1997, 2001 Electrotechnical Laboratory, JAPAN. |
| 4 | ;; Licensed to the Free Software Foundation. | 4 | ;; Licensed to the Free Software Foundation. |
| 5 | ;; Copyright (C) 2001 Free Software Foundation, Inc. | ||
| 5 | 6 | ||
| 6 | ;; Keywords: multilingual, European | 7 | ;; Keywords: multilingual, European |
| 7 | 8 | ||
| @@ -24,7 +25,8 @@ | |||
| 24 | 25 | ||
| 25 | ;;; Commentary: | 26 | ;;; Commentary: |
| 26 | 27 | ||
| 27 | ;; For Europeans, character sets ISO8859-1,2,3,4,9,14,15 are supported. | 28 | ;; For European scripts, character sets ISO8859-1,2,3,4,9,14,15 are |
| 29 | ;; supported. | ||
| 28 | 30 | ||
| 29 | ;;; Code: | 31 | ;;; Code: |
| 30 | 32 | ||
| @@ -544,7 +546,6 @@ but select's the Dutch tutorial.")) | |||
| 544 | 546 | ||
| 545 | (defconst diacritic-composition-pattern "\\C^\\c^+") | 547 | (defconst diacritic-composition-pattern "\\C^\\c^+") |
| 546 | 548 | ||
| 547 | ;;;###autoload | ||
| 548 | (defun diacritic-compose-region (beg end) | 549 | (defun diacritic-compose-region (beg end) |
| 549 | "Compose diacritic characters in the region. | 550 | "Compose diacritic characters in the region. |
| 550 | When called from a program, expects two arguments, | 551 | When called from a program, expects two arguments, |
| @@ -556,7 +557,6 @@ positions (integers or markers) specifying the region." | |||
| 556 | (while (re-search-forward diacritic-composition-pattern nil t) | 557 | (while (re-search-forward diacritic-composition-pattern nil t) |
| 557 | (compose-region (match-beginning 0) (match-end 0))))) | 558 | (compose-region (match-beginning 0) (match-end 0))))) |
| 558 | 559 | ||
| 559 | ;;;###autoload | ||
| 560 | (defun diacritic-compose-string (string) | 560 | (defun diacritic-compose-string (string) |
| 561 | "Compose diacritic characters in STRING and return the resulting string." | 561 | "Compose diacritic characters in STRING and return the resulting string." |
| 562 | (let ((idx 0)) | 562 | (let ((idx 0)) |
| @@ -565,18 +565,15 @@ positions (integers or markers) specifying the region." | |||
| 565 | (setq idx (match-end 0)))) | 565 | (setq idx (match-end 0)))) |
| 566 | string) | 566 | string) |
| 567 | 567 | ||
| 568 | ;;;###autoload | ||
| 569 | (defun diacritic-compose-buffer () | 568 | (defun diacritic-compose-buffer () |
| 570 | "Compose diacritic characters in the current buffer." | 569 | "Compose diacritic characters in the current buffer." |
| 571 | (interactive) | 570 | (interactive) |
| 572 | (diacritic-compose-region (point-min) (point-max))) | 571 | (diacritic-compose-region (point-min) (point-max))) |
| 573 | 572 | ||
| 574 | ;;;###autoload | ||
| 575 | (defun diacritic-post-read-conversion (len) | 573 | (defun diacritic-post-read-conversion (len) |
| 576 | (diacritic-compose-region (point) (+ (point) len)) | 574 | (diacritic-compose-region (point) (+ (point) len)) |
| 577 | len) | 575 | len) |
| 578 | 576 | ||
| 579 | ;;;###autoload | ||
| 580 | (defun diacritic-composition-function (from to pattern &optional string) | 577 | (defun diacritic-composition-function (from to pattern &optional string) |
| 581 | "Compose diacritic text in the region FROM and TO. | 578 | "Compose diacritic text in the region FROM and TO. |
| 582 | The text matches the regular expression PATTERN. | 579 | The text matches the regular expression PATTERN. |
| @@ -592,7 +589,7 @@ The return value is number of composed characters." | |||
| 592 | (- to from)))) | 589 | (- to from)))) |
| 593 | 590 | ||
| 594 | ;; Register a function to compose Unicode diacrtics and marks. | 591 | ;; Register a function to compose Unicode diacrtics and marks. |
| 595 | (let ((patterns '(("\\C^\\c^+" . diacrtic-composition-function)))) | 592 | (let ((patterns '(("\\C^\\c^+" . diacritic-composition-function)))) |
| 596 | (let ((c #x300)) | 593 | (let ((c #x300)) |
| 597 | (while (<= c #x362) | 594 | (while (<= c #x362) |
| 598 | (aset composition-function-table (decode-char 'ucs c) patterns) | 595 | (aset composition-function-table (decode-char 'ucs c) patterns) |