Variable: dabbrev-abbrev-char-regexp
dabbrev-abbrev-char-regexp is a customizable variable defined in
dabbrev.el.gz.
Value
nil
Documentation
Regexp to recognize a character in an abbreviation or expansion.
This regexp will be surrounded with \\( ... \\) when actually used.
Set this variable to "\\\\sw" if you want ordinary words or
"\\\\sw\\\\|\\\\s_" if you want symbols (including characters
whose syntax is "symbol" as well as those whose syntax is
"word"). The abbreviation is from point to the start of the
previous sequence of characters matching this variable.
The default value of nil is equivalent to "\\\\sw\\\\|\\\\s_".
For instance, suppose the current buffer is in c-mode. If this
variable is nil or "\\\\sw\\\\|\\\\s_", then expanding
debug_print_in_ looks for a symbol starting with
debug_print_in_. If you set this variable to "\\\\sw", that
expansion looks for a word prefixed with in_ (e.g., it would
match in_range, but not in_close_range). If expanding
debug_print_in it would look for a word starting with
in (e.g. integer).
Source Code
;; Defined in /usr/src/emacs/lisp/dabbrev.el.gz
;;;###autoload(put 'dabbrev-case-replace 'risky-local-variable t)
(defcustom dabbrev-abbrev-char-regexp nil
"Regexp to recognize a character in an abbreviation or expansion.
This regexp will be surrounded with \\\\( ... \\\\) when actually used.
Set this variable to \"\\\\sw\" if you want ordinary words or
\"\\\\sw\\\\|\\\\s_\" if you want symbols (including characters
whose syntax is \"symbol\" as well as those whose syntax is
\"word\"). The abbreviation is from point to the start of the
previous sequence of characters matching this variable.
The default value of nil is equivalent to \"\\\\sw\\\\|\\\\s_\".
For instance, suppose the current buffer is in `c-mode'. If this
variable is nil or \"\\\\sw\\\\|\\\\s_\", then expanding
`debug_print_in_' looks for a symbol starting with
`debug_print_in_'. If you set this variable to \"\\\\sw\", that
expansion looks for a word prefixed with `in_' (e.g., it would
match `in_range', but not `in_close_range'). If expanding
`debug_print_in' it would look for a word starting with
`in' (e.g. `integer')."
:type '(choice (const nil)
regexp)
:group 'dabbrev)