From d0533fe99cf30c54ea0cd9006c1ee6f46d55e5f3 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 27 Feb 2019 03:06:16 -0500 Subject: [PATCH] Fix lookup commands erroring when successful Because message returns non-nil, and +lookup--jump-to needs to return nil when it fails. --- modules/feature/lookup/autoload/lookup.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/feature/lookup/autoload/lookup.el b/modules/feature/lookup/autoload/lookup.el index f69e8c344..fb20121ee 100644 --- a/modules/feature/lookup/autoload/lookup.el +++ b/modules/feature/lookup/autoload/lookup.el @@ -138,7 +138,8 @@ Otherwise, these properties are available to be set: '+lookup--run-hooks identifier (point-marker) other-window))) (cond ((null ret) - (message "Could not find '%s'" identifier)) + (message "Could not find '%s'" identifier) + nil) ((markerp ret) (funcall (if other-window #'switch-to-buffer-other-window