Back to index

texmacs  1.0.7.15
Defines | Functions | Variables
edit_cursor.cpp File Reference
#include "edit_cursor.hpp"
#include "iterator.hpp"
#include "tm_buffer.hpp"
#include "tree_traverse.hpp"
#include "drd_mode.hpp"
#include "analyze.hpp"

Go to the source code of this file.

Defines

#define DELTA   (1<<23)

Functions

static path search_label (tree t, string which)

Variables

static bool searching_forwards

Define Documentation

#define DELTA   (1<<23)

Definition at line 33 of file edit_cursor.cpp.


Function Documentation

static path search_label ( tree  t,
string  which 
) [static]

Definition at line 475 of file edit_cursor.cpp.

                                    {
  if (is_atomic (t)) return path ();
  else if (t == tree (LABEL, which)) return path (1);
  else if (is_compound (t, "tag", 2) && t[0] == which)
    return path (1, start (t[1]));
  else {
    int i, n=N(t);
    for (i=0; i<n; i++) {
      path q= search_label (t[i], which);
      if (!is_nil (q)) return path (i, q);
    }
    return path ();
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

bool searching_forwards [static]

Definition at line 35 of file edit_cursor.cpp.