Re: org-insert-structure-template

2022-12-29 Thread Ihor Radchenko
Ihor Radchenko writes: > C-c C-x , is actually not available (it is bound to timer). > I went with C-c C-x s. > > See the attached patch. Applied onto main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=5bc5add32 -- Ihor Radchenko // yantar92, Org mode contributor, Learn

Re: org-insert-structure-template

2022-12-13 Thread Ihor Radchenko
c 2022 12:30:36 +0300 Subject: [PATCH] lisp/org-keys.el: Provide terminal binding for `org-insert-structure-template' * lisp/org-keys.el (or): Add alternative terminal binding for `org-insert-structure-template'. The default binding may not be available in some terminals. * doc/org-manual.o

Re: org-insert-structure-template

2022-12-12 Thread Tim Cross
Anthony Carrico writes: > I'm trying to remember what the old keybinding was before it got switched to > 'C-c C-,'... IIRC there wasn't one. Previously, a completely different system was used for adding these templates and it was bound to < (or was it >, I cannot remember). The problem

Re: org-insert-structure-template

2022-12-12 Thread Alain . Cochard
Anthony Carrico writes on Mon 12 Dec 2022 09:41: > On 12/12/22 09:20, alain.coch...@unistra.fr wrote: > > Perhaps you have in min > > >'<', followed by a template selector and ' > > Yes! > Was this deprecated because it isn't a regular emacs keybinding? I don't remember. It was

Re: org-insert-structure-template

2022-12-12 Thread Anthony Carrico
On 12/12/22 09:20, alain.coch...@unistra.fr wrote: Perhaps you have in min > '<', followed by a template selector and ' Yes! I didn't realize that could be enabled. I trained myself not to rely on this when the new keybinding came. Only recently did I realize the reason the new keybinding

Re: org-insert-structure-template

2022-12-12 Thread Anthony Carrico
On 12/12/22 09:04, Ihor Radchenko wrote: Note that we have alternative key bindings for TTY. See `org-use-extra-keys'. The general pattern is C-c C-x . Maybe we can add "C-c C-x ,"? Thanks, that is probably a good pattern to use. I'll look into org-use-extra-keys. This is the only keybinding

Re: org-insert-structure-template

2022-12-12 Thread Alain . Cochard
Anthony Carrico writes on Mon 12 Dec 2022 08:50: > I'm trying to remember what the old keybinding was before it got > switched to 'C-c C-,'... Perhaps you have in mind '<', followed by a template selector and ' ? See 17.2 Structure Templates: For example, ‘< s ’ creates a code block.

Re: org-insert-structure-template

2022-12-12 Thread Ihor Radchenko
frustrating? Which keybinding do you use > for org-insert-structure-template? I don't think I've ever used > org-priority, so I'll probably just rebind 'C-c ,' to fix the problem. Note that we have alternative key bindings for TTY. See `org-use-extra-keys'. The general pattern is C-c C-x . M

Re: org-insert-structure-template

2022-12-12 Thread Anthony Carrico
I'm trying to remember what the old keybinding was before it got switched to 'C-c C-,'... -- Anthony Carrico

org-insert-structure-template

2022-12-12 Thread Anthony Carrico
for org-insert-structure-template? I don't think I've ever used org-priority, so I'll probably just rebind 'C-c ,' to fix the problem. ‘C-c C-,’ (‘org-insert-structure-template’) Prompt for a type of block structure, and insert the block at point. If the region is active, it is wrapped

Re: [PATCH] Re: [BUG] Hard-coded begin/end in org-insert-structure-template [9.5.2 (release_9.5.2-24-g668205 @ /Users/salutis/src/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/)]

2022-06-18 Thread Ihor Radchenko
Rudolf Adamkovič writes: > Ihor Radchenko writes: > > I patched a local checkout of the main branch, and I can confirm that > your works well here. I also added [1] to my configuration file to > upcase all the structure templates automatically. I hope we will have > this bundled with Org

Re: [PATCH] Re: [BUG] Hard-coded begin/end in org-insert-structure-template [9.5.2 (release_9.5.2-24-g668205 @ /Users/salutis/src/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/)]

2022-03-25 Thread Rudolf Adamkovič
Ihor Radchenko writes: I patched a local checkout of the main branch, and I can confirm that your works well here. I also added [1] to my configuration file to upcase all the structure templates automatically. I hope we will have this bundled with Org proper. Fantastic work! [1] Code that

