Function: set-char-table-parent

set-char-table-parent is a function defined in chartab.c.

Signature

(set-char-table-parent CHAR-TABLE PARENT)

Documentation

Set the parent char-table of CHAR-TABLE to PARENT.

Return PARENT. PARENT must be either nil or another char-table.

View in manual

Probably introduced at or before Emacs version 19.30.

Source Code

// Defined in /usr/src/emacs/src/chartab.c
{
  Lisp_Object temp;

  CHECK_CHAR_TABLE (char_table);

  if (!NILP (parent))
    {
      CHECK_CHAR_TABLE (parent);

      for (temp = parent; !NILP (temp); temp = XCHAR_TABLE (temp)->parent)
	if (EQ (temp, char_table))
	  error ("Attempt to make a chartable be its own parent");
    }

  set_char_table_parent (char_table, parent);

  return parent;
}