Function: abbrev--suggest-get-previous-words
abbrev--suggest-get-previous-words is a byte-compiled function defined
in abbrev.el.gz.
Signature
(abbrev--suggest-get-previous-words N)
Documentation
Return the N words before point, spaces included.
Source Code
;; Defined in /usr/src/emacs/lisp/abbrev.el.gz
(defun abbrev--suggest-get-previous-words (n)
"Return the N words before point, spaces included."
(let ((end (point)))
(save-excursion
(backward-word n)
(replace-regexp-in-string
"\\s " " "
(buffer-substring-no-properties (point) end)))))