From 2c93a0b2d778143557f5bf913fefd3e1d07ac5db Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Tue, 27 Feb 2018 02:02:56 +0100 Subject: [PATCH] org-tempo: Fix TAB behaviour * lisp/org-tempo.el (org-tempo-complete-tag): Use a different trick to handle failed completions. Reported-by: Brent Goodrick --- lisp/org-tempo.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/org-tempo.el b/lisp/org-tempo.el index 9b8f8fad1..d23754ad6 100644 --- a/lisp/org-tempo.el +++ b/lisp/org-tempo.el @@ -126,8 +126,9 @@ Goes through `org-structure-template-alist' and Unlike to `tempo-complete-tag', do not give a signal if a partial completion or no match at all is found. Return nil if expansion didn't succeed." - (cl-letf (((symbol-function 'ding) #'ignore)) - (tempo-complete-tag t))) + ;; `tempo-complete-tag' returns its SILENT argument when there is no + ;; completion available at all. + (not (eq 'fail (tempo-complete-tag 'fail)))) ;;; Additional keywords -- 2.11.4.GIT