Re: [PATCH] Re: [BUG] Hard-coded begin/end in org-insert-structure-template [9.5.2 (release_9.5.2-24-g668205 @ /Users/salutis/src/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/)]

2022-03-23 Thread Ihor Radchenko
00 Subject: [PATCH] Auto-Upcase/downcase #+begin/#+end in structure templates * lisp/org-tempo.el (org-tempo-add-block): * lisp/org.el (org-insert-structure-template): When inserting #+begin_type/#+end_type, follow type's case. TYPE will become #+BEGIN_TYPE and type will become #+bein_type. (org-ins

Re: [PATCH] Re: [BUG] Hard-coded begin/end in org-insert-structure-template [9.5.2 (release_9.5.2-24-g668205 @ /Users/salutis/src/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/)]

2022-03-22 Thread Rudolf Adamkovič
Ihor Radchenko writes: > We can auto-magically determine whether to use BEGIN_ or begin_ > depending on the case in template type. Tentative patch attached. Interesting! > +with \"#+begin_\" and \"#+end_\" added automatically. If the block > +type is written using upper case letter,

[PATCH] Re: [BUG] Hard-coded begin/end in org-insert-structure-template [9.5.2 (release_9.5.2-24-g668205 @ /Users/salutis/src/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/)]

2022-03-20 Thread Ihor Radchenko
Rudolf Adamkovič writes: > Inspired by Protesilaos Stavrou, I started using uppercase Org keywords. > I like the results so far, but I also noticed some inflexibility in the > Org mode. Specifically, the `org-insert-structure-template' procedure > hard-codes lowercase "begin_&q

[BUG] Hard-coded begin/end in org-insert-structure-template [9.5.2 (release_9.5.2-24-g668205 @ /Users/salutis/src/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/)]

2022-03-20 Thread Rudolf Adamkovič
. Hello smart people! Inspired by Protesilaos Stavrou, I started using uppercase Org keywords. I like the results so far, but I also noticed some inflexibility in the Org mode. Specifically, the `org-insert-structure-template' procedure hard-codes lowercase "b

Re: what happened to org-insert-structure-template

2021-01-27 Thread Diego Zamboni
Also works for me, Org version 9.5. Could it be that just the keybinding got un/redefined somehow? Have you tried running M-x org-insert-structure-template? --Diego On Wed, Jan 27, 2021 at 10:45 PM wrote: > On Wed, Jan 27, 2021 at 09:29:14PM +, JRSS wrote: > > Hi, > > &g

Re: what happened to org-insert-structure-template

2021-01-27 Thread tomas
On Wed, Jan 27, 2021 at 09:29:14PM +, JRSS wrote: > Hi, > > This has been missing for a while for me and I recently checked the manual. > It seems like org-insert-structure-template doesn't exist. I tried Emacs -q, > same thing. I also loaded org-tempo, thought it has

what happened to org-insert-structure-template

2021-01-27 Thread JRSS
Hi, This has been missing for a while for me and I recently checked the manual. It seems like org-insert-structure-template doesn't exist. I tried Emacs -q, same thing. I also loaded org-tempo, thought it has something to do with it, but nothing. How do I activate is so that C-c C-, works?

Re: Wring case when using org-insert-structure-template

2020-07-10 Thread Nick Dokos
Nicolas Goaziou writes: >> Second question: I couldn't find any configuration variable or >> function to change the default behaviour. Is there a way to do so? > > You can customize `org-structure-template-alist'. I don't remember if > that's possible in Org 9.1.9, tho. > But you cannot change

Re: Wring case when using org-insert-structure-template

2020-07-09 Thread tomas
On Wed, Jul 08, 2020 at 03:04:38PM +0200, Guillaume MULLER wrote: > Hi, > > Thanks for Org-mode. This is really THE software I needed! I LOVE everything > about it! This is the only piece of software I know of that really designed > by users for users, with users & efficiency in mind! > > I'm

Re: Wring case when using org-insert-structure-template

