Variable: case-symbols-as-words
case-symbols-as-words is a buffer-local variable defined in
casefiddle.c.
Documentation
If non-nil, case functions treat symbol syntax as part of words.
Functions such as upcase-initials and replace-match check or modify
the case pattern of sequences of characters. Normally, these operate on
sequences of characters whose syntax is word constituent. If this
variable is non-nil, then they operate on sequences of characters whose
syntax is either word constituent or symbol constituent.
This is useful for programming languages and styles where only the first letter of a symbol's name is ever capitalized.
Probably introduced at or before Emacs version 30.1.
Source Code
// Defined in /usr/src/emacs/src/casefiddle.c
DEFVAR_BOOL ("case-symbols-as-words", case_symbols_as_words,
doc: /* If non-nil, case functions treat symbol syntax as part of words.
Functions such as `upcase-initials' and `replace-match' check or modify
the case pattern of sequences of characters. Normally, these operate on
sequences of characters whose syntax is word constituent. If this
variable is non-nil, then they operate on sequences of characters whose
syntax is either word constituent or symbol constituent.
This is useful for programming languages and styles where only the first
letter of a symbol's name is ever capitalized.*/);