aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2001-09-20 15:43:41 +0000
committerEli Zaretskii2001-09-20 15:43:41 +0000
commitde80350073db77766f13aa1dc8a16f01ccd5c6aa (patch)
tree50df66acaf3a1175bb6f52cd7e124c6ef01b13ba
parent346e701f4572101b4f77c3f2532fec394f50c2b5 (diff)
downloademacs-de80350073db77766f13aa1dc8a16f01ccd5c6aa.tar.gz
emacs-de80350073db77766f13aa1dc8a16f01ccd5c6aa.zip
Add an Index and index all commands. This is so C-h C-f works.
-rw-r--r--man/ada-mode.texi122
1 files changed, 87 insertions, 35 deletions
diff --git a/man/ada-mode.texi b/man/ada-mode.texi
index 24551fed877..d6ad14f7050 100644
--- a/man/ada-mode.texi
+++ b/man/ada-mode.texi
@@ -93,6 +93,7 @@ license to the document, as described in section 6 of the license.
93* Debugging:: Debugging your application 93* Debugging:: Debugging your application
94* Using non-standard file names:: Configuring Emacs for special file names 94* Using non-standard file names:: Configuring Emacs for special file names
95* Working Remotely:: Working on a different machine 95* Working Remotely:: Working on a different machine
96* Index::
96@end menu 97@end menu
97 98
98 99
@@ -345,14 +346,18 @@ choice is to use this variable settings, and otherwise
345 346
346@table @kbd 347@table @kbd
347@item C-c u 348@item C-c u
349@findex ada-customize
348Create or edit the project file for the current buffer (@code{ada-customize}). 350Create or edit the project file for the current buffer (@code{ada-customize}).
349@item C-c c 351@item C-c c
352@findex ada-change-prj
350Change the project file associated with the current Ada buffer (@code{ada-change-prj}). 353Change the project file associated with the current Ada buffer (@code{ada-change-prj}).
351@item C-c d 354@item C-c d
352Change the default project file for the current directory. Every new 355@findex ada-change-default-project
353file opened from this directory will be associated with that file by 356Change the default project file for the current directory
354default. 357(@code{ada-change-default-project}). Every new file opened from this
358directory will be associated with that file by default.
355@item ada-set-default-project-file 359@item ada-set-default-project-file
360@findex ada-set-default-project-file
356Set the default project file to use for *any* Ada file opened anywhere 361Set the default project file to use for *any* Ada file opened anywhere
357on your system. This sets this file only for the current Emacs session. 362on your system. This sets this file only for the current Emacs session.
358@end table 363@end table
@@ -542,32 +547,40 @@ the following key bindings or the command names:
542 547
543@table @kbd 548@table @kbd
544@item M-C-e 549@item M-C-e
550@findex ada-next-procedure
545Move to the next function/procedure/task, which ever comes next 551Move to the next function/procedure/task, which ever comes next
546(@code{ada-next-procedure}). 552(@code{ada-next-procedure}).
547@item M-C-a 553@item M-C-a
554@findex ada-previous-procedure
548Move to previous function/procedure/task 555Move to previous function/procedure/task
549(@code{ada-previous-procedure}). 556(@code{ada-previous-procedure}).
550@item M-x ada-next-package 557@item M-x ada-next-package
558@findex ada-next-package
551Move to next package. 559Move to next package.
552@item M-x ada-prev-package 560@item M-x ada-prev-package
561@findex ada-prev-package
553Move to previous package. 562Move to previous package.
554@item C-c C-a 563@item C-c C-a
564@findex ada-move-to-start
555Move to matching start of @code{end} (@code{ada-move-to-start}). If 565Move to matching start of @code{end} (@code{ada-move-to-start}). If
556point is at the end of a subprogram, this command jumps to the 566point is at the end of a subprogram, this command jumps to the
557corresponding @code{begin} if the user option 567corresponding @code{begin} if the user option
558@code{ada-move-to-declaration} is @code{nil} (default), it jumps to 568@code{ada-move-to-declaration} is @code{nil} (default), it jumps to
559the subprogram declaration otherwise. 569the subprogram declaration otherwise.
560@item C-c C-e 570@item C-c C-e
571@findex ada-move-to-end
561Move point to end of current block (@code{ada-move-to-end}). 572Move point to end of current block (@code{ada-move-to-end}).
562@item C-c o 573@item C-c o
563Switch between corresponding spec and body file 574Switch between corresponding spec and body file
564(@code{ff-find-other-file}). If the cursor is on a subprogram, switch 575(@code{ff-find-other-file}). If the cursor is on a subprogram, switch
565between declaration and body. 576between declaration and body.
566@item C-c c-d 577@item C-c c-d
578@findex ada-goto-declaration
567Move from any reference to its declaration and switch between 579Move from any reference to its declaration and switch between
568declaration and body (for procedures, tasks, private and incomplete 580declaration and body (for procedures, tasks, private and incomplete
569types). 581types).
570@item C-c C-r 582@item C-c C-r
583@findex ada-find-references
571runs the @file{gnatfind} command to search for all references to the 584runs the @file{gnatfind} command to search for all references to the
572entity pointed by the cursor (@code{ada-find-references}). Use 585entity pointed by the cursor (@code{ada-find-references}). Use
573@kbd{C-x `} (@code{next-error}) to visit each reference (as for 586@kbd{C-x `} (@code{next-error}) to visit each reference (as for
@@ -638,6 +651,7 @@ identifier.
638 651
639@table @kbd 652@table @kbd
640@item C-@key{TAB} 653@item C-@key{TAB}
654@findex ada-complete-identifier
641Complete accurately current identifier using information in @samp{.ali} file 655Complete accurately current identifier using information in @samp{.ali} file
642(@code{ada-complete-identifier}). 656(@code{ada-complete-identifier}).
643@item M-/ 657@item M-/
@@ -799,6 +813,7 @@ separating argument names and argument types, plus align the
799 813
800@table @kbd 814@table @kbd
801@item C-c C-f 815@item C-c C-f
816@findex ada-format-paramlist
802Format the parameter list (@code{ada-format-paramlist}). 817Format the parameter list (@code{ada-format-paramlist}).
803@end table 818@end table
804 819
@@ -867,14 +882,15 @@ which should point to a system-wide file that each of them can
867write. That way, you will ensure that the casing is consistent 882write. That way, you will ensure that the casing is consistent
868throughout your application(s). 883throughout your application(s).
869 884
885@findex ada-create-case-exception
870There are two ways to add new items to this file: you can simply edit it 886There are two ways to add new items to this file: you can simply edit it
871as you would edit any text file, and add or suppress entries in this 887as you would edit any text file, and add or suppress entries in this
872file. Remember that you should put one entity per line. The other, 888file. Remember that you should put one entity per line. The other,
873easier way, is to position the cursor over the word you want to add, in 889easier way, is to position the cursor over the word you want to add, in
874an Ada buffer. This word should have the casing you want. Then simply 890an Ada buffer. This word should have the casing you want. Then simply
875select the menu @samp{Ada->Edit->Create Case Exception}, or the key 891select the menu @samp{Ada->Edit->Create Case Exception}, or the key
876@kbd{C-c C-y}. The word will automatically be added to the current list 892@kbd{C-c C-y} (@code{ada-create-case-exception}). The word will
877of exceptions and to the file. 893automatically be added to the current list of exceptions and to the file.
878 894
879It is sometimes useful to have multiple exception files around (for 895It is sometimes useful to have multiple exception files around (for
880instance, one could be the standard Ada acronyms, the second some 896instance, one could be the standard Ada acronyms, the second some
@@ -892,13 +908,15 @@ Automatic casing can be performed on port or whole buffer using:
892 908
893@table @kbd 909@table @kbd
894@item C-c C-b 910@item C-c C-b
895Adjust case in the whole buffer. 911@findex ada-adjust-case-buffer
912Adjust case in the whole buffer (@code{ada-adjust-case-buffer}).
896@item C-c C-y 913@item C-c C-y
897Create a new entry in the exception dictionary, with the word under 914Create a new entry in the exception dictionary, with the word under
898the cursor 915the cursor (@code{ada-create-case-exception})
899@item C-c C-t 916@item C-c C-t
917@findex ada-case-read-exceptions
900Rereads the exception dictionary from the file 918Rereads the exception dictionary from the file
901@code{ada-case-exception-file}. 919@code{ada-case-exception-file} (@code{ada-case-read-exceptions}).
902@end table 920@end table
903 921
904@c ----------------------------------------------------------------------- 922@c -----------------------------------------------------------------------
@@ -914,57 +932,86 @@ buffer using the following commands:
914 932
915@table @kbd 933@table @kbd
916@item C-c t b 934@item C-c t b
917exception Block 935@findex ada-exception-block
936exception Block (@code{ada-exception-block}).
918@item C-c t c 937@item C-c t c
919case. 938@findex ada-case
939case (@code{ada-case}).
920@item C-c t d 940@item C-c t d
921declare Block. 941@findex ada-declare-block
942declare Block (@code{ada-declare-block}).
922@item C-c t e 943@item C-c t e
923else. 944@findex ada-else
945else (@code{ada-else}).
924@item C-c t f 946@item C-c t f
925for Loop. 947@findex ada-for-loop
948for Loop (@code{ada-for-loop}).
926@item C-c t h 949@item C-c t h
927Header. 950@findex ada-header
951Header (@code{ada-header}).
928@item C-c t i 952@item C-c t i
929if. 953@findex ada-if
954if (@code{ada-if}).
930@item C-c t k 955@item C-c t k
931package Body. 956@findex ada-package-body
957package Body (@code{ada-package-body}).
932@item C-c t l 958@item C-c t l
933loop. 959@findex ada-loop
960loop (@code{ada-loop}).
961@item C-c p
962@findex ada-subprogram-body
963subprogram body (@code{ada-subprogram-body}).
934@item C-c t t 964@item C-c t t
935task Body. 965@findex ada-task-body
966task Body (@code{ada-task-body}).
936@item C-c t w 967@item C-c t w
937while Loop. 968@findex ada-while
969while Loop (@code{ada-while}).
938@item C-c t u 970@item C-c t u
939use. 971@findex ada-use
972use (@code{ada-use}).
940@item C-c t x 973@item C-c t x
941exit. 974@findex ada-exit
975exit (@code{ada-exit}).
942@item C-c t C-a 976@item C-c t C-a
943array. 977@findex ada-array
978array (@code{ada-array}).
944@item C-c t C-e 979@item C-c t C-e
945elsif. 980@findex ada-elsif
981elsif (@code{ada-elsif}).
946@item C-c t C-f 982@item C-c t C-f
947function Spec. 983@findex ada-function-spec
984function Spec (@code{ada-function-spec}).
948@item C-c t C-k 985@item C-c t C-k
949package Spec. 986@findex ada-package-spec
987package Spec (@code{ada-package-spec}).
950@item C-c t C-p 988@item C-c t C-p
951procedure Spec. 989@findex ada-procedure-spec
990procedure Spec (@code{ada-package-spec}.
952@item C-c t C-r 991@item C-c t C-r
953record. 992@findex ada-record
993record (@code{ada-record}).
954@item C-c t C-s 994@item C-c t C-s
955subtype. 995@findex ada-subtype
996subtype (@code{ada-subtype}).
956@item C-c t C-t 997@item C-c t C-t
957task Spec. 998@findex ada-task-spec
999task Spec (@code{ada-task-spec}).
958@item C-c t C-u 1000@item C-c t C-u
959with. 1001@findex ada-with
1002with (@code{ada-with}).
960@item C-c t C-v 1003@item C-c t C-v
961private. 1004@findex ada-private
1005private (@code{ada-private}).
962@item C-c t C-w 1006@item C-c t C-w
963when. 1007@findex ada-when
1008when (@code{ada-when}).
964@item C-c t C-x 1009@item C-c t C-x
965exception. 1010@findex ada-exception
1011exception (@code{ada-exception}).
966@item C-c t C-y 1012@item C-c t C-y
967type. 1013@findex ada-type
1014type (@code{ada-type}).
968@end table 1015@end table
969 1016
970@c ----------------------------------------------------------------------- 1017@c -----------------------------------------------------------------------
@@ -1154,7 +1201,7 @@ complicated. You then need to rewrite the function
1154for an example). 1201for an example).
1155 1202
1156@c --------------------------------------------------------------------- 1203@c ---------------------------------------------------------------------
1157@node Working Remotely, ,Using non-standard file names, Top 1204@node Working Remotely, Index, Using non-standard file names, Top
1158@chapter Working Remotely 1205@chapter Working Remotely
1159@c --------------------------------------------------------------------- 1206@c ---------------------------------------------------------------------
1160 1207
@@ -1236,5 +1283,10 @@ For instance, if your command was @code{$@{main@}}, you could replace it with
1236However, this would not work on vxworks, for instance, where 1283However, this would not work on vxworks, for instance, where
1237@command{rsh} is not supported. 1284@command{rsh} is not supported.
1238 1285
1286@node Index, , Working Remotely, Top
1287@unnumbered Index
1288
1289@printindex fn
1290
1239@contents 1291@contents
1240@bye 1292@bye