diff options
| author | Karoly Lorentey | 2006-12-03 12:15:03 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2006-12-03 12:15:03 +0000 |
| commit | 14bcc1e098410087a837313e2fc822319ff2e8ca (patch) | |
| tree | e468aebbb8d84438d81eb08bf6b77bfeaf664ea7 /lisp/progmodes | |
| parent | 5665a02fd1d009506f246d5f77896e3995127954 (diff) | |
| parent | 704ec54b3f2a40026ea7835b76e040c7335a56c1 (diff) | |
| download | emacs-14bcc1e098410087a837313e2fc822319ff2e8ca.tar.gz emacs-14bcc1e098410087a837313e2fc822319ff2e8ca.zip | |
Merged from emacs@sv.gnu.org.
Patches applied:
* emacs@sv.gnu.org/emacs--devo--0--patch-474
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-475
Merge from gnus--rel--5.10
* emacs@sv.gnu.org/emacs--devo--0--patch-476
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-477
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-478
Update from CVS
* emacs@sv.gnu.org/gnus--rel--5.10--patch-150
Update from CVS
* emacs@sv.gnu.org/gnus--rel--5.10--patch-151
Update from CVS
* emacs@sv.gnu.org/gnus--rel--5.10--patch-152
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-584
Diffstat (limited to 'lisp/progmodes')
| -rw-r--r-- | lisp/progmodes/ada-mode.el | 38 | ||||
| -rw-r--r-- | lisp/progmodes/ada-xref.el | 8 | ||||
| -rw-r--r-- | lisp/progmodes/flymake.el | 4 |
3 files changed, 28 insertions, 22 deletions
diff --git a/lisp/progmodes/ada-mode.el b/lisp/progmodes/ada-mode.el index bc00d859c2d..b1ca93e2f32 100644 --- a/lisp/progmodes/ada-mode.el +++ b/lisp/progmodes/ada-mode.el | |||
| @@ -218,8 +218,8 @@ These files should contain one word per line, that gives the casing | |||
| 218 | to be used for that word in Ada files. If the line starts with the | 218 | to be used for that word in Ada files. If the line starts with the |
| 219 | character *, then the exception will be used for substrings that either | 219 | character *, then the exception will be used for substrings that either |
| 220 | start at the beginning of a word or after a _ character, and end either | 220 | start at the beginning of a word or after a _ character, and end either |
| 221 | at the end of the word or at a _ character. Each line can be terminated by | 221 | at the end of the word or at a _ character. Each line can be terminated |
| 222 | a comment." | 222 | by a comment." |
| 223 | :type '(repeat (file)) | 223 | :type '(repeat (file)) |
| 224 | :group 'ada) | 224 | :group 'ada) |
| 225 | 225 | ||
| @@ -439,10 +439,10 @@ An example is: | |||
| 439 | (defcustom ada-which-compiler 'gnat | 439 | (defcustom ada-which-compiler 'gnat |
| 440 | "*Name of the compiler to use. | 440 | "*Name of the compiler to use. |
| 441 | This will determine what features are made available through the Ada mode. | 441 | This will determine what features are made available through the Ada mode. |
| 442 | The possible choices are : | 442 | The possible choices are: |
| 443 | `gnat': Use Ada Core Technologies' Gnat compiler. Add some cross-referencing | 443 | `gnat': Use Ada Core Technologies' Gnat compiler. Add some cross-referencing |
| 444 | features | 444 | features. |
| 445 | `generic': Use a generic compiler" | 445 | `generic': Use a generic compiler." |
| 446 | :type '(choice (const gnat) | 446 | :type '(choice (const gnat) |
| 447 | (const generic)) | 447 | (const generic)) |
| 448 | :group 'ada) | 448 | :group 'ada) |
| @@ -485,7 +485,7 @@ The extensions should include a `.' if needed.") | |||
| 485 | "reverse" "select" "separate" "subtype" "task" "terminate" "then" | 485 | "reverse" "select" "separate" "subtype" "task" "terminate" "then" |
| 486 | "type" "use" "when" "while" "with" "xor") | 486 | "type" "use" "when" "while" "with" "xor") |
| 487 | "List of Ada keywords. | 487 | "List of Ada keywords. |
| 488 | This variable is used to define `ada-83-keywords' and `ada-95-keywords'")) | 488 | This variable is used to define `ada-83-keywords' and `ada-95-keywords'.")) |
| 489 | 489 | ||
| 490 | (defvar ada-ret-binding nil | 490 | (defvar ada-ret-binding nil |
| 491 | "Variable to save key binding of RET when casing is activated.") | 491 | "Variable to save key binding of RET when casing is activated.") |
| @@ -532,7 +532,7 @@ See `align-mode-alist' for more information.") | |||
| 532 | (valid . (lambda() (not (ada-in-comment-p)))) | 532 | (valid . (lambda() (not (ada-in-comment-p)))) |
| 533 | (modes . '(ada-mode))) | 533 | (modes . '(ada-mode))) |
| 534 | ) | 534 | ) |
| 535 | "Ada support for align.el >= 2.8 | 535 | "Ada support for align.el >= 2.8. |
| 536 | This variable defines several rules to use to align different lines.") | 536 | This variable defines several rules to use to align different lines.") |
| 537 | 537 | ||
| 538 | (defconst ada-align-region-separate | 538 | (defconst ada-align-region-separate |
| @@ -1439,7 +1439,7 @@ The standard casing rules will no longer apply to this word." | |||
| 1439 | ((listp ada-case-exception-file) | 1439 | ((listp ada-case-exception-file) |
| 1440 | (setq file-name (car ada-case-exception-file))) | 1440 | (setq file-name (car ada-case-exception-file))) |
| 1441 | (t | 1441 | (t |
| 1442 | (error (concat "No exception file specified. " | 1442 | (error (concat "No exception file specified. " |
| 1443 | "See variable ada-case-exception-file")))) | 1443 | "See variable ada-case-exception-file")))) |
| 1444 | 1444 | ||
| 1445 | (set-syntax-table ada-mode-symbol-syntax-table) | 1445 | (set-syntax-table ada-mode-symbol-syntax-table) |
| @@ -1478,7 +1478,7 @@ word itself has a special casing." | |||
| 1478 | ((listp ada-case-exception-file) | 1478 | ((listp ada-case-exception-file) |
| 1479 | (car ada-case-exception-file)) | 1479 | (car ada-case-exception-file)) |
| 1480 | (t | 1480 | (t |
| 1481 | (error (concat "No exception file specified. " | 1481 | (error (concat "No exception file specified. " |
| 1482 | "See variable ada-case-exception-file")))))) | 1482 | "See variable ada-case-exception-file")))))) |
| 1483 | 1483 | ||
| 1484 | ;; Find the substring to define as an exception. Order is: the parameter, | 1484 | ;; Find the substring to define as an exception. Order is: the parameter, |
| @@ -1593,8 +1593,8 @@ word itself has a special casing." | |||
| 1593 | 1593 | ||
| 1594 | (defun ada-adjust-case-identifier () | 1594 | (defun ada-adjust-case-identifier () |
| 1595 | "Adjust case of the previous identifier. | 1595 | "Adjust case of the previous identifier. |
| 1596 | The auto-casing is done according to the value of `ada-case-identifier' and | 1596 | The auto-casing is done according to the value of `ada-case-identifier' |
| 1597 | the exceptions defined in `ada-case-exception-file'." | 1597 | and the exceptions defined in `ada-case-exception-file'." |
| 1598 | (interactive) | 1598 | (interactive) |
| 1599 | (if (or (equal ada-case-exception '()) | 1599 | (if (or (equal ada-case-exception '()) |
| 1600 | (equal (char-after) ?_)) | 1600 | (equal (char-after) ?_)) |
| @@ -1743,7 +1743,7 @@ ARG is ignored, and is there for compatibility with `capitalize-word' only." | |||
| 1743 | (defun ada-no-auto-case (&optional arg) | 1743 | (defun ada-no-auto-case (&optional arg) |
| 1744 | "Do nothing. | 1744 | "Do nothing. |
| 1745 | This function can be used for the auto-casing variables in the Ada mode, to | 1745 | This function can be used for the auto-casing variables in the Ada mode, to |
| 1746 | adapt to unusal auto-casing schemes. Since it does nothing, you can for | 1746 | adapt to unusal auto-casing schemes. Since it does nothing, you can for |
| 1747 | instance use it for `ada-case-identifier' if you don't want any special | 1747 | instance use it for `ada-case-identifier' if you don't want any special |
| 1748 | auto-casing for identifiers, whereas keywords have to be lower-cased. | 1748 | auto-casing for identifiers, whereas keywords have to be lower-cased. |
| 1749 | See also `ada-auto-case' to disable auto casing altogether." | 1749 | See also `ada-auto-case' to disable auto casing altogether." |
| @@ -1806,7 +1806,7 @@ Attention: This function might take very long for big regions!" | |||
| 1806 | (set-syntax-table previous-syntax-table)))) | 1806 | (set-syntax-table previous-syntax-table)))) |
| 1807 | 1807 | ||
| 1808 | (defun ada-adjust-case-buffer () | 1808 | (defun ada-adjust-case-buffer () |
| 1809 | "Adjusts the case of all words in the whole buffer. | 1809 | "Adjust the case of all words in the whole buffer. |
| 1810 | ATTENTION: This function might take very long for big buffers!" | 1810 | ATTENTION: This function might take very long for big buffers!" |
| 1811 | (interactive "*") | 1811 | (interactive "*") |
| 1812 | (ada-adjust-case-region (point-min) (point-max))) | 1812 | (ada-adjust-case-region (point-min) (point-max))) |
| @@ -2138,7 +2138,7 @@ Return the equivalent internal parameter list." | |||
| 2138 | (ada-indent-current)) | 2138 | (ada-indent-current)) |
| 2139 | (forward-line 1) | 2139 | (forward-line 1) |
| 2140 | (setq block-done (1+ block-done))) | 2140 | (setq block-done (1+ block-done))) |
| 2141 | (message "indenting ... done"))) | 2141 | (message "Indenting ... done"))) |
| 2142 | 2142 | ||
| 2143 | (defun ada-indent-newline-indent () | 2143 | (defun ada-indent-newline-indent () |
| 2144 | "Indent the current line, insert a newline and then indent the new line." | 2144 | "Indent the current line, insert a newline and then indent the new line." |
| @@ -3841,7 +3841,7 @@ If GOTOTHEN is non-nil, point moves to the 'then' following 'if'." | |||
| 3841 | (defun ada-goto-matching-end (&optional nest-level noerror) | 3841 | (defun ada-goto-matching-end (&optional nest-level noerror) |
| 3842 | "Move point to the end of a block. | 3842 | "Move point to the end of a block. |
| 3843 | Which block depends on the value of NEST-LEVEL, which defaults to zero. | 3843 | Which block depends on the value of NEST-LEVEL, which defaults to zero. |
| 3844 | If NOERROR is non-nil, it only returns nil if found no matching start." | 3844 | If NOERROR is non-nil, it only returns nil if no matching start found." |
| 3845 | (let ((nest-count (or nest-level 0)) | 3845 | (let ((nest-count (or nest-level 0)) |
| 3846 | (regex (eval-when-compile | 3846 | (regex (eval-when-compile |
| 3847 | (concat "\\<" | 3847 | (concat "\\<" |
| @@ -4058,7 +4058,7 @@ Assumes point to be at the end of a statement." | |||
| 4058 | 4058 | ||
| 4059 | (defun ada-looking-at-semi-private () | 4059 | (defun ada-looking-at-semi-private () |
| 4060 | "Return t if looking at the start of a private section in a package. | 4060 | "Return t if looking at the start of a private section in a package. |
| 4061 | Returns nil if the private is part of the package name, as in | 4061 | Return nil if the private is part of the package name, as in |
| 4062 | 'private package A is...' (this can only happen at top level)." | 4062 | 'private package A is...' (this can only happen at top level)." |
| 4063 | (save-excursion | 4063 | (save-excursion |
| 4064 | (and (looking-at "\\<private\\>") | 4064 | (and (looking-at "\\<private\\>") |
| @@ -4968,7 +4968,7 @@ Redefines the function `ff-which-function-are-we-in'." | |||
| 4968 | 4968 | ||
| 4969 | 4969 | ||
| 4970 | (defvar ada-last-which-function-line -1 | 4970 | (defvar ada-last-which-function-line -1 |
| 4971 | "Last on which `ada-which-function' was called.") | 4971 | "Last line on which `ada-which-function' was called.") |
| 4972 | (defvar ada-last-which-function-subprog 0 | 4972 | (defvar ada-last-which-function-subprog 0 |
| 4973 | "Last subprogram name returned by `ada-which-function'.") | 4973 | "Last subprogram name returned by `ada-which-function'.") |
| 4974 | (make-variable-buffer-local 'ada-last-which-function-subprog) | 4974 | (make-variable-buffer-local 'ada-last-which-function-subprog) |
| @@ -5062,7 +5062,7 @@ Since the search can be long, the results are cached." | |||
| 5062 | (defun ada-get-body-name (&optional spec-name) | 5062 | (defun ada-get-body-name (&optional spec-name) |
| 5063 | "Return the file name for the body of SPEC-NAME. | 5063 | "Return the file name for the body of SPEC-NAME. |
| 5064 | If SPEC-NAME is nil, return the body for the current package. | 5064 | If SPEC-NAME is nil, return the body for the current package. |
| 5065 | Returns nil if no body was found." | 5065 | Return nil if no body was found." |
| 5066 | (interactive) | 5066 | (interactive) |
| 5067 | 5067 | ||
| 5068 | (unless spec-name (setq spec-name (buffer-file-name))) | 5068 | (unless spec-name (setq spec-name (buffer-file-name))) |
| @@ -5223,7 +5223,7 @@ Returns nil if no body was found." | |||
| 5223 | "Make text outside current subprogram invisible. | 5223 | "Make text outside current subprogram invisible. |
| 5224 | The subprogram visible is the one that contains or follow point. | 5224 | The subprogram visible is the one that contains or follow point. |
| 5225 | Optional ARG is ignored. | 5225 | Optional ARG is ignored. |
| 5226 | Use `M-x widen' to go back to the full visibility for the buffer." | 5226 | Use \\[widen] to go back to the full visibility for the buffer." |
| 5227 | 5227 | ||
| 5228 | (interactive) | 5228 | (interactive) |
| 5229 | (save-excursion | 5229 | (save-excursion |
diff --git a/lisp/progmodes/ada-xref.el b/lisp/progmodes/ada-xref.el index 9e3f8e14332..05d2a8bf65b 100644 --- a/lisp/progmodes/ada-xref.el +++ b/lisp/progmodes/ada-xref.el | |||
| @@ -1916,8 +1916,12 @@ is using." | |||
| 1916 | (set-buffer (get-buffer-create "*grep*")) | 1916 | (set-buffer (get-buffer-create "*grep*")) |
| 1917 | (while dirs | 1917 | (while dirs |
| 1918 | (insert (shell-command-to-string | 1918 | (insert (shell-command-to-string |
| 1919 | (concat "egrep -i -h '^X|" regexp "( |$)' " | 1919 | (concat |
| 1920 | (file-name-as-directory (car dirs)) "*.ali"))) | 1920 | "grep -E -i -h " |
| 1921 | (shell-quote-argument (concat "^X|" regexp "( |$)")) | ||
| 1922 | " " | ||
| 1923 | (shell-quote-argument (file-name-as-directory (car dirs))) | ||
| 1924 | "*.ali"))) | ||
| 1921 | (set 'dirs (cdr dirs))) | 1925 | (set 'dirs (cdr dirs))) |
| 1922 | 1926 | ||
| 1923 | ;; Now parse the output | 1927 | ;; Now parse the output |
diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el index 4f197e34bfe..b37be18188c 100644 --- a/lisp/progmodes/flymake.el +++ b/lisp/progmodes/flymake.el | |||
| @@ -1021,7 +1021,9 @@ For the format of LINE-ERR-INFO, see `flymake-ler-make-ler'." | |||
| 1021 | (progn | 1021 | (progn |
| 1022 | (flymake-get-project-include-dirs-from-cache basedir)) | 1022 | (flymake-get-project-include-dirs-from-cache basedir)) |
| 1023 | ;;else | 1023 | ;;else |
| 1024 | (let* ((command-line (concat "make -C\"" basedir "\" DUMPVARS=INCLUDE_DIRS dumpvars")) | 1024 | (let* ((command-line (concat "make -C " |
| 1025 | (shell-quote-argument basedir) | ||
| 1026 | " DUMPVARS=INCLUDE_DIRS dumpvars")) | ||
| 1025 | (output (shell-command-to-string command-line)) | 1027 | (output (shell-command-to-string command-line)) |
| 1026 | (lines (flymake-split-string output "\n")) | 1028 | (lines (flymake-split-string output "\n")) |
| 1027 | (count (length lines)) | 1029 | (count (length lines)) |