diff options
| author | Jeremy Bryant | 2024-03-18 23:18:30 +0000 |
|---|---|---|
| committer | Justin Burkett | 2024-04-09 13:51:20 -0400 |
| commit | bfab035d1b9552c2239203644cb4535c5ef4b45b (patch) | |
| tree | 1b4b2a1cd78ee30f7c1105ece9b197d21598907a | |
| parent | 681001bf697be06a4801e6ef1083fbf6d4a1b8ec (diff) | |
| download | emacs-bfab035d1b9552c2239203644cb4535c5ef4b45b.tar.gz emacs-bfab035d1b9552c2239203644cb4535c5ef4b45b.zip | |
Simplify code to use null
* which-key.el (which-key--create-buffer-and-show):
Use null.
| -rw-r--r-- | which-key.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/which-key.el b/which-key.el index 2f2c2804f55..f2f86269fc1 100644 --- a/which-key.el +++ b/which-key.el | |||
| @@ -2692,7 +2692,7 @@ Finally, show the buffer." | |||
| 2692 | (formatted-keys (which-key--get-bindings | 2692 | (formatted-keys (which-key--get-bindings |
| 2693 | prefix-keys from-keymap filter)) | 2693 | prefix-keys from-keymap filter)) |
| 2694 | (prefix-desc (key-description prefix-keys))) | 2694 | (prefix-desc (key-description prefix-keys))) |
| 2695 | (cond ((= (length formatted-keys) 0) | 2695 | (cond ((null formatted-keys) |
| 2696 | (message "%s- which-key: There are no keys to show" prefix-desc)) | 2696 | (message "%s- which-key: There are no keys to show" prefix-desc)) |
| 2697 | ((listp which-key-side-window-location) | 2697 | ((listp which-key-side-window-location) |
| 2698 | (setq which-key--last-try-2-loc | 2698 | (setq which-key--last-try-2-loc |