Change position



next up previous contents index
Next: Get buffer contents Up: Functions Previous: About position

Change position

 

goto_char

    void goto_char(int nth);

Changes the current position in the current window to nth if it is possible, else does nothing.

goto_next_char

  void goto_next_char();

Increments the current position if it is not the end of file position, else does nothing.

goto_previous_char

  void goto_previous_char();

Decrements the current position if it is not the beginning of file position, else does nothing.

goto_end_of_file

  void goto_end_of_file();

Changes the current position to the end of file position. Its definition is equivalent to:

goto_beginning_of_line

  void goto_beginning_of_line();

Changes the current position to the beginning of the current line position.

goto_end_of_line

  void goto_end_of_line();

Changes the current position to the end of the current line position.

goto_next_line

  void goto_next_line();

Changes the current position to the same column of the next line when possible. If the current line is the last one, goes to the end of file. If the current position is the end of file position, does nothing. If the length of the next line is shorter than the length of the current line, goes to the end of the next line. The column is the nth character of the line (Note that a tab counts 1, not 8). Its definition is equivalent to:

goto_previous_line

  void goto_previous_line();

Changes the current position to go to the same column of the previous line when possible. If the current line is the first, goes to the beginning of file. If the current position is the beginning of file position, does nothing. If the length of the previous line is shorter than the length of the current line, goes to the end of the previous line.

goto_line

   void goto_line(int nth);

Changes the current position to go to the beginning of the nth line when possible, else (nth is too large or negative) does nothing.

See also forward\_search()7.3.5 page gif), backward\_search()7.3.5 page gif), msearch()7.3.5 page gif) and read\_file()7.3.8 page gif).



next up previous contents index
Next: Get buffer contents Up: Functions Previous: About position



Lionel Fournigault
Mon Mar 6 13:33:34 MET 1995