diff options
| author | Dave Love | 2000-09-10 22:07:06 +0000 |
|---|---|---|
| committer | Dave Love | 2000-09-10 22:07:06 +0000 |
| commit | e5bed4019b352b652087f18404967b37ae56d2ac (patch) | |
| tree | 03962ec3c5f50b84ef005f096f0606cb8e1a8427 | |
| parent | b5325e7880946f6ced8837e9aa2ca5db9cf85ff0 (diff) | |
| download | emacs-e5bed4019b352b652087f18404967b37ae56d2ac.tar.gz emacs-e5bed4019b352b652087f18404967b37ae56d2ac.zip | |
Minor doc/commentary fixes.
(tildify) <defgroup>: Add :version.
| -rw-r--r-- | lisp/textmodes/tildify.el | 34 |
1 files changed, 15 insertions, 19 deletions
diff --git a/lisp/textmodes/tildify.el b/lisp/textmodes/tildify.el index f9ec25721b1..a49c44bfe4f 100644 --- a/lisp/textmodes/tildify.el +++ b/lisp/textmodes/tildify.el | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | ;; Author: Milan Zamazal <pdm@freesoft.cz> | 5 | ;; Author: Milan Zamazal <pdm@freesoft.cz> |
| 6 | ;; Version: 4.4 | 6 | ;; Version: 4.4 |
| 7 | ;; Keywords: text, TeX, SGML | 7 | ;; Keywords: text, TeX, SGML, wp |
| 8 | 8 | ||
| 9 | ;; This file is part of GNU Emacs. | 9 | ;; This file is part of GNU Emacs. |
| 10 | 10 | ||
| @@ -28,15 +28,16 @@ | |||
| 28 | ;; This package can be typically used for adding forgotten tildes in TeX | 28 | ;; This package can be typically used for adding forgotten tildes in TeX |
| 29 | ;; sources or adding ` ' sequences in SGML (e.g. HTML) texts. | 29 | ;; sources or adding ` ' sequences in SGML (e.g. HTML) texts. |
| 30 | ;; | 30 | ;; |
| 31 | ;; For example, the Czech ortography requires to avoid one letter prepositions | 31 | ;; For example, the Czech ortography requires avoiding one letter |
| 32 | ;; at line endings. So they should be connected with following words by tilde. | 32 | ;; prepositions at line endings. So they should be connected with the |
| 33 | ;; Some users forget to do this all the time. Purpose of this program is to | 33 | ;; following words by a tilde. Some users forget to do this all the |
| 34 | ;; check the text and suggest adding of missing tildes on some places. It | 34 | ;; time. The purpose of this program is to check the text and suggest |
| 35 | ;; works in similar manner like `query-replace-regexp'. | 35 | ;; adding of missing tildes on some places. It works in a similar |
| 36 | ;; manner to `query-replace-regexp'. | ||
| 36 | ;; | 37 | ;; |
| 37 | ;; Functionality of this program is actually performing query replace on | 38 | ;; The functionality of this program is actually performing query |
| 38 | ;; certain regions. But from historical reasons explained above it is called | 39 | ;; replace on certain regions, but for historical reasons explained |
| 39 | ;; `tildify'. | 40 | ;; above it is called `tildify'. |
| 40 | ;; | 41 | ;; |
| 41 | ;; The default variable settings are suited for Czech, so do not try to | 42 | ;; The default variable settings are suited for Czech, so do not try to |
| 42 | ;; understand them if you are not familiar with Czech grammar and spelling. | 43 | ;; understand them if you are not familiar with Czech grammar and spelling. |
| @@ -53,6 +54,7 @@ | |||
| 53 | 54 | ||
| 54 | (defgroup tildify nil | 55 | (defgroup tildify nil |
| 55 | "Adding missing hard spaces or other text fragments into texts." | 56 | "Adding missing hard spaces or other text fragments into texts." |
| 57 | :version "21.1" | ||
| 56 | :group 'wp) | 58 | :group 'wp) |
| 57 | 59 | ||
| 58 | (defcustom tildify-pattern-alist | 60 | (defcustom tildify-pattern-alist |
| @@ -75,8 +77,7 @@ NUMBER defines the number of the REGEXP subexpression which should be replaced | |||
| 75 | by the hard space character. | 77 | by the hard space character. |
| 76 | 78 | ||
| 77 | The form (MAJOR-MODE . SYMBOL) defines alias item for MAJOR-MODE. For this | 79 | The form (MAJOR-MODE . SYMBOL) defines alias item for MAJOR-MODE. For this |
| 78 | mode, the item for the mode SYMBOL is looked up in the alist instead. | 80 | mode, the item for the mode SYMBOL is looked up in the alist instead." |
| 79 | " | ||
| 80 | :group 'tildify | 81 | :group 'tildify |
| 81 | :type '(repeat (choice (list symbol regexp integer) (cons symbol symbol)))) | 82 | :type '(repeat (choice (list symbol regexp integer) (cons symbol symbol)))) |
| 82 | 83 | ||
| @@ -101,8 +102,7 @@ STRING defines the hard space, which is inserted at places defined by | |||
| 101 | for SGML. | 102 | for SGML. |
| 102 | 103 | ||
| 103 | The form (MAJOR-MODE . SYMBOL) defines alias item for MAJOR-MODE. For this | 104 | The form (MAJOR-MODE . SYMBOL) defines alias item for MAJOR-MODE. For this |
| 104 | mode, the item for the mode SYMBOL is looked up in the alist instead. | 105 | mode, the item for the mode SYMBOL is looked up in the alist instead." |
| 105 | " | ||
| 106 | :group 'tildify | 106 | :group 'tildify |
| 107 | :type '(repeat (cons symbol (choice string symbol)))) | 107 | :type '(repeat (cons symbol (choice string symbol)))) |
| 108 | 108 | ||
| @@ -158,8 +158,7 @@ END-REGEX defines end of the corresponding text part and can be either: | |||
| 158 | - a list of regexps and numbers, which will compose the ending regexp by | 158 | - a list of regexps and numbers, which will compose the ending regexp by |
| 159 | concatenating themselves, while replacing the numbers with corresponding | 159 | concatenating themselves, while replacing the numbers with corresponding |
| 160 | subexpressions of BEG-REGEX (this is used to solve cases like | 160 | subexpressions of BEG-REGEX (this is used to solve cases like |
| 161 | \\\\verb<character> in TeX) | 161 | \\\\verb<character> in TeX)." |
| 162 | " | ||
| 163 | :group 'tildify | 162 | :group 'tildify |
| 164 | :type '(repeat (cons symbol (choice symbol (repeat sexp))))) | 163 | :type '(repeat (cons symbol (choice symbol (repeat sexp))))) |
| 165 | 164 | ||
| @@ -211,7 +210,7 @@ This function performs no refilling of the changed text." | |||
| 211 | (setq ask nil) | 210 | (setq ask nil) |
| 212 | (if (eq aux nil) | 211 | (if (eq aux nil) |
| 213 | (setq finish t))))) | 212 | (setq finish t))))) |
| 214 | (if (>= (marker-position z) (marker-position marker-end)) | 213 | (if (>= (marker-position z) (marker-position marker-end)) |
| 215 | (setq finish t)) | 214 | (setq finish t)) |
| 216 | (or (>= (point) (marker-position z)) | 215 | (or (>= (point) (marker-position z)) |
| 217 | (goto-char (marker-position z))) | 216 | (goto-char (marker-position z))) |
| @@ -354,6 +353,3 @@ further questions)." | |||
| 354 | ;; End: | 353 | ;; End: |
| 355 | 354 | ||
| 356 | ;;; tildify.el ends here | 355 | ;;; tildify.el ends here |
| 357 | |||
| 358 | |||
| 359 | |||