diff options
| author | Paul Eggert | 2011-11-17 01:09:20 -0800 |
|---|---|---|
| committer | Paul Eggert | 2011-11-17 01:09:20 -0800 |
| commit | 4c36be58ca2b4777a5e7bf0d3e692cfd9fa1aea3 (patch) | |
| tree | 04a24b4e53c431ec3deb9281a0454ede7ace7337 /lisp/textmodes | |
| parent | b6e63cbebdac53be5ba3ce9261d7edc8dfda8bf5 (diff) | |
| download | emacs-4c36be58ca2b4777a5e7bf0d3e692cfd9fa1aea3.tar.gz emacs-4c36be58ca2b4777a5e7bf0d3e692cfd9fa1aea3.zip | |
Spelling fixes.
Diffstat (limited to 'lisp/textmodes')
| -rw-r--r-- | lisp/textmodes/artist.el | 4 | ||||
| -rw-r--r-- | lisp/textmodes/reftex-dcr.el | 46 | ||||
| -rw-r--r-- | lisp/textmodes/reftex-global.el | 2 | ||||
| -rw-r--r-- | lisp/textmodes/reftex-toc.el | 4 | ||||
| -rw-r--r-- | lisp/textmodes/reftex.el | 2 | ||||
| -rw-r--r-- | lisp/textmodes/texinfmt.el | 2 |
6 files changed, 30 insertions, 30 deletions
diff --git a/lisp/textmodes/artist.el b/lisp/textmodes/artist.el index 20d9c18c43e..d13437f4c7c 100644 --- a/lisp/textmodes/artist.el +++ b/lisp/textmodes/artist.el | |||
| @@ -2514,7 +2514,7 @@ This function returns a point-list." | |||
| 2514 | 2514 | ||
| 2515 | 2515 | ||
| 2516 | ;; | 2516 | ;; |
| 2517 | ;; functions for accessing endoints and elements in object requiring | 2517 | ;; functions for accessing endpoints and elements in object requiring |
| 2518 | ;; 2 endpoints | 2518 | ;; 2 endpoints |
| 2519 | ;; | 2519 | ;; |
| 2520 | 2520 | ||
| @@ -3582,7 +3582,7 @@ FILL-INFO is a list of vectors on the form [X Y ELLIPSE-WIDTH-ON-THIS-LINE]." | |||
| 3582 | (width (abs (- x2 x1))) | 3582 | (width (abs (- x2 x1))) |
| 3583 | (height (abs (- y2 y1))) | 3583 | (height (abs (- y2 y1))) |
| 3584 | ;; When drawing our circle, we want it to through the cursor | 3584 | ;; When drawing our circle, we want it to through the cursor |
| 3585 | ;; just as when drawing the ellispe, but we have to take | 3585 | ;; just as when drawing the ellipse, but we have to take |
| 3586 | ;; care for the aspect-ratio. | 3586 | ;; care for the aspect-ratio. |
| 3587 | ;; The equation for the ellipse (where a is the x-radius and | 3587 | ;; The equation for the ellipse (where a is the x-radius and |
| 3588 | ;; b is the y-radius): | 3588 | ;; b is the y-radius): |
diff --git a/lisp/textmodes/reftex-dcr.el b/lisp/textmodes/reftex-dcr.el index 9b924ba7ad9..7de15c66cec 100644 --- a/lisp/textmodes/reftex-dcr.el +++ b/lisp/textmodes/reftex-dcr.el | |||
| @@ -59,7 +59,7 @@ to the functions `reftex-view-cr-cite' and `reftex-view-cr-ref'." | |||
| 59 | (error "Not on a crossref macro argument")) | 59 | (error "Not on a crossref macro argument")) |
| 60 | 60 | ||
| 61 | (setq reftex-call-back-to-this-buffer (current-buffer)) | 61 | (setq reftex-call-back-to-this-buffer (current-buffer)) |
| 62 | 62 | ||
| 63 | (cond | 63 | (cond |
| 64 | ((string-match "\\`\\\\cite\\|cite\\*?\\'\\|bibentry" macro) | 64 | ((string-match "\\`\\\\cite\\|cite\\*?\\'\\|bibentry" macro) |
| 65 | ;; A citation macro: search for bibitems or BibTeX entries | 65 | ;; A citation macro: search for bibitems or BibTeX entries |
| @@ -87,7 +87,7 @@ to the functions `reftex-view-cr-cite' and `reftex-view-cr-ref'." | |||
| 87 | (format reftex-find-index-entry-regexp-format | 87 | (format reftex-find-index-entry-regexp-format |
| 88 | (regexp-quote key)) | 88 | (regexp-quote key)) |
| 89 | 3 nil nil))) | 89 | 3 nil nil))) |
| 90 | (t | 90 | (t |
| 91 | (reftex-access-scan-info arg) | 91 | (reftex-access-scan-info arg) |
| 92 | (catch 'exit | 92 | (catch 'exit |
| 93 | (let ((list reftex-view-crossref-extra) | 93 | (let ((list reftex-view-crossref-extra) |
| @@ -97,14 +97,14 @@ to the functions `reftex-view-cr-cite' and `reftex-view-cr-ref'." | |||
| 97 | action (nth 1 entry) | 97 | action (nth 1 entry) |
| 98 | group (nth 2 entry)) | 98 | group (nth 2 entry)) |
| 99 | (when (string-match mre macro) | 99 | (when (string-match mre macro) |
| 100 | (setq dw (reftex-view-regexp-match | 100 | (setq dw (reftex-view-regexp-match |
| 101 | (format action key) group nil nil)) | 101 | (format action key) group nil nil)) |
| 102 | (throw 'exit t)))) | 102 | (throw 'exit t)))) |
| 103 | (error "Not on a crossref macro argument")))) | 103 | (error "Not on a crossref macro argument")))) |
| 104 | (if (and (eq arg 2) (windowp dw)) (select-window dw))))) | 104 | (if (and (eq arg 2) (windowp dw)) (select-window dw))))) |
| 105 | 105 | ||
| 106 | (defun reftex-view-cr-cite (arg key how) | 106 | (defun reftex-view-cr-cite (arg key how) |
| 107 | ;; View crossreference of a ref cite. HOW can have the values | 107 | ;; View crossreference of a ref cite. HOW can have the values |
| 108 | ;; nil: Show in another window. | 108 | ;; nil: Show in another window. |
| 109 | ;; echo: Show one-line info in echo area. | 109 | ;; echo: Show one-line info in echo area. |
| 110 | ;; tmp-window: Show in small window and arrange for window to disappear. | 110 | ;; tmp-window: Show in small window and arrange for window to disappear. |
| @@ -114,7 +114,7 @@ to the functions `reftex-view-cr-cite' and `reftex-view-cr-ref'." | |||
| 114 | 114 | ||
| 115 | (if (eq how 'tmp-window) | 115 | (if (eq how 'tmp-window) |
| 116 | ;; Remember the window configuration | 116 | ;; Remember the window configuration |
| 117 | (put 'reftex-auto-view-crossref 'last-window-conf | 117 | (put 'reftex-auto-view-crossref 'last-window-conf |
| 118 | (current-window-configuration))) | 118 | (current-window-configuration))) |
| 119 | 119 | ||
| 120 | (let (files size item (pos (point)) (win (selected-window)) pop-win | 120 | (let (files size item (pos (point)) (win (selected-window)) pop-win |
| @@ -130,7 +130,7 @@ to the functions `reftex-view-cr-cite' and `reftex-view-cr-ref'." | |||
| 130 | (setq item t | 130 | (setq item t |
| 131 | files (reftex-uniquify | 131 | files (reftex-uniquify |
| 132 | (mapcar 'cdr | 132 | (mapcar 'cdr |
| 133 | (reftex-all-assq | 133 | (reftex-all-assq |
| 134 | 'thebib (symbol-value reftex-docstruct-symbol)))))) | 134 | 'thebib (symbol-value reftex-docstruct-symbol)))))) |
| 135 | (reftex-default-bibliography | 135 | (reftex-default-bibliography |
| 136 | (setq item nil | 136 | (setq item nil |
| @@ -169,17 +169,17 @@ to the functions `reftex-view-cr-cite' and `reftex-view-cr-ref'." | |||
| 169 | (select-window pop-win))))) | 169 | (select-window pop-win))))) |
| 170 | 170 | ||
| 171 | (defun reftex-view-cr-ref (arg label how) | 171 | (defun reftex-view-cr-ref (arg label how) |
| 172 | ;; View crossreference of a ref macro. HOW can have the values | 172 | ;; View crossreference of a ref macro. HOW can have the values |
| 173 | ;; nil: Show in another window. | 173 | ;; nil: Show in another window. |
| 174 | ;; echo: Show one-line info in echo area. | 174 | ;; echo: Show one-line info in echo area. |
| 175 | ;; tmp-window: Show in small window and arrange for window to disappear. | 175 | ;; tmp-window: Show in small window and arrange for window to disappear. |
| 176 | 176 | ||
| 177 | ;; Ensure access to scanning info | 177 | ;; Ensure access to scanning info |
| 178 | (reftex-access-scan-info (or arg current-prefix-arg)) | 178 | (reftex-access-scan-info (or arg current-prefix-arg)) |
| 179 | 179 | ||
| 180 | (if (eq how 'tmp-window) | 180 | (if (eq how 'tmp-window) |
| 181 | ;; Remember the window configuration | 181 | ;; Remember the window configuration |
| 182 | (put 'reftex-auto-view-crossref 'last-window-conf | 182 | (put 'reftex-auto-view-crossref 'last-window-conf |
| 183 | (current-window-configuration))) | 183 | (current-window-configuration))) |
| 184 | 184 | ||
| 185 | (let* ((xr-data (assoc 'xr (symbol-value reftex-docstruct-symbol))) | 185 | (let* ((xr-data (assoc 'xr (symbol-value reftex-docstruct-symbol))) |
| @@ -191,14 +191,14 @@ to the functions `reftex-view-cr-cite' and `reftex-view-cr-ref'." | |||
| 191 | ;; Label is defined in external document | 191 | ;; Label is defined in external document |
| 192 | (save-excursion | 192 | (save-excursion |
| 193 | (save-match-data | 193 | (save-match-data |
| 194 | (set-buffer | 194 | (set-buffer |
| 195 | (or (reftex-get-file-buffer-force | 195 | (or (reftex-get-file-buffer-force |
| 196 | (cdr (assoc (match-string 1 label) (nth 1 | 196 | (cdr (assoc (match-string 1 label) (nth 1 |
| 197 | xr-data)))) | 197 | xr-data)))) |
| 198 | (error "Problem with external label %s" label)))) | 198 | (error "Problem with external label %s" label)))) |
| 199 | (setq label (substring label (match-end 1))) | 199 | (setq label (substring label (match-end 1))) |
| 200 | (reftex-access-scan-info) | 200 | (reftex-access-scan-info) |
| 201 | (setq entry | 201 | (setq entry |
| 202 | (assoc label (symbol-value reftex-docstruct-symbol))))) | 202 | (assoc label (symbol-value reftex-docstruct-symbol))))) |
| 203 | (if (eq how 'echo) | 203 | (if (eq how 'echo) |
| 204 | ;; Display in echo area | 204 | ;; Display in echo area |
| @@ -234,7 +234,7 @@ With argument, actually select the window showing the cross reference." | |||
| 234 | 234 | ||
| 235 | (defun reftex-view-crossref-when-idle () | 235 | (defun reftex-view-crossref-when-idle () |
| 236 | ;; Display info about crossref at point in echo area or a window. | 236 | ;; Display info about crossref at point in echo area or a window. |
| 237 | ;; This function was desigend to work with an idle timer. | 237 | ;; This function was designed to work with an idle timer. |
| 238 | ;; We try to get out of here as quickly as possible if the call is useless. | 238 | ;; We try to get out of here as quickly as possible if the call is useless. |
| 239 | (and reftex-mode | 239 | (and reftex-mode |
| 240 | ;; Make sure message area is free if we need it. | 240 | ;; Make sure message area is free if we need it. |
| @@ -244,7 +244,7 @@ With argument, actually select the window showing the cross reference." | |||
| 244 | reftex-mouse-view-crossref))) | 244 | reftex-mouse-view-crossref))) |
| 245 | ;; Quick precheck if this might be a relevant spot | 245 | ;; Quick precheck if this might be a relevant spot |
| 246 | ;; `reftex-view-crossref' will do a more thorough check. | 246 | ;; `reftex-view-crossref' will do a more thorough check. |
| 247 | (save-excursion | 247 | (save-excursion |
| 248 | (search-backward "\\" nil t) | 248 | (search-backward "\\" nil t) |
| 249 | (looking-at "\\\\[a-zA-Z]*\\(cite\\|ref\\|bibentry\\)")) | 249 | (looking-at "\\\\[a-zA-Z]*\\(cite\\|ref\\|bibentry\\)")) |
| 250 | 250 | ||
| @@ -262,12 +262,12 @@ With argument, actually select the window showing the cross reference." | |||
| 262 | (set-window-configuration (get 'reftex-auto-view-crossref 'last-window-conf)) | 262 | (set-window-configuration (get 'reftex-auto-view-crossref 'last-window-conf)) |
| 263 | (put 'reftex-auto-view-crossref 'last-window-conf nil) | 263 | (put 'reftex-auto-view-crossref 'last-window-conf nil) |
| 264 | (remove-hook 'pre-command-hook 'reftex-restore-window-conf)) | 264 | (remove-hook 'pre-command-hook 'reftex-restore-window-conf)) |
| 265 | 265 | ||
| 266 | (defun reftex-echo-ref (label entry docstruct) | 266 | (defun reftex-echo-ref (label entry docstruct) |
| 267 | ;; Display crossref info in echo area. | 267 | ;; Display crossref info in echo area. |
| 268 | (cond | 268 | (cond |
| 269 | ((null docstruct) | 269 | ((null docstruct) |
| 270 | (message "%s" | 270 | (message "%s" |
| 271 | (substitute-command-keys (format reftex-no-info-message "ref")))) | 271 | (substitute-command-keys (format reftex-no-info-message "ref")))) |
| 272 | ((null entry) | 272 | ((null entry) |
| 273 | (message "ref: unknown label: %s" label)) | 273 | (message "ref: unknown label: %s" label)) |
| @@ -293,14 +293,14 @@ With argument, actually select the window showing the cross reference." | |||
| 293 | (unless reftex-revisit-to-echo | 293 | (unless reftex-revisit-to-echo |
| 294 | (setq files (reftex-visited-files files))) | 294 | (setq files (reftex-visited-files files))) |
| 295 | 295 | ||
| 296 | (setq entry | 296 | (setq entry |
| 297 | (condition-case nil | 297 | (condition-case nil |
| 298 | (save-excursion | 298 | (save-excursion |
| 299 | (reftex-pop-to-bibtex-entry key files nil nil item t)) | 299 | (reftex-pop-to-bibtex-entry key files nil nil item t)) |
| 300 | (error | 300 | (error |
| 301 | (if (and files (= (length all-files) (length files))) | 301 | (if (and files (= (length all-files) (length files))) |
| 302 | (message "cite: no such database entry: %s" key) | 302 | (message "cite: no such database entry: %s" key) |
| 303 | (message "%s" (substitute-command-keys | 303 | (message "%s" (substitute-command-keys |
| 304 | (format reftex-no-info-message "cite")))) | 304 | (format reftex-no-info-message "cite")))) |
| 305 | nil))) | 305 | nil))) |
| 306 | (when entry | 306 | (when entry |
| @@ -337,7 +337,7 @@ will display info in the echo area." | |||
| 337 | (if (featurep 'xemacs) | 337 | (if (featurep 'xemacs) |
| 338 | (if reftex-use-itimer-in-xemacs | 338 | (if reftex-use-itimer-in-xemacs |
| 339 | (start-itimer "RefTeX Idle Timer" | 339 | (start-itimer "RefTeX Idle Timer" |
| 340 | 'reftex-view-crossref-when-idle | 340 | 'reftex-view-crossref-when-idle |
| 341 | reftex-idle-time reftex-idle-time t) | 341 | reftex-idle-time reftex-idle-time t) |
| 342 | (add-hook 'post-command-hook 'reftex-start-itimer-once) | 342 | (add-hook 'post-command-hook 'reftex-start-itimer-once) |
| 343 | t) | 343 | t) |
| @@ -352,7 +352,7 @@ will display info in the echo area." | |||
| 352 | (not (itimer-live-p reftex-auto-view-crossref-timer)) | 352 | (not (itimer-live-p reftex-auto-view-crossref-timer)) |
| 353 | (setq reftex-auto-view-crossref-timer | 353 | (setq reftex-auto-view-crossref-timer |
| 354 | (start-itimer "RefTeX Idle Timer" | 354 | (start-itimer "RefTeX Idle Timer" |
| 355 | 'reftex-view-crossref-when-idle | 355 | 'reftex-view-crossref-when-idle |
| 356 | reftex-idle-time nil t)))) | 356 | reftex-idle-time nil t)))) |
| 357 | 357 | ||
| 358 | (declare-function bibtex-beginning-of-entry "bibtex" ()) | 358 | (declare-function bibtex-beginning-of-entry "bibtex" ()) |
| @@ -364,7 +364,7 @@ prompts upon first use for a buffer in RefTeX mode. To reset this | |||
| 364 | link to a document, call the function with with a prefix arg. | 364 | link to a document, call the function with with a prefix arg. |
| 365 | Calling this function several times find successive citation locations." | 365 | Calling this function several times find successive citation locations." |
| 366 | (interactive "P") | 366 | (interactive "P") |
| 367 | (when arg | 367 | (when arg |
| 368 | ;; Break connection to reference buffer | 368 | ;; Break connection to reference buffer |
| 369 | (put 'reftex-bibtex-view-cite-locations :ref-buffer nil)) | 369 | (put 'reftex-bibtex-view-cite-locations :ref-buffer nil)) |
| 370 | (let ((ref-buffer (get 'reftex-bibtex-view-cite-locations :ref-buffer))) | 370 | (let ((ref-buffer (get 'reftex-bibtex-view-cite-locations :ref-buffer))) |
| @@ -372,10 +372,10 @@ Calling this function several times find successive citation locations." | |||
| 372 | (unless ref-buffer | 372 | (unless ref-buffer |
| 373 | (setq ref-buffer | 373 | (setq ref-buffer |
| 374 | (save-current-buffer | 374 | (save-current-buffer |
| 375 | (completing-read | 375 | (completing-read |
| 376 | "Reference buffer: " | 376 | "Reference buffer: " |
| 377 | (delq nil | 377 | (delq nil |
| 378 | (mapcar | 378 | (mapcar |
| 379 | (lambda (b) | 379 | (lambda (b) |
| 380 | (set-buffer b) | 380 | (set-buffer b) |
| 381 | (if reftex-mode (list (buffer-name b)) nil)) | 381 | (if reftex-mode (list (buffer-name b)) nil)) |
diff --git a/lisp/textmodes/reftex-global.el b/lisp/textmodes/reftex-global.el index b7978fb37b6..bf46635c479 100644 --- a/lisp/textmodes/reftex-global.el +++ b/lisp/textmodes/reftex-global.el | |||
| @@ -230,7 +230,7 @@ one with the `xr' package." | |||
| 230 | ;; Save all document buffers before this operation | 230 | ;; Save all document buffers before this operation |
| 231 | (reftex-save-all-document-buffers) | 231 | (reftex-save-all-document-buffers) |
| 232 | 232 | ||
| 233 | ;; First test to check for erros | 233 | ;; First test to check for errors. |
| 234 | (setq n (reftex-translate | 234 | (setq n (reftex-translate |
| 235 | files search-re translate-alist error-fmt 'test)) | 235 | files search-re translate-alist error-fmt 'test)) |
| 236 | 236 | ||
diff --git a/lisp/textmodes/reftex-toc.el b/lisp/textmodes/reftex-toc.el index dbed09c9ccb..d8b5384c6df 100644 --- a/lisp/textmodes/reftex-toc.el +++ b/lisp/textmodes/reftex-toc.el | |||
| @@ -470,7 +470,7 @@ Label context is only displayed when the labels are there as well." | |||
| 470 | (defun reftex-toc-max-level (arg) | 470 | (defun reftex-toc-max-level (arg) |
| 471 | "Set the maximum level of toc lines in this buffer to value of prefix ARG. | 471 | "Set the maximum level of toc lines in this buffer to value of prefix ARG. |
| 472 | When no prefix is given, set the max level to a large number, so that all | 472 | When no prefix is given, set the max level to a large number, so that all |
| 473 | levels are shown. For eaxample, to set the level to 3, type `3 m'." | 473 | levels are shown. For example, to set the level to 3, type `3 m'." |
| 474 | (interactive "P") | 474 | (interactive "P") |
| 475 | (setq reftex-toc-max-level (if arg | 475 | (setq reftex-toc-max-level (if arg |
| 476 | (prefix-numeric-value arg) | 476 | (prefix-numeric-value arg) |
| @@ -850,7 +850,7 @@ When finished, we exit with an error message." | |||
| 850 | (defun reftex-toc-rename-label () | 850 | (defun reftex-toc-rename-label () |
| 851 | "Rename the currently selected label in the *TOC* buffer. | 851 | "Rename the currently selected label in the *TOC* buffer. |
| 852 | This launches a global search and replace in order to rename a label. | 852 | This launches a global search and replace in order to rename a label. |
| 853 | Renaming a label is hardly ever necessary - the only exeption is after | 853 | Renaming a label is hardly ever necessary - the only exception is after |
| 854 | promotion/demotion in connection with a package like fancyref, where the | 854 | promotion/demotion in connection with a package like fancyref, where the |
| 855 | label prefix determines the wording of a reference." | 855 | label prefix determines the wording of a reference." |
| 856 | (interactive) | 856 | (interactive) |
diff --git a/lisp/textmodes/reftex.el b/lisp/textmodes/reftex.el index c4dbd365c43..b73056a803b 100644 --- a/lisp/textmodes/reftex.el +++ b/lisp/textmodes/reftex.el | |||
| @@ -42,7 +42,7 @@ | |||
| 42 | ;; - For XEmacs 21.x, you need to install the RefTeX plug-in package | 42 | ;; - For XEmacs 21.x, you need to install the RefTeX plug-in package |
| 43 | ;; available from the XEmacs distribution sites. | 43 | ;; available from the XEmacs distribution sites. |
| 44 | ;; - If you have downloaded this file from the maintainers webpage, follow | 44 | ;; - If you have downloaded this file from the maintainers webpage, follow |
| 45 | ;; the instructions in the INSTALL file of the distrubution. | 45 | ;; the instructions in the INSTALL file of the distribution. |
| 46 | ;; | 46 | ;; |
| 47 | ;; To turn RefTeX Mode on and off in a buffer, use `M-x reftex-mode'. | 47 | ;; To turn RefTeX Mode on and off in a buffer, use `M-x reftex-mode'. |
| 48 | ;; | 48 | ;; |
diff --git a/lisp/textmodes/texinfmt.el b/lisp/textmodes/texinfmt.el index 1194742a24c..094885bb0d0 100644 --- a/lisp/textmodes/texinfmt.el +++ b/lisp/textmodes/texinfmt.el | |||
| @@ -620,7 +620,7 @@ if large. You can use `Info-split' to do this manually." | |||
| 620 | "var{\\|" | 620 | "var{\\|" |
| 621 | "w{\\|" | 621 | "w{\\|" |
| 622 | "xref{\\|" | 622 | "xref{\\|" |
| 623 | "@-\\|" ; @- is a descretionary hyphen (not an accent) (a noop). | 623 | "@-\\|" ; @- is a discretionary hyphen (not an accent) (a noop). |
| 624 | texinfo-accent-commands | 624 | texinfo-accent-commands |
| 625 | "\\)" | 625 | "\\)" |
| 626 | ) | 626 | ) |