Function: capitalize-region

capitalize-region is an interactive function defined in casefiddle.c.

Signature

(capitalize-region BEG END &optional REGION-NONCONTIGUOUS-P)

Documentation

Convert the region to capitalized form.

This means that each word's first character is converted to either title case or upper case, and the rest to lower case. In programs, give two arguments, the starting and ending character positions to operate on.

Probably introduced at or before Emacs version 27.1.

Key Bindings

Source Code

// Defined in /usr/src/emacs/src/casefiddle.c
{
  return casify_pnc_region (CASE_CAPITALIZE, beg, end, region_noncontiguous_p);
}