Commit graph

100 commits

Author SHA1 Message Date
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
Juanma Barranquero
6d533a6ef8 (ada-format-paramlist)
(ada-get-indent-case, ada-check-matching-start)
(ada-check-defun-name, ada-goto-matching-decl-start)
(ada-goto-matching-start, ada-goto-matching-end, ada-tab)
(ada-untab, ada-move-to-start, ada-fill-comment-paragraph)
(ada-make-subprogram-body): Follow error conventions.
(ada-case-exception-file, ada-indent-comment-as-code)
(ada-indent-handle-comment-special, ada-indent-renames)
(ada-indent-return, ada-search-directories-internal)
(ada-tab-policy, ada-case-exception-substring)
(ada-other-file-alist, ada-matching-start-re)
(ada-matching-decl-start-re, ada-contextual-menu-last-point)
(ada-imenu-generic-expression, ada-compile-goto-error)
(ada-in-comment-p, ada-in-string-p, ada-in-string-or-comment-p)
(ada-popup-menu, ada-add-extensions, ada-mode)
(ada-region-selected, ada-create-case-exception)
(ada-create-case-exception-substring, ada-after-keyword-p)
(ada-activate-keys-for-case, ada-adjust-case-region)
(ada-adjust-case-buffer, ada-format-paramlist)
(ada-scan-paramlist, ada-insert-paramlist)
(ada-indent-newline-indent)
(ada-indent-newline-indent-conditional)
(ada-justified-indent-current, ada-goto-previous-word)
(ada-indent-current, ada-get-indent-open-paren)
(ada-get-indent-paramlist, ada-get-indent-end)
(ada-get-indent-case, ada-get-indent-when, ada-get-indent-if)
(ada-get-indent-block-start, ada-get-indent-subprog)
(ada-get-indent-noindent, ada-get-indent-label)
(ada-get-indent-loop, ada-get-indent-type, ada-goto-stmt-start)
(ada-search-prev-end-stmt, ada-goto-next-non-ws)
(ada-goto-stmt-end, ada-goto-next-word)
(ada-check-matching-start, ada-check-defun-name)
(ada-goto-matching-decl-start, ada-goto-matching-start)
(ada-goto-matching-end, ada-search-ignore-string-comment)
(ada-in-decl-p, ada-looking-at-semi-or)
(ada-looking-at-semi-private, ada-in-paramlist-p)
(ada-in-open-paren-p, ada-tab, ada-indent-current-function)
(ada-untab-hard, ada-move-to-start, ada-move-to-end)
(ada-next-procedure, ada-previous-procedure, ada-next-package)
(ada-previous-package, ada-create-menu)
(ada-fill-comment-paragraph-justify)
(ada-fill-comment-paragraph-postfix, ada-fill-comment-paragraph)
(ada-other-file-name, ada-last-which-function-line)
(ada-last-which-function-subprog, ada-which-function)
(ada-get-body-name, ada-outline-level, ada-narrow-to-defun)
(ada-gen-treat-proc, ada-check-emacs-version)
(ada-continuation-indent, ada-align-region-separate):
Fix typos in docstrings.
(ada-adjust-case, ada-adjust-case-interactive): Doc fixes.
2005-06-17 00:20:14 +00:00
Juanma Barranquero
eb4ed27f9a (ada-create-case-exception, ada-create-case-exception-substring,
ada-make-subprogram-body): Follow error conventions.
2005-06-14 15:23:26 +00:00
Lute Kamstra
9a9691963d * progmodes/ada-mode.el (ada-mode):
* progmodes/antlr-mode.el (antlr-mode):
* progmodes/autoconf.el (autoconf-mode):
* progmodes/dcl-mode.el (dcl-mode):
* progmodes/delphi.el (delphi-mode):
* progmodes/ebrowse.el (ebrowse-tree-mode)
(ebrowse-electric-list-mode, ebrowse-member-mode)
(ebrowse-electric-position-mode):
* progmodes/f90.el (f90-mode):
* progmodes/fortran.el (fortran-mode):
* progmodes/icon.el (icon-mode):
* progmodes/idlw-help.el (idlwave-help-mode):
* progmodes/idlw-shell.el (idlwave-shell-mode):
* progmodes/idlwave.el (idlwave-mode):
* progmodes/inf-lisp.el (inferior-lisp-mode):
* progmodes/m4-mode.el (m4-mode):
* progmodes/meta-mode.el (metafont-mode, metapost-mode):
* progmodes/modula2.el (modula-2-mode):
* progmodes/octave-inf.el (inferior-octave-mode):
* progmodes/octave-mod.el (octave-mode):
* progmodes/pascal.el (pascal-mode):
* progmodes/sh-script.el (sh-mode):
* progmodes/sql.el (sql-mode, sql-interactive-mode):
* progmodes/vhdl-mode.el (vhdl-mode):
* progmodes/xscheme.el (scheme-interaction-mode):  Use run-mode-hooks.
2005-05-26 16:43:37 +00:00
Richard M. Stallman
4d9db685ef (ada-adjust-case-skeleton): Moved from ada-stmt.el.
(ada-mode): Add ada-adjust-case-skeleton to skeleton-end-hook.
2005-05-10 09:12:40 +00:00
Richard M. Stallman
64a0475c02 (ada-mode): Use mode-require-final-newline. 2004-12-31 14:49:18 +00:00
Richard M. Stallman
c2fb641564 Use assoc-string, not assoc-ignore-case. 2004-05-22 21:51:17 +00:00
Stefan Monnier
58e7eb2a3e (ada-create-menu): Remove redundant call. 2004-04-14 20:41:47 +00:00
Miles Bader
1f3ddf11e8 Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-196
Remove RCS keywords

