Variable: self-insert-uses-region-functions

self-insert-uses-region-functions is a variable defined in simple.el.gz.

Value

nil

Documentation

Special hook to tell if self-insert-command will use the region.

It must be called via run-hook-with-args-until-success with no arguments.

If any function on this hook returns a non-nil value, delete-selection-mode(var)/delete-selection-mode(fun) will act on that value (see delete-selection-helper) and will usually delete the region. If all the functions on this hook return nil, it is an indication that self-insert-command needs the region untouched by delete-selection-mode(var)/delete-selection-mode(fun) and will itself do whatever is appropriate with the region. Any function on post-self-insert-hook that acts on the region should add a function to this hook so that delete-selection-mode(var)/delete-selection-mode(fun) could refrain from deleting the region before the post-self-insert-hook functions are called. This hook is run by delete-selection-uses-region-p, which see.

Source Code

;; Defined in /usr/src/emacs/lisp/simple.el.gz
;; Making and deleting lines.

(defvar self-insert-uses-region-functions nil
  "Special hook to tell if `self-insert-command' will use the region.
It must be called via `run-hook-with-args-until-success' with no arguments.

If any function on this hook returns a non-nil value, `delete-selection-mode'
will act on that value (see `delete-selection-helper') and will
usually delete the region.  If all the functions on this hook return
nil, it is an indication that `self-insert-command' needs the region
untouched by `delete-selection-mode' and will itself do whatever is
appropriate with the region.
Any function on `post-self-insert-hook' that acts on the region should
add a function to this hook so that `delete-selection-mode' could
refrain from deleting the region before the `post-self-insert-hook'
functions are called.
This hook is run by `delete-selection-uses-region-p', which see.")