]> code.delx.au - gnu-emacs-elpa/commitdiff
company-search-delete-char: Use `ding'
authorDmitry Gutov <dgutov@yandex.ru>
Mon, 12 Jan 2015 08:41:24 +0000 (11:41 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Mon, 12 Jan 2015 08:41:24 +0000 (11:41 +0300)
company.el

index be947430b80b94b74cf10227dfd3d4656ea69586..8b8f6ca2ace1d7122cc882adc77222448252baf3 100644 (file)
@@ -1668,7 +1668,8 @@ from the rest of the back-ends in the group, if any, will be left at the end."
 (defun company-search-delete-char ()
   (interactive)
   (company--search-assert-enabled)
-  (unless (string= company-search-string "")
+  (if (string= company-search-string "")
+      (ding)
     (let ((ss (substring company-search-string 0 -1)))
       (when company-search-filtering
         (company--search-update-predicate ss))