home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / octave-1.1.1p1-bin.lha / info / octave.info-8 (.txt) < prev    next >
GNU Info File  |  1996-10-12  |  49KB  |  910 lines

  1. This is Info file octave.info, produced by Makeinfo-1.64 from the input
  2. file octave.texi.
  3.    Copyright (C) 1993, 1994, 1995 John W. Eaton.
  4.    Permission is granted to make and distribute verbatim copies of this
  5. manual provided the copyright notice and this permission notice are
  6. preserved on all copies.
  7.    Permission is granted to copy and distribute modified versions of
  8. this manual under the conditions for verbatim copying, provided that
  9. the entire resulting derived work is distributed under the terms of a
  10. permission notice identical to this one.
  11.    Permission is granted to copy and distribute translations of this
  12. manual into another language, under the above conditions for modified
  13. versions.
  14. File: octave.info,  Node: Bug Criteria,  Next: Bug Lists,  Prev: Reporting Bugs,  Up: Trouble
  15. Have You Found a Bug?
  16. =====================
  17.    If you are not sure whether you have found a bug, here are some
  18. guidelines:
  19.    * If Octave gets a fatal signal, for any input whatever, that is a
  20.      bug.  Reliable interpreters never crash.
  21.    * If Octave produces incorrect results, for any input whatever, that
  22.      is a bug.
  23.    * Some output may appear to be incorrect when it is in fact due to a
  24.      program whose behavior is undefined, which happened by chance to
  25.      give the desired results on another system.  For example, the
  26.      range operator may produce different results because of
  27.      differences in the way floating point arithmetic is handled on
  28.      various systems.
  29.    * If Octave produces an error message for valid input, that is a bug.
  30.    * If Octave does not produce an error message for invalid input,
  31.      that is a bug.  However, you should note that your idea of
  32.      "invalid input" might be my idea of "an extension" or "support for
  33.      traditional practice".
  34.    * If you are an experienced user of programs like Octave, your
  35.      suggestions for improvement are welcome in any case.
  36. File: octave.info,  Node: Bug Lists,  Next: Bug Reporting,  Prev: Bug Criteria,  Up: Trouble
  37. Where to Report Bugs
  38. ====================
  39.    If you have Octave working at all, the easiest way to prepare a
  40. complete bug report is to use the Octave function `bug_report'.  When
  41. you execute this function, Octave will prompt you for a subject and then
  42. invoke the editor on a file that already contains all the configuration
  43. information.  When you exit the editor, Octave will mail the bug report
  44. for you.
  45.    If for some reason you cannot use Octave's `bug_report' function,
  46. send bug reports for Octave to:
  47.      bug-octave@che.utexas.edu
  48.    *Do not send bug reports to `help-octave'*.  Most users of Octave do
  49. not want to receive bug reports.  Those that do have asked to be on
  50. `bug-octave'.
  51.    As a last resort, send bug reports on paper to:
  52.      Octave Bugs c/o John W. Eaton
  53.      Department of Chemical Engineering
  54.      The University of Texas at Austin
  55.      Austin, Texas 78712
  56. File: octave.info,  Node: Bug Reporting,  Next: Sending Patches,  Prev: Bug Lists,  Up: Trouble
  57. How to Report Bugs
  58. ==================
  59.    The fundamental principle of reporting bugs usefully is this:
  60. *report all the facts*.  If you are not sure whether to state a fact or
  61. leave it out, state it!
  62.    Often people omit facts because they think they know what causes the
  63. problem and they conclude that some details don't matter.  Thus, you
  64. might assume that the name of the variable you use in an example does
  65. not matter.  Well, probably it doesn't, but one cannot be sure.
  66. Perhaps the bug is a stray memory reference which happens to fetch from
  67. the location where that name is stored in memory; perhaps, if the name
  68. were different, the contents of that location would fool the
  69. interpreter into doing the right thing despite the bug.  Play it safe
  70. and give a specific, complete example.
  71.    Keep in mind that the purpose of a bug report is to enable someone to
  72. fix the bug if it is not known. Always write your bug reports on the
  73. assumption that the bug is not known.
  74.    Sometimes people give a few sketchy facts and ask, "Does this ring a
  75. bell?"  This cannot help us fix a bug.  It is better to send a complete
  76. bug report to begin with.
  77.    Try to make your bug report self-contained.  If we have to ask you
  78. for more information, it is best if you include all the previous
  79. information in your response, as well as the information that was
  80. missing.
  81.    To enable someone to investigate the bug, you should include all
  82. these things:
  83.    * The version of Octave.  You can get this by noting the version
  84.      number that is printed when Octave starts, or running it with the
  85.      `-v' option.
  86.    * A complete input file that will reproduce the bug.
  87.      A single statement may not be enough of an example--the bug might
  88.      depend on other details that are missing from the single statement
  89.      where the error finally occurs.
  90.    * The command arguments you gave Octave to execute that example and
  91.      observe the bug.  To guarantee you won't omit something important,
  92.      list all the options.
  93.      If we were to try to guess the arguments, we would probably guess
  94.      wrong and then we would not encounter the bug.
  95.    * The type of machine you are using, and the operating system name
  96.      and version number.
  97.    * The command-line arguments you gave to the `configure' command when
  98.      you installed the interpreter.
  99.    * A complete list of any modifications you have made to the
  100.      interpreter source.
  101.      Be precise about these changes--show a context diff for them.
  102.    * Details of any other deviations from the standard procedure for
  103.      installing Octave.
  104.    * A description of what behavior you observe that you believe is
  105.      incorrect.  For example, "The interpreter gets a fatal signal,"
  106.      or, "The output produced at line 208 is incorrect."
  107.      Of course, if the bug is that the interpreter gets a fatal signal,
  108.      then one can't miss it.  But if the bug is incorrect output, we
  109.      might not notice unless it is glaringly wrong.
  110.      Even if the problem you experience is a fatal signal, you should
  111.      still say so explicitly.  Suppose something strange is going on,
  112.      such as, your copy of the interpreter is out of synch, or you have
  113.      encountered a bug in the C library on your system.  Your copy
  114.      might crash and the copy here would not.  If you said to expect a
  115.      crash, then when the interpreter here fails to crash, we would
  116.      know that the bug was not happening.  If you don't say to expect a
  117.      crash, then we would not know whether the bug was happening.  We
  118.      would not be able to draw any conclusion from our observations.
  119.      Often the observed symptom is incorrect output when your program
  120.      is run.  Unfortunately, this is not enough information unless the
  121.      program is short and simple.  It is very helpful if you can
  122.      include an explanation of the expected output, and why the actual
  123.      output is incorrect.
  124.    * If you wish to suggest changes to the Octave source, send them as
  125.      context diffs.  If you even discuss something in the Octave source,
  126.      refer to it by context, not by line number, because the line
  127.      numbers in the development sources probalby won't match those in
  128.      your sources.
  129.    Here are some things that are not necessary:
  130.    * A description of the envelope of the bug.
  131.      Often people who encounter a bug spend a lot of time investigating
  132.      which changes to the input file will make the bug go away and
  133.      which changes will not affect it.  Such information is usually not
  134.      necessary to enable us to fix bugs in Octave, but if you can find
  135.      a simpler example to report *instead* of the original one, that is
  136.      a convenience.  Errors in the output will be easier to spot,
  137.      running under the debugger will take less time, etc. Most Octave
  138.      bugs involve just one function, so the most straightforward way to
  139.      simplify an example is to delete all the function definitions
  140.      except the one in which the bug occurs.
  141.      However, simplification is not vital; if you don't want to do
  142.      this, report the bug anyway and send the entire test case you used.
  143.    * A patch for the bug.  Patches can be helpful, but if you find a
  144.      bug, you should report it, even if you cannot send a fix for the
  145.      problem.
  146. File: octave.info,  Node: Sending Patches,  Next: Service,  Prev: Bug Reporting,  Up: Trouble
  147. Sending Patches for Octave
  148. ==========================
  149.    If you would like to write bug fixes or improvements for Octave,
  150. that is very helpful.  When you send your changes, please follow these
  151. guidelines to avoid causing extra work for us in studying the patches.
  152.    If you don't follow these guidelines, your information might still be
  153. useful, but using it will take extra work.  Maintaining Octave is a lot
  154. of work in the best of circumstances, and we can't keep up unless you do
  155. your best to help.
  156.    * Send an explanation with your changes of what problem they fix or
  157.      what improvement they bring about.  For a bug fix, just include a
  158.      copy of the bug report, and explain why the change fixes the bug.
  159.    * Always include a proper bug report for the problem you think you
  160.      have fixed.  We need to convince ourselves that the change is
  161.      right before installing it.  Even if it is right, we might have
  162.      trouble judging it if we don't have a way to reproduce the problem.
  163.    * Include all the comments that are appropriate to help people
  164.      reading the source in the future understand why this change was
  165.      needed.
  166.    * Don't mix together changes made for different reasons.  Send them
  167.      *individually*.
  168.      If you make two changes for separate reasons, then we might not
  169.      want to install them both.  We might want to install just one.
  170.    * Use `diff -c' to make your diffs.  Diffs without context are hard
  171.      for us to install reliably.  More than that, they make it hard for
  172.      us to study the diffs to decide whether we want to install them.
  173.      Unidiff format is better than contextless diffs, but not as easy
  174.      to read as `-c' format.
  175.      If you have GNU diff, use `diff -cp', which shows the name of the
  176.      function that each change occurs in.
  177.    * Write the change log entries for your changes.
  178.      Read the `ChangeLog' file to see what sorts of information to put
  179.      in, and to learn the style that we use.  The purpose of the change
  180.      log is to show people where to find what was changed.  So you need
  181.      to be specific about what functions you changed; in large
  182.      functions, it's often helpful to indicate where within the
  183.      function the change was made.
  184.      On the other hand, once you have shown people where to find the
  185.      change, you need not explain its purpose. Thus, if you add a new
  186.      function, all you need to say about it is that it is new.  If you
  187.      feel that the purpose needs explaining, it probably does--but the
  188.      explanation will be much more useful if you put it in comments in
  189.      the code.
  190.      If you would like your name to appear in the header line for who
  191.      made the change, send us the header line.
  192. File: octave.info,  Node: Service,  Prev: Sending Patches,  Up: Trouble
  193. How To Get Help with Octave
  194. ===========================
  195.    If you need help installing, using or changing Octave, the mailing
  196.      help-octave@che.utexas.edu
  197.    exists for the discussion of Octave matters related to using,
  198. installing, and porting Octave.  If you would like to join the
  199. discussion, please send a short note to
  200.      help-octave-request@che.utexas.edu
  201.                  ^^^^^^^
  202.    *Please do not* send requests to be added or removed from the the
  203. mailing list, or other administrative trivia to the list itself.
  204. File: octave.info,  Node: Command Line Editing,  Next: Using Info,  Prev: Trouble,  Up: Top
  205. Command Line Editing
  206. ********************
  207.    This text describes GNU's command line editing interface.  It is
  208. relatively old and may not be entirely correct now.  Please send a
  209. message to `bug-octave@che.utexas.edu' if you find any errors.  *Note
  210. Reporting Bugs::, for more information about how to report bugs.
  211. * Menu:
  212. * Introduction and Notation::   Notation used in this text.
  213. * Readline Interaction::        The minimum set of commands for editing a line.
  214. * Readline Bare Essentials::
  215. * Readline Movement Commands::
  216. * Readline Killing Commands::
  217. * Readline Arguments::
  218. * Readline Init File::          Customizing Readline from a user's view.
  219. * Readline Init Syntax::
  220. * Readline Vi Mode::
  221. File: octave.info,  Node: Introduction and Notation,  Next: Readline Interaction,  Prev: Command Line Editing,  Up: Command Line Editing
  222. Introduction to Line Editing
  223. ============================
  224.    The following paragraphs describe the notation we use to represent
  225. keystrokes.
  226.    The text C-k is read as `Control-K' and describes the character
  227. produced when the Control key is depressed and the k key is struck.
  228.    The text M-k is read as `Meta-K' and describes the character
  229. produced when the meta key (if you have one) is depressed, and the k
  230. key is struck.  If you do not have a meta key, the identical keystroke
  231. can be generated by typing ESC first, and then typing k.  Either
  232. process is known as "metafying" the k key.
  233.    The text M-C-k is read as `Meta-Control-k' and describes the
  234. character produced by "metafying" C-k.
  235.    In addition, several keys have their own names.  Specifically, DEL,
  236. ESC, LFD, SPC, RET, and TAB all stand for themselves when seen in this
  237. text, or in an init file (*note Readline Init File::., for more info).
  238. File: octave.info,  Node: Readline Interaction,  Next: Readline Bare Essentials,  Prev: Introduction and Notation,  Up: Command Line Editing
  239. Readline Interaction
  240. ====================
  241.    Often during an interactive session you type in a long line of text,
  242. only to notice that the first word on the line is misspelled.  The
  243. Readline library gives you a set of commands for manipulating the text
  244. as you type it in, allowing you to just fix your typo, and not forcing
  245. you to retype the majority of the line.  Using these editing commands,
  246. you move the cursor to the place that needs correction, and delete or
  247. insert the text of the corrections.  Then, when you are satisfied with
  248. the line, you simply press RETURN.  You do not have to be at the end of
  249. the line to press RETURN; the entire line is accepted regardless of the
  250. location of the cursor within the line.
  251. * Menu:
  252. * Readline Bare Essentials::    The least you need to know about Readline.
  253. * Readline Movement Commands::  Moving about the input line.
  254. * Readline Killing Commands::   How to delete text, and how to get it back!
  255. * Readline Arguments::          Giving numeric arguments to commands.
  256. File: octave.info,  Node: Readline Bare Essentials,  Next: Readline Movement Commands,  Prev: Readline Interaction,  Up: Command Line Editing
  257. Readline Bare Essentials
  258. ========================
  259.    In order to enter characters into the line, simply type them.  The
  260. typed character appears where the cursor was, and then the cursor moves
  261. one space to the right.  If you mistype a character, you can use DEL to
  262. back up, and delete the mistyped character.
  263.    Sometimes you may miss typing a character that you wanted to type,
  264. and not notice your error until you have typed several other
  265. characters.  In that case, you can type C-b to move the cursor to the
  266. left, and then correct your mistake.  Afterwards, you can move the
  267. cursor to the right with C-f.
  268.    When you add text in the middle of a line, you will notice that
  269. characters to the right of the cursor get `pushed over' to make room
  270. for the text that you have inserted.  Likewise, when you delete text
  271. behind the cursor, characters to the right of the cursor get `pulled
  272. back' to fill in the blank space created by the removal of the text.  A
  273. list of the basic bare essentials for editing the text of an input line
  274. follows.
  275.      Move back one character.
  276.      Move forward one character.
  277.      Delete the character to the left of the cursor.
  278.      Delete the character underneath the cursor.
  279. Printing characters
  280.      Insert itself into the line at the cursor.
  281.      Undo the last thing that you did.  You can undo all the way back
  282.      to an empty line.
  283. File: octave.info,  Node: Readline Movement Commands,  Next: Readline Killing Commands,  Prev: Readline Bare Essentials,  Up: Command Line Editing
  284. Readline Movement Commands
  285. ==========================
  286.    The above table describes the most basic possible keystrokes that
  287. you need in order to do editing of the input line.  For your
  288. convenience, many other commands have been added in addition to C-b,
  289. C-f, C-d, and DEL.  Here are some commands for moving more rapidly
  290. about the line.
  291.      Move to the start of the line.
  292.      Move to the end of the line.
  293.      Move forward a word.
  294.      Move backward a word.
  295.      Clear the screen, reprinting the current line at the top.
  296.    Notice how C-f moves forward a character, while M-f moves forward a
  297. word.  It is a loose convention that control keystrokes operate on
  298. characters while meta keystrokes operate on words.
  299. File: octave.info,  Node: Readline Killing Commands,  Next: Readline Arguments,  Prev: Readline Movement Commands,  Up: Command Line Editing
  300. Readline Killing Commands
  301. =========================
  302.    "Killing" text means to delete the text from the line, but to save
  303. it away for later use, usually by "yanking" it back into the line.  If
  304. the description for a command says that it `kills' text, then you can
  305. be sure that you can get the text back in a different (or the same)
  306. place later.
  307.    Here is the list of commands for killing text.
  308.      Kill the text from the current cursor position to the end of the
  309.      line.
  310.      Kill from the cursor to the end of the current word, or if between
  311.      words, to the end of the next word.
  312. M-DEL
  313.      Kill from the cursor to the start of the previous word, or if
  314.      between words, to the start of the previous word.
  315.      Kill from the cursor to the previous whitespace.  This is
  316.      different than M-DEL because the word boundaries differ.
  317.    And, here is how to "yank" the text back into the line.  Yanking is
  318.      Yank the most recently killed text back into the buffer at the
  319.      cursor.
  320.      Rotate the kill-ring, and yank the new top.  You can only do this
  321.      if the prior command is C-y or M-y.
  322.    When you use a kill command, the text is saved in a "kill-ring".
  323. Any number of consecutive kills save all of the killed text together, so
  324. that when you yank it back, you get it in one clean sweep.  The kill
  325. ring is not line specific; the text that you killed on a previously
  326. typed line is available to be yanked back later, when you are typing
  327. another line.
  328. File: octave.info,  Node: Readline Arguments,  Next: Readline Init File,  Prev: Readline Killing Commands,  Up: Command Line Editing
  329. Readline Arguments
  330. ==================
  331.    You can pass numeric arguments to Readline commands.  Sometimes the
  332. argument acts as a repeat count, other times it is the sign of the
  333. argument that is significant.  If you pass a negative argument to a
  334. command which normally acts in a forward direction, that command will
  335. act in a backward direction.  For example, to kill text back to the
  336. start of the line, you might type M- C-k.
  337.    The general way to pass numeric arguments to a command is to type
  338. meta digits before the command.  If the first `digit' you type is a
  339. minus sign (-), then the sign of the argument will be negative.  Once
  340. you have typed one meta digit to get the argument started, you can type
  341. the remainder of the digits, and then the command.  For example, to give
  342. the C-d command an argument of 10, you could type M-1 0 C-d.
  343. File: octave.info,  Node: Readline Init File,  Next: Readline Init Syntax,  Prev: Readline Arguments,  Up: Command Line Editing
  344. Readline Init File
  345. ==================
  346.    Although the Readline library comes with a set of Emacs-like
  347. keybindings, it is possible that you would like to use a different set
  348. of keybindings.  You can customize programs that use Readline by putting
  349. commands in an "init" file in your home directory.  The name of this
  350. file is `~/.inputrc'.
  351.    When a program which uses the Readline library starts up, the
  352. `~/.inputrc' file is read, and the keybindings are set.
  353.    In addition, the C-x C-r command re-reads this init file, thus
  354. incorporating any changes that you might have made to it.
  355. * Menu:
  356. * Readline Init Syntax::        Syntax for the commands in `~/.inputrc'.
  357. * Readline Vi Mode::            Switching to `vi' mode in Readline.
  358. File: octave.info,  Node: Readline Init Syntax,  Next: Readline Vi Mode,  Prev: Readline Init File,  Up: Command Line Editing
  359. Readline Init Syntax
  360. ====================
  361.    There are only four constructs allowed in the `~/.inputrc' file:
  362. Variable Settings
  363.      You can change the state of a few variables in Readline.  You do
  364.      this by using the `set' command within the init file.  Here is how
  365.      you would specify that you wish to use Vi line editing commands:
  366.           set editing-mode vi
  367.      Right now, there are only a few variables which can be set; so few
  368.      in fact, that we just iterate them here:
  369.     `editing-mode'
  370.           The `editing-mode' variable controls which editing mode you
  371.           are using.  By default, GNU Readline starts up in Emacs
  372.           editing mode, where the keystrokes are most similar to Emacs.
  373.           This variable can either be set to `emacs' or `vi'.
  374.     `horizontal-scroll-mode'
  375.           This variable can either be set to `On' or `Off'.  Setting it
  376.           to `On' means that the text of the lines that you edit will
  377.           scroll horizontally on a single screen line when they are
  378.           larger than the width of the screen, instead of wrapping onto
  379.           a new screen line.  By default, this variable is set to `Off'.
  380.     `mark-modified-lines'
  381.           This variable when set to `On', says to display an asterisk
  382.           (`*') at the starts of history lines which have been modified.
  383.           This variable is off by default.
  384.     `prefer-visible-bell'
  385.           If this variable is set to `On' it means to use a visible
  386.           bell if one is available, rather than simply ringing the
  387.           terminal bell.  By default, the value is `Off'.
  388. Key Bindings
  389.      The syntax for controlling keybindings in the `~/.inputrc' file is
  390.      simple.  First you have to know the name of the command that you
  391.      want to change.  The following pages contain tables of the command
  392.      name, the default keybinding, and a short description of what the
  393.      command does.
  394.      Once you know the name of the command, simply place the name of
  395.      the key you wish to bind the command to, a colon, and then the
  396.      name of the command on a line in the `~/.inputrc' file.  The name
  397.      of the key can be expressed in different ways, depending on which
  398.      is most comfortable for you.
  399.     KEYNAME: FUNCTION-NAME or MACRO
  400.           KEYNAME is the name of a key spelled out in English.  For
  401.           example:
  402.                Control-u: universal-argument
  403.                Meta-Rubout: backward-kill-word
  404.                Control-o: ">&output"
  405.           In the above example, C-u is bound to the function
  406.           `universal-argument', and C-o is bound to run the macro
  407.           expressed on the right hand side (that is, to insert the text
  408.           `>&output' into the line).
  409.     "KEYSEQ": FUNCTION-NAME or MACRO
  410.           KEYSEQ differs from KEYNAME above in that strings denoting an
  411.           entire key sequence can be specified.  Simply place the key
  412.           sequence in double quotes.  GNU Emacs style key escapes can
  413.           be used, as in the following example:
  414.                "\C-u": universal-argument
  415.                "\C-x\C-r": re-read-init-file
  416.                "\e[11~": "Function Key 1"
  417.           In the above example, C-u is bound to the function
  418.           `universal-argument' (just as it was in the first example),
  419.           C-x C-r is bound to the function `re-read-init-file', and ESC
  420.           [ 1 1 ~ is bound to insert the text `Function Key 1'.
  421. * Menu:
  422. * Commands For Moving::         Moving about the line.
  423. * Commands For History::        Getting at previous lines.
  424. * Commands For Text::           Commands for changing text.
  425. * Commands For Killing::        Commands for killing and yanking.
  426. * Numeric Arguments::           Specifying numeric arguments, repeat counts.
  427. * Commands For Completion::     Getting Readline to do the typing for you.
  428. * Miscellaneous Commands::      Other miscellaneous commands.
  429. File: octave.info,  Node: Commands For Moving,  Next: Commands For History,  Prev: Readline Init Syntax,  Up: Readline Init Syntax
  430. Commands For Moving
  431. -------------------
  432. `beginning-of-line (C-a)'
  433.      Move to the start of the current line.
  434. `end-of-line (C-e)'
  435.      Move to the end of the line.
  436. `forward-char (C-f)'
  437.      Move forward a character.
  438. `backward-char (C-b)'
  439.      Move back a character.
  440. `forward-word (M-f)'
  441.      Move forward to the end of the next word.
  442. `backward-word (M-b)'
  443.      Move back to the start of this, or the previous, word.
  444. `clear-screen (C-l)'
  445.      Clear the screen leaving the current line at the top of the screen.
  446. File: octave.info,  Node: Commands For History,  Next: Commands For Text,  Prev: Commands For Moving,  Up: Readline Init Syntax
  447. Commands For Manipulating The History
  448. -------------------------------------
  449. `accept-line (Newline, Return)'
  450.      Accept the line regardless of where the cursor is.  If this line is
  451.      non-empty, add it to the history list.  If this line was a history
  452.      line, then restore the history line to its original state.
  453. `previous-history (C-p)'
  454.      Move `up' through the history list.
  455. `next-history (C-n)'
  456.      Move `down' through the history list.
  457. `beginning-of-history (M-<)'
  458.      Move to the first line in the history.
  459. `end-of-history (M->)'
  460.      Move to the end of the input history, i.e., the line you are
  461.      entering!
  462. `reverse-search-history (C-r)'
  463.      Search backward starting at the current line and moving `up'
  464.      through the history as necessary.  This is an incremental search.
  465. `forward-search-history (C-s)'
  466.      Search forward starting at the current line and moving `down'
  467.      through the the history as necessary.
  468. File: octave.info,  Node: Commands For Text,  Next: Commands For Killing,  Prev: Commands For History,  Up: Readline Init Syntax
  469. Commands For Changing Text
  470. --------------------------
  471. `delete-char (C-d)'
  472.      Delete the character under the cursor.  If the cursor is at the
  473.      beginning of the line, and there are no characters in the line, and
  474.      the last character typed was not C-d, then return EOF.
  475. `backward-delete-char (Rubout)'
  476.      Delete the character behind the cursor.  A numeric arg says to kill
  477.      the characters instead of deleting them.
  478. `quoted-insert (C-q, C-v)'
  479.      Add the next character that you type to the line verbatim.  This is
  480.      how to insert things like C-q for example.
  481. `tab-insert (M-TAB)'
  482.      Insert a tab character.
  483. `self-insert (a, b, A, 1, !, ...)'
  484.      Insert yourself.
  485. `transpose-chars (C-t)'
  486.      Drag the character before point forward over the character at
  487.      point.  Point moves forward as well.  If point is at the end of
  488.      the line, then transpose the two characters before point.
  489.      Negative args don't work.
  490. `transpose-words (M-t)'
  491.      Drag the word behind the cursor past the word in front of the
  492.      cursor moving the cursor over that word as well.
  493. `upcase-word (M-u)'
  494.      Uppercase the current (or following) word.  With a negative
  495.      argument, do the previous word, but do not move point.
  496. `downcase-word (M-l)'
  497.      Lowercase the current (or following) word.  With a negative
  498.      argument, do the previous word, but do not move point.
  499. `capitalize-word (M-c)'
  500.      Uppercase the current (or following) word.  With a negative
  501.      argument, do the previous word, but do not move point.
  502. File: octave.info,  Node: Commands For Killing,  Next: Numeric Arguments,  Prev: Commands For Text,  Up: Readline Init Syntax
  503. Killing And Yanking
  504. -------------------
  505. `kill-line (C-k)'
  506.      Kill the text from the current cursor position to the end of the
  507.      line.
  508. `backward-kill-line ()'
  509.      Kill backward to the beginning of the line.  This is normally
  510.      unbound.
  511. `kill-word (M-d)'
  512.      Kill from the cursor to the end of the current word, or if between
  513.      words, to the end of the next word.
  514. `backward-kill-word (M-DEL)'
  515.      Kill the word behind the cursor.
  516. `unix-line-discard (C-u)'
  517.      Do what C-u used to do in Unix line input.  We save the killed
  518.      text on the kill-ring, though.
  519. `unix-word-rubout (C-w)'
  520.      Do what C-w used to do in Unix line input.  The killed text is
  521.      saved on the kill-ring.  This is different than backward-kill-word
  522.      because the word boundaries differ.
  523. `yank (C-y)'
  524.      Yank the top of the kill ring into the buffer at point.
  525. `yank-pop (M-y)'
  526.      Rotate the kill-ring, and yank the new top.  You can only do this
  527.      if the prior command is yank or yank-pop.
  528. File: octave.info,  Node: Numeric Arguments,  Next: Commands For Completion,  Prev: Commands For Killing,  Up: Readline Init Syntax
  529. Specifying Numeric Arguments
  530. ----------------------------
  531. `digit-argument (M-0, M-1, ... M--)'
  532.      Add this digit to the argument already accumulating, or start a new
  533.      argument.  M- starts a negative argument.
  534. `universal-argument ()'
  535.      Do what C-u does in emacs.  By default, this is not bound.
  536. File: octave.info,  Node: Commands For Completion,  Next: Miscellaneous Commands,  Prev: Numeric Arguments,  Up: Readline Init Syntax
  537. Letting Readline Type For You
  538. -----------------------------
  539. `complete (TAB)'
  540.      Attempt to do completion on the text before point.  This is
  541.      implementation defined.  Generally, if you are typing a file name
  542.      argument, you can do file name completion; if you are typing a
  543.      command, you can do command completion, if you are typing in a
  544.      symbol to GDB, you can do symbol name completion, if you are
  545.      typing in a variable to Bash, you can do variable name
  546.      completion...
  547. `possible-completions (M-?)'
  548.      List the possible completions of the text before point.
  549. File: octave.info,  Node: Miscellaneous Commands,  Prev: Commands For Completion,  Up: Readline Init Syntax
  550. Some Miscellaneous Commands
  551. ---------------------------
  552. `re-read-init-file (C-x C-r)'
  553.      Read in the contents of your `~/.inputrc' file, and incorporate
  554.      any bindings found there.
  555. `abort (C-g)'
  556.      Ding!  Stops things.
  557. `do-uppercase-version (M-a, M-b, ...)'
  558.      Run the command that is bound to your uppercase brother.
  559. `prefix-meta (ESC)'
  560.      Make the next character that you type be metafied.  This is for
  561.      people without a meta key.  Typing ESC f is equivalent to typing
  562.      M-f.
  563. `undo (C-_)'
  564.      Incremental undo, separately remembered for each line.
  565. `revert-line (M-r)'
  566.      Undo all changes made to this line.  This is like typing the `undo'
  567.      command enough times to get back to the beginning.
  568. File: octave.info,  Node: Readline Vi Mode,  Prev: Readline Init Syntax,  Up: Command Line Editing
  569. Readline Vi Mode
  570. ================
  571.    While the Readline library does not have a full set of Vi editing
  572. functions, it does contain enough to allow simple editing of the line.
  573.    In order to switch interactively between Emacs and Vi editing modes,
  574. use the command M-C-j (toggle-editing-mode).
  575.    When you enter a line in Vi mode, you are already placed in
  576. `insertion' mode, as if you had typed an `i'.  Pressing ESC switches
  577. you into `edit' mode, where you can edit the text of the line with the
  578. standard Vi movement keys, move to previous history lines with `k', and
  579. following lines with `j', and so forth.
  580. File: octave.info,  Node: Using Info,  Next: Concept Index,  Prev: Command Line Editing,  Up: Top
  581. Using Info
  582. **********
  583. * Menu:
  584. * Cursor Commands::
  585. * Scrolling Commands::
  586. * Node Commands::
  587. * Searching Commands::
  588. * Xref Commands::
  589. * Window Commands::
  590. * Printing Nodes::
  591. * Other Info Commands::
  592. * Info Variables::
  593.    "Info" is a program which is used to view info files on an ASCII
  594. terminal. "info files" are the result of processing texinfo files with
  595. the program `makeinfo' or with  the Emacs command `M-x
  596. texinfo-format-buffer'.  Finally, "texinfo" is a documentation language
  597. which allows a printed manual and on-line documentation (an info file)
  598. to be produced from a single source file.
  599. * Menu:
  600. * Cursor Commands::        Commands which move the cursor within a node.
  601. * Scrolling Commands::        Commands for moving the node around in a window.
  602. * Node Commands::        Commands for selecting a new node.
  603. * Searching Commands::        Commands for searching an info file.
  604. * Xref Commands::        Commands for selecting cross references.
  605. * Window Commands::        Commands which manipulate multiple windows.
  606. * Printing Nodes::        How to print out the contents of a node.
  607. * Other Info Commands::     A few commands that defy categories.
  608. * Info Variables::        How to change the default behavior of Info.
  609. File: octave.info,  Node: Cursor Commands,  Next: Scrolling Commands,  Prev: Using Info,  Up: Using Info
  610. Moving the Cursor
  611. =================
  612.    Many people find that reading screens of text page by page is made
  613. easier when one is able to indicate particular pieces of text with some
  614. kind of pointing device.  Since this is the case, GNU Info (both the
  615. Emacs and standalone versions) have several commands which allow you to
  616. move the cursor about the screen.  The notation used in this manual to
  617. describe keystrokes is identical to the notation used within the Emacs
  618. manual, and the GNU Readline manual.  *Note Character Conventions:
  619. (emacs)Characters, if you are unfamiliar with the notation.
  620.    The following table lists the basic cursor movement commands in Info.
  621. Each entry consists of the key sequence you should type to execute the
  622. cursor movement, the `M-x'(1) command name (displayed in parentheses),
  623. and a short description of what the command does.  All of the cursor
  624. motion commands can take an "numeric" argument (*note
  625. `universal-argument': Other Info Commands.), to find out how to supply
  626. them.  With a numeric argument, the motion commands are simply executed
  627. that many times; for example, a numeric argument of 4 given to
  628. `next-line' causes the cursor to move down 4 lines.  With a negative
  629. numeric argument, the motion is reversed; an argument of -4 given to the
  630. `next-line' command would cause the cursor to move *up* 4 lines.
  631. `C-n' (`next-line')
  632.      Moves the cursor down to the next line.
  633. `C-p' (`prev-line')
  634.      Move the cursor up to the previous line.
  635. `C-a' (`beginning-of-line')
  636.      Move the cursor to the start of the current line.
  637. `C-e' (`end-of-line')
  638.      Moves the cursor to the end of the current line.
  639. `C-f' (`forward-char')
  640.      Move the cursor forward a character.
  641. `C-b' (`backward-char')
  642.      Move the cursor backward a character.
  643. `M-f' (`forward-word')
  644.      Moves the cursor forward a word.
  645. `M-b' (`backward-word')
  646.      Moves the cursor backward a word.
  647. `M-<' (`beginning-of-node')
  648.      Moves the cursor to the start of the current node.
  649. `M->' (`end-of-node')
  650.      Moves the cursor to the end of the current node.
  651. `M-r' (`move-to-window-line')
  652.      Moves the cursor to a specific line of the window.  Without a
  653.      numeric argument, `M-r' moves the cursor to the start of the line
  654.      in the center of the window.  With a numeric argument of N, `M-r'
  655.      moves the cursor to the start of the Nth line in the window.
  656.    ---------- Footnotes ----------
  657.    (1)  `M-x' is also a command; it invokes `execute-extended-command'.
  658. *Note Executing an extended command: (emacs)M-x, for more detailed
  659. information.
  660. File: octave.info,  Node: Scrolling Commands,  Next: Node Commands,  Prev: Cursor Commands,  Up: Using Info
  661. Moving Text Within a Window
  662. ===========================
  663.    Sometimes you are looking at a screenful of text, and only part of
  664. the current paragraph you are reading is visible on the screen.  The
  665. commands detailed in this section are used to shift which part of the
  666. current node is visible on the screen.
  667. `SPC' (`scroll-forward')
  668. `C-v'
  669.      Shift the text in this window up.  That is, show more of the node
  670.      which is currently below the bottom of the window.  With a numeric
  671.      argument, show that many more lines at the bottom of the window; a
  672.      numeric argument of 4 would shift all of the text in the window up
  673.      4 lines (discarding the top 4 lines), and show you four new lines
  674.      at the bottom of the window.  Without a numeric argument, SPC
  675.      takes the bottom two lines of the window and places them at the
  676.      top of the window, redisplaying almost a completely new screenful
  677.      of lines.
  678. `DEL' (`scroll-backward')
  679. `M-v'
  680.      Shift the text in this window down.  The inverse of
  681.      `scroll-forward'.
  682.    The `scroll-forward' and `scroll-backward' commands can also move
  683. forward and backward through the node structure of the file.  If you
  684. press SPC while viewing the end of a node, or DEL while viewing the
  685. beginning of a node, what happens is controlled by the variable
  686. `scroll-behaviour'.  *Note `scroll-behaviour': Info Variables, for more
  687. information.
  688. `C-l' (`redraw-display')
  689.      Redraw the display from scratch, or shift the line containing the
  690.      cursor to a specified location.  With no numeric argument, `C-l'
  691.      clears the screen, and then redraws its entire contents.  Given a
  692.      numeric argument of N, the line containing the cursor is shifted
  693.      so that it is on the Nth line of the window.
  694. `C-x w' (`toggle-wrap')
  695.      Toggles the state of line wrapping in the current window.
  696.      Normally, lines which are longer than the screen width "wrap",
  697.      i.e., they are continued on the next line.  Lines which wrap have
  698.      a `\' appearing in the rightmost column of the screen.  You can
  699.      cause such lines to be terminated at the rightmost column by
  700.      changing the state of line wrapping in the window with `C-x w'.
  701.      When a line which needs more space than one screen width to
  702.      display is displayed, a `$' appears in the rightmost column of the
  703.      screen, and the remainder of the line is invisible.
  704. File: octave.info,  Node: Node Commands,  Next: Searching Commands,  Prev: Scrolling Commands,  Up: Using Info
  705. Selecting a New Node
  706. ====================
  707.    This section details the numerous Info commands which select a new
  708. node to view in the current window.
  709.    The most basic node commands are `n', `p', `u', and `l'.
  710.    When you are viewing a node, the top line of the node contains some
  711. Info "pointers" which describe where the next, previous, and up nodes
  712. are.  Info uses this line to move about the node structure of the file
  713. when you use the following commands:
  714. `n' (`next-node')
  715.      Selects the `Next' node.
  716. `p' (`prev-node')
  717.      Selects the `Prev' node.
  718. `u' (`up-node')
  719.      Selects the `Up' node.
  720.    You can easily select a node that you have already viewed in this
  721. window by using the `l' command - this name stands for "last", and
  722. actually moves through the list of already visited nodes for this
  723. window.  `l' with a negative numeric argument moves forward through the
  724. history of nodes for this window, so you can quickly step between two
  725. adjacent (in viewing history) nodes.
  726. `l' (`history-node')
  727.      Selects the most recently selected node in this window.
  728.    Two additional commands make it easy to select the most commonly
  729. selected nodes; they are `t' and `d'.
  730. `t' (`top-node')
  731.      Selects the node `Top' in the current info file.
  732. `d' (`dir-node')
  733.      Selects the directory node (i.e., the node `(dir)').
  734.    Here are some other commands which immediately result in the
  735. selection of a different node in the current window:
  736. `<' (`first-node')
  737.      Selects the first node which appears in this file.  This node is
  738.      most often `Top', but it doesn't have to be.
  739. `>' (`last-node')
  740.      Selects the last node which appears in this file.
  741. `]' (`global-next-node')
  742.      Moves forward or down through node structure.  If the node that
  743.      you are currently viewing has a `Next' pointer, that node is
  744.      selected.  Otherwise, if this node has a menu, the first menu item
  745.      is selected.  If there is no `Next' and no menu, the same process
  746.      is tried with the `Up' node of this node.
  747. `[' (`global-prev-node')
  748.      Moves backward or up through node structure.  If the node that you
  749.      are currently viewing has a `Prev' pointer, that node is selected.
  750.      Otherwise, if the node has an `Up' pointer, that node is selected,
  751.      and if it has a menu, the last item in the menu is selected.
  752.    You can get the same behavior as `global-next-node' and
  753. `global-prev-node' while simply scrolling through the file with SPC and
  754. DEL; *Note `scroll-behaviour': Info Variables, for more information.
  755. `g' (`goto-node')
  756.      Reads the name of a node and selects it.  No completion is done
  757.      while reading the node name, since the desired node may reside in
  758.      a separate file.  The node must be typed exactly as it appears in
  759.      the info file.  A file name may be included as with any node
  760.      specification, for example
  761.           `g(emacs)Buffers'
  762.      finds the node `Buffers' in the info file `emacs'.
  763. `C-x k' (`kill-node')
  764.      Kills a node.  The node name is prompted for in the echo area,
  765.      with a default of the current node.  "Killing" a node means that
  766.      Info tries hard to forget about it, removing it from the list of
  767.      history nodes kept for the window where that node is found.
  768.      Another node is selected in the window which contained the killed
  769.      node.
  770. `C-x C-f' (`view-file')
  771.      Reads the name of a file and selects the entire file.  The command
  772.           `C-x C-f FILENAME'
  773.      is equivalent to typing
  774.           `g(FILENAME)*'
  775. `C-x C-b' (`list-visited-nodes')
  776.      Makes a window containing a menu of all of the currently visited
  777.      nodes.  This window becomes the selected window, and you may use
  778.      the standard Info commands within it.
  779. `C-x b' (`select-visited-node')
  780.      Selects a node which has been previously visited in a visible
  781.      window.  This is similar to `C-x C-b' followed by `m', but no
  782.      window is created.
  783. File: octave.info,  Node: Searching Commands,  Next: Xref Commands,  Prev: Node Commands,  Up: Using Info
  784. Searching an Info File
  785. ======================
  786.    GNU Info allows you to search for a sequence of characters
  787. throughout an entire info file, search through the indices of an info
  788. file, or find areas within an info file which discuss a particular
  789. topic.
  790. `s' (`search')
  791.      Reads a string in the echo area and searches for it.
  792. `C-s' (`isearch-forward')
  793.      Interactively searches forward through the info file for a string
  794.      as you type it.
  795. `C-r' (`isearch-backward')
  796.      Interactively searches backward through the info file for a string
  797.      as you type it.
  798. `i' (`index-search')
  799.      Looks up a string in the indices for this info file, and selects a
  800.      node where the found index entry points to.
  801. `,' (`next-index-match')
  802.      Moves to the node containing the next matching index item from the
  803.      last `i' command.
  804.    The most basic searching command is `s' (`search').  The `s' command
  805. prompts you for a string in the echo area, and then searches the
  806. remainder of the info file for an occurrence of that string.  If the
  807. string is found, the node containing it is selected, and the cursor is
  808. left positioned at the start of the found string.  Subsequent `s'
  809. commands show you the default search string within `[' and `]';
  810. pressing RET instead of typing a new string will use the default search
  811. string.
  812.    "Incremental searching" is similar to basic searching, but the
  813. string is looked up while you are typing it, instead of waiting until
  814. the entire search string has been specified.
  815. File: octave.info,  Node: Xref Commands,  Next: Window Commands,  Prev: Searching Commands,  Up: Using Info
  816. Selecting Cross References
  817. ==========================
  818.    We have already discussed the `Next', `Prev', and `Up' pointers
  819. which appear at the top of a node.  In addition to these pointers, a
  820. node may contain other pointers which refer you to a different node,
  821. perhaps in another info file.  Such pointers are called "cross
  822. references", or "xrefs" for short.
  823. * Menu:
  824. * Parts of an Xref::            What a cross reference is made of.
  825. * Selecting Xrefs::             Commands for selecting menu or note items.
  826. File: octave.info,  Node: Parts of an Xref,  Next: Selecting Xrefs,  Prev: Xref Commands,  Up: Xref Commands
  827. Parts of an Xref
  828. ----------------
  829.    Cross references have two major parts: the first part is called the
  830. "label"; it is the name that you can use to refer to the cross
  831. reference, and the second is the "target"; it is the full name of the
  832. node that the cross reference points to.
  833.    The target is separated from the label by a colon `:'; first the
  834. label appears, and then the target.  For example, in the sample menu
  835. cross reference below, the single colon separates the label from the
  836. target.
  837.      * Foo Label: Foo Target.    More information about Foo.
  838.    Note the `.' which ends the name of the target.  The `.' is not part
  839. of the target; it serves only to let Info know where the target name
  840. ends.
  841.    A shorthand way of specifying references allows two adjacent colons
  842. to stand for a target name which is the same as the label name:
  843.      * Foo Commands::        Commands pertaining to Foo.
  844.    In the above example, the name of the target is the same as the name
  845. of the label, in this case `Foo Commands'.
  846.    You will normally see two types of cross references while viewing
  847. nodes: "menu" references, and "note" references.  Menu references
  848. appear within a node's menu; they begin with a `*' at the beginning of
  849. a line, and continue with a label, a target, and a comment which
  850. describes what the contents of the node pointed to contains.
  851.    Note references appear within the body of the node text; they begin
  852. with `*Note', and continue with a label and a target.
  853.    Like `Next', `Prev' and `Up' pointers, cross references can point to
  854. any valid node.  They are used to refer you to a place where more
  855. detailed information can be found on a particular subject.  Here is a
  856. cross reference which points to a node within the Texinfo
  857. documentation:  *Note Writing an Xref: (texinfo)xref, for more
  858. information on creating your own texinfo cross references.
  859. File: octave.info,  Node: Selecting Xrefs,  Prev: Parts of an Xref,  Up: Xref Commands
  860. Selecting Xrefs
  861. ---------------
  862.    The following table lists the Info commands which operate on menu
  863. items.
  864. `1' (`menu-digit')
  865. `2' ... `9'
  866.      Within an Info window, pressing a single digit, (such as `1'),
  867.      selects that menu item, and places its node in the current window.
  868.      For convenience, there is one exception; pressing `0' selects the
  869.      *last* item in the node's menu.
  870. `0' (`last-menu-item')
  871.      Select the last item in the current node's menu.
  872. `m' (`menu-item')
  873.      Reads the name of a menu item in the echo area and selects its
  874.      node.  Completion is available while reading the menu label.
  875. `M-x find-menu'
  876.      Moves the cursor to the start of this node's menu.
  877.    This table lists the Info commands which operate on note cross
  878. references.
  879. `f' (`xref-item')
  880.      Reads the name of a note cross reference in the echo area and
  881.      selects its node.  Completion is available while reading the cross
  882.      reference label.
  883.    Finally, the next few commands operate on menu or note references
  884. alike:
  885. `TAB' (`move-to-next-xref')
  886.      Moves the cursor to the start of the next nearest menu item or note
  887.      reference in this node.  You can then use RET
  888.      (`select-reference-this-line' to select the menu or note reference.
  889. `M-TAB' (`move-to-prev-xref')
  890.      Moves the cursor the start of the nearest previous menu item or
  891.      note reference in this node.
  892. `RET' (`select-reference-this-line')
  893.      Selects the menu item or note reference appearing on this line.
  894. File: octave.info,  Node: Window Commands,  Next: Printing Nodes,  Prev: Xref Commands,  Up: Using Info
  895. Manipulating Multiple Windows
  896. =============================
  897.    A "window" is a place to show the text of a node.  Windows have a
  898. view area where the text of the node is displayed, and an associated
  899. "mode line", which briefly describes the node being viewed.
  900.    GNU Info supports multiple windows appearing in a single screen; each
  901. window is separated from the next by its modeline.  At any time, there
  902. is only one "active" window, that is, the window in which the cursor
  903. appears.  There are commands available for creating windows, changing
  904. the size of windows, selecting which window is active, and for deleting
  905. windows.
  906. * Menu:
  907. * The Mode Line::               What appears in the mode line?
  908. * Basic Windows::               Manipulating windows in Info.
  909. * The Echo Area::               Used for displaying errors and reading input.
  910.