diff options
| author | Stefan Monnier | 2012-05-11 13:31:30 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2012-05-11 13:31:30 -0400 |
| commit | aa0382bd67c77578fc2e589ba802f5f1330a4a0a (patch) | |
| tree | 097a988250216c866d9d3d6472422c6b355a3484 | |
| parent | c8e321795a3c7028204a05c81c3a4869103a004e (diff) | |
| download | emacs-aa0382bd67c77578fc2e589ba802f5f1330a4a0a.tar.gz emacs-aa0382bd67c77578fc2e589ba802f5f1330a4a0a.zip | |
* lisp/dabbrev.el (dabbrev-expand): Make "no expansion found" a user-error.
| -rw-r--r-- | lisp/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/dabbrev.el | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f54e2da78f1..467e7f06457 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2012-05-11 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2012-05-11 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * dabbrev.el (dabbrev-expand): Make "no expansion found" a user-error. | ||
| 4 | |||
| 3 | * minibuffer.el (completion--twq-all): Again, allow case differences. | 5 | * minibuffer.el (completion--twq-all): Again, allow case differences. |
| 4 | 6 | ||
| 5 | * term.el: Move keymap initialization code to be more idiomatic. | 7 | * term.el: Move keymap initialization code to be more idiomatic. |
diff --git a/lisp/dabbrev.el b/lisp/dabbrev.el index 87a03fd24da..ab886edac25 100644 --- a/lisp/dabbrev.el +++ b/lisp/dabbrev.el | |||
| @@ -527,8 +527,8 @@ See also `dabbrev-abbrev-char-regexp' and \\[dabbrev-completion]." | |||
| 527 | (search-backward old) | 527 | (search-backward old) |
| 528 | (insert abbrev) | 528 | (insert abbrev) |
| 529 | (delete-region (point) (+ (point) (length old))))) | 529 | (delete-region (point) (+ (point) (length old))))) |
| 530 | (error "No%s dynamic expansion for `%s' found" | 530 | (user-error "No%s dynamic expansion for `%s' found" |
| 531 | (if old " further" "") abbrev)) | 531 | (if old " further" "") abbrev)) |
| 532 | (t | 532 | (t |
| 533 | (if (not (or (eq dabbrev--last-buffer dabbrev--last-buffer-found) | 533 | (if (not (or (eq dabbrev--last-buffer dabbrev--last-buffer-found) |
| 534 | (minibuffer-window-active-p (selected-window)))) | 534 | (minibuffer-window-active-p (selected-window)))) |