Mercurial > emacs
comparison lisp/progmodes/ada-mode.el @ 91367:c70e45a7acfd
Merge from emacs--devo--0
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-324
author | Miles Bader <miles@gnu.org> |
---|---|
date | Wed, 30 Jan 2008 07:57:28 +0000 |
parents | 606f2d163a64 5d58981e6690 |
children |
comparison
equal
deleted
inserted
replaced
91366:86f3a8f0a3a6 | 91367:c70e45a7acfd |
---|---|
928 are treated as numbers instead of gnatprep comments." | 928 are treated as numbers instead of gnatprep comments." |
929 (let ((modified (buffer-modified-p)) | 929 (let ((modified (buffer-modified-p)) |
930 (buffer-undo-list t) | 930 (buffer-undo-list t) |
931 (inhibit-read-only t) | 931 (inhibit-read-only t) |
932 (inhibit-point-motion-hooks t) | 932 (inhibit-point-motion-hooks t) |
933 (inhibit-modification-hooks t)) | 933 (inhibit-modification-hooks t) |
934 buffer-file-name buffer-file-truename) | |
934 (remove-text-properties (point-min) (point-max) '(syntax-table nil)) | 935 (remove-text-properties (point-min) (point-max) '(syntax-table nil)) |
935 (goto-char (point-min)) | 936 (goto-char (point-min)) |
936 (while (re-search-forward | 937 (while (re-search-forward |
937 ;; The following regexp was adapted from | 938 ;; The following regexp was adapted from |
938 ;; `ada-font-lock-syntactic-keywords'. | 939 ;; `ada-font-lock-syntactic-keywords'. |
4952 ;; file (body or spec). | 4953 ;; file (body or spec). |
4953 ;; It is also used to find in which function we are, so as to put the | 4954 ;; It is also used to find in which function we are, so as to put the |
4954 ;; cursor at the correct position. | 4955 ;; cursor at the correct position. |
4955 ;; Standard Ada does not force any relation between unit names and file names, | 4956 ;; Standard Ada does not force any relation between unit names and file names, |
4956 ;; so some of these functions can only be a good approximation. However, they | 4957 ;; so some of these functions can only be a good approximation. However, they |
4957 ;; are also overriden in `ada-xref'.el when we know that the user is using | 4958 ;; are also overridden in `ada-xref'.el when we know that the user is using |
4958 ;; GNAT. | 4959 ;; GNAT. |
4959 ;; --------------------------------------------------- | 4960 ;; --------------------------------------------------- |
4960 | 4961 |
4961 ;; Overriden when we work with GNAT, to use gnatkrunch | 4962 ;; Overridden when we work with GNAT, to use gnatkrunch |
4962 (defun ada-make-filename-from-adaname (adaname) | 4963 (defun ada-make-filename-from-adaname (adaname) |
4963 "Determine the filename in which ADANAME is found. | 4964 "Determine the filename in which ADANAME is found. |
4964 This matches the GNAT default naming convention, except for | 4965 This matches the GNAT default naming convention, except for |
4965 pre-defined units." | 4966 pre-defined units." |
4966 (while (string-match "\\." adaname) | 4967 (while (string-match "\\." adaname) |