* Org 9.2 not inhibiting electric-pair-mode in the beginning of lines?
@ 2019-10-29 8:09 Vladimir Nikishkin
2019-10-29 8:21 ` Fraga, Eric
2020-02-11 11:50 ` Bastien
0 siblings, 2 replies; 14+ messages in thread
From: Vladimir Nikishkin @ 2019-10-29 8:09 UTC (permalink / raw)
To: emacs-orgmode
I used org 8 until recently, and it used to be that I could type "<"
at the beginning of a line, and it would be still a single "<" (thus
allowing the expansion of structured templates with TAB)
In org 9.2 electric-pair-mode seems to be working all the time.
What is the recommended way of making paired parentheses in org 9.2?
Shall I inhibit electric-pair-mode somehow myself, and instead rely on
org-cdlatex-mode?
What would be the correct incantation to put in the .emacs file?
Thanks!
--
Yours sincerely, Vladimir Nikishkin
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Org 9.2 not inhibiting electric-pair-mode in the beginning of lines?
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
2020-02-11 11:50 ` Bastien
1 sibling, 1 reply; 14+ messages in thread
From: Fraga, Eric @ 2019-10-29 8:21 UTC (permalink / raw)
To: Vladimir Nikishkin; +Cc: emacs-orgmode@gnu.org
On Tuesday, 29 Oct 2019 at 16:09, Vladimir Nikishkin wrote:
> I used org 8 until recently, and it used to be that I could type "<"
> at the beginning of a line, and it would be still a single "<" (thus
> allowing the expansion of structured templates with TAB)
Expansion of structured templates is no longer done using < at the start
of a line. A more general approach is now available,
org-insert-structure-template which is bound to C-c C-, for me at
least. It prompts for what to insert and, most importantly, will wrap
the structure around any region that has been selected.
--
Eric S Fraga via Emacs 27.0.50, Org release_9.2.6-552-g8c5a78
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Org 9.2 not inhibiting electric-pair-mode in the beginning of lines?
2019-10-29 8:21 ` Fraga, Eric
@ 2019-10-29 8:50 ` Vladimir Nikishkin
2019-10-29 9:03 ` Fraga, Eric
0 siblings, 1 reply; 14+ messages in thread
From: Vladimir Nikishkin @ 2019-10-29 8:50 UTC (permalink / raw)
To: Fraga, Eric; +Cc: emacs-orgmode@gnu.org
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.
вт, 29 окт. 2019 г. в 16:21, Fraga, Eric <e.fraga@ucl.ac.uk>:
>
> On Tuesday, 29 Oct 2019 at 16:09, Vladimir Nikishkin wrote:
> > I used org 8 until recently, and it used to be that I could type "<"
> > at the beginning of a line, and it would be still a single "<" (thus
> > allowing the expansion of structured templates with TAB)
>
> Expansion of structured templates is no longer done using < at the start
> of a line. A more general approach is now available,
> org-insert-structure-template which is bound to C-c C-, for me at
> least. It prompts for what to insert and, most importantly, will wrap
> the structure around any region that has been selected.
>
> --
> Eric S Fraga via Emacs 27.0.50, Org release_9.2.6-552-g8c5a78
--
Yours sincerely, Vladimir Nikishkin
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Org 9.2 not inhibiting electric-pair-mode in the beginning of lines?
2019-10-29 8:50 ` Vladimir Nikishkin
@ 2019-10-29 9:03 ` Fraga, Eric
2019-10-29 9:06 ` Vladimir Nikishkin
2019-10-29 20:17 ` Nick Dokos
0 siblings, 2 replies; 14+ messages in thread
From: Fraga, Eric @ 2019-10-29 9:03 UTC (permalink / raw)
To: Vladimir Nikishkin; +Cc: emacs-orgmode@gnu.org
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-,.
--
Eric S Fraga via Emacs 27.0.50, Org release_9.2.6-552-g8c5a78
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Org 9.2 not inhibiting electric-pair-mode in the beginning of lines?
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 20:17 ` Nick Dokos
1 sibling, 2 replies; 14+ messages in thread
From: Vladimir Nikishkin @ 2019-10-29 9:06 UTC (permalink / raw)
To: Fraga, Eric; +Cc: emacs-orgmode@gnu.org
No it is not, please, don't disinform people.
вт, 29 окт. 2019 г. в 17:03, Fraga, Eric <e.fraga@ucl.ac.uk>:
>
> 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-,.
>
> --
> Eric S Fraga via Emacs 27.0.50, Org release_9.2.6-552-g8c5a78
--
Yours sincerely, Vladimir Nikishkin
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Org 9.2 not inhibiting electric-pair-mode in the beginning of lines?
2019-10-29 9:06 ` Vladimir Nikishkin
@ 2019-10-29 9:07 ` Vladimir Nikishkin
2019-10-29 10:08 ` Fraga, Eric
1 sibling, 0 replies; 14+ messages in thread
From: Vladimir Nikishkin @ 2019-10-29 9:07 UTC (permalink / raw)
To: Fraga, Eric; +Cc: emacs-orgmode@gnu.org
And this question is _not_ about the template expansion, but about the
electric-pair-mode.
вт, 29 окт. 2019 г. в 17:06, Vladimir Nikishkin <lockywolf@gmail.com>:
>
> No it is not, please, don't disinform people.
>
> вт, 29 окт. 2019 г. в 17:03, Fraga, Eric <e.fraga@ucl.ac.uk>:
> >
> > 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-,.
> >
> > --
> > Eric S Fraga via Emacs 27.0.50, Org release_9.2.6-552-g8c5a78
>
>
>
> --
> Yours sincerely, Vladimir Nikishkin
--
Yours sincerely, Vladimir Nikishkin
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Org 9.2 not inhibiting electric-pair-mode in the beginning of lines?
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
1 sibling, 1 reply; 14+ messages in thread
From: Fraga, Eric @ 2019-10-29 10:08 UTC (permalink / raw)
To: Vladimir Nikishkin; +Cc: emacs-orgmode@gnu.org
On Tuesday, 29 Oct 2019 at 17:06, Vladimir Nikishkin wrote:
> No it is not, please, don't disinform people.
Not intending to do so but please clarify: in which way am I
misinforming people?
--
Eric S Fraga via Emacs 27.0.50, Org release_9.2.6-544-gd215c3
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Org 9.2 not inhibiting electric-pair-mode in the beginning of lines?
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 16:36 ` Fraga, Eric
0 siblings, 2 replies; 14+ messages in thread
From: Vladimir Nikishkin @ 2019-10-29 14:57 UTC (permalink / raw)
To: Fraga, Eric; +Cc: emacs-orgmode@gnu.org
Please, consider visitiong M-x info-display-manual RET org RET section
15.2, paragraph 4.
вт, 29 окт. 2019 г. в 18:08, Fraga, Eric <e.fraga@ucl.ac.uk>:
>
> On Tuesday, 29 Oct 2019 at 17:06, Vladimir Nikishkin wrote:
> > No it is not, please, don't disinform people.
>
> Not intending to do so but please clarify: in which way am I
> misinforming people?
>
> --
> Eric S Fraga via Emacs 27.0.50, Org release_9.2.6-544-gd215c3
--
Yours sincerely, Vladimir Nikishkin
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Org 9.2 not inhibiting electric-pair-mode in the beginning of lines?
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
1 sibling, 1 reply; 14+ messages in thread
From: Julius Müller @ 2019-10-29 15:08 UTC (permalink / raw)
To: emacs-orgmode
Am 29.10.19 um 15:57 schrieb Vladimir Nikishkin:
> Please, consider visitiong M-x info-display-manual RET org RET section
> 15.2, paragraph 4.
Well, there's at least something missing in that documentation. Without
any config file active, but with org mode loaded, those abbreviations
are not availlable to me (as I expected from discussions in this group).
HTH,
Julius
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Org 9.2 not inhibiting electric-pair-mode in the beginning of lines?
2019-10-29 15:08 ` Julius Müller
@ 2019-10-29 15:10 ` Julius Müller
0 siblings, 0 replies; 14+ messages in thread
From: Julius Müller @ 2019-10-29 15:10 UTC (permalink / raw)
To: emacs-orgmode
Am 29.10.19 um 16:08 schrieb Julius Müller:
> Am 29.10.19 um 15:57 schrieb Vladimir Nikishkin:
>> Please, consider visitiong M-x info-display-manual RET org RET section
>> 15.2, paragraph 4.
>
> Well, there's at least something missing in that documentation. Without
> any config file active, but with org mode loaded, those abbreviations
> are not availlable to me (as I expected from discussions in this group).
Oops, I mistyped. My fault. Sorry for the noise.
Julius
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Org 9.2 not inhibiting electric-pair-mode in the beginning of lines?
2019-10-29 14:57 ` Vladimir Nikishkin
2019-10-29 15:08 ` Julius Müller
@ 2019-10-29 16:36 ` Fraga, Eric
1 sibling, 0 replies; 14+ messages in thread
From: Fraga, Eric @ 2019-10-29 16:36 UTC (permalink / raw)
To: Vladimir Nikishkin; +Cc: emacs-orgmode@gnu.org
On Tuesday, 29 Oct 2019 at 22:57, Vladimir Nikishkin wrote:
> Please, consider visitiong M-x info-display-manual RET org RET section
> 15.2, paragraph 4.
You must have a different version of the manual than I have. For me,
this section is on header arguments for working with source code and the
4th paragraph says nothing relevant as far as I can tell. Anyway, no
worries. I hope you get what you want sorted.
--
Eric S Fraga via Emacs 27.0.50, Org release_9.2.6-544-gd215c3
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Org 9.2 not inhibiting electric-pair-mode in the beginning of lines?
2019-10-29 9:03 ` Fraga, Eric
2019-10-29 9:06 ` Vladimir Nikishkin
@ 2019-10-29 20:17 ` Nick Dokos
2019-10-29 22:23 ` Fraga, Eric
1 sibling, 1 reply; 14+ messages in thread
From: Nick Dokos @ 2019-10-29 20:17 UTC (permalink / raw)
To: emacs-orgmode
"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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Org 9.2 not inhibiting electric-pair-mode in the beginning of lines?
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
@ 2020-02-11 11:50 ` Bastien
1 sibling, 0 replies; 14+ messages in thread
From: Bastien @ 2020-02-11 11:50 UTC (permalink / raw)
To: Vladimir Nikishkin; +Cc: emacs-orgmode
Hi Vladimir,
Vladimir Nikishkin <lockywolf@gmail.com> writes:
> I used org 8 until recently, and it used to be that I could type "<"
> at the beginning of a line, and it would be still a single "<" (thus
> allowing the expansion of structured templates with TAB)
This is still the case for me in latest Org mode version 9.3.4.
Can you try again with Emacs -q and Org 9.3.4?
Thanks,
--
Bastien
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2020-02-11 11:50 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2019-10-29 22:23 ` Fraga, Eric
2020-02-11 11:50 ` Bastien
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.