2020-07-09 Thread Nicolas Goaziou
Hello, Guillaume MULLER writes: > In ALL the documentation pages I read, the snippets are written in > uppercase (i.e. #+BEGIN_SRC, like in the main documentation for this > feature: https://orgmode.org/org.html#Structure-Templates). I would > myself prefer to have the templates inserted in

Wring case when using org-insert-structure-template

2020-07-08 Thread Guillaume MULLER
Hi, Thanks for Org-mode. This is really THE software I needed! I LOVE everything about it! This is the only piece of software I know of that really designed by users for users, with users & efficiency in mind! I'm using GNU Emacs 26.3, with built-in org 9.1.9. When I try to automatically

Re: [O] Bug: org-insert-structure-template leaves point at inconvenient place [9.1.14 (9.1.14-932-gf82a30-elpaplus @ .emacs.d/elpa/org-plus-contrib-20180923/)]

2018-10-02 Thread Nicolas Goaziou
Hello, Allen Li writes: > That's very interesting. Perhaps this is too invasive, but maybe C-c > C-, should do C-c ' automatically? No, it shouldn't. You can also create non-verbatim blocks, e.g. "center" with C-c C-,. There C-c ' doesn't do anything useful. Regards, -- Nicolas Goaziou

Re: [O] Bug: org-insert-structure-template leaves point at inconvenient place [9.1.14 (9.1.14-932-gf82a30-elpaplus @ .emacs.d/elpa/org-plus-contrib-20180923/)]

2018-10-02 Thread Allen Li
On Tue, Oct 2, 2018 at 2:14 PM Bernt Hansen wrote: > > Nicolas Goaziou writes: > > > Hello, > > > > Allen Li writes: > > > >> org-insert-structure-template (C-c C-,) leaves point at an inconvenient > >> place (X marks the spot): > &g

Re: [O] Bug: org-insert-structure-template leaves point at inconvenient place [9.1.14 (9.1.14-932-gf82a30-elpaplus @ .emacs.d/elpa/org-plus-contrib-20180923/)]

2018-10-02 Thread Bernt Hansen
Nicolas Goaziou writes: > Hello, > > Allen Li writes: > >> org-insert-structure-template (C-c C-,) leaves point at an inconvenient >> place (X marks the spot): >> >> #+begin_example >> X#+end_example >> >> My expectation is that right after

Re: [O] Bug: org-insert-structure-template leaves point at inconvenient place [9.1.14 (9.1.14-932-gf82a30-elpaplus @ .emacs.d/elpa/org-plus-contrib-20180923/)]

2018-10-02 Thread Allen Li
On Tue, Oct 2, 2018 at 8:06 AM Nicolas Goaziou wrote: > > Hello, > > Allen Li writes: > > > org-insert-structure-template (C-c C-,) leaves point at an inconvenient > > place (X marks the spot): > > > > #+begin_example > > X#+end_example > &g

Re: [O] Bug: org-insert-structure-template leaves point at inconvenient place [9.1.14 (9.1.14-932-gf82a30-elpaplus @ .emacs.d/elpa/org-plus-contrib-20180923/)]

2018-10-02 Thread Nicolas Goaziou
Hello, Allen Li writes: > org-insert-structure-template (C-c C-,) leaves point at an inconvenient > place (X marks the spot): > > #+begin_example > X#+end_example > > My expectation is that right after inserting the template, I can start > typing or yank right into it:

[O] Bug: org-insert-structure-template leaves point at inconvenient place [9.1.14 (9.1.14-932-gf82a30-elpaplus @ .emacs.d/elpa/org-plus-contrib-20180923/)]

2018-10-01 Thread Allen Li
org-insert-structure-template (C-c C-,) leaves point at an inconvenient place (X marks the spot): #+begin_example X#+end_example My expectation is that right after inserting the template, I can start typing or yank right into it: #+begin_example X #+end_example Emacs : GNU Emacs 26.1 (build 1

Re: [O] [BUG] there are weird offset when org-insert-structure-template

2018-06-12 Thread Nicolas Goaziou
Hello, stardiviner writes: > The original text: > > , > | We define refs the same way we define atoms, but the two are used rather > differently. > | Let's take a quick look at how they work below. > | > | (def names (ref [])) > | > | (dosync > | (ref-set names ["John"]) > | (alter

[O] [BUG] there are weird offset when org-insert-structure-template

2018-06-11 Thread stardiviner
The original text: , | We define refs the same way we define atoms, but the two are used rather differently. | Let's take a quick look at how they work below. | | (def names (ref [])) | | (dosync | (ref-set names ["John"]) | (alter names #(if (not-empty %) | (conj %

Re: [O] [BUG] org-insert-structure-template on region selected text will delete some characters

2018-06-02 Thread Nicolas Goaziou
Hello, stardiviner writes: > For example: > > Region select on: > > ENTRYPOINT ["/usr/sbin/nginx"] > > When I press =[C-c C-,]= on this region, the region content will be wrapped > with src block, > but it deleted the last "]". > > This is a bug I think. Fixed. Thank you. Regards, --

[O] [BUG] org-insert-structure-template on region selected text will delete some characters

2018-05-30 Thread stardiviner
For example: Region select on: ENTRYPOINT ["/usr/sbin/nginx"] When I press =[C-c C-,]= on this region, the region content will be wrapped with src block, but it deleted the last "]". This is a bug I think. -- [ stardiviner ] don't need to convince with trends. Blog:

[O] stuck: templates don't work anymore: org-complete-expand-structure-template vs org-insert-structure-template

2018-02-21 Thread Uwe Brauer
Hi As I learned, unfortunately for me, org-complete-expand-structure-template is gone and has been replaced by org-insert-structure-template Now I have, for example, the following template via customize ("s" "#+begin_src matlab :results output latex :exports results :ev

Re: [O] Poll: new keybinding for org-insert-structure-template?

2017-12-21 Thread Rasmus
Eric Abrahamsen writes: > Eric Abrahamsen writes: > >> Rasmus writes: >> >>> Eric Abrahamsen writes: >>> Eric Abrahamsen writes: > Rasmus writes:

Re: [O] Poll: new keybinding for org-insert-structure-template?

2017-12-20 Thread Eric Abrahamsen
Eric Abrahamsen writes: > Rasmus writes: > >> Eric Abrahamsen writes: >> >>> Eric Abrahamsen writes: >>> Rasmus writes: > Kaushal Modi writes: >

Re: [O] Poll: new keybinding for org-insert-structure-template?

2017-12-20 Thread Eric Abrahamsen
Rasmus writes: > Eric Abrahamsen writes: > >> Eric Abrahamsen writes: >> >>> Rasmus writes: >>> Kaushal Modi writes: > On Fri, Dec 15, 2017 at 6:23 AM Rasmus

Re: [O] Poll: new keybinding for org-insert-structure-template?

2017-12-19 Thread Rasmus
Eric Abrahamsen writes: > Eric Abrahamsen writes: > >> Rasmus writes: >> >>> Kaushal Modi writes: >>> On Fri, Dec 15, 2017 at 6:23 AM Rasmus wrote: > The only way it’s "bad"

Re: [O] Poll: new keybinding for org-insert-structure-template?

2017-12-18 Thread Eric Abrahamsen
Eric Abrahamsen writes: > Rasmus writes: > >> Kaushal Modi writes: >> >>> On Fri, Dec 15, 2017 at 6:23 AM Rasmus wrote: >>> The only way it’s "bad" is in the sense it limits the flexibility of snippets,

Re: [O] Poll: new keybinding for org-insert-structure-template?

2017-12-15 Thread Eric Abrahamsen
the point move to where the >> language/backend needs to be typed? > > When using Org Tempo an extra space is always inserted. It probably > should only do it with blocks that support arguments, actually. ATM I > don’t think spaces are inserted when using > ‘org-insert-s

Re: [O] Poll: new keybinding for org-insert-structure-template?

2017-12-15 Thread Kaushal Modi
On Fri, Dec 15, 2017 at 6:23 AM Rasmus wrote: > The only way it’s "bad" is in the sense it limits the flexibility of > snippets, like " I can no longer have "

Re: [O] Poll: new keybinding for org-insert-structure-template?

2017-12-15 Thread Rasmus
ginal conversation, but in the cases where plain > source/export blocks are inserted, does the point move to where the > language/backend needs to be typed? When using Org Tempo an extra space is always inserted. It probably should only do it with blocks that support arguments, actually. A

Re: [O] Poll: new keybinding for org-insert-structure-template?

2017-12-15 Thread Rasmus
er have "<s" as plain "src" block. Unless, the meaning of key in org-structure-template-alist is handled differently in the case of snippet expansion and insertion via org-insert-structure-template. Rasmus -- In theory, practice and theory are the same. In practice they are not

Re: [O] Poll: new keybinding for org-insert-structure-template?

2017-12-14 Thread Eric Abrahamsen
Rasmus writes: > Eric Abrahamsen writes: > >> Rasmus writes: >> >>> Nicolas Goaziou writes: >>> Hello, Rasmus writes: > Nicolas, are there any public interfaces to make ox

Re: [O] Poll: new keybinding for org-insert-structure-template?

2017-12-14 Thread Rasmus
Eric Abrahamsen writes: > Rasmus writes: > >> Nicolas Goaziou writes: >> >>> Hello, >>> >>> Rasmus writes: >>> Nicolas, are there any public interfaces to make ox export like interfaces? >>> >>> No, there

Re: [O] Poll: new keybinding for org-insert-structure-template?

2017-12-12 Thread Eric Abrahamsen
Rasmus writes: > Nicolas Goaziou writes: > >> Hello, >> >> Rasmus writes: >> >>> Nicolas, are there any public interfaces to make ox export like >>> interfaces? >> >> No, there isn't. However, Org provides `org-mks'. > > Good point. It

[O] Key binding popup interface (Was: Re: Poll: new keybinding for org-insert-structure-template on org mode list)

2017-12-12 Thread Kaushal Modi
Copying this on both Emacs devel and Org mode list. Hopefully this discussion is eligible for that. Problem statement: Need to have a pretty interface that shows the available valid key bindings. We have something custom developed for Org export interface. Magit has its own popup interface. I

Re: [O] Poll: new keybinding for org-insert-structure-template?

2017-12-12 Thread Rasmus
Nicolas Goaziou writes: > Hello, > > Rasmus writes: > >> Nicolas, are there any public interfaces to make ox export like >> interfaces? > > No, there isn't. However, Org provides `org-mks'. Good point. It isn’t quite as nice as the export dispatcher.

Re: [O] Poll: new keybinding for org-insert-structure-template?

2017-12-11 Thread Nicolas Goaziou
Hello, Rasmus writes: > Nicolas, are there any public interfaces to make ox export like > interfaces? No, there isn't. However, Org provides `org-mks'. Regards, -- Nicolas Goaziou

Re: [O] Poll: new keybinding for org-insert-structure-template?

2017-12-11 Thread Rasmus
Hi, >> Let me know when you want me to do the change to strings. > > No time like the present! I don't think there's anything else remaining > to be done. One stumbling block is how to input key strings to org-insert-structure-template. Currently, it employs read-key which

Re: [O] Poll: new keybinding for org-insert-structure-template?

2017-12-10 Thread Eric Abrahamsen
Rasmus <ras...@gmx.us> writes: > Eric Abrahamsen <e...@ericabrahamsen.net> writes: > >> Hello all, >> >> Rasmus' org-tempo patch has landed, and it's time to make a few >> adjustments to org-insert-structure-template: I think we're moving to >>

Re: [O] Poll: new keybinding for org-insert-structure-template?

2017-12-10 Thread Rasmus
Eric Abrahamsen <e...@ericabrahamsen.net> writes: > Hello all, > > Rasmus' org-tempo patch has landed, and it's time to make a few > adjustments to org-insert-structure-template: I think we're moving to > string keys in the template alist, rather than character keys, Let me

[O] Poll: new keybinding for org-insert-structure-template?

2017-12-09 Thread Eric Abrahamsen
Hello all, Rasmus' org-tempo patch has landed, and it's time to make a few adjustments to org-insert-structure-template: I think we're moving to string keys in the template alist, rather than character keys, and also some people noted that the keybinding "C-c C-x w" is too close to &q

Re: [O] The new function org-insert-structure-template is not following option org-babel-capitalize-example-region-markers

2017-11-10 Thread stardiviner
Yes, sure, currently the Git master branch last commit does not support this new option yet. Hope be added in next patch. Thanks really. On 11/11/2017 01:34 AM, Eric Abrahamsen wrote: > "numbch...@gmail.com" writes: > >> RT. >> Hope Org-mode can fix this issue. > It looks

Re: [O] The new function org-insert-structure-template is not following option org-babel-capitalize-example-region-markers

2017-11-10 Thread Eric Abrahamsen
"numbch...@gmail.com" writes: > RT. > Hope Org-mode can fix this issue. It looks like that option has been obsoleted by `org-babel-uppercase-example-markers'. I added that in and it compiled and tested fine, so I guess it's available. I can make that part of the next patch.

[O] The new function org-insert-structure-template is not following option org-babel-capitalize-example-region-markers

2017-11-09 Thread numbch...@gmail.com
RT. Hope Org-mode can fix this issue. [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/