diff options
| author | Bastien Guerry | 2014-03-04 15:33:56 +0100 |
|---|---|---|
| committer | Bastien Guerry | 2014-03-04 15:33:56 +0100 |
| commit | c3701c7d94ec22d40a0d82bbf8e070d26b9d92f3 (patch) | |
| tree | 54e2c9aa97f180db90e5ba07f47f14212d7c26c8 | |
| parent | b01fa8381fa2f5762d1c1b7328a6c10fc3797eda (diff) | |
| download | emacs-c3701c7d94ec22d40a0d82bbf8e070d26b9d92f3.tar.gz emacs-c3701c7d94ec22d40a0d82bbf8e070d26b9d92f3.zip | |
minibuffer.el (minibuffer-completion-help): Use 0 as thefallback value for `base-size'
* minibuffer.el (minibuffer-completion-help): Use 0 as the
fallback value for `base-size'. (Bug#16933)
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/minibuffer.el | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e361990693d..fe40615d6e0 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-03-04 Bastien Guerry <bzg@gnu.org> | ||
| 2 | |||
| 3 | * minibuffer.el (minibuffer-completion-help): Use 0 as the | ||
| 4 | fallback value for `base-size'. (Bug#16933) | ||
| 5 | |||
| 1 | 2014-03-04 Juanma Barranquero <lekktu@gmail.com> | 6 | 2014-03-04 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 7 | ||
| 3 | * hexl.el (hexl-address-region, hexl-ascii-region) | 8 | * hexl.el (hexl-address-region, hexl-ascii-region) |
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el index 63e7e145d10..da3a8ad9df1 100644 --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el | |||
| @@ -1753,7 +1753,7 @@ variables.") | |||
| 1753 | (if completions "Sole completion" "No completions"))) | 1753 | (if completions "Sole completion" "No completions"))) |
| 1754 | 1754 | ||
| 1755 | (let* ((last (last completions)) | 1755 | (let* ((last (last completions)) |
| 1756 | (base-size (cdr last)) | 1756 | (base-size (or (cdr last) 0)) |
| 1757 | (prefix (unless (zerop base-size) (substring string 0 base-size))) | 1757 | (prefix (unless (zerop base-size) (substring string 0 base-size))) |
| 1758 | (all-md (completion--metadata (buffer-substring-no-properties | 1758 | (all-md (completion--metadata (buffer-substring-no-properties |
| 1759 | start (point)) | 1759 | start (point)) |