diff options
| author | Juanma Barranquero | 2010-01-18 05:39:40 +0100 |
|---|---|---|
| committer | Juanma Barranquero | 2010-01-18 05:39:40 +0100 |
| commit | db9e401b3bf3514cadf6fc5a4f15e8c869d0df4c (patch) | |
| tree | 51ac199a0ed2477d0395c7eace93fc8fa4dabf6d | |
| parent | 33972e801477b638f22f4ba3f6e04199d5992124 (diff) | |
| download | emacs-db9e401b3bf3514cadf6fc5a4f15e8c869d0df4c.tar.gz emacs-db9e401b3bf3514cadf6fc5a4f15e8c869d0df4c.zip | |
Fix typos in docstrings, error messages, etc.
| -rw-r--r-- | lisp/ChangeLog | 80 | ||||
| -rw-r--r-- | lisp/cedet/ede/locate.el | 26 | ||||
| -rw-r--r-- | lisp/cedet/semantic.el | 48 | ||||
| -rw-r--r-- | lisp/cedet/semantic/db-ebrowse.el | 12 | ||||
| -rw-r--r-- | lisp/cedet/semantic/db-el.el | 14 | ||||
| -rw-r--r-- | lisp/cedet/semantic/db-find.el | 30 | ||||
| -rw-r--r-- | lisp/cedet/semantic/db-global.el | 12 | ||||
| -rw-r--r-- | lisp/cedet/semantic/db-javascript.el | 18 | ||||
| -rw-r--r-- | lisp/cedet/semantic/idle.el | 8 | ||||
| -rw-r--r-- | lisp/cedet/semantic/util-modes.el | 20 | ||||
| -rw-r--r-- | lisp/cedet/srecode/dictionary.el | 4 | ||||
| -rw-r--r-- | lisp/emacs-lisp/chart.el | 6 | ||||
| -rw-r--r-- | lisp/emacs-lisp/eieio-speedbar.el | 4 | ||||
| -rw-r--r-- | lisp/emacs-lisp/eieio.el | 18 | ||||
| -rw-r--r-- | lisp/emulation/viper-cmd.el | 38 | ||||
| -rw-r--r-- | lisp/net/tramp.el | 2 | ||||
| -rw-r--r-- | lisp/term/x-win.el | 14 | ||||
| -rw-r--r-- | lisp/whitespace.el | 12 | ||||
| -rw-r--r-- | test/ChangeLog | 7 | ||||
| -rw-r--r-- | test/cedet/semantic-tests.el | 10 |
20 files changed, 235 insertions, 148 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d3b9a27a092..e46246e7993 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,83 @@ | |||
| 1 | 2010-01-18 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | |||
| 3 | * cedet/ede/locate.el (ede-locate-file-in-project) | ||
| 4 | (ede-locate-file-in-project-impl): Fix typos in docstrings. | ||
| 5 | (ede-enable-locate-on-project): Fix typos in error messages. | ||
| 6 | |||
| 7 | * cedet/semantic/util-modes.el (semantic-unmatched-syntax-face) | ||
| 8 | (semantic-stickyfunc-old-hlf, semantic-stickyfunc-header-line-format) | ||
| 9 | (semantic-stickyfunc-sticky-classes, semantic-highlight-func-mode-setup) | ||
| 10 | (semantic-stickyfunc-fetch-stickyline): Fix typos in docstrings. | ||
| 11 | (semantic-stickyfunc-popup-menu, semantic-highlight-func-popup-menu): | ||
| 12 | Fix typos in menu help. | ||
| 13 | |||
| 14 | * emacs-lisp/chart.el (chart-file-count, chart-rmail-from): | ||
| 15 | Fix typos in chart titles. | ||
| 16 | |||
| 17 | * whitespace.el (whitespace-style, global-whitespace-newline-mode): | ||
| 18 | * cedet/semantic.el (semantic-require-version, semantic--buffer-cache) | ||
| 19 | (semantic-unmatched-syntax-cache-check, semantic-unmatched-syntax-hook) | ||
| 20 | (semantic--before-fetch-tags-hook, semantic-new-buffer-fcn-was-run) | ||
| 21 | (semantic--umatched-syntax-needs-refresh-p, semantic-elapsed-time) | ||
| 22 | (semantic-parse-stream, semantic-parse-region) | ||
| 23 | (semantic-parse-region-default, semantic--set-buffer-cache) | ||
| 24 | (semantic-minimum-working-buffer-size, semantic-refresh-tags-safe) | ||
| 25 | (semantic-bovinate-toplevel, semantic-load-system-cache-loaded) | ||
| 26 | (semantic-default-submodes): | ||
| 27 | * cedet/semantic/db-ebrowse.el (semanticdb-table-ebrowse) | ||
| 28 | (semanticdb-create-ebrowse-database) | ||
| 29 | (semanticdb-find-tags-for-completion-method) | ||
| 30 | (semanticdb-find-tags-by-class-method) | ||
| 31 | (semanticdb-deep-find-tags-by-name-method) | ||
| 32 | (semanticdb-deep-find-tags-for-completion-method): | ||
| 33 | * cedet/semantic/db-el.el (semanticdb-elisp-mapatom-collector) | ||
| 34 | (semanticdb-find-tags-by-name-method, emacs-lisp-mode) | ||
| 35 | (semanticdb-find-tags-for-completion-method) | ||
| 36 | (semanticdb-find-tags-by-class-method) | ||
| 37 | (semanticdb-deep-find-tags-for-completion-method): | ||
| 38 | * cedet/semantic/db-find.el (semanticdb-find-translate-path) | ||
| 39 | (semanticdb-find-need-cache-update-p, semanticdb-find-result-with-nil-p) | ||
| 40 | (semanticdb-find-scanned-include-tags, semanticdb-find-tags-collector) | ||
| 41 | (semanticdb-find-tags-by-name-method) | ||
| 42 | (semanticdb-find-tags-by-name-regexp-method) | ||
| 43 | (semanticdb-find-tags-for-completion-method) | ||
| 44 | (semanticdb-find-tags-by-class-method) | ||
| 45 | (semanticdb-find-tags-external-children-of-type-method) | ||
| 46 | (semanticdb-find-tags-subclasses-of-type-method) | ||
| 47 | (semanticdb-deep-find-tags-by-name-method) | ||
| 48 | (semanticdb-deep-find-tags-by-name-regexp-method) | ||
| 49 | (semanticdb-deep-find-tags-for-completion-method): | ||
| 50 | * cedet/semantic/db-global.el (semanticdb-enable-gnu-global-hook) | ||
| 51 | (semanticdb-enable-gnu-global-in-buffer) | ||
| 52 | (semanticdb-find-tags-for-completion-method) | ||
| 53 | (semanticdb-deep-find-tags-by-name-method) | ||
| 54 | (semanticdb-deep-find-tags-for-completion-method): | ||
| 55 | * cedet/semantic/db-javascript.el (semanticdb-javascript-tags) | ||
| 56 | (javascript-mode, semanticdb-find-translate-path) | ||
| 57 | (semanticdb-find-tags-for-completion-method) | ||
| 58 | (semanticdb-find-tags-by-class-method) | ||
| 59 | (semanticdb-deep-find-tags-by-name-method) | ||
| 60 | (semanticdb-deep-find-tags-for-completion-method) | ||
| 61 | (semanticdb-find-tags-external-children-of-type-method): | ||
| 62 | * cedet/semantic/idle.el (semantic-idle-work-core-handler) | ||
| 63 | (define-semantic-idle-service, semantic-idle-summary-useful-context-p) | ||
| 64 | (global-semantic-idle-scheduler-mode): | ||
| 65 | * cedet/srecode/dictionary.el (srecode-field-value) | ||
| 66 | (srecode-dictionary-add-section-dictionary): | ||
| 67 | * emacs-lisp/eieio.el (eieio-error-unsupported-class-tags) | ||
| 68 | (eieio-generic-form, eieio-help-mode-augmentation-maybee, eieio-browse) | ||
| 69 | (describe-class, eieio-describe-generic, describe-generic): | ||
| 70 | * emacs-lisp/eieio-speedbar.el (eieio-speedbar-handle-click) | ||
| 71 | (eieio-speedbar-expand): | ||
| 72 | * emulation/viper-cmd.el (viper-exec-form-in-vi) | ||
| 73 | (viper-exec-form-in-emacs, viper-harness-minor-mode, viper-ESC) | ||
| 74 | (viper-repeat, viper-replace-state-exit-cmd, viper-toggle-search-style) | ||
| 75 | (viper-del-backward-char-in-replace, viper-backward-indent) | ||
| 76 | (viper-brac-function, viper-register-to-point, viper-submit-report): | ||
| 77 | * net/tramp.el (tramp-remote-coding-commands): | ||
| 78 | * term/x-win.el (emacs-session-save, x-menu-bar-open, icon-map-list): | ||
| 79 | Fix typos in docstrings. | ||
| 80 | |||
| 1 | 2010-01-17 Dan Nicolaescu <dann@ics.uci.edu> | 81 | 2010-01-17 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 82 | ||
| 3 | * vc.el (with-vc-properties): Deal with directory arguments. (Bug#5298) | 83 | * vc.el (with-vc-properties): Deal with directory arguments. (Bug#5298) |
diff --git a/lisp/cedet/ede/locate.el b/lisp/cedet/ede/locate.el index 0f9e4b22be2..099e193f010 100644 --- a/lisp/cedet/ede/locate.el +++ b/lisp/cedet/ede/locate.el | |||
| @@ -97,7 +97,7 @@ based on `ede-locate-setup-options'." | |||
| 97 | (setq ans 'ede-locate-base)) | 97 | (setq ans 'ede-locate-base)) |
| 98 | (oset proj locate-obj (make-instance ans "Loc" :root root)) | 98 | (oset proj locate-obj (make-instance ans "Loc" :root root)) |
| 99 | (when (called-interactively-p 'interactive) | 99 | (when (called-interactively-p 'interactive) |
| 100 | (message "Setting locator to %s." ans)) | 100 | (message "Setting locator to %s" ans)) |
| 101 | )) | 101 | )) |
| 102 | 102 | ||
| 103 | ;;; LOCATE BASECLASS | 103 | ;;; LOCATE BASECLASS |
| @@ -142,9 +142,9 @@ based on `ede-locate-setup-options'." | |||
| 142 | (defmethod ede-locate-file-in-project ((loc ede-locate-base) | 142 | (defmethod ede-locate-file-in-project ((loc ede-locate-base) |
| 143 | filesubstring | 143 | filesubstring |
| 144 | ) | 144 | ) |
| 145 | "Locate with LOC occurances of FILESUBSTRING. | 145 | "Locate with LOC occurrences of FILESUBSTRING. |
| 146 | Searches are done under the current root of the EDE project | 146 | Searches are done under the current root of the EDE project |
| 147 | that crated this ede locat object." | 147 | that created this EDE locate object." |
| 148 | (let ((ans (ede-locate-file-in-project-impl loc filesubstring)) | 148 | (let ((ans (ede-locate-file-in-project-impl loc filesubstring)) |
| 149 | ) | 149 | ) |
| 150 | (oset loc file filesubstring) | 150 | (oset loc file filesubstring) |
| @@ -154,9 +154,9 @@ that crated this ede locat object." | |||
| 154 | (defmethod ede-locate-file-in-project-impl ((loc ede-locate-base) | 154 | (defmethod ede-locate-file-in-project-impl ((loc ede-locate-base) |
| 155 | filesubstring | 155 | filesubstring |
| 156 | ) | 156 | ) |
| 157 | "Locate with LOC occurances of FILESUBSTRING. | 157 | "Locate with LOC occurrences of FILESUBSTRING. |
| 158 | Searches are done under the current root of the EDE project | 158 | Searches are done under the current root of the EDE project |
| 159 | that crated this ede locat object." | 159 | that created this EDE locate object." |
| 160 | nil | 160 | nil |
| 161 | ) | 161 | ) |
| 162 | 162 | ||
| @@ -180,9 +180,9 @@ configure the use of EDE locate.") | |||
| 180 | 180 | ||
| 181 | (defmethod ede-locate-file-in-project-impl ((loc ede-locate-locate) | 181 | (defmethod ede-locate-file-in-project-impl ((loc ede-locate-locate) |
| 182 | filesubstring) | 182 | filesubstring) |
| 183 | "Locate with LOC occurances of FILESUBSTRING under PROJECTROOT. | 183 | "Locate with LOC occurrences of FILESUBSTRING under PROJECTROOT. |
| 184 | Searches are done under the current root of the EDE project | 184 | Searches are done under the current root of the EDE project |
| 185 | that crated this ede locat object." | 185 | that created this EDE locate object." |
| 186 | ;; We want something like: | 186 | ;; We want something like: |
| 187 | ;; /my/project/root*/filesubstring.c | 187 | ;; /my/project/root*/filesubstring.c |
| 188 | (let* ((searchstr (concat (directory-file-name (oref loc root)) | 188 | (let* ((searchstr (concat (directory-file-name (oref loc root)) |
| @@ -235,9 +235,9 @@ variable `cedet-global-command'.") | |||
| 235 | 235 | ||
| 236 | (defmethod ede-locate-file-in-project-impl ((loc ede-locate-global) | 236 | (defmethod ede-locate-file-in-project-impl ((loc ede-locate-global) |
| 237 | filesubstring) | 237 | filesubstring) |
| 238 | "Locate with LOC occurances of FILESUBSTRING under PROJECTROOT. | 238 | "Locate with LOC occurrences of FILESUBSTRING under PROJECTROOT. |
| 239 | Searches are done under the current root of the EDE project | 239 | Searches are done under the current root of the EDE project |
| 240 | that crated this ede locat object." | 240 | that created this EDE locate object." |
| 241 | (require 'cedet-global) | 241 | (require 'cedet-global) |
| 242 | (let ((default-directory (oref loc root))) | 242 | (let ((default-directory (oref loc root))) |
| 243 | (cedet-gnu-global-expand-filename filesubstring))) | 243 | (cedet-gnu-global-expand-filename filesubstring))) |
| @@ -273,9 +273,9 @@ file name searching variable `cedet-idutils-file-command'.") | |||
| 273 | 273 | ||
| 274 | (defmethod ede-locate-file-in-project-impl ((loc ede-locate-idutils) | 274 | (defmethod ede-locate-file-in-project-impl ((loc ede-locate-idutils) |
| 275 | filesubstring) | 275 | filesubstring) |
| 276 | "Locate with LOC occurances of FILESUBSTRING under PROJECTROOT. | 276 | "Locate with LOC occurrences of FILESUBSTRING under PROJECTROOT. |
| 277 | Searches are done under the current root of the EDE project | 277 | Searches are done under the current root of the EDE project |
| 278 | that crated this ede locat object." | 278 | that created this EDE locate object." |
| 279 | (require 'cedet-idutils) | 279 | (require 'cedet-idutils) |
| 280 | (let ((default-directory (oref loc root))) | 280 | (let ((default-directory (oref loc root))) |
| 281 | (cedet-idutils-expand-filename filesubstring))) | 281 | (cedet-idutils-expand-filename filesubstring))) |
| @@ -309,9 +309,9 @@ file name searching variable `cedet-cscope-file-command'.") | |||
| 309 | 309 | ||
| 310 | (defmethod ede-locate-file-in-project-impl ((loc ede-locate-cscope) | 310 | (defmethod ede-locate-file-in-project-impl ((loc ede-locate-cscope) |
| 311 | filesubstring) | 311 | filesubstring) |
| 312 | "Locate with LOC occurances of FILESUBSTRING under PROJECTROOT. | 312 | "Locate with LOC occurrences of FILESUBSTRING under PROJECTROOT. |
| 313 | Searches are done under the current root of the EDE project | 313 | Searches are done under the current root of the EDE project |
| 314 | that crated this ede locat object." | 314 | that created this EDE locate object." |
| 315 | (let ((default-directory (oref loc root))) | 315 | (let ((default-directory (oref loc root))) |
| 316 | (cedet-cscope-expand-filename filesubstring))) | 316 | (cedet-cscope-expand-filename filesubstring))) |
| 317 | 317 | ||
diff --git a/lisp/cedet/semantic.el b/lisp/cedet/semantic.el index 0b311d9f243..b7d5f700d78 100644 --- a/lisp/cedet/semantic.el +++ b/lisp/cedet/semantic.el | |||
| @@ -45,7 +45,7 @@ | |||
| 45 | (declare-function semanticdb-load-ebrowse-caches "semantic/db-ebrowse") | 45 | (declare-function semanticdb-load-ebrowse-caches "semantic/db-ebrowse") |
| 46 | 46 | ||
| 47 | (defun semantic-require-version (major minor &optional beta) | 47 | (defun semantic-require-version (major minor &optional beta) |
| 48 | "Non-nil if this version of semantic does not satisfy a specific version. | 48 | "Non-nil if this version of Semantic does not satisfy a specific version. |
| 49 | Arguments can be: | 49 | Arguments can be: |
| 50 | 50 | ||
| 51 | (MAJOR MINOR &optional BETA) | 51 | (MAJOR MINOR &optional BETA) |
| @@ -130,7 +130,7 @@ this is returned instead of re-parsing the buffer. | |||
| 130 | DO NOT USE THIS VARIABLE IN PROGRAMS. | 130 | DO NOT USE THIS VARIABLE IN PROGRAMS. |
| 131 | 131 | ||
| 132 | If you need a tag list, use `semantic-fetch-tags'. If you need the | 132 | If you need a tag list, use `semantic-fetch-tags'. If you need the |
| 133 | cached values for some reason, chances are you can, add a hook to | 133 | cached values for some reason, chances are you can add a hook to |
| 134 | `semantic-after-toplevel-cache-change-hook'.") | 134 | `semantic-after-toplevel-cache-change-hook'.") |
| 135 | (make-variable-buffer-local 'semantic--buffer-cache) | 135 | (make-variable-buffer-local 'semantic--buffer-cache) |
| 136 | (semantic-varalias-obsolete 'semantic-toplevel-bovine-cache | 136 | (semantic-varalias-obsolete 'semantic-toplevel-bovine-cache |
| @@ -141,7 +141,7 @@ cached values for some reason, chances are you can, add a hook to | |||
| 141 | (make-variable-buffer-local 'semantic-unmatched-syntax-cache) | 141 | (make-variable-buffer-local 'semantic-unmatched-syntax-cache) |
| 142 | 142 | ||
| 143 | (defvar semantic-unmatched-syntax-cache-check nil | 143 | (defvar semantic-unmatched-syntax-cache-check nil |
| 144 | "Non nil if the unmatched syntax cache is out of date. | 144 | "Non-nil if the unmatched syntax cache is out of date. |
| 145 | This is tracked with `semantic-change-function'.") | 145 | This is tracked with `semantic-change-function'.") |
| 146 | (make-variable-buffer-local 'semantic-unmatched-syntax-cache-check) | 146 | (make-variable-buffer-local 'semantic-unmatched-syntax-cache-check) |
| 147 | 147 | ||
| @@ -154,18 +154,18 @@ will not change the tag structure, such as adding or updating | |||
| 154 | `top-level' comments.") | 154 | `top-level' comments.") |
| 155 | 155 | ||
| 156 | (defvar semantic-unmatched-syntax-hook nil | 156 | (defvar semantic-unmatched-syntax-hook nil |
| 157 | "Hooks run when semantic detects syntax not matched in a grammar. | 157 | "Hooks run when Semantic detects syntax not matched in a grammar. |
| 158 | Each individual piece of syntax (such as a symbol or punctuation | 158 | Each individual piece of syntax (such as a symbol or punctuation |
| 159 | character) is called with this hook when it doesn't match in the | 159 | character) is called with this hook when it doesn't match in the |
| 160 | grammar, and multiple unmatched syntax elements are not grouped | 160 | grammar, and multiple unmatched syntax elements are not grouped |
| 161 | together. Each hook is called with one argument, which is a list of | 161 | together. Each hook is called with one argument, which is a list |
| 162 | syntax tokens created by the semantic lexer. Use the functions | 162 | of syntax tokens created by the semantic lexer. Use the functions |
| 163 | `semantic-lex-token-start', `semantic-lex-token-end' and | 163 | `semantic-lex-token-start', `semantic-lex-token-end' and |
| 164 | `semantic-lex-token-text' to get information about these tokens. The | 164 | `semantic-lex-token-text' to get information about these tokens. |
| 165 | current buffer is the buffer these tokens are derived from.") | 165 | The current buffer is the buffer these tokens are derived from.") |
| 166 | 166 | ||
| 167 | (defvar semantic--before-fetch-tags-hook nil | 167 | (defvar semantic--before-fetch-tags-hook nil |
| 168 | "Hooks run before a buffer is parses for tags. | 168 | "Hooks run before a buffer is parsed for tags. |
| 169 | It is called before any request for tags is made via the function | 169 | It is called before any request for tags is made via the function |
| 170 | `semantic-fetch-tags' by an application. | 170 | `semantic-fetch-tags' by an application. |
| 171 | If any hook returns a nil value, the cached value is returned | 171 | If any hook returns a nil value, the cached value is returned |
| @@ -311,7 +311,7 @@ a parse of the buffer.") | |||
| 311 | 'semantic-init-db-hook "23.2") | 311 | 'semantic-init-db-hook "23.2") |
| 312 | 312 | ||
| 313 | (defvar semantic-new-buffer-fcn-was-run nil | 313 | (defvar semantic-new-buffer-fcn-was-run nil |
| 314 | "Non nil after `semantic-new-buffer-fcn' has been executed.") | 314 | "Non-nil after `semantic-new-buffer-fcn' has been executed.") |
| 315 | (make-variable-buffer-local 'semantic-new-buffer-fcn-was-run) | 315 | (make-variable-buffer-local 'semantic-new-buffer-fcn-was-run) |
| 316 | 316 | ||
| 317 | (defsubst semantic-active-p () | 317 | (defsubst semantic-active-p () |
| @@ -320,7 +320,7 @@ a parse of the buffer.") | |||
| 320 | 320 | ||
| 321 | (defsubst semantic--umatched-syntax-needs-refresh-p () | 321 | (defsubst semantic--umatched-syntax-needs-refresh-p () |
| 322 | "Return non-nil if the unmatched syntax cache needs a refresh. | 322 | "Return non-nil if the unmatched syntax cache needs a refresh. |
| 323 | That is if it is dirty or if the current parse tree isn't up to date." | 323 | That is, if it is dirty or if the current parse tree isn't up to date." |
| 324 | (or semantic-unmatched-syntax-cache-check | 324 | (or semantic-unmatched-syntax-cache-check |
| 325 | (not (semantic-parse-tree-up-to-date-p)))) | 325 | (not (semantic-parse-tree-up-to-date-p)))) |
| 326 | 326 | ||
| @@ -377,7 +377,7 @@ to use Semantic, and `semantic-init-hook' is run." | |||
| 377 | Do not set this yourself. Call `semantic-debug'.") | 377 | Do not set this yourself. Call `semantic-debug'.") |
| 378 | 378 | ||
| 379 | (defun semantic-elapsed-time (start end) | 379 | (defun semantic-elapsed-time (start end) |
| 380 | "Copied from elp.el. Was elp-elapsed-time. | 380 | "Copied from elp.el. Was `elp-elapsed-time'. |
| 381 | Argument START and END bound the time being calculated." | 381 | Argument START and END bound the time being calculated." |
| 382 | (+ (* (- (car end) (car start)) 65536.0) | 382 | (+ (* (- (car end) (car start)) 65536.0) |
| 383 | (- (car (cdr end)) (car (cdr start))) | 383 | (- (car (cdr end)) (car (cdr start))) |
| @@ -410,14 +410,14 @@ the output buffer." | |||
| 410 | (define-overloadable-function semantic-parse-stream (stream nonterminal) | 410 | (define-overloadable-function semantic-parse-stream (stream nonterminal) |
| 411 | "Parse STREAM, starting at the first NONTERMINAL rule. | 411 | "Parse STREAM, starting at the first NONTERMINAL rule. |
| 412 | For bovine and wisent based parsers, STREAM is from the output of | 412 | For bovine and wisent based parsers, STREAM is from the output of |
| 413 | `semantic-lex', and NONTERMINAL is a rule in the apropriate language | 413 | `semantic-lex', and NONTERMINAL is a rule in the appropriate language |
| 414 | specific rules file. | 414 | specific rules file. |
| 415 | The default parser table used for bovine or wisent based parsers is | 415 | The default parser table used for bovine or wisent based parsers is |
| 416 | `semantic--parse-table'. | 416 | `semantic--parse-table'. |
| 417 | 417 | ||
| 418 | Must return a list: (STREAM TAGS) where STREAM is the unused elements | 418 | Must return a list: (STREAM TAGS) where STREAM is the unused elements |
| 419 | from STREAM, and TAGS is the list of semantic tags found, usually only | 419 | from STREAM, and TAGS is the list of semantic tags found; usually only |
| 420 | one tag is returned with the exception of compound statements") | 420 | one tag is returned with the exception of compound statements.") |
| 421 | 421 | ||
| 422 | (define-overloadable-function semantic-parse-changes () | 422 | (define-overloadable-function semantic-parse-changes () |
| 423 | "Reparse changes in the current buffer. | 423 | "Reparse changes in the current buffer. |
| @@ -433,7 +433,7 @@ will be silently ignored. | |||
| 433 | 433 | ||
| 434 | Optional arguments: | 434 | Optional arguments: |
| 435 | NONTERMINAL is the rule to start parsing at. | 435 | NONTERMINAL is the rule to start parsing at. |
| 436 | DEPTH specifies the lexical depth to decend for parser that use | 436 | DEPTH specifies the lexical depth to descend for parser that use |
| 437 | lexical analysis as their first step. | 437 | lexical analysis as their first step. |
| 438 | RETURNONERROR specifies that parsing should stop on the first | 438 | RETURNONERROR specifies that parsing should stop on the first |
| 439 | unmatched syntax encountered. When nil, parsing skips the syntax, | 439 | unmatched syntax encountered. When nil, parsing skips the syntax, |
| @@ -447,8 +447,8 @@ to cook raw tags.") | |||
| 447 | (defun semantic-parse-region-default | 447 | (defun semantic-parse-region-default |
| 448 | (start end &optional nonterminal depth returnonerror) | 448 | (start end &optional nonterminal depth returnonerror) |
| 449 | "Parse the area between START and END, and return any tags found. | 449 | "Parse the area between START and END, and return any tags found. |
| 450 | If END needs to be extended due to a lexical token being too large, it | 450 | If END needs to be extended due to a lexical token being too large, |
| 451 | will be silently ignored. | 451 | it will be silently ignored. |
| 452 | Optional arguments: | 452 | Optional arguments: |
| 453 | NONTERMINAL is the rule to start parsing at if it is known. | 453 | NONTERMINAL is the rule to start parsing at if it is known. |
| 454 | DEPTH specifies the lexical depth to scan. | 454 | DEPTH specifies the lexical depth to scan. |
| @@ -532,7 +532,7 @@ is requested." | |||
| 532 | (defvar semantic-bovinate-nonterminal-check-obarray) | 532 | (defvar semantic-bovinate-nonterminal-check-obarray) |
| 533 | 533 | ||
| 534 | (defun semantic--set-buffer-cache (tagtable) | 534 | (defun semantic--set-buffer-cache (tagtable) |
| 535 | "Set the toplevel cache cache to TAGTABLE." | 535 | "Set the toplevel tag cache to TAGTABLE." |
| 536 | (setq semantic--buffer-cache tagtable | 536 | (setq semantic--buffer-cache tagtable |
| 537 | semantic-unmatched-syntax-cache-check nil) | 537 | semantic-unmatched-syntax-cache-check nil) |
| 538 | ;; This is specific to the bovine parser. | 538 | ;; This is specific to the bovine parser. |
| @@ -560,7 +560,7 @@ is requested." | |||
| 560 | 560 | ||
| 561 | (defvar semantic-minimum-working-buffer-size (* 1024 5) | 561 | (defvar semantic-minimum-working-buffer-size (* 1024 5) |
| 562 | "*The minimum size of a buffer before working messages are displayed. | 562 | "*The minimum size of a buffer before working messages are displayed. |
| 563 | Buffers smaller than will parse silently. | 563 | Buffers smaller than this will parse silently. |
| 564 | Buffers larger than this will display the working progress bar.") | 564 | Buffers larger than this will display the working progress bar.") |
| 565 | 565 | ||
| 566 | (defsubst semantic-parser-working-message (&optional arg) | 566 | (defsubst semantic-parser-working-message (&optional arg) |
| @@ -652,7 +652,7 @@ was marked unparseable, then do nothing, and return the cache." | |||
| 652 | semantic--buffer-cache) | 652 | semantic--buffer-cache) |
| 653 | 653 | ||
| 654 | (defun semantic-refresh-tags-safe () | 654 | (defun semantic-refresh-tags-safe () |
| 655 | "Refreshes the current buffer's tags safely. | 655 | "Refresh the current buffer's tags safely. |
| 656 | 656 | ||
| 657 | Return non-nil if the refresh was successful. | 657 | Return non-nil if the refresh was successful. |
| 658 | Return nil if there is some sort of syntax error preventing a reparse. | 658 | Return nil if there is some sort of syntax error preventing a reparse. |
| @@ -694,7 +694,7 @@ Does nothing if the current buffer doesn't need reparsing." | |||
| 694 | lexically-safe)))) | 694 | lexically-safe)))) |
| 695 | 695 | ||
| 696 | (defun semantic-bovinate-toplevel (&optional ignored) | 696 | (defun semantic-bovinate-toplevel (&optional ignored) |
| 697 | "Backward Compatibility Function." | 697 | "Backward compatibility function." |
| 698 | (semantic-fetch-tags)) | 698 | (semantic-fetch-tags)) |
| 699 | (make-obsolete 'semantic-bovinate-toplevel 'semantic-fetch-tags "23.2") | 699 | (make-obsolete 'semantic-bovinate-toplevel 'semantic-fetch-tags "23.2") |
| 700 | 700 | ||
| @@ -1017,7 +1017,7 @@ Throw away all the old tags, and recreate the tag database." | |||
| 1017 | ;; auxiliary minor modes. | 1017 | ;; auxiliary minor modes. |
| 1018 | 1018 | ||
| 1019 | (defvar semantic-load-system-cache-loaded nil | 1019 | (defvar semantic-load-system-cache-loaded nil |
| 1020 | "Non nil when the Semantic system caches have been loaded. | 1020 | "Non-nil when the Semantic system caches have been loaded. |
| 1021 | Prevent this load system from loading files in twice.") | 1021 | Prevent this load system from loading files in twice.") |
| 1022 | 1022 | ||
| 1023 | (defconst semantic-submode-list | 1023 | (defconst semantic-submode-list |
| @@ -1045,7 +1045,7 @@ The possible elements of this list include the following: | |||
| 1045 | `global-semantic-highlight-func-mode' - Highlight the current tag. | 1045 | `global-semantic-highlight-func-mode' - Highlight the current tag. |
| 1046 | `global-semantic-stickyfunc-mode' - Show current fun in header line. | 1046 | `global-semantic-stickyfunc-mode' - Show current fun in header line. |
| 1047 | `global-semantic-mru-bookmark-mode' - Provide `switch-to-buffer'-like | 1047 | `global-semantic-mru-bookmark-mode' - Provide `switch-to-buffer'-like |
| 1048 | keybinding for tag names." | 1048 | keybinding for tag names." |
| 1049 | :group 'semantic | 1049 | :group 'semantic |
| 1050 | :type `(set ,@(mapcar (lambda (c) (list 'const c)) | 1050 | :type `(set ,@(mapcar (lambda (c) (list 'const c)) |
| 1051 | semantic-submode-list))) | 1051 | semantic-submode-list))) |
diff --git a/lisp/cedet/semantic/db-ebrowse.el b/lisp/cedet/semantic/db-ebrowse.el index cd511708661..86602aaa95b 100644 --- a/lisp/cedet/semantic/db-ebrowse.el +++ b/lisp/cedet/semantic/db-ebrowse.el | |||
| @@ -90,7 +90,7 @@ be searched." | |||
| 90 | :initarg :global-extract | 90 | :initarg :global-extract |
| 91 | :documentation | 91 | :documentation |
| 92 | "Table of ebrowse tags specific to this file. | 92 | "Table of ebrowse tags specific to this file. |
| 93 | This table is compisited from the ebrowse *Globals* section.") | 93 | This table is composited from the ebrowse *Globals* section.") |
| 94 | ) | 94 | ) |
| 95 | "A table for returning search results from ebrowse.") | 95 | "A table for returning search results from ebrowse.") |
| 96 | 96 | ||
| @@ -128,7 +128,7 @@ EBROWSE is a C/C++ parser for use with `ebrowse' Emacs program.") | |||
| 128 | ))) | 128 | ))) |
| 129 | 129 | ||
| 130 | (defun semanticdb-create-ebrowse-database (dir) | 130 | (defun semanticdb-create-ebrowse-database (dir) |
| 131 | "Create an EBROSE database for directory DIR. | 131 | "Create an EBROWSE database for directory DIR. |
| 132 | The database file is stored in ~/.semanticdb, or whichever directory | 132 | The database file is stored in ~/.semanticdb, or whichever directory |
| 133 | is specified by `semanticdb-default-save-directory'." | 133 | is specified by `semanticdb-default-save-directory'." |
| 134 | (interactive "DDirectory: ") | 134 | (interactive "DDirectory: ") |
| @@ -597,7 +597,7 @@ Return a list of tags." | |||
| 597 | 597 | ||
| 598 | (defmethod semanticdb-find-tags-for-completion-method | 598 | (defmethod semanticdb-find-tags-for-completion-method |
| 599 | ((table semanticdb-table-ebrowse) prefix &optional tags) | 599 | ((table semanticdb-table-ebrowse) prefix &optional tags) |
| 600 | "In TABLE, find all occurances of tags matching PREFIX. | 600 | "In TABLE, find all occurrences of tags matching PREFIX. |
| 601 | Optional argument TAGS is a list of tags to search. | 601 | Optional argument TAGS is a list of tags to search. |
| 602 | Returns a table of all matching tags." | 602 | Returns a table of all matching tags." |
| 603 | (if tags (call-next-method) | 603 | (if tags (call-next-method) |
| @@ -607,7 +607,7 @@ Returns a table of all matching tags." | |||
| 607 | 607 | ||
| 608 | (defmethod semanticdb-find-tags-by-class-method | 608 | (defmethod semanticdb-find-tags-by-class-method |
| 609 | ((table semanticdb-table-ebrowse) class &optional tags) | 609 | ((table semanticdb-table-ebrowse) class &optional tags) |
| 610 | "In TABLE, find all occurances of tags of CLASS. | 610 | "In TABLE, find all occurrences of tags of CLASS. |
| 611 | Optional argument TAGS is a list of tags to search. | 611 | Optional argument TAGS is a list of tags to search. |
| 612 | Returns a table of all matching tags." | 612 | Returns a table of all matching tags." |
| 613 | (if tags (call-next-method) | 613 | (if tags (call-next-method) |
| @@ -625,7 +625,7 @@ Returns a table of all matching tags." | |||
| 625 | (defmethod semanticdb-deep-find-tags-by-name-method | 625 | (defmethod semanticdb-deep-find-tags-by-name-method |
| 626 | ((table semanticdb-table-ebrowse) name &optional tags) | 626 | ((table semanticdb-table-ebrowse) name &optional tags) |
| 627 | "Find all tags name NAME in TABLE. | 627 | "Find all tags name NAME in TABLE. |
| 628 | Optional argument TAGS is a list of tags t | 628 | Optional argument TAGS is a list of tags to search. |
| 629 | Like `semanticdb-find-tags-by-name-method' for ebrowse." | 629 | Like `semanticdb-find-tags-by-name-method' for ebrowse." |
| 630 | ;;(semanticdb-find-tags-by-name-method table name tags) | 630 | ;;(semanticdb-find-tags-by-name-method table name tags) |
| 631 | (call-next-method)) | 631 | (call-next-method)) |
| @@ -640,7 +640,7 @@ Like `semanticdb-find-tags-by-name-method' for ebrowse." | |||
| 640 | 640 | ||
| 641 | (defmethod semanticdb-deep-find-tags-for-completion-method | 641 | (defmethod semanticdb-deep-find-tags-for-completion-method |
| 642 | ((table semanticdb-table-ebrowse) prefix &optional tags) | 642 | ((table semanticdb-table-ebrowse) prefix &optional tags) |
| 643 | "In TABLE, find all occurances of tags matching PREFIX. | 643 | "In TABLE, find all occurrences of tags matching PREFIX. |
| 644 | Optional argument TAGS is a list of tags to search. | 644 | Optional argument TAGS is a list of tags to search. |
| 645 | Like `semanticdb-find-tags-for-completion-method' for ebrowse." | 645 | Like `semanticdb-find-tags-for-completion-method' for ebrowse." |
| 646 | ;;(semanticdb-find-tags-for-completion-method table prefix tags) | 646 | ;;(semanticdb-find-tags-for-completion-method table prefix tags) |
diff --git a/lisp/cedet/semantic/db-el.el b/lisp/cedet/semantic/db-el.el index d46f727fca6..d313d1dc578 100644 --- a/lisp/cedet/semantic/db-el.el +++ b/lisp/cedet/semantic/db-el.el | |||
| @@ -76,7 +76,7 @@ It does not need refreshing." | |||
| 76 | (defvar-mode-local emacs-lisp-mode semanticdb-find-default-throttle | 76 | (defvar-mode-local emacs-lisp-mode semanticdb-find-default-throttle |
| 77 | '(project omniscience) | 77 | '(project omniscience) |
| 78 | "Search project files, then search this omniscience database. | 78 | "Search project files, then search this omniscience database. |
| 79 | It is not necessary to to system or recursive searching because of | 79 | It is not necessary to do system or recursive searching because of |
| 80 | the omniscience database.") | 80 | the omniscience database.") |
| 81 | 81 | ||
| 82 | ;;; Filename based methods | 82 | ;;; Filename based methods |
| @@ -246,12 +246,12 @@ TOKTYPE is a hint to the type of tag desired." | |||
| 246 | ;;; Search Overrides | 246 | ;;; Search Overrides |
| 247 | ;; | 247 | ;; |
| 248 | (defvar semanticdb-elisp-mapatom-collector nil | 248 | (defvar semanticdb-elisp-mapatom-collector nil |
| 249 | "Variable used to collect mapatoms output.") | 249 | "Variable used to collect `mapatoms' output.") |
| 250 | 250 | ||
| 251 | (defmethod semanticdb-find-tags-by-name-method | 251 | (defmethod semanticdb-find-tags-by-name-method |
| 252 | ((table semanticdb-table-emacs-lisp) name &optional tags) | 252 | ((table semanticdb-table-emacs-lisp) name &optional tags) |
| 253 | "Find all tags name NAME in TABLE. | 253 | "Find all tags named NAME in TABLE. |
| 254 | Uses `inter-soft' to match NAME to emacs symbols. | 254 | Uses `intern-soft' to match NAME to Emacs symbols. |
| 255 | Return a list of tags." | 255 | Return a list of tags." |
| 256 | (if tags (call-next-method) | 256 | (if tags (call-next-method) |
| 257 | ;; No need to search. Use `intern-soft' which does the same thing for us. | 257 | ;; No need to search. Use `intern-soft' which does the same thing for us. |
| @@ -281,7 +281,7 @@ Return a list of tags." | |||
| 281 | 281 | ||
| 282 | (defmethod semanticdb-find-tags-for-completion-method | 282 | (defmethod semanticdb-find-tags-for-completion-method |
| 283 | ((table semanticdb-table-emacs-lisp) prefix &optional tags) | 283 | ((table semanticdb-table-emacs-lisp) prefix &optional tags) |
| 284 | "In TABLE, find all occurances of tags matching PREFIX. | 284 | "In TABLE, find all occurrences of tags matching PREFIX. |
| 285 | Optional argument TAGS is a list of tags to search. | 285 | Optional argument TAGS is a list of tags to search. |
| 286 | Returns a table of all matching tags." | 286 | Returns a table of all matching tags." |
| 287 | (if tags (call-next-method) | 287 | (if tags (call-next-method) |
| @@ -290,7 +290,7 @@ Returns a table of all matching tags." | |||
| 290 | 290 | ||
| 291 | (defmethod semanticdb-find-tags-by-class-method | 291 | (defmethod semanticdb-find-tags-by-class-method |
| 292 | ((table semanticdb-table-emacs-lisp) class &optional tags) | 292 | ((table semanticdb-table-emacs-lisp) class &optional tags) |
| 293 | "In TABLE, find all occurances of tags of CLASS. | 293 | "In TABLE, find all occurrences of tags of CLASS. |
| 294 | Optional argument TAGS is a list of tags to search. | 294 | Optional argument TAGS is a list of tags to search. |
| 295 | Returns a table of all matching tags." | 295 | Returns a table of all matching tags." |
| 296 | (if tags (call-next-method) | 296 | (if tags (call-next-method) |
| @@ -316,7 +316,7 @@ Like `semanticdb-find-tags-by-name-method' for Emacs Lisp." | |||
| 316 | 316 | ||
| 317 | (defmethod semanticdb-deep-find-tags-for-completion-method | 317 | (defmethod semanticdb-deep-find-tags-for-completion-method |
| 318 | ((table semanticdb-table-emacs-lisp) prefix &optional tags) | 318 | ((table semanticdb-table-emacs-lisp) prefix &optional tags) |
| 319 | "In TABLE, find all occurances of tags matching PREFIX. | 319 | "In TABLE, find all occurrences of tags matching PREFIX. |
| 320 | Optional argument TAGS is a list of tags to search. | 320 | Optional argument TAGS is a list of tags to search. |
| 321 | Like `semanticdb-find-tags-for-completion-method' for Emacs Lisp." | 321 | Like `semanticdb-find-tags-for-completion-method' for Emacs Lisp." |
| 322 | (semanticdb-find-tags-for-completion-method table prefix tags)) | 322 | (semanticdb-find-tags-for-completion-method table prefix tags)) |
diff --git a/lisp/cedet/semantic/db-find.el b/lisp/cedet/semantic/db-find.el index 59b190f0073..eba04a7ee02 100644 --- a/lisp/cedet/semantic/db-find.el +++ b/lisp/cedet/semantic/db-find.el | |||
| @@ -281,7 +281,7 @@ identified by translating PATH. Such searches use brute force to | |||
| 281 | scan every available table. | 281 | scan every available table. |
| 282 | 282 | ||
| 283 | The return value is a list of objects of type `semanticdb-table' or | 283 | The return value is a list of objects of type `semanticdb-table' or |
| 284 | it's children. In the case of passing in a find result, the result | 284 | their children. In the case of passing in a find result, the result |
| 285 | is returned unchanged. | 285 | is returned unchanged. |
| 286 | 286 | ||
| 287 | This routine uses `semanticdb-find-table-for-include' to translate | 287 | This routine uses `semanticdb-find-table-for-include' to translate |
| @@ -366,7 +366,7 @@ Default action as described in `semanticdb-find-translate-path'." | |||
| 366 | ans)) | 366 | ans)) |
| 367 | 367 | ||
| 368 | (defun semanticdb-find-need-cache-update-p (table) | 368 | (defun semanticdb-find-need-cache-update-p (table) |
| 369 | "Non nil if the semanticdb TABLE cache needs to be updated." | 369 | "Non-nil if the semanticdb TABLE cache needs to be updated." |
| 370 | ;; If we were passed in something related to a TABLE, | 370 | ;; If we were passed in something related to a TABLE, |
| 371 | ;; do a caching lookup. | 371 | ;; do a caching lookup. |
| 372 | (let* ((index (semanticdb-get-table-index table)) | 372 | (let* ((index (semanticdb-get-table-index table)) |
| @@ -431,7 +431,7 @@ Default action as described in `semanticdb-find-translate-path'." | |||
| 431 | "All include tags scanned, plus action taken on the tag. | 431 | "All include tags scanned, plus action taken on the tag. |
| 432 | Each entry is an alist: | 432 | Each entry is an alist: |
| 433 | (ACTION . TAG) | 433 | (ACTION . TAG) |
| 434 | where ACTION is one of 'scanned, 'duplicate, 'lost. | 434 | where ACTION is one of 'scanned, 'duplicate, 'lost |
| 435 | and TAG is a clone of the include tag that was found.") | 435 | and TAG is a clone of the include tag that was found.") |
| 436 | (make-variable-buffer-local 'semanticdb-find-scanned-include-tags) | 436 | (make-variable-buffer-local 'semanticdb-find-scanned-include-tags) |
| 437 | 437 | ||
| @@ -927,7 +927,7 @@ but should be good enough for debugging assertions." | |||
| 927 | 927 | ||
| 928 | (defun semanticdb-find-result-with-nil-p (resultp) | 928 | (defun semanticdb-find-result-with-nil-p (resultp) |
| 929 | "Non-nil of RESULTP is in the form of a semanticdb search result. | 929 | "Non-nil of RESULTP is in the form of a semanticdb search result. |
| 930 | nil is a valid value where a TABLE usually is, but only if the TAG | 930 | The value nil is valid where a TABLE usually is, but only if the TAG |
| 931 | results include overlays. | 931 | results include overlays. |
| 932 | This query only really tests the first entry in the list that is RESULTP, | 932 | This query only really tests the first entry in the list that is RESULTP, |
| 933 | but should be good enough for debugging assertions." | 933 | but should be good enough for debugging assertions." |
| @@ -1090,8 +1090,8 @@ Returns result." | |||
| 1090 | "Collect all tags returned by FUNCTION over PATH. | 1090 | "Collect all tags returned by FUNCTION over PATH. |
| 1091 | The FUNCTION must take two arguments. The first is TABLE, | 1091 | The FUNCTION must take two arguments. The first is TABLE, |
| 1092 | which is a semanticdb table containing tags. The second argument | 1092 | which is a semanticdb table containing tags. The second argument |
| 1093 | to FUNCTION is TAGS. TAGS may be a list of tags. If TAGS is non-nil, then | 1093 | to FUNCTION is TAGS. TAGS may be a list of tags. If TAGS is non-nil, |
| 1094 | FUNCTION should search the TAG list, not through TABLE. | 1094 | then FUNCTION should search the TAG list, not through TABLE. |
| 1095 | 1095 | ||
| 1096 | See `semanticdb-find-translate-path' for details on PATH. | 1096 | See `semanticdb-find-translate-path' for details on PATH. |
| 1097 | FIND-FILE-MATCH indicates that any time a match is found, the file | 1097 | FIND-FILE-MATCH indicates that any time a match is found, the file |
| @@ -1296,38 +1296,38 @@ associated with that tag should be loaded into a buffer." | |||
| 1296 | 1296 | ||
| 1297 | ;;; Top level Searches | 1297 | ;;; Top level Searches |
| 1298 | (defmethod semanticdb-find-tags-by-name-method ((table semanticdb-abstract-table) name &optional tags) | 1298 | (defmethod semanticdb-find-tags-by-name-method ((table semanticdb-abstract-table) name &optional tags) |
| 1299 | "In TABLE, find all occurances of tags with NAME. | 1299 | "In TABLE, find all occurrences of tags with NAME. |
| 1300 | Optional argument TAGS is a list of tags to search. | 1300 | Optional argument TAGS is a list of tags to search. |
| 1301 | Returns a table of all matching tags." | 1301 | Returns a table of all matching tags." |
| 1302 | (semantic-find-tags-by-name name (or tags (semanticdb-get-tags table)))) | 1302 | (semantic-find-tags-by-name name (or tags (semanticdb-get-tags table)))) |
| 1303 | 1303 | ||
| 1304 | (defmethod semanticdb-find-tags-by-name-regexp-method ((table semanticdb-abstract-table) regexp &optional tags) | 1304 | (defmethod semanticdb-find-tags-by-name-regexp-method ((table semanticdb-abstract-table) regexp &optional tags) |
| 1305 | "In TABLE, find all occurances of tags matching REGEXP. | 1305 | "In TABLE, find all occurrences of tags matching REGEXP. |
| 1306 | Optional argument TAGS is a list of tags to search. | 1306 | Optional argument TAGS is a list of tags to search. |
| 1307 | Returns a table of all matching tags." | 1307 | Returns a table of all matching tags." |
| 1308 | (semantic-find-tags-by-name-regexp regexp (or tags (semanticdb-get-tags table)))) | 1308 | (semantic-find-tags-by-name-regexp regexp (or tags (semanticdb-get-tags table)))) |
| 1309 | 1309 | ||
| 1310 | (defmethod semanticdb-find-tags-for-completion-method ((table semanticdb-abstract-table) prefix &optional tags) | 1310 | (defmethod semanticdb-find-tags-for-completion-method ((table semanticdb-abstract-table) prefix &optional tags) |
| 1311 | "In TABLE, find all occurances of tags matching PREFIX. | 1311 | "In TABLE, find all occurrences of tags matching PREFIX. |
| 1312 | Optional argument TAGS is a list of tags to search. | 1312 | Optional argument TAGS is a list of tags to search. |
| 1313 | Returns a table of all matching tags." | 1313 | Returns a table of all matching tags." |
| 1314 | (semantic-find-tags-for-completion prefix (or tags (semanticdb-get-tags table)))) | 1314 | (semantic-find-tags-for-completion prefix (or tags (semanticdb-get-tags table)))) |
| 1315 | 1315 | ||
| 1316 | (defmethod semanticdb-find-tags-by-class-method ((table semanticdb-abstract-table) class &optional tags) | 1316 | (defmethod semanticdb-find-tags-by-class-method ((table semanticdb-abstract-table) class &optional tags) |
| 1317 | "In TABLE, find all occurances of tags of CLASS. | 1317 | "In TABLE, find all occurrences of tags of CLASS. |
| 1318 | Optional argument TAGS is a list of tags to search. | 1318 | Optional argument TAGS is a list of tags to search. |
| 1319 | Returns a table of all matching tags." | 1319 | Returns a table of all matching tags." |
| 1320 | (semantic-find-tags-by-class class (or tags (semanticdb-get-tags table)))) | 1320 | (semantic-find-tags-by-class class (or tags (semanticdb-get-tags table)))) |
| 1321 | 1321 | ||
| 1322 | (defmethod semanticdb-find-tags-external-children-of-type-method ((table semanticdb-abstract-table) parent &optional tags) | 1322 | (defmethod semanticdb-find-tags-external-children-of-type-method ((table semanticdb-abstract-table) parent &optional tags) |
| 1323 | "In TABLE, find all occurances of tags whose parent is the PARENT type. | 1323 | "In TABLE, find all occurrences of tags whose parent is the PARENT type. |
| 1324 | Optional argument TAGS is a list of tags to search. | 1324 | Optional argument TAGS is a list of tags to search. |
| 1325 | Returns a table of all matching tags." | 1325 | Returns a table of all matching tags." |
| 1326 | (require 'semantic/find) | 1326 | (require 'semantic/find) |
| 1327 | (semantic-find-tags-external-children-of-type parent (or tags (semanticdb-get-tags table)))) | 1327 | (semantic-find-tags-external-children-of-type parent (or tags (semanticdb-get-tags table)))) |
| 1328 | 1328 | ||
| 1329 | (defmethod semanticdb-find-tags-subclasses-of-type-method ((table semanticdb-abstract-table) parent &optional tags) | 1329 | (defmethod semanticdb-find-tags-subclasses-of-type-method ((table semanticdb-abstract-table) parent &optional tags) |
| 1330 | "In TABLE, find all occurances of tags whose parent is the PARENT type. | 1330 | "In TABLE, find all occurrences of tags whose parent is the PARENT type. |
| 1331 | Optional argument TAGS is a list of tags to search. | 1331 | Optional argument TAGS is a list of tags to search. |
| 1332 | Returns a table of all matching tags." | 1332 | Returns a table of all matching tags." |
| 1333 | (require 'semantic/find) | 1333 | (require 'semantic/find) |
| @@ -1335,7 +1335,7 @@ Returns a table of all matching tags." | |||
| 1335 | 1335 | ||
| 1336 | ;;; Deep Searches | 1336 | ;;; Deep Searches |
| 1337 | (defmethod semanticdb-deep-find-tags-by-name-method ((table semanticdb-abstract-table) name &optional tags) | 1337 | (defmethod semanticdb-deep-find-tags-by-name-method ((table semanticdb-abstract-table) name &optional tags) |
| 1338 | "In TABLE, find all occurances of tags with NAME. | 1338 | "In TABLE, find all occurrences of tags with NAME. |
| 1339 | Search in all tags in TABLE, and all components of top level tags in | 1339 | Search in all tags in TABLE, and all components of top level tags in |
| 1340 | TABLE. | 1340 | TABLE. |
| 1341 | Optional argument TAGS is a list of tags to search. | 1341 | Optional argument TAGS is a list of tags to search. |
| @@ -1343,7 +1343,7 @@ Return a table of all matching tags." | |||
| 1343 | (semantic-find-tags-by-name name (semantic-flatten-tags-table (or tags (semanticdb-get-tags table))))) | 1343 | (semantic-find-tags-by-name name (semantic-flatten-tags-table (or tags (semanticdb-get-tags table))))) |
| 1344 | 1344 | ||
| 1345 | (defmethod semanticdb-deep-find-tags-by-name-regexp-method ((table semanticdb-abstract-table) regexp &optional tags) | 1345 | (defmethod semanticdb-deep-find-tags-by-name-regexp-method ((table semanticdb-abstract-table) regexp &optional tags) |
| 1346 | "In TABLE, find all occurances of tags matching REGEXP. | 1346 | "In TABLE, find all occurrences of tags matching REGEXP. |
| 1347 | Search in all tags in TABLE, and all components of top level tags in | 1347 | Search in all tags in TABLE, and all components of top level tags in |
| 1348 | TABLE. | 1348 | TABLE. |
| 1349 | Optional argument TAGS is a list of tags to search. | 1349 | Optional argument TAGS is a list of tags to search. |
| @@ -1351,7 +1351,7 @@ Return a table of all matching tags." | |||
| 1351 | (semantic-find-tags-by-name-regexp regexp (semantic-flatten-tags-table (or tags (semanticdb-get-tags table))))) | 1351 | (semantic-find-tags-by-name-regexp regexp (semantic-flatten-tags-table (or tags (semanticdb-get-tags table))))) |
| 1352 | 1352 | ||
| 1353 | (defmethod semanticdb-deep-find-tags-for-completion-method ((table semanticdb-abstract-table) prefix &optional tags) | 1353 | (defmethod semanticdb-deep-find-tags-for-completion-method ((table semanticdb-abstract-table) prefix &optional tags) |
| 1354 | "In TABLE, find all occurances of tags matching PREFIX. | 1354 | "In TABLE, find all occurrences of tags matching PREFIX. |
| 1355 | Search in all tags in TABLE, and all components of top level tags in | 1355 | Search in all tags in TABLE, and all components of top level tags in |
| 1356 | TABLE. | 1356 | TABLE. |
| 1357 | Optional argument TAGS is a list of tags to search. | 1357 | Optional argument TAGS is a list of tags to search. |
diff --git a/lisp/cedet/semantic/db-global.el b/lisp/cedet/semantic/db-global.el index bfd97fc5a54..444efbd17e0 100644 --- a/lisp/cedet/semantic/db-global.el +++ b/lisp/cedet/semantic/db-global.el | |||
| @@ -66,7 +66,7 @@ in a GNU Global supported hierarchy." | |||
| 66 | ) | 66 | ) |
| 67 | 67 | ||
| 68 | (defun semanticdb-enable-gnu-global-hook () | 68 | (defun semanticdb-enable-gnu-global-hook () |
| 69 | "Add support for GNU Global in the current buffer via semantic-init-hook. | 69 | "Add support for GNU Global in the current buffer via `semantic-init-hook'. |
| 70 | MODE is the major mode to support." | 70 | MODE is the major mode to support." |
| 71 | (semanticdb-enable-gnu-global-in-buffer t)) | 71 | (semanticdb-enable-gnu-global-in-buffer t)) |
| 72 | 72 | ||
| @@ -78,8 +78,8 @@ MODE is the major mode to support." | |||
| 78 | 78 | ||
| 79 | (defun semanticdb-enable-gnu-global-in-buffer (&optional dont-err-if-not-available) | 79 | (defun semanticdb-enable-gnu-global-in-buffer (&optional dont-err-if-not-available) |
| 80 | "Enable a GNU Global database in the current buffer. | 80 | "Enable a GNU Global database in the current buffer. |
| 81 | Argument DONT-ERR-IF-NOT-AVAILABLE will throw an error if GNU Global | 81 | When GNU Global is not available for this directory, display a message |
| 82 | is not available for this directory." | 82 | if optional DONT-ERR-IF-NOT-AVAILABLE is non-nil; else throw an error." |
| 83 | (interactive "P") | 83 | (interactive "P") |
| 84 | (if (cedet-gnu-global-root) | 84 | (if (cedet-gnu-global-root) |
| 85 | (setq | 85 | (setq |
| @@ -168,7 +168,7 @@ Return a list of tags." | |||
| 168 | 168 | ||
| 169 | (defmethod semanticdb-find-tags-for-completion-method | 169 | (defmethod semanticdb-find-tags-for-completion-method |
| 170 | ((table semanticdb-table-global) prefix &optional tags) | 170 | ((table semanticdb-table-global) prefix &optional tags) |
| 171 | "In TABLE, find all occurances of tags matching PREFIX. | 171 | "In TABLE, find all occurrences of tags matching PREFIX. |
| 172 | Optional argument TAGS is a list of tags to search. | 172 | Optional argument TAGS is a list of tags to search. |
| 173 | Returns a table of all matching tags." | 173 | Returns a table of all matching tags." |
| 174 | (if tags (call-next-method) | 174 | (if tags (call-next-method) |
| @@ -195,7 +195,7 @@ Returns a table of all matching tags." | |||
| 195 | (defmethod semanticdb-deep-find-tags-by-name-method | 195 | (defmethod semanticdb-deep-find-tags-by-name-method |
| 196 | ((table semanticdb-table-global) name &optional tags) | 196 | ((table semanticdb-table-global) name &optional tags) |
| 197 | "Find all tags name NAME in TABLE. | 197 | "Find all tags name NAME in TABLE. |
| 198 | Optional argument TAGS is a list of tags t | 198 | Optional argument TAGS is a list of tags to search. |
| 199 | Like `semanticdb-find-tags-by-name-method' for global." | 199 | Like `semanticdb-find-tags-by-name-method' for global." |
| 200 | (semanticdb-find-tags-by-name-method table name tags)) | 200 | (semanticdb-find-tags-by-name-method table name tags)) |
| 201 | 201 | ||
| @@ -208,7 +208,7 @@ Like `semanticdb-find-tags-by-name-method' for global." | |||
| 208 | 208 | ||
| 209 | (defmethod semanticdb-deep-find-tags-for-completion-method | 209 | (defmethod semanticdb-deep-find-tags-for-completion-method |
| 210 | ((table semanticdb-table-global) prefix &optional tags) | 210 | ((table semanticdb-table-global) prefix &optional tags) |
| 211 | "In TABLE, find all occurances of tags matching PREFIX. | 211 | "In TABLE, find all occurrences of tags matching PREFIX. |
| 212 | Optional argument TAGS is a list of tags to search. | 212 | Optional argument TAGS is a list of tags to search. |
| 213 | Like `semanticdb-find-tags-for-completion-method' for global." | 213 | Like `semanticdb-find-tags-for-completion-method' for global." |
| 214 | (semanticdb-find-tags-for-completion-method table prefix tags)) | 214 | (semanticdb-find-tags-for-completion-method table prefix tags)) |
diff --git a/lisp/cedet/semantic/db-javascript.el b/lisp/cedet/semantic/db-javascript.el index 2e357e677e2..a972c33f32a 100644 --- a/lisp/cedet/semantic/db-javascript.el +++ b/lisp/cedet/semantic/db-javascript.el | |||
| @@ -77,7 +77,7 @@ | |||
| 77 | (("uriComponent" variable nil nil nil))) | 77 | (("uriComponent" variable nil nil nil))) |
| 78 | nil nil)) | 78 | nil nil)) |
| 79 | "Hard-coded list of javascript tags for semanticdb. | 79 | "Hard-coded list of javascript tags for semanticdb. |
| 80 | See bottom of this file for instruction on managing this list.") | 80 | See bottom of this file for instructions on managing this list.") |
| 81 | 81 | ||
| 82 | ;;; Classes: | 82 | ;;; Classes: |
| 83 | (defclass semanticdb-table-javascript (semanticdb-search-results-table) | 83 | (defclass semanticdb-table-javascript (semanticdb-search-results-table) |
| @@ -87,7 +87,7 @@ See bottom of this file for instruction on managing this list.") | |||
| 87 | 87 | ||
| 88 | (defclass semanticdb-project-database-javascript | 88 | (defclass semanticdb-project-database-javascript |
| 89 | (semanticdb-project-database | 89 | (semanticdb-project-database |
| 90 | eieio-singleton ;this db is for js globals, so singleton is apropriate | 90 | eieio-singleton ;this db is for js globals, so singleton is appropriate |
| 91 | ) | 91 | ) |
| 92 | ((new-table-class :initform semanticdb-table-javascript | 92 | ((new-table-class :initform semanticdb-table-javascript |
| 93 | :type class | 93 | :type class |
| @@ -107,7 +107,7 @@ See bottom of this file for instruction on managing this list.") | |||
| 107 | (defvar-mode-local javascript-mode semanticdb-find-default-throttle | 107 | (defvar-mode-local javascript-mode semanticdb-find-default-throttle |
| 108 | '(project omniscience) | 108 | '(project omniscience) |
| 109 | "Search project files, then search this omniscience database. | 109 | "Search project files, then search this omniscience database. |
| 110 | It is not necessary to to system or recursive searching because of | 110 | It is not necessary to do system or recursive searching because of |
| 111 | the omniscience database.") | 111 | the omniscience database.") |
| 112 | 112 | ||
| 113 | ;;; Filename based methods | 113 | ;;; Filename based methods |
| @@ -157,7 +157,7 @@ local variable." | |||
| 157 | ;; to a search list. | 157 | ;; to a search list. |
| 158 | (define-mode-local-override semanticdb-find-translate-path javascript-mode | 158 | (define-mode-local-override semanticdb-find-translate-path javascript-mode |
| 159 | (path brutish) | 159 | (path brutish) |
| 160 | "Return a list of semanticdb tables asociated with PATH. | 160 | "Return a list of semanticdb tables associated with PATH. |
| 161 | If brutish, do the default action. | 161 | If brutish, do the default action. |
| 162 | If not brutish, do the default action, and append the system | 162 | If not brutish, do the default action, and append the system |
| 163 | database (if available.)" | 163 | database (if available.)" |
| @@ -216,7 +216,7 @@ Return a list of tags." | |||
| 216 | 216 | ||
| 217 | (defmethod semanticdb-find-tags-for-completion-method | 217 | (defmethod semanticdb-find-tags-for-completion-method |
| 218 | ((table semanticdb-table-javascript) prefix &optional tags) | 218 | ((table semanticdb-table-javascript) prefix &optional tags) |
| 219 | "In TABLE, find all occurances of tags matching PREFIX. | 219 | "In TABLE, find all occurrences of tags matching PREFIX. |
| 220 | Optional argument TAGS is a list of tags to search. | 220 | Optional argument TAGS is a list of tags to search. |
| 221 | Returns a table of all matching tags." | 221 | Returns a table of all matching tags." |
| 222 | (if tags (call-next-method) | 222 | (if tags (call-next-method) |
| @@ -226,7 +226,7 @@ Returns a table of all matching tags." | |||
| 226 | 226 | ||
| 227 | (defmethod semanticdb-find-tags-by-class-method | 227 | (defmethod semanticdb-find-tags-by-class-method |
| 228 | ((table semanticdb-table-javascript) class &optional tags) | 228 | ((table semanticdb-table-javascript) class &optional tags) |
| 229 | "In TABLE, find all occurances of tags of CLASS. | 229 | "In TABLE, find all occurrences of tags of CLASS. |
| 230 | Optional argument TAGS is a list of tags to search. | 230 | Optional argument TAGS is a list of tags to search. |
| 231 | Returns a table of all matching tags." | 231 | Returns a table of all matching tags." |
| 232 | (if tags (call-next-method) | 232 | (if tags (call-next-method) |
| @@ -248,7 +248,7 @@ Returns a table of all matching tags." | |||
| 248 | (defmethod semanticdb-deep-find-tags-by-name-method | 248 | (defmethod semanticdb-deep-find-tags-by-name-method |
| 249 | ((table semanticdb-table-javascript) name &optional tags) | 249 | ((table semanticdb-table-javascript) name &optional tags) |
| 250 | "Find all tags name NAME in TABLE. | 250 | "Find all tags name NAME in TABLE. |
| 251 | Optional argument TAGS is a list of tags t | 251 | Optional argument TAGS is a list of tags to search. |
| 252 | Like `semanticdb-find-tags-by-name-method' for javascript." | 252 | Like `semanticdb-find-tags-by-name-method' for javascript." |
| 253 | (semanticdb-find-tags-by-name-method table name tags)) | 253 | (semanticdb-find-tags-by-name-method table name tags)) |
| 254 | 254 | ||
| @@ -261,7 +261,7 @@ Like `semanticdb-find-tags-by-name-method' for javascript." | |||
| 261 | 261 | ||
| 262 | (defmethod semanticdb-deep-find-tags-for-completion-method | 262 | (defmethod semanticdb-deep-find-tags-for-completion-method |
| 263 | ((table semanticdb-table-javascript) prefix &optional tags) | 263 | ((table semanticdb-table-javascript) prefix &optional tags) |
| 264 | "In TABLE, find all occurances of tags matching PREFIX. | 264 | "In TABLE, find all occurrences of tags matching PREFIX. |
| 265 | Optional argument TAGS is a list of tags to search. | 265 | Optional argument TAGS is a list of tags to search. |
| 266 | Like `semanticdb-find-tags-for-completion-method' for javascript." | 266 | Like `semanticdb-find-tags-for-completion-method' for javascript." |
| 267 | (semanticdb-find-tags-for-completion-method table prefix tags)) | 267 | (semanticdb-find-tags-for-completion-method table prefix tags)) |
| @@ -270,7 +270,7 @@ Like `semanticdb-find-tags-for-completion-method' for javascript." | |||
| 270 | ;; | 270 | ;; |
| 271 | (defmethod semanticdb-find-tags-external-children-of-type-method | 271 | (defmethod semanticdb-find-tags-external-children-of-type-method |
| 272 | ((table semanticdb-table-javascript) type &optional tags) | 272 | ((table semanticdb-table-javascript) type &optional tags) |
| 273 | "Find all nonterminals which are child elements of TYPE | 273 | "Find all nonterminals which are child elements of TYPE. |
| 274 | Optional argument TAGS is a list of tags to search. | 274 | Optional argument TAGS is a list of tags to search. |
| 275 | Return a list of tags." | 275 | Return a list of tags." |
| 276 | (if tags (call-next-method) | 276 | (if tags (call-next-method) |
diff --git a/lisp/cedet/semantic/idle.el b/lisp/cedet/semantic/idle.el index bc314bb547e..ba7a49757a5 100644 --- a/lisp/cedet/semantic/idle.el +++ b/lisp/cedet/semantic/idle.el | |||
| @@ -367,7 +367,7 @@ Returns t if all processing succeeded." | |||
| 367 | 367 | ||
| 368 | (defun semantic-idle-work-core-handler () | 368 | (defun semantic-idle-work-core-handler () |
| 369 | "Core handler for idle work processing of long running tasks. | 369 | "Core handler for idle work processing of long running tasks. |
| 370 | Visits semantic controlled buffers, and makes sure all needed | 370 | Visits Semantic controlled buffers, and makes sure all needed |
| 371 | include files have been parsed, and that the typecache is up to date. | 371 | include files have been parsed, and that the typecache is up to date. |
| 372 | Uses `semantic-idle-work-for-on-buffer' to do the work." | 372 | Uses `semantic-idle-work-for-on-buffer' to do the work." |
| 373 | (let ((errbuf nil) | 373 | (let ((errbuf nil) |
| @@ -577,7 +577,7 @@ Does nothing if the current buffer doesn't need reparsing." | |||
| 577 | DOC will be a documentation string describing FORMS. | 577 | DOC will be a documentation string describing FORMS. |
| 578 | FORMS will be called during idle time after the current buffer's | 578 | FORMS will be called during idle time after the current buffer's |
| 579 | semantic tag information has been updated. | 579 | semantic tag information has been updated. |
| 580 | This routines creates the following functions and variables:" | 580 | This routine creates the following functions and variables:" |
| 581 | (let ((global (intern (concat "global-" (symbol-name name) "-mode"))) | 581 | (let ((global (intern (concat "global-" (symbol-name name) "-mode"))) |
| 582 | (mode (intern (concat (symbol-name name) "-mode"))) | 582 | (mode (intern (concat (symbol-name name) "-mode"))) |
| 583 | (hook (intern (concat (symbol-name name) "-mode-hook"))) | 583 | (hook (intern (concat (symbol-name name) "-mode-hook"))) |
| @@ -764,7 +764,7 @@ specific to a major mode. For example, in jde mode: | |||
| 764 | jde-java-font-lock-code-face)))") | 764 | jde-java-font-lock-code-face)))") |
| 765 | 765 | ||
| 766 | (defun semantic-idle-summary-useful-context-p () | 766 | (defun semantic-idle-summary-useful-context-p () |
| 767 | "Non-nil of we should show a summary based on context." | 767 | "Non-nil if we should show a summary based on context." |
| 768 | (if (and (boundp 'font-lock-mode) | 768 | (if (and (boundp 'font-lock-mode) |
| 769 | font-lock-mode | 769 | font-lock-mode |
| 770 | (memq (get-text-property (point) 'face) | 770 | (memq (get-text-property (point) 'face) |
| @@ -959,7 +959,7 @@ Call `semantic-symref-hits-in-region' to identify local references." | |||
| 959 | ;;;###autoload | 959 | ;;;###autoload |
| 960 | (defun global-semantic-idle-scheduler-mode (&optional arg) | 960 | (defun global-semantic-idle-scheduler-mode (&optional arg) |
| 961 | "Toggle global use of option `semantic-idle-scheduler-mode'. | 961 | "Toggle global use of option `semantic-idle-scheduler-mode'. |
| 962 | The idle scheduler with automatically reparse buffers in idle time, | 962 | The idle scheduler will automatically reparse buffers in idle time, |
| 963 | and then schedule other jobs setup with `semantic-idle-scheduler-add'. | 963 | and then schedule other jobs setup with `semantic-idle-scheduler-add'. |
| 964 | If ARG is positive, enable, if it is negative, disable. | 964 | If ARG is positive, enable, if it is negative, disable. |
| 965 | If ARG is nil, then toggle." | 965 | If ARG is nil, then toggle." |
diff --git a/lisp/cedet/semantic/util-modes.el b/lisp/cedet/semantic/util-modes.el index 21087ef2506..7e3a615d0b1 100644 --- a/lisp/cedet/semantic/util-modes.el +++ b/lisp/cedet/semantic/util-modes.el | |||
| @@ -337,7 +337,7 @@ semantic parser cannot match is highlighted with a red underline." | |||
| 337 | (((class color) (background light)) | 337 | (((class color) (background light)) |
| 338 | (:underline "red"))) | 338 | (:underline "red"))) |
| 339 | "Face used to show unmatched syntax in. | 339 | "Face used to show unmatched syntax in. |
| 340 | The face is used in `semantic-show-unmatched-syntax-mode'." | 340 | The face is used in `semantic-show-unmatched-syntax-mode'." |
| 341 | :group 'semantic-faces) | 341 | :group 'semantic-faces) |
| 342 | 342 | ||
| 343 | (defsubst semantic-unmatched-syntax-overlay-p (overlay) | 343 | (defsubst semantic-unmatched-syntax-overlay-p (overlay) |
| @@ -767,7 +767,7 @@ This makes it appear that the first line of that tag is | |||
| 767 | ] | 767 | ] |
| 768 | [ "Narrow To Headerline Tag" senator-narrow-to-defun | 768 | [ "Narrow To Headerline Tag" senator-narrow-to-defun |
| 769 | :active (semantic-current-tag) | 769 | :active (semantic-current-tag) |
| 770 | :help "Narrow to the bounds of the current tag."] | 770 | :help "Narrow to the bounds of the current tag"] |
| 771 | [ "Fold Headerline Tag" senator-fold-tag-toggle | 771 | [ "Fold Headerline Tag" senator-fold-tag-toggle |
| 772 | :active (semantic-current-tag) | 772 | :active (semantic-current-tag) |
| 773 | :style toggle | 773 | :style toggle |
| @@ -854,7 +854,7 @@ when it lands in the sticky line." | |||
| 854 | :type 'string) | 854 | :type 'string) |
| 855 | 855 | ||
| 856 | (defvar semantic-stickyfunc-old-hlf nil | 856 | (defvar semantic-stickyfunc-old-hlf nil |
| 857 | "Value of the header line when entering sticky func mode.") | 857 | "Value of the header line when entering stickyfunc mode.") |
| 858 | 858 | ||
| 859 | (defconst semantic-stickyfunc-header-line-format | 859 | (defconst semantic-stickyfunc-header-line-format |
| 860 | (cond ((featurep 'xemacs) | 860 | (cond ((featurep 'xemacs) |
| @@ -868,7 +868,7 @@ when it lands in the sticky line." | |||
| 868 | '(:eval (list semantic-stickyfunc-indent-string | 868 | '(:eval (list semantic-stickyfunc-indent-string |
| 869 | (semantic-stickyfunc-fetch-stickyline)))) | 869 | (semantic-stickyfunc-fetch-stickyline)))) |
| 870 | (t nil)) | 870 | (t nil)) |
| 871 | "The header line format used by sticky func mode.") | 871 | "The header line format used by stickyfunc mode.") |
| 872 | 872 | ||
| 873 | (defun semantic-stickyfunc-mode-setup () | 873 | (defun semantic-stickyfunc-mode-setup () |
| 874 | "Setup option `semantic-stickyfunc-mode'. | 874 | "Setup option `semantic-stickyfunc-mode'. |
| @@ -936,7 +936,7 @@ minor mode is enabled." | |||
| 936 | 936 | ||
| 937 | (defvar semantic-stickyfunc-sticky-classes | 937 | (defvar semantic-stickyfunc-sticky-classes |
| 938 | '(function type) | 938 | '(function type) |
| 939 | "List of tag classes which sticky func will display in the header line.") | 939 | "List of tag classes which stickyfunc will display in the header line.") |
| 940 | (make-variable-buffer-local 'semantic-stickyfunc-sticky-classes) | 940 | (make-variable-buffer-local 'semantic-stickyfunc-sticky-classes) |
| 941 | 941 | ||
| 942 | (defun semantic-stickyfunc-tag-to-stick () | 942 | (defun semantic-stickyfunc-tag-to-stick () |
| @@ -953,7 +953,7 @@ minor mode is enabled." | |||
| 953 | 953 | ||
| 954 | (defun semantic-stickyfunc-fetch-stickyline () | 954 | (defun semantic-stickyfunc-fetch-stickyline () |
| 955 | "Make the function at the top of the current window sticky. | 955 | "Make the function at the top of the current window sticky. |
| 956 | Capture it's function declaration, and place it in the header line. | 956 | Capture its function declaration, and place it in the header line. |
| 957 | If there is no function, disable the header line." | 957 | If there is no function, disable the header line." |
| 958 | (let ((str | 958 | (let ((str |
| 959 | (save-excursion | 959 | (save-excursion |
| @@ -962,7 +962,7 @@ If there is no function, disable the header line." | |||
| 962 | (end-of-line) | 962 | (end-of-line) |
| 963 | ;; Capture this function | 963 | ;; Capture this function |
| 964 | (let* ((tag (semantic-stickyfunc-tag-to-stick))) | 964 | (let* ((tag (semantic-stickyfunc-tag-to-stick))) |
| 965 | ;; TAG is nil if there was nothing of the apropriate type there. | 965 | ;; TAG is nil if there was nothing of the appropriate type there. |
| 966 | (if (not tag) | 966 | (if (not tag) |
| 967 | ;; Set it to be the text under the header line | 967 | ;; Set it to be the text under the header line |
| 968 | (buffer-substring (point-at-bol) (point-at-eol)) | 968 | (buffer-substring (point-at-bol) (point-at-eol)) |
| @@ -1080,7 +1080,7 @@ When enabled, the first line of the current tag is highlighted." | |||
| 1080 | ] | 1080 | ] |
| 1081 | [ "Narrow To Tag" senator-narrow-to-defun | 1081 | [ "Narrow To Tag" senator-narrow-to-defun |
| 1082 | :active (semantic-current-tag) | 1082 | :active (semantic-current-tag) |
| 1083 | :help "Narrow to the bounds of the current tag."] | 1083 | :help "Narrow to the bounds of the current tag"] |
| 1084 | [ "Fold Tag" senator-fold-tag-toggle | 1084 | [ "Fold Tag" senator-fold-tag-toggle |
| 1085 | :active (semantic-current-tag) | 1085 | :active (semantic-current-tag) |
| 1086 | :style toggle | 1086 | :style toggle |
| @@ -1129,7 +1129,7 @@ Use the command `semantic-highlight-func-mode' to change this variable.") | |||
| 1129 | 1129 | ||
| 1130 | (defun semantic-highlight-func-mode-setup () | 1130 | (defun semantic-highlight-func-mode-setup () |
| 1131 | "Setup option `semantic-highlight-func-mode'. | 1131 | "Setup option `semantic-highlight-func-mode'. |
| 1132 | For semantic enabled buffers, highlight the first line of the | 1132 | For Semantic enabled buffers, highlight the first line of the |
| 1133 | current tag declaration." | 1133 | current tag declaration." |
| 1134 | (if semantic-highlight-func-mode | 1134 | (if semantic-highlight-func-mode |
| 1135 | (progn | 1135 | (progn |
| @@ -1202,7 +1202,7 @@ function was called, move the overlay." | |||
| 1202 | (setq semantic-highlight-func-ct-overlay ol) | 1202 | (setq semantic-highlight-func-ct-overlay ol) |
| 1203 | ) | 1203 | ) |
| 1204 | 1204 | ||
| 1205 | ;; TAG is nil if there was nothing of the apropriate type there. | 1205 | ;; TAG is nil if there was nothing of the appropriate type there. |
| 1206 | (if (or (not tag) disable) | 1206 | (if (or (not tag) disable) |
| 1207 | ;; No tag, make the overlay go away. | 1207 | ;; No tag, make the overlay go away. |
| 1208 | (progn | 1208 | (progn |
diff --git a/lisp/cedet/srecode/dictionary.el b/lisp/cedet/srecode/dictionary.el index deadc06abba..8d168a7f339 100644 --- a/lisp/cedet/srecode/dictionary.el +++ b/lisp/cedet/srecode/dictionary.el | |||
| @@ -240,7 +240,7 @@ You can add several dictionaries to the same section macro. | |||
| 240 | For each dictionary added to a macro, the block of codes in the | 240 | For each dictionary added to a macro, the block of codes in the |
| 241 | template will be repeated. | 241 | template will be repeated. |
| 242 | 242 | ||
| 243 | If optional argument SHOW-ONLY is non-nil, then don't add a new dictionarly | 243 | If optional argument SHOW-ONLY is non-nil, then don't add a new dictionary |
| 244 | if there is already one in place. Also, don't add FIRST/LAST entries. | 244 | if there is already one in place. Also, don't add FIRST/LAST entries. |
| 245 | These entries are not needed when we are just showing a section. | 245 | These entries are not needed when we are just showing a section. |
| 246 | 246 | ||
| @@ -402,7 +402,7 @@ FUNCTION and DICTIONARY are as for the baseclass." | |||
| 402 | (defclass srecode-field-value (srecode-dictionary-compound-value) | 402 | (defclass srecode-field-value (srecode-dictionary-compound-value) |
| 403 | ((firstinserter :initarg :firstinserter | 403 | ((firstinserter :initarg :firstinserter |
| 404 | :documentation | 404 | :documentation |
| 405 | "The inserter object for the first occurance of this field.") | 405 | "The inserter object for the first occurrence of this field.") |
| 406 | (defaultvalue :initarg :defaultvalue | 406 | (defaultvalue :initarg :defaultvalue |
| 407 | :documentation | 407 | :documentation |
| 408 | "The default value for this inserter.") | 408 | "The default value for this inserter.") |
diff --git a/lisp/emacs-lisp/chart.el b/lisp/emacs-lisp/chart.el index 4f01e540601..d2abdcffe0d 100644 --- a/lisp/emacs-lisp/chart.el +++ b/lisp/emacs-lisp/chart.el | |||
| @@ -644,7 +644,7 @@ SORT-PRED if desired." | |||
| 644 | ;; Lets create the chart! | 644 | ;; Lets create the chart! |
| 645 | (chart-bar-quickie 'vertical "Files Extension Distribution" | 645 | (chart-bar-quickie 'vertical "Files Extension Distribution" |
| 646 | extlst "File Extensions" | 646 | extlst "File Extensions" |
| 647 | cntlst "# of occurances" | 647 | cntlst "# of occurrences" |
| 648 | 10 | 648 | 10 |
| 649 | '(lambda (a b) (> (cdr a) (cdr b)))) | 649 | '(lambda (a b) (> (cdr a) (cdr b)))) |
| 650 | )) | 650 | )) |
| @@ -740,9 +740,9 @@ SORT-PRED if desired." | |||
| 740 | (setcar cell (1+ (car cell)))) | 740 | (setcar cell (1+ (car cell)))) |
| 741 | (setq nmlst (cons nam nmlst) | 741 | (setq nmlst (cons nam nmlst) |
| 742 | cntlst (cons 1 cntlst)))))) | 742 | cntlst (cons 1 cntlst)))))) |
| 743 | (chart-bar-quickie 'vertical "Username Occurance in RMAIL box" | 743 | (chart-bar-quickie 'vertical "Username Occurrence in RMAIL box" |
| 744 | nmlst "User Names" | 744 | nmlst "User Names" |
| 745 | cntlst "# of occurances" | 745 | cntlst "# of occurrences" |
| 746 | 10 | 746 | 10 |
| 747 | '(lambda (a b) (> (cdr a) (cdr b)))) | 747 | '(lambda (a b) (> (cdr a) (cdr b)))) |
| 748 | )) | 748 | )) |
diff --git a/lisp/emacs-lisp/eieio-speedbar.el b/lisp/emacs-lisp/eieio-speedbar.el index aff078e9998..e4c1c50aa8f 100644 --- a/lisp/emacs-lisp/eieio-speedbar.el +++ b/lisp/emacs-lisp/eieio-speedbar.el | |||
| @@ -227,7 +227,7 @@ attributes. These default objects will be pulled up in a custom | |||
| 227 | object edit buffer doing an in-place edit. | 227 | object edit buffer doing an in-place edit. |
| 228 | 228 | ||
| 229 | If your object represents some other item, override this method | 229 | If your object represents some other item, override this method |
| 230 | and take the apropriate action." | 230 | and take the appropriate action." |
| 231 | (require 'eieio-custom) | 231 | (require 'eieio-custom) |
| 232 | (speedbar-with-attached-buffer | 232 | (speedbar-with-attached-buffer |
| 233 | (eieio-customize-object object)) | 233 | (eieio-customize-object object)) |
| @@ -327,7 +327,7 @@ Argument DEPTH is the depth at which the tag line is inserted." | |||
| 327 | 327 | ||
| 328 | (defmethod eieio-speedbar-expand ((object eieio-speedbar) depth) | 328 | (defmethod eieio-speedbar-expand ((object eieio-speedbar) depth) |
| 329 | "Expand OBJECT at indentation DEPTH. | 329 | "Expand OBJECT at indentation DEPTH. |
| 330 | Inserts a list of new tag lines representing expanded elements withing | 330 | Inserts a list of new tag lines representing expanded elements within |
| 331 | OBJECT." | 331 | OBJECT." |
| 332 | (let ((children (eieio-speedbar-object-children object))) | 332 | (let ((children (eieio-speedbar-object-children object))) |
| 333 | (cond ((eieio-object-p (car children)) | 333 | (cond ((eieio-object-p (car children)) |
diff --git a/lisp/emacs-lisp/eieio.el b/lisp/emacs-lisp/eieio.el index 69ddaa72c1c..f5e684e1323 100644 --- a/lisp/emacs-lisp/eieio.el +++ b/lisp/emacs-lisp/eieio.el | |||
| @@ -79,7 +79,7 @@ | |||
| 79 | "*This hook is executed, then cleared each time `defclass' is called.") | 79 | "*This hook is executed, then cleared each time `defclass' is called.") |
| 80 | 80 | ||
| 81 | (defvar eieio-error-unsupported-class-tags nil | 81 | (defvar eieio-error-unsupported-class-tags nil |
| 82 | "*Non nil to throw an error if an encountered tag us unsupported. | 82 | "*Non-nil to throw an error if an encountered tag us unsupported. |
| 83 | This may prevent classes from CLOS applications from being used with EIEIO | 83 | This may prevent classes from CLOS applications from being used with EIEIO |
| 84 | since EIEIO does not support all CLOS tags.") | 84 | since EIEIO does not support all CLOS tags.") |
| 85 | 85 | ||
| @@ -2021,7 +2021,7 @@ This should only be called from a generic function." | |||
| 2021 | (run-hook-with-args 'eieio-pre-method-execution-hooks | 2021 | (run-hook-with-args 'eieio-pre-method-execution-hooks |
| 2022 | primarymethodlist) | 2022 | primarymethodlist) |
| 2023 | 2023 | ||
| 2024 | ;; Now loop through all occurances forms which we must execute | 2024 | ;; Now loop through all occurrences forms which we must execute |
| 2025 | ;; (which are happily sorted now) and execute them all! | 2025 | ;; (which are happily sorted now) and execute them all! |
| 2026 | (let ((rval nil) (lastval nil) (rvalever nil) (found nil)) | 2026 | (let ((rval nil) (lastval nil) (rvalever nil) (found nil)) |
| 2027 | (while lambdas | 2027 | (while lambdas |
| @@ -2101,7 +2101,7 @@ for this common case to improve performance." | |||
| 2101 | (setq primarymethodlist ;; Re-use even with bad name here | 2101 | (setq primarymethodlist ;; Re-use even with bad name here |
| 2102 | (eieiomt-method-list method method-primary mclass)) | 2102 | (eieiomt-method-list method method-primary mclass)) |
| 2103 | 2103 | ||
| 2104 | ;; Now loop through all occurances forms which we must execute | 2104 | ;; Now loop through all occurrences forms which we must execute |
| 2105 | ;; (which are happily sorted now) and execute them all! | 2105 | ;; (which are happily sorted now) and execute them all! |
| 2106 | (let* ((rval nil) (lastval nil) (rvalever nil) | 2106 | (let* ((rval nil) (lastval nil) (rvalever nil) |
| 2107 | (scoped-class (cdr lambdas)) | 2107 | (scoped-class (cdr lambdas)) |
| @@ -2331,7 +2331,7 @@ nil for superclasses. This function performs no type checking!" | |||
| 2331 | If CLASS is not a class then use `generic' instead. If class has | 2331 | If CLASS is not a class then use `generic' instead. If class has |
| 2332 | no form, but has a parent class, then trace to that parent class. | 2332 | no form, but has a parent class, then trace to that parent class. |
| 2333 | The first time a form is requested from a symbol, an optimized path | 2333 | The first time a form is requested from a symbol, an optimized path |
| 2334 | is memorized for future faster use." | 2334 | is memorized for faster future use." |
| 2335 | (let ((emto (aref (get method 'eieio-method-obarray) | 2335 | (let ((emto (aref (get method 'eieio-method-obarray) |
| 2336 | (if class key (+ key 3))))) | 2336 | (if class key (+ key 3))))) |
| 2337 | (if (class-p class) | 2337 | (if (class-p class) |
| @@ -2814,13 +2814,13 @@ Optional argument NOESCAPE is passed to `prin1-to-string' when appropriate." | |||
| 2814 | ;;; Autoloading some external symbols, and hooking into the help system | 2814 | ;;; Autoloading some external symbols, and hooking into the help system |
| 2815 | ;; | 2815 | ;; |
| 2816 | 2816 | ||
| 2817 | (autoload 'eieio-help-mode-augmentation-maybee "eieio-opt" "For buffers thrown into help mode, augment for eieio.") | 2817 | (autoload 'eieio-help-mode-augmentation-maybee "eieio-opt" "For buffers thrown into help mode, augment for EIEIO.") |
| 2818 | (autoload 'eieio-browse "eieio-opt" "Create an object browser window" t) | 2818 | (autoload 'eieio-browse "eieio-opt" "Create an object browser window." t) |
| 2819 | (autoload 'eieio-describe-class "eieio-opt" "Describe CLASS defined by a string or symbol" t) | 2819 | (autoload 'eieio-describe-class "eieio-opt" "Describe CLASS defined by a string or symbol" t) |
| 2820 | (autoload 'eieio-describe-constructor "eieio-opt" "Describe the constructor function FCN." t) | 2820 | (autoload 'eieio-describe-constructor "eieio-opt" "Describe the constructor function FCN." t) |
| 2821 | (autoload 'describe-class "eieio-opt" "Describe CLASS defined by a string or symbol" t) | 2821 | (autoload 'describe-class "eieio-opt" "Describe CLASS defined by a string or symbol." t) |
| 2822 | (autoload 'eieio-describe-generic "eieio-opt" "Describe GENERIC defined by a string or symbol" t) | 2822 | (autoload 'eieio-describe-generic "eieio-opt" "Describe GENERIC defined by a string or symbol." t) |
| 2823 | (autoload 'describe-generic "eieio-opt" "Describe GENERIC defined by a string or symbol" t) | 2823 | (autoload 'describe-generic "eieio-opt" "Describe GENERIC defined by a string or symbol." t) |
| 2824 | 2824 | ||
| 2825 | (autoload 'customize-object "eieio-custom" "Create a custom buffer editing OBJ.") | 2825 | (autoload 'customize-object "eieio-custom" "Create a custom buffer editing OBJ.") |
| 2826 | 2826 | ||
diff --git a/lisp/emulation/viper-cmd.el b/lisp/emulation/viper-cmd.el index 73cff9d8934..8c216d9aca6 100644 --- a/lisp/emulation/viper-cmd.el +++ b/lisp/emulation/viper-cmd.el | |||
| @@ -479,7 +479,7 @@ | |||
| 479 | (assoc major-mode viper-emacs-state-modifier-alist)) | 479 | (assoc major-mode viper-emacs-state-modifier-alist)) |
| 480 | viper-empty-keymap)) | 480 | viper-empty-keymap)) |
| 481 | )) | 481 | )) |
| 482 | 482 | ||
| 483 | ;; This var is not local in Emacs, so we make it local. It must be local | 483 | ;; This var is not local in Emacs, so we make it local. It must be local |
| 484 | ;; because although the stack of minor modes can be the same for all buffers, | 484 | ;; because although the stack of minor modes can be the same for all buffers, |
| 485 | ;; the associated *keymaps* can be different. In Viper, | 485 | ;; the associated *keymaps* can be different. In Viper, |
| @@ -891,7 +891,7 @@ Vi's prefix argument will be used. Otherwise, the prefix argument passed to | |||
| 891 | 891 | ||
| 892 | 892 | ||
| 893 | (defun viper-exec-form-in-vi (form) | 893 | (defun viper-exec-form-in-vi (form) |
| 894 | "Execute FORM in Vi state, regardless of the Ccurrent Vi state." | 894 | "Execute FORM in Vi state, regardless of the current Vi state." |
| 895 | (let ((buff (current-buffer)) | 895 | (let ((buff (current-buffer)) |
| 896 | result) | 896 | result) |
| 897 | (viper-set-mode-vars-for 'vi-state) | 897 | (viper-set-mode-vars-for 'vi-state) |
| @@ -910,7 +910,7 @@ Vi's prefix argument will be used. Otherwise, the prefix argument passed to | |||
| 910 | 910 | ||
| 911 | (defun viper-exec-form-in-emacs (form) | 911 | (defun viper-exec-form-in-emacs (form) |
| 912 | "Execute FORM in Emacs, temporarily disabling Viper's minor modes. | 912 | "Execute FORM in Emacs, temporarily disabling Viper's minor modes. |
| 913 | Similar to viper-escape-to-emacs, but accepts forms rather than keystrokes." | 913 | Similar to `viper-escape-to-emacs', but accepts forms rather than keystrokes." |
| 914 | (let ((buff (current-buffer)) | 914 | (let ((buff (current-buffer)) |
| 915 | result) | 915 | result) |
| 916 | (viper-set-mode-vars-for 'emacs-state) | 916 | (viper-set-mode-vars-for 'emacs-state) |
| @@ -939,7 +939,7 @@ such minor modes. | |||
| 939 | Usage: | 939 | Usage: |
| 940 | (viper-harness-minor-mode load-file) | 940 | (viper-harness-minor-mode load-file) |
| 941 | 941 | ||
| 942 | LOAD-FILE is a name of the file where the specific minor mode is defined. | 942 | LOAD-FILE is the name of the file where the specific minor mode is defined. |
| 943 | Suffixes such as .el or .elc should be stripped." | 943 | Suffixes such as .el or .elc should be stripped." |
| 944 | 944 | ||
| 945 | (interactive "sEnter name of the load file: ") | 945 | (interactive "sEnter name of the load file: ") |
| @@ -961,9 +961,9 @@ Prevents multiple escape keystrokes if viper-no-multiple-ESC is true. | |||
| 961 | If viper-no-multiple-ESC is 'twice double ESC would ding in vi-state. | 961 | If viper-no-multiple-ESC is 'twice double ESC would ding in vi-state. |
| 962 | Other ESC sequences are emulated via the current Emacs's major mode | 962 | Other ESC sequences are emulated via the current Emacs's major mode |
| 963 | keymap. This is more convenient on TTYs, since this won't block | 963 | keymap. This is more convenient on TTYs, since this won't block |
| 964 | function keys such as up,down, etc. ESC will also will also work as | 964 | function keys such as up, down, etc. ESC will also will also work as |
| 965 | a Meta key in this case. When viper-no-multiple-ESC is nil, ESC functions | 965 | a Meta key in this case. When viper-no-multiple-ESC is nil, ESC works |
| 966 | as a Meta key and any number of multiple escapes is allowed." | 966 | as a Meta key and any number of multiple escapes are allowed." |
| 967 | (interactive "P") | 967 | (interactive "P") |
| 968 | (let (char) | 968 | (let (char) |
| 969 | (cond ((and (not viper-no-multiple-ESC) (eq viper-current-state 'vi-state)) | 969 | (cond ((and (not viper-no-multiple-ESC) (eq viper-current-state 'vi-state)) |
| @@ -1181,7 +1181,7 @@ as a Meta key and any number of multiple escapes is allowed." | |||
| 1181 | ((eq event-char 'delete) (setq event-char ?\C-?)) | 1181 | ((eq event-char 'delete) (setq event-char ?\C-?)) |
| 1182 | ((eq event-char 'backspace) (setq event-char ?\C-h)) | 1182 | ((eq event-char 'backspace) (setq event-char ?\C-h)) |
| 1183 | ((eq event-char 'space) (setq event-char ?\ ))) | 1183 | ((eq event-char 'space) (setq event-char ?\ ))) |
| 1184 | (setq last-command-event | 1184 | (setq last-command-event |
| 1185 | (if (featurep 'xemacs) | 1185 | (if (featurep 'xemacs) |
| 1186 | (character-to-event (or com event-char)) | 1186 | (character-to-event (or com event-char)) |
| 1187 | (or com event-char))) | 1187 | (or com event-char))) |
| @@ -1257,7 +1257,7 @@ as a Meta key and any number of multiple escapes is allowed." | |||
| 1257 | 1257 | ||
| 1258 | ;; as com is non-nil, this means that we have a command to execute | 1258 | ;; as com is non-nil, this means that we have a command to execute |
| 1259 | (if (viper-memq-char (car com) '(?r ?R)) | 1259 | (if (viper-memq-char (car com) '(?r ?R)) |
| 1260 | ;; execute apropriate region command. | 1260 | ;; execute appropriate region command. |
| 1261 | (let ((char (car com)) (com (cdr com))) | 1261 | (let ((char (car com)) (com (cdr com))) |
| 1262 | (setq prefix-arg (cons value com)) | 1262 | (setq prefix-arg (cons value com)) |
| 1263 | (if (viper= char ?r) | 1263 | (if (viper= char ?r) |
| @@ -1285,7 +1285,7 @@ as a Meta key and any number of multiple escapes is allowed." | |||
| 1285 | ;; gg acts as G0 | 1285 | ;; gg acts as G0 |
| 1286 | ((equal (car com) ?g) (viper-goto-line 0)) | 1286 | ((equal (car com) ?g) (viper-goto-line 0)) |
| 1287 | (t (error "Viper bell"))))) | 1287 | (t (error "Viper bell"))))) |
| 1288 | 1288 | ||
| 1289 | (if cmd-to-exec-at-end | 1289 | (if cmd-to-exec-at-end |
| 1290 | (progn | 1290 | (progn |
| 1291 | (setq last-command-event | 1291 | (setq last-command-event |
| @@ -1621,7 +1621,7 @@ Use the info in viper-d-com, which has the form | |||
| 1621 | where `com' is the command to be re-executed, `val' is the | 1621 | where `com' is the command to be re-executed, `val' is the |
| 1622 | argument to `com', `ch' is a flag for repeat, and `reg' is optional; | 1622 | argument to `com', `ch' is a flag for repeat, and `reg' is optional; |
| 1623 | if it exists, it is the name of the register for `com'. | 1623 | if it exists, it is the name of the register for `com'. |
| 1624 | If the prefix argument, ARG, is non-nil, it is used instead of `val'." | 1624 | If the prefix argument ARG is non-nil, it is used instead of `val'." |
| 1625 | (interactive "P") | 1625 | (interactive "P") |
| 1626 | (let ((save-point (point)) ; save point before repeating prev cmd | 1626 | (let ((save-point (point)) ; save point before repeating prev cmd |
| 1627 | ;; Pass along that we are repeating a destructive command | 1627 | ;; Pass along that we are repeating a destructive command |
| @@ -1944,7 +1944,7 @@ Undo previous insertion and inserts new." | |||
| 1944 | require-final-newline | 1944 | require-final-newline |
| 1945 | ;; add newline only if we actually edited buffer. otherwise it | 1945 | ;; add newline only if we actually edited buffer. otherwise it |
| 1946 | ;; might unintentionally modify binary buffers | 1946 | ;; might unintentionally modify binary buffers |
| 1947 | (buffer-modified-p) | 1947 | (buffer-modified-p) |
| 1948 | (not (viper-is-in-minibuffer)) | 1948 | (not (viper-is-in-minibuffer)) |
| 1949 | (not buffer-read-only)) | 1949 | (not buffer-read-only)) |
| 1950 | ;; text property may be read-only | 1950 | ;; text property may be read-only |
| @@ -2539,7 +2539,7 @@ problems." | |||
| 2539 | 2539 | ||
| 2540 | (defun viper-replace-state-exit-cmd () | 2540 | (defun viper-replace-state-exit-cmd () |
| 2541 | "Binding for keys that cause Replace state to switch to Vi or to Insert. | 2541 | "Binding for keys that cause Replace state to switch to Vi or to Insert. |
| 2542 | These keys are ESC, RET, and LineFeed" | 2542 | These keys are ESC, RET, and LineFeed." |
| 2543 | (interactive) | 2543 | (interactive) |
| 2544 | (if overwrite-mode ; if in replace mode invoked via 'R' | 2544 | (if overwrite-mode ; if in replace mode invoked via 'R' |
| 2545 | (viper-finish-R-mode) | 2545 | (viper-finish-R-mode) |
| @@ -3711,7 +3711,7 @@ controlled by the sign of prefix numeric value." | |||
| 3711 | (defun viper-toggle-search-style (arg) | 3711 | (defun viper-toggle-search-style (arg) |
| 3712 | "Toggle the value of viper-case-fold-search/viper-re-search. | 3712 | "Toggle the value of viper-case-fold-search/viper-re-search. |
| 3713 | Without prefix argument, will ask which search style to toggle. With prefix | 3713 | Without prefix argument, will ask which search style to toggle. With prefix |
| 3714 | arg 1,toggles viper-case-fold-search; with arg 2 toggles viper-re-search. | 3714 | arg 1, toggles viper-case-fold-search; with arg 2 toggles viper-re-search. |
| 3715 | 3715 | ||
| 3716 | Although this function is bound to \\[viper-toggle-search-style], the most | 3716 | Although this function is bound to \\[viper-toggle-search-style], the most |
| 3717 | convenient way to use it is to bind `//' to the macro | 3717 | convenient way to use it is to bind `//' to the macro |
| @@ -4262,7 +4262,7 @@ Null string will repeat previous search." | |||
| 4262 | (defun viper-del-backward-char-in-replace () | 4262 | (defun viper-del-backward-char-in-replace () |
| 4263 | "Delete one character in replace mode. | 4263 | "Delete one character in replace mode. |
| 4264 | If `viper-delete-backwards-in-replace' is t, then DEL key actually deletes | 4264 | If `viper-delete-backwards-in-replace' is t, then DEL key actually deletes |
| 4265 | charecters. If it is nil, then the cursor just moves backwards, similarly | 4265 | characters. If it is nil, then the cursor just moves backwards, similarly |
| 4266 | to Vi. The variable `viper-ex-style-editing', if t, doesn't let the | 4266 | to Vi. The variable `viper-ex-style-editing', if t, doesn't let the |
| 4267 | cursor move past the beginning of line." | 4267 | cursor move past the beginning of line." |
| 4268 | (interactive) | 4268 | (interactive) |
| @@ -4614,7 +4614,7 @@ One can use `` and '' to temporarily jump 1 step back." | |||
| 4614 | (indent-to (+ (current-column) viper-shift-width))) | 4614 | (indent-to (+ (current-column) viper-shift-width))) |
| 4615 | 4615 | ||
| 4616 | (defun viper-backward-indent () | 4616 | (defun viper-backward-indent () |
| 4617 | "Backtab, C-d in VI" | 4617 | "Backtab, `C-d' in Vi." |
| 4618 | (interactive) | 4618 | (interactive) |
| 4619 | (if viper-cted | 4619 | (if viper-cted |
| 4620 | (let ((p (point)) (c (current-column)) bol (indent t)) | 4620 | (let ((p (point)) (c (current-column)) bol (indent t)) |
| @@ -4689,7 +4689,7 @@ One can use `` and '' to temporarily jump 1 step back." | |||
| 4689 | viper-InvalidRegister reg))))) | 4689 | viper-InvalidRegister reg))))) |
| 4690 | 4690 | ||
| 4691 | (defun viper-brac-function (arg) | 4691 | (defun viper-brac-function (arg) |
| 4692 | "Function called by \[, the brac. View textmarkers and call \[\[" | 4692 | "Function called by \[, the brac. View textmarkers and call \[\[." |
| 4693 | (interactive "P") | 4693 | (interactive "P") |
| 4694 | (let ((reg (read-char))) | 4694 | (let ((reg (read-char))) |
| 4695 | (cond ((viper= ?\[ reg) | 4695 | (cond ((viper= ?\[ reg) |
| @@ -4922,7 +4922,7 @@ Please, specify your level now: ") | |||
| 4922 | 4922 | ||
| 4923 | ;; if ENFORCE-BUFFER is not nil, error if CHAR is a marker in another buffer | 4923 | ;; if ENFORCE-BUFFER is not nil, error if CHAR is a marker in another buffer |
| 4924 | (defun viper-register-to-point (char &optional enforce-buffer) | 4924 | (defun viper-register-to-point (char &optional enforce-buffer) |
| 4925 | "Like jump-to-register, but switches to another buffer in another window." | 4925 | "Like `jump-to-register', but switches to another buffer in another window." |
| 4926 | (interactive "cViper register to point: ") | 4926 | (interactive "cViper register to point: ") |
| 4927 | (let ((val (get-register char))) | 4927 | (let ((val (get-register char))) |
| 4928 | (cond | 4928 | (cond |
| @@ -5047,7 +5047,7 @@ PLEASE FOLLOW THESE PROCEDURES | |||
| 5047 | ------------------------------ | 5047 | ------------------------------ |
| 5048 | 5048 | ||
| 5049 | Before reporting a bug, please verify that it is related to Viper, and is | 5049 | Before reporting a bug, please verify that it is related to Viper, and is |
| 5050 | not cause by other packages you are using. | 5050 | not caused by other packages you are using. |
| 5051 | 5051 | ||
| 5052 | Don't report compilation warnings, unless you are certain that there is a | 5052 | Don't report compilation warnings, unless you are certain that there is a |
| 5053 | problem. These warnings are normal and unavoidable. | 5053 | problem. These warnings are normal and unavoidable. |
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index f789110d26f..3f4af0ebf0e 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el | |||
| @@ -6890,7 +6890,7 @@ input. | |||
| 6890 | 6890 | ||
| 6891 | If they are variables, this variable is a string containing a Perl | 6891 | If they are variables, this variable is a string containing a Perl |
| 6892 | implementation for this functionality. This Perl program will be transferred | 6892 | implementation for this functionality. This Perl program will be transferred |
| 6893 | to the remote host, and it is avalible as shell function with the same name.") | 6893 | to the remote host, and it is available as shell function with the same name.") |
| 6894 | 6894 | ||
| 6895 | (defun tramp-find-inline-encoding (vec) | 6895 | (defun tramp-find-inline-encoding (vec) |
| 6896 | "Find an inline transfer encoding that works. | 6896 | "Find an inline transfer encoding that works. |
diff --git a/lisp/term/x-win.el b/lisp/term/x-win.el index 21be4ee85d0..3208ece9c09 100644 --- a/lisp/term/x-win.el +++ b/lisp/term/x-win.el | |||
| @@ -133,9 +133,9 @@ When a session manager tells Emacs that the window system is shutting | |||
| 133 | down, this function is called. It calls the functions in the hook | 133 | down, this function is called. It calls the functions in the hook |
| 134 | `emacs-save-session-functions'. Functions are called with the current | 134 | `emacs-save-session-functions'. Functions are called with the current |
| 135 | buffer set to a temporary buffer. Functions should use `insert' to insert | 135 | buffer set to a temporary buffer. Functions should use `insert' to insert |
| 136 | lisp code to save the session state. The buffer is saved | 136 | lisp code to save the session state. The buffer is saved in a file in the |
| 137 | in a file in the home directory of the user running Emacs. The file | 137 | home directory of the user running Emacs. The file is evaluated when |
| 138 | is evaluated when Emacs is restarted by the session manager. | 138 | Emacs is restarted by the session manager. |
| 139 | 139 | ||
| 140 | If any of the functions returns non-nil, no more functions are called | 140 | If any of the functions returns non-nil, no more functions are called |
| 141 | and this function returns non-nil. This will inform the session manager | 141 | and this function returns non-nil. This will inform the session manager |
| @@ -1286,7 +1286,7 @@ The value nil is the same as this list: | |||
| 1286 | ") | 1286 | ") |
| 1287 | 1287 | ||
| 1288 | ;; Get a selection value of type TYPE by calling x-get-selection with | 1288 | ;; Get a selection value of type TYPE by calling x-get-selection with |
| 1289 | ;; an appropiate DATA-TYPE argument decided by `x-select-request-type'. | 1289 | ;; an appropriate DATA-TYPE argument decided by `x-select-request-type'. |
| 1290 | ;; The return value is already decoded. If x-get-selection causes an | 1290 | ;; The return value is already decoded. If x-get-selection causes an |
| 1291 | ;; error, this function return nil. | 1291 | ;; error, this function return nil. |
| 1292 | 1292 | ||
| @@ -1425,7 +1425,7 @@ The value nil is the same as this list: | |||
| 1425 | (declare-function accelerate-menu "xmenu.c" (&optional frame) t) | 1425 | (declare-function accelerate-menu "xmenu.c" (&optional frame) t) |
| 1426 | 1426 | ||
| 1427 | (defun x-menu-bar-open (&optional frame) | 1427 | (defun x-menu-bar-open (&optional frame) |
| 1428 | "Open the menu bar if `menu-bar-mode' is on. otherwise call `tmm-menubar'." | 1428 | "Open the menu bar if `menu-bar-mode' is on, otherwise call `tmm-menubar'." |
| 1429 | (interactive "i") | 1429 | (interactive "i") |
| 1430 | (if (and menu-bar-mode | 1430 | (if (and menu-bar-mode |
| 1431 | (fboundp 'accelerate-menu)) | 1431 | (fboundp 'accelerate-menu)) |
| @@ -1482,7 +1482,7 @@ The value nil is the same as this list: | |||
| 1482 | ;; Create the standard fontset. | 1482 | ;; Create the standard fontset. |
| 1483 | (condition-case err | 1483 | (condition-case err |
| 1484 | (create-fontset-from-fontset-spec standard-fontset-spec t) | 1484 | (create-fontset-from-fontset-spec standard-fontset-spec t) |
| 1485 | (error (display-warning | 1485 | (error (display-warning |
| 1486 | 'initialization | 1486 | 'initialization |
| 1487 | (format "Creation of the standard fontset failed: %s" err) | 1487 | (format "Creation of the standard fontset failed: %s" err) |
| 1488 | :error))) | 1488 | :error))) |
| @@ -1654,7 +1654,7 @@ A value that begins with n: denotes a named icon instead of a stock icon." | |||
| 1654 | :group 'x) | 1654 | :group 'x) |
| 1655 | 1655 | ||
| 1656 | (defcustom icon-map-list '(x-gtk-stock-map) | 1656 | (defcustom icon-map-list '(x-gtk-stock-map) |
| 1657 | "A list of alists that maps icon file names to stock/named icons. | 1657 | "A list of alists that map icon file names to stock/named icons. |
| 1658 | The alists are searched in the order they appear. The first match is used. | 1658 | The alists are searched in the order they appear. The first match is used. |
| 1659 | The keys in the alists are file names without extension and with two directory | 1659 | The keys in the alists are file names without extension and with two directory |
| 1660 | components. For example, to map /usr/share/emacs/22.1.1/etc/images/open.xpm | 1660 | components. For example, to map /usr/share/emacs/22.1.1/etc/images/open.xpm |
diff --git a/lisp/whitespace.el b/lisp/whitespace.el index fbdc6d120a0..183698a28f3 100644 --- a/lisp/whitespace.el +++ b/lisp/whitespace.el | |||
| @@ -397,14 +397,14 @@ It's a list containing some or all of the following values: | |||
| 397 | spaces SPACEs and HARD SPACEs are visualized via | 397 | spaces SPACEs and HARD SPACEs are visualized via |
| 398 | faces. | 398 | faces. |
| 399 | 399 | ||
| 400 | lines lines whose have columns beyond | 400 | lines lines which have columns beyond |
| 401 | `whitespace-line-column' are highlighted via | 401 | `whitespace-line-column' are highlighted via |
| 402 | faces . | 402 | faces. |
| 403 | Whole line is highlighted. | 403 | Whole line is highlighted. |
| 404 | It has precedence over `lines-tail' (see | 404 | It has precedence over `lines-tail' (see |
| 405 | below). | 405 | below). |
| 406 | 406 | ||
| 407 | lines-tail lines whose have columns beyond | 407 | lines-tail lines which have columns beyond |
| 408 | `whitespace-line-column' are highlighted via | 408 | `whitespace-line-column' are highlighted via |
| 409 | faces. | 409 | faces. |
| 410 | But only the part of line which goes | 410 | But only the part of line which goes |
| @@ -462,7 +462,7 @@ Any other value is ignored. | |||
| 462 | If nil, don't visualize TABs, (HARD) SPACEs and NEWLINEs via faces and | 462 | If nil, don't visualize TABs, (HARD) SPACEs and NEWLINEs via faces and |
| 463 | via display table. | 463 | via display table. |
| 464 | 464 | ||
| 465 | There is an evaluation order for some values, if some values are | 465 | There is an evaluation order for some values, if they are |
| 466 | included in `whitespace-style' list. For example, if | 466 | included in `whitespace-style' list. For example, if |
| 467 | indentation, indentation::tab and/or indentation::space are | 467 | indentation, indentation::tab and/or indentation::space are |
| 468 | included in `whitespace-style' list. The evaluation order for | 468 | included in `whitespace-style' list. The evaluation order for |
| @@ -1134,7 +1134,7 @@ otherwise, turn off visualization. | |||
| 1134 | Use `global-whitespace-newline-mode' only for NEWLINE | 1134 | Use `global-whitespace-newline-mode' only for NEWLINE |
| 1135 | visualization exclusively. For other visualizations, including | 1135 | visualization exclusively. For other visualizations, including |
| 1136 | NEWLINE visualization together with (HARD) SPACEs and/or TABs, | 1136 | NEWLINE visualization together with (HARD) SPACEs and/or TABs, |
| 1137 | please, use `global-whitespace-mode'. | 1137 | please use `global-whitespace-mode'. |
| 1138 | 1138 | ||
| 1139 | See also `whitespace-newline' and `whitespace-display-mappings'." | 1139 | See also `whitespace-newline' and `whitespace-display-mappings'." |
| 1140 | :lighter " NL" | 1140 | :lighter " NL" |
| @@ -2046,7 +2046,7 @@ See also `whitespace-toggle-option-alist'." | |||
| 2046 | ((quit error) | 2046 | ((quit error) |
| 2047 | (whitespace-help-off) | 2047 | (whitespace-help-off) |
| 2048 | (error (error-message-string data))))) | 2048 | (error (error-message-string data))))) |
| 2049 | (list sym))) ; return the apropriate symbol | 2049 | (list sym))) ; return the appropriate symbol |
| 2050 | 2050 | ||
| 2051 | 2051 | ||
| 2052 | (defun whitespace-toggle-list (local-p arg the-list) | 2052 | (defun whitespace-toggle-list (local-p arg the-list) |
diff --git a/test/ChangeLog b/test/ChangeLog index e52559399e5..e17adc0bfc7 100644 --- a/test/ChangeLog +++ b/test/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2010-01-18 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | |||
| 3 | * cedet/semantic-tests.el (semanticdb-test-gnu-global) | ||
| 4 | (semantic-lex-test-full-depth, semantic-symref-test-count-hits-in-tag): | ||
| 5 | Fix typos in docstrings and error messages. | ||
| 6 | (semanticdb-ebrowse-run-tests): Fix typos in error messages. | ||
| 7 | |||
| 1 | 2010-01-14 Juanma Barranquero <lekktu@gmail.com> | 8 | 2010-01-14 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 9 | ||
| 3 | * cedet/cedet-utests.el (cedet-utest-log-shutdown, pulse-test): | 10 | * cedet/cedet-utests.el (cedet-utest-log-shutdown, pulse-test): |
diff --git a/test/cedet/semantic-tests.el b/test/cedet/semantic-tests.el index b21b451691b..6d13be1d5d2 100644 --- a/test/cedet/semantic-tests.el +++ b/test/cedet/semantic-tests.el | |||
| @@ -58,7 +58,7 @@ All systems are different. Ask questions along the way." | |||
| 58 | (when (not (or (eq major-mode 'c-mode) | 58 | (when (not (or (eq major-mode 'c-mode) |
| 59 | (eq major-mode 'c++-mode))) | 59 | (eq major-mode 'c++-mode))) |
| 60 | (error "Please make your default buffer be a C or C++ file, then | 60 | (error "Please make your default buffer be a C or C++ file, then |
| 61 | run the test again.."))) | 61 | run the test again"))) |
| 62 | 62 | ||
| 63 | (defun semanticdb-ebrowse-dump () | 63 | (defun semanticdb-ebrowse-dump () |
| 64 | "Find the first loaded ebrowse table, and dump out the contents." | 64 | "Find the first loaded ebrowse table, and dump out the contents." |
| @@ -83,7 +83,7 @@ run the test again.."))) | |||
| 83 | (defun semanticdb-test-gnu-global (searchfor &optional standardfile) | 83 | (defun semanticdb-test-gnu-global (searchfor &optional standardfile) |
| 84 | "Test the GNU Global semanticdb. | 84 | "Test the GNU Global semanticdb. |
| 85 | Argument SEARCHFOR is the text to search for. | 85 | Argument SEARCHFOR is the text to search for. |
| 86 | If optional arg STANDARDFILE is non nil, use a standard file w/ global enabled." | 86 | If optional arg STANDARDFILE is non-nil, use a standard file w/ global enabled." |
| 87 | (interactive "sSearch For Tag: \nP") | 87 | (interactive "sSearch For Tag: \nP") |
| 88 | 88 | ||
| 89 | (require 'data-debug) | 89 | (require 'data-debug) |
| @@ -235,7 +235,7 @@ Optional argument ARG specifies not to use color." | |||
| 235 | 235 | ||
| 236 | (defun semantic-lex-test-full-depth (arg) | 236 | (defun semantic-lex-test-full-depth (arg) |
| 237 | "Test the semantic lexer in the current buffer parsing through lists. | 237 | "Test the semantic lexer in the current buffer parsing through lists. |
| 238 | Usually the lexer parses | 238 | Usually the lexer parses. |
| 239 | If universal argument ARG, then try the whole buffer." | 239 | If universal argument ARG, then try the whole buffer." |
| 240 | (interactive "P") | 240 | (interactive "P") |
| 241 | (let* ((start (current-time)) | 241 | (let* ((start (current-time)) |
| @@ -309,7 +309,7 @@ Analyze the area between BEG and END." | |||
| 309 | 309 | ||
| 310 | (defun semantic-symref-test-count-hits-in-tag () | 310 | (defun semantic-symref-test-count-hits-in-tag () |
| 311 | "Lookup in the current tag the symbol under point. | 311 | "Lookup in the current tag the symbol under point. |
| 312 | the count all the other references to the same symbol within the | 312 | Then count all the other references to the same symbol within the |
| 313 | tag that contains point, and return that." | 313 | tag that contains point, and return that." |
| 314 | (interactive) | 314 | (interactive) |
| 315 | (let* ((ctxt (semantic-analyze-current-context)) | 315 | (let* ((ctxt (semantic-analyze-current-context)) |
| @@ -323,7 +323,7 @@ tag that contains point, and return that." | |||
| 323 | (semantic-tag-start tag) | 323 | (semantic-tag-start tag) |
| 324 | (semantic-tag-end tag)) | 324 | (semantic-tag-end tag)) |
| 325 | (when (interactive-p) | 325 | (when (interactive-p) |
| 326 | (message "Found %d occurances of %s in %.2f seconds" | 326 | (message "Found %d occurrences of %s in %.2f seconds" |
| 327 | Lcount (semantic-tag-name target) | 327 | Lcount (semantic-tag-name target) |
| 328 | (semantic-elapsed-time start (current-time)))) | 328 | (semantic-elapsed-time start (current-time)))) |
| 329 | Lcount))) | 329 | Lcount))) |