Function: system-name

system-name is a function defined in editfns.c.

Signature

(system-name)

Documentation

Return the host name of the machine you are running on, as a string.

View in manual

Probably introduced at or before Emacs version 19.23.

Source Code

// Defined in /usr/src/emacs/src/editfns.c
{
  if (EQ (Vsystem_name, cached_system_name))
    init_and_cache_system_name ();
  return Vsystem_name;
}