Stephen Leake
afb5d70904
Fix bug#5435.
2010-01-21 13:25:54 +01:00
Stephen Leake
6a47c86a18
* ada-mode.el: Really fix bug#5400 (comment in 2010-01-17T19:15:32Z!lekktu@gmail.com was erroneous).
...
(ada-matching-decl-start-re): Move into ada-goto-decl-start.
(ada-goto-decl-start): Rename from ada-goto-matching-decl-start; callers
changed. Delete RECURSIVE parameter; never used. Improve doc string.
Improve comments in "is" portion. Handle null procedure declaration.
(ada-move-to-end): Improve doc string.
2010-01-19 00:10:57 +01:00
Stephen Leake
0b702bc14d
* progmodes/ada-mode.el: Fix bug#1920, bug#5400.
...
(ada-ident-re): Delete ., allow multibyte characters.
(ada-goto-label-re): New; matches goto labels.
(ada-block-label-re): New; matches block labels.
(ada-label-re): New; matches both.
(ada-named-block-re): Deleted; callers changed to use
`ada-block-label-re' instead.
(ada-get-current-indent, ada-get-indent-noindent, ada-get-indent-loop):
Use `ada-block-label-re'.
(ada-indent-on-previous-lines): Improve handling of goto labels.
(ada-get-indent-block-start): Special-case block label.
(ada-get-indent-label): Split into `ada-indent-block-label' and
`ada-indent-goto-label'.
(ada-goto-stmt-start, ada-goto-next-non-ws): Optionally ignore goto labels.
(ada-goto-next-word): Simplify.
(ada-indent-newline-indent-conditional): Insert newline before
trying to fix indentation; doc fix.
2010-01-17 20:15:32 +01:00
Stephen Leake
80e18d20ec
* progmodes/ada-mode.el: Override narrow-to-defun' with
ada-narrow-to-defun'.
2010-01-14 13:57:07 +01:00
Stephen Leake
fb0d15459c
* progmodes/ada-mode.el: Deal with Ada 2005 "overriding" keyword.
...
(ada-subprog-start-re, ada-imenu-subprogram-menu-re): Add keyword.
(ada-get-current-indent, ada-imenu-generic-expression)
(ada-which-function): Check for it.
2010-01-14 13:52:37 +01:00
Stephen Leake
5c9434d0a0
* progmodes/ada-mode.el (ada-clean-buffer-before-saving): Make obsolete.
...
(ada-mode): Don't obey `ada-clean-buffer-before-saving' anymore.
2010-01-14 13:36:14 +01:00
Glenn Morris
114f9c9679
Add 2010 to copyright years.
2010-01-13 00:35:10 -08:00
Juanma Barranquero
32226619c5
Use called-interactively-p' instead of
interactive-p'.
2009-10-02 03:48:36 +00:00
Glenn Morris
e6ce8c4239
Use forward-line rather than goto-line.
2009-08-22 19:29:18 +00:00
Sam Steingold
6bb90094fb
(compile-auto-highlight): Remove the variable (removed from compile.el
...
on 2004-03-11).
2009-07-20 16:40:24 +00:00
Glenn Morris
1ba983e8d9
Replace last-command-char with last-command-event.
2009-01-09 04:23:38 +00:00
Juanma Barranquero
a97af989ec
* progmodes/ada-mode.el (ada-mode): Simplify doc string.
...
(ada-get-indent-paramlist): Use ada-broken-indent instead of
hard-coded 0.
(ada-get-indent-loop): Fix list access bug.
2009-01-04 19:39:12 +00:00
Juanma Barranquero
dd4fdc44b1
* progmodes/ada-mode.el (ada-get-indent-end, ada-goto-matching-start):
...
Add support for extended return statement.
* progmodes/ada-xref.el (ada-gnat-parse-gpr): Don't reverse src-dir
and obj-dir; keep user order.
2008-10-12 23:06:29 +00:00
Juanma Barranquero
32b1a27f28
Typo fixes for Ada mode.
...
* progmodes/ada-mode.el (ada-batch-reformat): Doc fix.
(ada-create-case-exception): Fix typo in docstring.
(ada-no-auto-case): Return nil, not the docstring.
(ada-indent-current): Reflow docstring.
* progmodes/ada-prj.el (ada-prj-edit, ada-prj-initialize-values)
(ada-prj-save-specific-option, ada-prj-field): Fix typos in docstrings.
(ada-prj-load-from-file): Reflow docstring.
(ada-prj-display-page): Fix typo in widget.
* progmodes/ada-stmt.el (ada-case, ada-package-body, ada-private):
Fix typos in docstrings.
* progmodes/ada-xref.el (ada-find-executable, ada-gnat-parse-gpr)
(ada-compile-current, ada-check-current, ada-run-application)
(ada-get-ali-file-name): Fix typos in docstrings.
(ada-xref-confirm-compile, ada-find-references)
(ada-find-local-references, ada-find-any-references): Doc fixes.
(ada-get-all-references): Fix typo in error message.
(ada-xref-current-project): Use `let', not `let*'.
(ada-do-file-completion, ada-xref-change-buffer): Reflow docstring.
2008-07-29 13:20:39 +00:00
Juanma Barranquero
d5875b259c
Fix bug #272 , and update Ada mode to version 4.0.
2008-07-28 11:03:42 +00:00
Stefan Monnier
a3507bd3c2
* textmodes/reftex-vars.el (reftex-extra-bindings-prefix): New var.
...
* textmodes/reftex.el (reftex-extra-bindings-map): New var.
(reftex-extra-bindings): Use it.
* progmodes/mixal-mode.el (mixal-mode-map): Move key-bindings
away from the user-reserved keys.
* progmodes/ada-mode.el (ada-mode-extra-map, ada-mode-extra-prefix): New vars.
(ada-create-keymap): Use them.
2008-05-23 20:31:12 +00:00
Glenn Morris
b1fc2b5014
Switch to recommended form of GPLv3 permissions notice.
2008-05-06 07:25:26 +00:00
Miles Bader
b03f96dc5a
Merge from emacs--rel--22
...
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1074
2008-02-24 10:09:07 +00:00
Stefan Monnier
ed3b86bfb7
(ada-font-lock-syntactic-keywords):
...
Recognize ''' just like any other char-constant.
2008-02-17 19:24:09 +00:00
Miles Bader
1bad168e59
Merge from emacs--rel--22
...
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1006
2008-01-22 23:53:46 +00:00
Juanma Barranquero
d2bde04f6a
Fix typos in comments.
2008-01-16 16:15:56 +00:00
Martin Rudalics
fedcb5ffc0
(ada-set-syntax-table-properties): Bind
...
buffer-file-name and buffer-file-truename.
2008-01-10 18:49:31 +00:00
Glenn Morris
4e643dd23c
Add 2008 to copyright years.
2008-01-07 02:11:00 +00:00
Stefan Monnier
3da360a745
* progmodes/ada-xref.el (ada-prj-find-prj-file):
...
* progmodes/ada-mode.el (comment-region):
* calendar/todo-mode.el (todo-insert-item):
* bookmark.el (bookmark-buffer-name): Test major-mode rather than mode-name.
2008-01-04 06:18:31 +00:00
Richard M. Stallman
b63dc21e4f
(ada-region-selected): Use `use-region-p'.
2007-12-25 22:47:03 +00:00
Juanma Barranquero
65c96997b5
(ada-save-exceptions-to-file): Use mapc' rather than
mapcar'.
2007-09-26 00:23:56 +00:00
Stefan Monnier
d5dac3b9bd
(ada-create-keymap): Paren typo.
2007-08-21 16:25:41 +00:00
Stefan Monnier
23b747d1ed
Fix up comment style in header.
...
(ada-check-emacs-version): Remove.
(ada-mode): Set parse-sexp-* even if they don't exist: can't hurt.
(ada-region-selected): Use (featurep 'xemacs) rather than contortions
to try and quieten the byte-compiler.
(ada-create-keymap): Use [(..)] keys, which work on both (X)Emacs.
2007-08-21 16:24:43 +00:00
Martin Rudalics
bef8366655
(ada-create-syntax-table): Move
...
set-syntax-table from here to ...
(ada-mode): ... here. Do not change global value of
comment-multi-line. Call new function
ada-initialize-syntax-table-properties and add new function
ada-handle-syntax-table-properties to font-lock-mode-hook.
(ada-deactivate-properties, ada-initialize-properties): Replace
by new functions ...
(ada-handle-syntax-table-properties)
(ada-initialize-syntax-table-properties)
(ada-set-syntax-table-properties): ... to set up syntax-table
properties uniformly, independently from whether font-lock-mode
is enabled or not. Handle read-only buffers and do not change
undo-list when setting syntax-table properties.
(ada-after-change-function): Use ada-set-syntax-table-properties.
2007-08-18 08:33:06 +00:00
Glenn Morris
1a484753b2
Switch license to GPLv3 or later.
2007-07-25 04:29:40 +00:00
Glenn Morris
d7a0267c8d
Add 2007 to copyright years.
2007-01-21 03:53:13 +00:00
Juanma Barranquero
1babb7ea23
(ada-which-compiler): Fix typo in docstring.
...
(ada-compile-goto-error): Adapt to new argument profile of
compilation-goto-locus in Emacs 22. Don't check if the various compile
functions are defined; we already do "(require 'compile)".
2006-11-26 13:49:43 +00:00
Juanma Barranquero
f7eb6f23d0
(ada-make-body): Fix typo.
2006-11-19 01:35:31 +00:00
Juanma Barranquero
d4ee31d348
(ada-mode-version): Bump version.
...
(ada-create-keymap): Add \C-c\C-m 'ada-set-main-compile-application.
(ada-create-menu): Add ada-set-main-compile-application, ada-show-current-main,
ada-show-current-project.
2006-11-14 16:13:39 +00:00
Juanma Barranquero
1d424b5859
(ada-83-string-keywords, ada-95-string-keywords, ada-2005-string-keywords):
...
Restore `eval-when-compile'. It wasn't that unneeded after all.
2006-11-12 17:13:54 +00:00
Juanma Barranquero
7fdb5d5439
Replace conditional (require 'ispell) with defvar.
...
(ada-language-version): Rename ada05 -> ada2005.
(ada-83-string-keywords, ada-95-string-keywords, ada-2005-string-keywords):
Delete unneeded `eval-when-compile'.
(ada-align-region-separate): Add `eval-when-compile'.
(ada-name-regexp): Remove unneeded escapes in regexp character alternative.
(ada-compile-goto-error-file-linenr-re): New constant.
(ada-matching-start-re): Handle additional cases `declare', `procedure',
`function'.
(ada-compile-goto-error): Handle "... at line nn".
(ada-mode): Clearer syntax, comments for ff-special-constructs.
Delete support for old versions of `align'.
(ada-search-prev-end-stmt): Handle additional keyword `private'.
(ada-check-defun-name): Simplify handling of `declare'.
(ada-goto-matching-start): Handle nested `begin ... end'. Handle `declare',
`protected', `procedure', `function'.
(ada-create-menu): Presence of arm95 is not conditional on using GNAT compiler.
2006-11-12 16:55:38 +00:00
Juanma Barranquero
dc786b8afd
Delete eval-and-compile' around
require'.
...
Delete commented out code for old Emacs versions.
Autoloading of "ada-xref", "ada-prj" is useful even if compiler is not GNAT.
(ada-mode-version): Bump version number.
(ada-95-string-keywords, ada-2005-string-keywords, ada-2005-keywords,
ada-name-regexp): New constant.
(ada-language-version, ada-procedure-start-regexp, ada-mode,
ada-font-lock-keywords): Add support for Ada 2005 keywords.
(ada-package-start-regexp): Support private packages, include package
name (for ada-set-point-accordingly).
(ada-next-procedure, ada-previous-procedure, ada-which-function-are-we-in):
Match changes to ada-procedure-start-regexp.
(ada-make-body): Make non-interactive; not a user function.
(ada-make-subprogram-body): Improve doc string.
2006-11-11 16:13:41 +00:00
Juanma Barranquero
f70b58b0ca
Change maintainer, apply whitespace-clean, checkdoc. Minor improvements to many
...
doc strings.
(ada-mode-version): New function.
(ada-create-menu): Menu operations are available for all supported compilers.
2006-10-29 15:29:57 +00:00
Juanma Barranquero
ff003dc721
(ada-in-string-p): Doc fix.
2006-10-19 10:31:48 +00:00
Juanma Barranquero
97a62f8340
(ada-83-string-keywords, ada-last-which-function-line ada-no-auto-case,
...
ada-indent-region, ada-which-compiler, ada-align-modes, ada-adjust-case-buffer,
ada-looking-at-semi-private, ada-get-body-name): Fix typos in docstrings.
(ada-create-case-exception, ada-create-case-exception-substring):
Fix typos in error messages.
(ada-goto-matching-end, ada-narrow-to-defun): Doc fixes.
2006-10-18 16:29:36 +00:00
Thien-Thi Nguyen
072cb54a86
(ada-mode): Rewrite ff-special-constructs init.
2006-07-16 21:12:46 +00:00
Juanma Barranquero
0347188a3c
(ada-which-compiler, ada-mode-menu, ada-compile-mouse-goto-error,
...
ada-deactivate-properties, ada-no-auto-case): Fix typos in docstrings.
2006-06-30 08:32:19 +00:00
Nick Roberts
dbc4287b14
Update copyright for 2006.
2006-02-10 07:54:12 +00:00
Juri Linkov
8ec3bce045
Add :link (custom-group-link font-lock-faces) to defgroup.
2005-11-17 07:40:11 +00:00
Deepak Goel
29a4e67d88
Message format fixes, commit no. 3
2005-09-18 12:31:28 +00:00
Juanma Barranquero
5f7286f2ee
(compile-auto-highlight, skeleton-further-elements): Add defvars.
2005-08-30 10:27:54 +00:00
Juanma Barranquero
2bd5227ede
(ada-mode): Use make-local-variable', not
make-variable-buffer-local'.
2005-08-02 10:24:17 +00:00
Nick Roberts
034babe1e1
Update copyright for release of 22.1 for progmodes directory.
2005-08-01 08:43:45 +00:00
Juanma Barranquero
877dde9e8b
(ada-make-body): Use insert-buffer-substring' and
goto-char', not `insert-buffer'.
2005-07-18 11:28:53 +00:00
Lute Kamstra
3a35cf56e7
Update FSF's address.
2005-07-04 17:55:18 +00:00