emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Org 9.2 not inhibiting electric-pair-mode in the beginning of lines?
Date: Tue, 29 Oct 2019 16:17:00 -0400	[thread overview]
Message-ID: <87imo7mhmr.fsf@alphaville.usersys.redhat.com> (raw)
In-Reply-To: 87o8xz6hzj.fsf@ucl.ac.uk

"Fraga, Eric" <e.fraga@ucl.ac.uk> writes:

> On Tuesday, 29 Oct 2019 at 16:50, Vladimir Nikishkin wrote:
>> I think, these are two different mechanisms. C-c C-, works as expected.
>> The "<" mechanism comes from org-tempo, and is faster, because you
>> don't have to choose anything.
>
> I don't know anything about org-tempo but, just to be clear, the old <
> at beginning of line mechanism that was available, by default, in org
> 8.x is no longer available.  It was replaced by C-c C-,.

Not quite: there is still an emulation of the old mechanism if you

(require 'org-tempo)

which Vladimir probably does. That modifies the following hook:

,----
| org-tab-before-tab-emulation-hook is a variable defined in ‘org.el’.
| Its value is (org-tempo-complete-tag)
`----

The hook is run close to the end of org-cycle (which is bound to TAB). So
when you type

<sTAB

org-cycle runs through all the possibilities, fails on all of them, runs
the hook and org-tempo-complete-tag is evaluated, which expands the <s.

-- 
Nick

"There are only two hard problems in computer science: cache
invalidation, naming things, and off-by-one errors." -Martin Fowler

  parent reply	other threads:[~2019-10-29 20:17 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-29  8:09 Org 9.2 not inhibiting electric-pair-mode in the beginning of lines? Vladimir Nikishkin
2019-10-29  8:21 ` Fraga, Eric
2019-10-29  8:50   ` Vladimir Nikishkin
2019-10-29  9:03     ` Fraga, Eric
2019-10-29  9:06       ` Vladimir Nikishkin
2019-10-29  9:07         ` Vladimir Nikishkin
2019-10-29 10:08         ` Fraga, Eric
2019-10-29 14:57           ` Vladimir Nikishkin
2019-10-29 15:08             ` Julius Müller
2019-10-29 15:10               ` Julius Müller
2019-10-29 16:36             ` Fraga, Eric
2019-10-29 20:17       ` Nick Dokos [this message]
2019-10-29 22:23         ` Fraga, Eric
2020-02-11 11:50 ` Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87imo7mhmr.fsf@alphaville.usersys.redhat.com \
    --to=ndokos@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).