Variable: region-extract-function

region-extract-function is a variable defined in casefiddle.c.

Value

#[128 "\300\301\302#\207"
      [apply cua--rectangle-region-extract
	     #[128 "\300\301\302#\207"
		   [apply rectangle--extract-region
			  #[257 "\300 \205�\211\301\267\202�\300 \302 BC\207\300 \302 |\207\303\300 \302 #\207"
				[region-beginning #s(hash-table size 2 test eq rehash-size 1.5 rehash-threshold 0.8125 purecopy t data
								(bounds 11 delete-only 18))
						  region-end filter-buffer-substring]
				5 "\n\n(fn METHOD)"]
			  nil]
		   5 nil]
	     nil]
      5 nil]

Documentation

Function to get the region's content.

Called with one argument METHOD which can be:
- nil: return the content as a string (list of strings for
  non-contiguous regions).
- delete-only: delete the region; the return value is undefined.
- bounds: return the boundaries of the region as a list of one
  or more cons cells of the form (START . END).
- anything else: delete the region and return its content
  as a string (or list of strings for non-contiguous regions),
  after filtering it with filter-buffer-substring, which
  is called, for each contiguous sub-region, with METHOD as its
  3rd argument.

Source Code

// Defined in /usr/src/emacs/src/casefiddle.c
  DEFVAR_LISP ("region-extract-function", Vregion_extract_function,
	       doc: /* Function to get the region's content.
Called with one argument METHOD which can be:
- nil: return the content as a string (list of strings for
  non-contiguous regions).
- `delete-only': delete the region; the return value is undefined.
- `bounds': return the boundaries of the region as a list of one
  or more cons cells of the form (START . END).
- anything else: delete the region and return its content
  as a string (or list of strings for non-contiguous regions),
  after filtering it with `filter-buffer-substring', which
  is called, for each contiguous sub-region, with METHOD as its
  3rd argument.  */);