comparison doc/interpreter/eos.txi @ 4167:aae05d51353c

[project @ 2002-11-12 02:52:50 by jwe]
author jwe
date Tue, 12 Nov 2002 02:52:51 +0000
parents bfe1573bd2ae
children abbf63293766
comparison
equal deleted inserted replaced
4166:1297e388830f 4167:aae05d51353c
6 6
7 @node Emacs 7 @node Emacs
8 @chapter Emacs Octave Support 8 @chapter Emacs Octave Support
9 9
10 The development of Octave code can greatly be facilitated using Emacs 10 The development of Octave code can greatly be facilitated using Emacs
11 with Octave mode, a major mode for editing Octave files which can e.g.@: 11 with Octave mode
12 automatically indent the code, do some of the typing (with Abbrev mode) 12 automatically indent the code, do some of the typing (with Abbrev mode)
13 and show keywords, comments, strings, etc.@: in different faces (with 13 and show keywords, comments, strings, etc.@: in different faces (with
14 Font-lock mode on devices that support it). 14 Font-lock mode on devices that support it).
15 15
16 It is also possible to run Octave from within Emacs, either by directly 16 It is also possible to run Octave from within Emacs, either by directly
33 * Using Octave Mode:: 33 * Using Octave Mode::
34 * Running Octave From Within Emacs:: 34 * Running Octave From Within Emacs::
35 * Using the Emacs Info Reader for Octave:: 35 * Using the Emacs Info Reader for Octave::
36 @end menu 36 @end menu
37 37
38 @node Installing EOS, Using Octave Mode, Emacs, Emacs 38 @node Installing EOS
39 @section Installing EOS 39 @section Installing EOS
40 40
41 The Emacs package EOS consists of the three files @file{octave-mod.el}, 41 The Emacs package EOS consists of the three files @file{octave-mod.el},
42 @file{octave-inf.el}, and @file{octave-hlp.el}. These files, or better 42 @file{octave-inf.el}, and @file{octave-hlp.el}. These files, or better
43 yet their byte-compiled versions, should be somewhere in your Emacs 43 yet their byte-compiled versions, should be somewhere in your Emacs
50 Otherwise, copy the three files from the @file{emacs} subdirectory of 50 Otherwise, copy the three files from the @file{emacs} subdirectory of
51 the Octave distribution to a place where Emacs can find them (this 51 the Octave distribution to a place where Emacs can find them (this
52 depends on how your Emacs was installed). Byte-compile them for speed 52 depends on how your Emacs was installed). Byte-compile them for speed
53 if you want. 53 if you want.
54 54
55 @node Using Octave Mode, Running Octave From Within Emacs, Installing EOS, Emacs 55 @node Using Octave Mode
56 @section Using Octave Mode 56 @section Using Octave Mode
57 57
58 If you are lucky, your sysadmins have already arranged everything so 58 If you are lucky, your sysadmins have already arranged everything so
59 that Emacs automatically goes into Octave mode whenever you visit an 59 that Emacs automatically goes into Octave mode whenever you visit an
60 Octave code file as characterized by its extension @file{.m}. If not, 60 Octave code file as characterized by its extension @file{.m}. If not,
345 bug report using @kbd{C-c C-b} (@code{octave-submit-bug-report}). This 345 bug report using @kbd{C-c C-b} (@code{octave-submit-bug-report}). This
346 automatically sets up a mail buffer with version information already 346 automatically sets up a mail buffer with version information already
347 added. You just need to add a description of the problem, including a 347 added. You just need to add a description of the problem, including a
348 reproducible test case and send the message. 348 reproducible test case and send the message.
349 349
350 @node Running Octave From Within Emacs, Using the Emacs Info Reader for Octave, Using Octave Mode, Emacs 350 @node Running Octave From Within Emacs
351 @section Running Octave From Within Emacs 351 @section Running Octave From Within Emacs
352 352
353 The package @file{octave} provides commands for running an inferior 353 The package @file{octave} provides commands for running an inferior
354 Octave process in a special Emacs buffer. Use 354 Octave process in a special Emacs buffer. Use
355 @lisp 355 @lisp
456 make sure that @code{inferior-octave-prompt} matches them. 456 make sure that @code{inferior-octave-prompt} matches them.
457 Otherwise, @emph{nothing} will work, because Emacs will have no idea 457 Otherwise, @emph{nothing} will work, because Emacs will have no idea
458 when Octave is waiting for input, or done sending output. 458 when Octave is waiting for input, or done sending output.
459 @end quotation 459 @end quotation
460 460
461 @node Using the Emacs Info Reader for Octave, , Running Octave From Within Emacs, Emacs 461 @node Using the Emacs Info Reader for Octave
462 @section Using the Emacs Info Reader for Octave 462 @section Using the Emacs Info Reader for Octave
463 463
464 You can also set up the Emacs Info reader for dealing with the results 464 You can also set up the Emacs Info reader for dealing with the results
465 of Octave's @samp{help -i}. For this, the package @file{gnuserv} needs 465 of Octave's @samp{help -i}. For this, the package @file{gnuserv} needs
466 to be installed, which unfortunately still does not come with GNU Emacs 466 to be installed, which unfortunately still does not come with GNU Emacs