Back to index

texmacs  1.0.7.15
Functions
edit_delete.cpp File Reference
#include "edit_text.hpp"
#include "tree_traverse.hpp"
#include "analyze.hpp"

Go to the source code of this file.

Functions

bool is_empty_cell (tree t)
static bool is_multi_paragraph_or_sectional (tree t)

Function Documentation

bool is_empty_cell ( tree  t)

Definition at line 31 of file edit_table.cpp.

                       {
  return
    t == "" ||
    (is_func (t, DOCUMENT, 1) && is_empty_cell (t[0])) ||
    (is_compound (t, "cell-inert", 2) && is_empty_cell (t[1])) ||
    (is_compound (t, "cell-input", 3) && is_empty_cell (t[1])) ||
    (is_compound (t, "cell-output", 3) && is_empty_cell (t[2]));
}

Here is the call graph for this function:

Here is the caller graph for this function:

static bool is_multi_paragraph_or_sectional ( tree  t) [static]

Definition at line 68 of file edit_delete.cpp.

                                         {
  if (is_atomic (t)) return false;
  if (is_multi_paragraph (t)) return true;
  eval ("(use-modules (utils library tree) (text std-text-drd))");
  return as_bool (call ("tree-in?", t, call ("section-tag-list")));
}

Here is the call graph for this function:

Here is the caller graph for this function: