mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 09:14:18 +00:00
Avoid signaling errors in 'dabbrev-capf'
* lisp/dabbrev.el (dabbrev-capf): Call 'dabbrev--reset-global-variables' if necessary. (Bug#61274)
This commit is contained in:
parent
66308637d7
commit
6570c746fe
1 changed files with 2 additions and 0 deletions
|
|
@ -400,6 +400,8 @@ then it searches *all* buffers."
|
|||
|
||||
(defun dabbrev-capf ()
|
||||
"Dabbrev completion function for `completion-at-point-functions'."
|
||||
(or (stringp dabbrev--abbrev-char-regexp)
|
||||
(dabbrev--reset-global-variables))
|
||||
(let* ((abbrev (dabbrev--abbrev-at-point))
|
||||
(beg (progn (search-backward abbrev) (point)))
|
||||
(end (progn (search-forward abbrev) (point)))
|
||||
|
|
|
|||
Loading…
Reference in a new issue