From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Removing ding each time I type TAB when not after a structure template with org-tempo enabled Date: Sun, 11 Feb 2018 12:05:37 +0100 Message-ID: <87y3jzbxby.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46537) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ekpS1-00078h-BM for emacs-orgmode@gnu.org; Sun, 11 Feb 2018 06:05:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ekpS0-0001Mz-L2 for emacs-orgmode@gnu.org; Sun, 11 Feb 2018 06:05:41 -0500 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:45145) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ekpS0-0001K5-Bc for emacs-orgmode@gnu.org; Sun, 11 Feb 2018 06:05:40 -0500 In-Reply-To: (Brent Goodrick's message of "Sun, 4 Feb 2018 11:07:10 -0800") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Brent Goodrick Cc: emacs-orgmode@gnu.org Hello, Brent Goodrick writes: > In this new version, I discovered that structure templates were not > enabled by default, so I enabled them. But to my chagrin, I found that > I get a "ding" each time I type the TAB key when on a blank line that > is _not_ right after a structure template such as " > Below is my hackaround, but can someone take a look into arranging it > so that is not the default to ding if tempo-complete-tag cannot find > anything to complete, and thus I can remove my hack? > > Just passing silent to it will actually break TABing over (normal tab > meaning) in Org buffers, so the obvious fix won't work. (ding) > returns nil which it must so that the hook works as expected. Fixed. Thank you. > ;; Enable Structure templates that at one point were by default enabled in Org > ;; mode, but someone changed that for some reason, so re enable it. There is another structure template expansion mechanism enable by default. You may want to try `C-c C-x C-w'. Regards, -- Nicolas Goaziou