From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brent Goodrick Subject: Re: Removing ding each time I type TAB when not after a structure template with org-tempo enabled Date: Sun, 25 Feb 2018 10:32:39 -0800 Message-ID: References: <87y3jzbxby.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c1ab26447190c05660d9e75" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60808) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eq16J-0004JC-2O for emacs-orgmode@gnu.org; Sun, 25 Feb 2018 13:32:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eq16H-00084p-Pl for emacs-orgmode@gnu.org; Sun, 25 Feb 2018 13:32:43 -0500 Received: from mail-lf0-x235.google.com ([2a00:1450:4010:c07::235]:33025) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eq16H-00082N-Gk for emacs-orgmode@gnu.org; Sun, 25 Feb 2018 13:32:41 -0500 Received: by mail-lf0-x235.google.com with SMTP id o145so15850526lff.0 for ; Sun, 25 Feb 2018 10:32:40 -0800 (PST) In-Reply-To: <87y3jzbxby.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org --94eb2c1ab26447190c05660d9e75 Content-Type: text/plain; charset="UTF-8" Hi Nicolas, Thanks. This is close, but not completely fixed: When I have the point at the start of a line in a Org file, and type the TAB key, it does not move like it should up underneath the prior heading. See annotated screenshot: https://i.imgur.com/zUH28W0.png I'll have to re-instate my workaround for now. Thanks for the help! Brent On Sun, Feb 11, 2018 at 3:05 AM, Nicolas Goaziou wrote: > 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 > --94eb2c1ab26447190c05660d9e75 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Nicolas,

Thanks. This = is close, but not completely fixed: When I have the point at the start of a= line in a Org file, and type the TAB key, it does not move like it should = up underneath the prior heading. See annotated screenshot:

https://i.imgur.com/zUH28W0.png
I'll have to re-instate my workaround for now.=C2=A0
Thanks for the help!

Brent

=

On Sun, Feb 11, 2018 at 3:05 AM, Nicolas Goaziou <mail@nicolasgoazio= u.fr> wrote:
Hello,

Brent Goodrick <bgoodr@gmail.com= > 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 "<e". >
> Below is my hackaround, but can someone take a look into arranging it<= br> > 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<= br> > meaning) in Org buffers, so the obvious fix won't work.=C2=A0 (din= g)
> returns nil which it must so that the hook works as expected.

Fixed. Thank you.

>=C2=A0 =C2=A0;; Enable Structure templates that at one point were by de= fault enabled in Org
>=C2=A0 =C2=A0;; mode, but someone changed that for some reason, so re e= nable 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

--94eb2c1ab26447190c05660d9e75--