diff options
| author | Juanma Barranquero | 2006-10-19 10:31:48 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2006-10-19 10:31:48 +0000 |
| commit | ff003dc7217c913a2c493cc4feb70b8d237594a9 (patch) | |
| tree | 7a66e42374985c048a87d6e52d11da186997684b | |
| parent | a4d2787c2db621248f1e8b1fb33a63c836fcae4d (diff) | |
| download | emacs-ff003dc7217c913a2c493cc4feb70b8d237594a9.tar.gz emacs-ff003dc7217c913a2c493cc4feb70b8d237594a9.zip | |
(ada-in-string-p): Doc fix.
| -rw-r--r-- | lisp/progmodes/ada-mode.el | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lisp/progmodes/ada-mode.el b/lisp/progmodes/ada-mode.el index b1ca93e2f32..d60746c5de8 100644 --- a/lisp/progmodes/ada-mode.el +++ b/lisp/progmodes/ada-mode.el | |||
| @@ -31,9 +31,9 @@ | |||
| 31 | ;;; This mode is a major mode for editing Ada83 and Ada95 source code. | 31 | ;;; This mode is a major mode for editing Ada83 and Ada95 source code. |
| 32 | ;;; This is a major rewrite of the file packaged with Emacs-20. The | 32 | ;;; This is a major rewrite of the file packaged with Emacs-20. The |
| 33 | ;;; ada-mode is composed of four lisp files, ada-mode.el, ada-xref.el, | 33 | ;;; ada-mode is composed of four lisp files, ada-mode.el, ada-xref.el, |
| 34 | ;;; ada-prj.el and ada-stmt.el. Only this file (ada-mode.el) is | 34 | ;;; ada-prj.el and ada-stmt.el. Only this file (ada-mode.el) is |
| 35 | ;;; completely independent from the GNU Ada compiler Gnat, distributed | 35 | ;;; completely independent from the GNU Ada compiler Gnat, distributed |
| 36 | ;;; by Ada Core Technologies. All the other files rely heavily on | 36 | ;;; by Ada Core Technologies. All the other files rely heavily on |
| 37 | ;;; features provided only by Gnat. | 37 | ;;; features provided only by Gnat. |
| 38 | ;;; | 38 | ;;; |
| 39 | ;;; Note: this mode will not work with Emacs 19. If you are on a VMS | 39 | ;;; Note: this mode will not work with Emacs 19. If you are on a VMS |
| @@ -962,7 +962,7 @@ OLD-LEN indicates what the length of the replaced text was." | |||
| 962 | 962 | ||
| 963 | (defsubst ada-in-string-p (&optional parse-result) | 963 | (defsubst ada-in-string-p (&optional parse-result) |
| 964 | "Return t if point is inside a string. | 964 | "Return t if point is inside a string. |
| 965 | If parse-result is non-nil, use is instead of calling `parse-partial-sexp'." | 965 | If PARSE-RESULT is non-nil, use it instead of calling `parse-partial-sexp'." |
| 966 | (nth 3 (or parse-result | 966 | (nth 3 (or parse-result |
| 967 | (parse-partial-sexp | 967 | (parse-partial-sexp |
| 968 | (line-beginning-position) (point))))) | 968 | (line-beginning-position) (point))))) |
| @@ -2410,8 +2410,8 @@ offset." | |||
| 2410 | ;; else | 2410 | ;; else |
| 2411 | 2411 | ||
| 2412 | ((looking-at "else\\>") | 2412 | ((looking-at "else\\>") |
| 2413 | (if (save-excursion (ada-goto-previous-word) | 2413 | (if (save-excursion (ada-goto-previous-word) |
| 2414 | (looking-at "\\<or\\>")) | 2414 | (looking-at "\\<or\\>")) |
| 2415 | (ada-indent-on-previous-lines nil orgpoint orgpoint) | 2415 | (ada-indent-on-previous-lines nil orgpoint orgpoint) |
| 2416 | (save-excursion | 2416 | (save-excursion |
| 2417 | (ada-goto-matching-start 1 nil t) | 2417 | (ada-goto-matching-start 1 nil t) |
| @@ -4205,9 +4205,9 @@ of the region. Otherwise, operate only on the current line." | |||
| 4205 | (defun ada-untab-hard () | 4205 | (defun ada-untab-hard () |
| 4206 | "Indent current line to previous tab stop." | 4206 | "Indent current line to previous tab stop." |
| 4207 | (interactive) | 4207 | (interactive) |
| 4208 | (let ((bol (save-excursion (progn (beginning-of-line) (point)))) | 4208 | (let ((bol (save-excursion (progn (beginning-of-line) (point)))) |
| 4209 | (eol (save-excursion (progn (end-of-line) (point))))) | 4209 | (eol (save-excursion (progn (end-of-line) (point))))) |
| 4210 | (indent-rigidly bol eol (- 0 ada-indent)))) | 4210 | (indent-rigidly bol eol (- 0 ada-indent)))) |
| 4211 | 4211 | ||
| 4212 | 4212 | ||
| 4213 | 4213 | ||
| @@ -4217,7 +4217,7 @@ of the region. Otherwise, operate only on the current line." | |||
| 4217 | 4217 | ||
| 4218 | ;; Not needed any more for Emacs 21.2, but still needed for backward | 4218 | ;; Not needed any more for Emacs 21.2, but still needed for backward |
| 4219 | ;; compatibility | 4219 | ;; compatibility |
| 4220 | (defun ada-remove-trailing-spaces () | 4220 | (defun ada-remove-trailing-spaces () |
| 4221 | "Remove trailing spaces in the whole buffer." | 4221 | "Remove trailing spaces in the whole buffer." |
| 4222 | (interactive) | 4222 | (interactive) |
| 4223 | (save-match-data | 4223 | (save-match-data |
| @@ -4904,7 +4904,7 @@ or the spec otherwise." | |||
| 4904 | (let ((is-spec nil) | 4904 | (let ((is-spec nil) |
| 4905 | (is-body nil) | 4905 | (is-body nil) |
| 4906 | (suffixes ada-spec-suffixes) | 4906 | (suffixes ada-spec-suffixes) |
| 4907 | (name (buffer-file-name))) | 4907 | (name (buffer-file-name))) |
| 4908 | 4908 | ||
| 4909 | ;; Guess whether we have a spec or a body, and get the basename of the | 4909 | ;; Guess whether we have a spec or a body, and get the basename of the |
| 4910 | ;; file. Since the extension may not start with '.', we can not use | 4910 | ;; file. Since the extension may not start with '.', we can not use |