2004-04-10  Miles Bader  <miles@gnu.org>

   RCS keyword removal (only non-comment changes are enumerated here):

   * lisp/emacs-lisp/bytecomp.el (byte-compile-version): Variable removed.
   (byte-compile-insert-header): Don't use `byte-compile-version'.
   * lisp/url/url-vars.el (url-version): Use the constant string "Emacs"
   instead of calculating something from the RCS `State' keyword
   [the latter is almost entirely useless anyway].
   * lisp/forms.el (forms-version): Variable removed.
   (forms-mode): Don't use `forms-version'.
   * lisp/recentf.el (recentf-version): Variable removed.
   * lisp/progmodes/delphi.el (delphi-version): Variable removed.
   * lisp/progmodes/ada-mode.el (ada-mode): RCS keyword removed from docstring.
2004-04-10 05:55:49 +00:00
Richard M. Stallman
2389f14324 (ada-mode): Don't use advice. Instead, set which-func-functions. 2003-09-30 12:54:32 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Stefan Monnier
f7a2f2c654 (ada-in-comment-p, ada-in-string-p)
(ada-in-string-or-comment-p): Use line-beginning-position.
2003-05-13 20:48:15 +00:00
Juanma Barranquero
6f9a2614e7 (ada-xemacs): Variable removed, since it's better to use (featurep 'xemacs).
Removed warnings generated with Emacs 21.3.x (mostly by adding needed `require'
statements).
2003-05-04 19:55:38 +00:00
Juanma Barranquero
f7a8090935 (ada-search-directories): Take into account ADA_INCLUDE_PATH for better
compatibility with GNAT.
(ada-contextual-menu): Menu defined through `easy-menu-define' instead.  Various
adjustments to the indentation engine (handling of subtypes, begin blocks,
etc.).
(ada-create-menu): Major rewrite of the handling of menus to use
`easy-menu-define' for cleaner code and better compatibility with XEmacs.  All
menus that were previously in ada-xref.el and ada-prj.el are now defined in this
package, which makes it easier to edit menus.
(ada-narrow-to-defun): Add support for `narrow-to-region'.  No longer
explicitely load ada-xref.el and ada-prj.el.  Use autoload statements instead.
2003-04-29 23:35:40 +00:00
Juanma Barranquero
a1506d2977 Trailing whitepace deleted. 2003-02-04 13:24:35 +00:00
Stefan Monnier
80d50f8814 * progmodes/ada-mode.el: Update copyright notice.
Synchronize with GNAT release 3.15a1.
Do not attempt to load ada-support, which is only for compatibility
with older Emacs versions, and is not needed for Emacs 21.
(ada-continuation-indent): New variable.
New contextual menu: "List local reference", faster than "List References".
(ada-mode): New alignment rules provided by S. Leake.
(ada-mode): Add support for which-function-mode.
Fix various calls to count-lines, that didn't work correctly when the
buffer was narrowed.
(ada-get-current-indent): Fix indentation of named parameter lists and
nested boolean expressions.
(ada-indent-on-previous-lines): Fix indentation of labels.
(ada-search-prev-end-stmt): Fix searching of the previous end-statement,
specially with regards to nested subprograms.
(comment-region advice): Initially disabled, for better compatibility with
other modes.
(ada-fill-comment-paragraph): Fixed (no longer worked with Emacs 21).

* progmodes/ada-xref.el: Update copyright notice.
(ada-xref-create-ali): The default is now not to create automatically the
ALI files by compiling the unit, since this isn't always reliable and
requires an up-to-date project file.
(ada-prj-default-comp-cmd): No longer use gcc directly to compile
a file, but use gnatmake instead, since this gives access to the GNAT
project files.
(ada-xref-search-with-egrep): New variable, suggested by P. Waroquiers.
(ada-load-project-hook): New variable, for support of GNAT project files.
(ada-update-project-menu): Fix the detection of the project file name.
(ada-add-keymap): Change key binding for ada-find-file, that conflicted
with another binding in ada-mode.el.
(ada-add-menu): New menu "List Local References", to list the reference
to the entity only in the current file, instead of looking in the whole
project.  Much faster.
(ada-find-references): New parameters arg and local-only.
(ada-find-any-references): New parameters local-only and append.
(ada-goto-declaration): Fix handling of predefined entities in xref.
(ada-get-all-references): Updated to the new xref format in GNAT 3.15,
still compatible with GNAT 3.14 of course.  Fix various calls to
count-lines, that didn't work correctly when the buffer was narrowed.
2002-06-20 17:40:38 +00:00