]> code.delx.au - gnu-emacs-elpa/commitdiff
give feedback in the echo area again
authorMichael Heerdegen <michael_heerdegen@web.de>
Sat, 24 Oct 2015 22:02:17 +0000 (00:02 +0200)
committerMichael Heerdegen <michael_heerdegen@web.de>
Sat, 31 Oct 2015 18:16:58 +0000 (19:16 +0100)
packages/el-search/el-search.el

index 091ec51d1bbd5ee1524353623aef9559898dd73b..e2f1b5abb9b45f5ffaf337028ac08ec41ae5900d 100644 (file)
 ;;
 ;; TODO:
 ;;
-;; - display something useful in the echo area.  or leave it for being
-;; able to `message' in the pattern?
-;;
 ;; - implement backward searching
 ;;
 ;; - improve docstrings
@@ -457,9 +454,11 @@ return nil (no error)."
         ;; wrap search
         (goto-char (point-min))))
     (setq el-search-success nil)
+    (message "%s" (substitute-command-keys "Type \\[el-search-pattern] to repeat"))
     (when (condition-case nil
               (el-search--search-pattern pattern)
-            (end-of-buffer (message "No match")
+            (end-of-buffer (message "No match; %s"
+                                    (substitute-command-keys "Type \\[el-search-pattern] to wrap"))
                            (goto-char opoint)
                            (el-search-hl-remove)
                            (ding)