Function: text-quoting-style

text-quoting-style is a function defined in doc.c.

Signature

(text-quoting-style)

Documentation

Return the current effective text quoting style.

If the variable text-quoting-style(var)/text-quoting-style(fun) is grave, straight or curve, just return that value. If it is nil (the default), return grave if curved quotes cannot be displayed (for instance, on a terminal with no support for these characters), otherwise return curve. Any other value is treated as curve.

Note that in contrast to the variable text-quoting-style(var)/text-quoting-style(fun), this function will never return nil.

View in manual

Probably introduced at or before Emacs version 25.1.

Source Code

// Defined in /usr/src/emacs/src/doc.c
{
  /* Use grave accent and apostrophe `like this'.  */
  if (NILP (Vtext_quoting_style)
      ? default_to_grave_quoting_style ()
      : EQ (Vtext_quoting_style, Qgrave))
    return Qgrave;

  /* Use apostrophes 'like this'.  */
  else if (EQ (Vtext_quoting_style, Qstraight))
    return Qstraight;

  /* Use curved single quotes ‘like this’.  */
  else
    return Qcurve;
}