]> code.delx.au - gnu-emacs-elpa/blobdiff - packages/el-search/el-search.el
give feedback in the echo area again
[gnu-emacs-elpa] / 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)