Commit aa0382bd authored by Stefan Monnier's avatar Stefan Monnier
Browse files

* lisp/dabbrev.el (dabbrev-expand): Make "no expansion found" a user-error.

parent c8e32179
2012-05-11 Stefan Monnier <monnier@iro.umontreal.ca>
* dabbrev.el (dabbrev-expand): Make "no expansion found" a user-error.
* minibuffer.el (completion--twq-all): Again, allow case differences.
* term.el: Move keymap initialization code to be more idiomatic.
......
......@@ -527,8 +527,8 @@ See also `dabbrev-abbrev-char-regexp' and \\[dabbrev-completion]."
(search-backward old)
(insert abbrev)
(delete-region (point) (+ (point) (length old)))))
(error "No%s dynamic expansion for `%s' found"
(if old " further" "") abbrev))
(user-error "No%s dynamic expansion for `%s' found"
(if old " further" "") abbrev))
(t
(if (not (or (eq dabbrev--last-buffer dabbrev--last-buffer-found)
(minibuffer-window-active-p (selected-window))))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment