emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-envolve?
@ 2014-07-27 19:26 David Arroyo Menendez
  2014-07-27 21:27 ` org-envolve? Bastien
  0 siblings, 1 reply; 8+ messages in thread
From: David Arroyo Menendez @ 2014-07-27 19:26 UTC (permalink / raw)
  To: emacs-orgmode


Hello,

I've some functions in worg/code/elisp/davidam.el, that could be
interesting contribute to org-mode (I use davidam-org-src every
day). The functions are:

+ davidam-org-envolve-src(msg)
+ davidam-org-src(msg)
+ davidam-org-envolve-check-list()
+ davidam-org-envolve-numbered-list()

My doubt is if is better work more to create a new file, or if someone
thinks that can be integrated in some existing org file.

Thanks.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: org-envolve?
  2014-07-27 19:26 org-envolve? David Arroyo Menendez
@ 2014-07-27 21:27 ` Bastien
  2014-07-28 23:30   ` org-envolve? David Arroyo Menendez
  0 siblings, 1 reply; 8+ messages in thread
From: Bastien @ 2014-07-27 21:27 UTC (permalink / raw)
  To: David Arroyo Menendez; +Cc: emacs-orgmode

Hi David,

David Arroyo Menendez <davidam@gnu.org> writes:

> + davidam-org-envolve-src(msg)
> + davidam-org-src(msg)

It's quicker to add values to `org-structure-template-alist' IMO.

> + davidam-org-envolve-check-list()
> + davidam-org-envolve-numbered-list()

I don't understand what those functions should do and they don't work
until the mark is set -- can you tell more?

-- 
 Bastien

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: org-envolve?
  2014-07-27 21:27 ` org-envolve? Bastien
@ 2014-07-28 23:30   ` David Arroyo Menendez
  2014-07-29  0:38     ` org-envolve? Thomas S. Dye
  2014-07-29  9:36     ` org-envolve? Nicolas Richard
  0 siblings, 2 replies; 8+ messages in thread
From: David Arroyo Menendez @ 2014-07-28 23:30 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode

Bastien <bzg@gnu.org> writes:

> Hi David,
>
> David Arroyo Menendez <davidam@gnu.org> writes:
>
>> + davidam-org-envolve-src(msg)
>> + davidam-org-src(msg)
>
> It's quicker to add values to `org-structure-template-alist' IMO.
>

I'm taking a look to org-structure-template-alist, it seems for
autocompletion. How can I use it? org-try-structure-completion, it's not
an interactive function.

>> + davidam-org-envolve-check-list()
>> + davidam-org-envolve-numbered-list()
>
> I don't understand what those functions should do and they don't work
> until the mark is set -- can you tell more?

Yes, I have some ítems

mapcar
defun
apply
cons

Then I mark the region of this ítems, apply the function and obtain:

+ [ ] mapcar
+ [ ] defun
+ [ ] apply
+ [ ] cons

:)

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: org-envolve?
  2014-07-28 23:30   ` org-envolve? David Arroyo Menendez
@ 2014-07-29  0:38     ` Thomas S. Dye
  2014-07-29  9:36     ` org-envolve? Nicolas Richard
  1 sibling, 0 replies; 8+ messages in thread
From: Thomas S. Dye @ 2014-07-29  0:38 UTC (permalink / raw)
  To: David Arroyo Menendez; +Cc: Bastien, emacs-orgmode

Aloha David,

David Arroyo Menendez <davidam@gnu.org> writes:

>>> + davidam-org-envolve-src(msg)
>>> + davidam-org-src(msg)
>>
>> It's quicker to add values to `org-structure-template-alist' IMO.
>>
>
> I'm taking a look to org-structure-template-alist, it seems for
> autocompletion. How can I use it? org-try-structure-completion, it's not
> an interactive function.

IIUC, org-structure-template-alist is for Easy Templates (Section 15.2
in the manual).  I think these function differently from your
*-envolve-* functions.  The Easy Templates prepare a container to be
filled, and your functions (which I find handy, too, thanks!) take
extant text and convert it to a source block or list.

hth,
Tom
 
-- 
Thomas S. Dye
http://www.tsdye.com

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: org-envolve?
  2014-07-28 23:30   ` org-envolve? David Arroyo Menendez
  2014-07-29  0:38     ` org-envolve? Thomas S. Dye
@ 2014-07-29  9:36     ` Nicolas Richard
  2014-07-29 11:00       ` org-envolve? Nick Dokos
  2014-07-29 19:58       ` org-envolve? David Arroyo Menendez
  1 sibling, 2 replies; 8+ messages in thread
From: Nicolas Richard @ 2014-07-29  9:36 UTC (permalink / raw)
  To: David Arroyo Menendez; +Cc: Bastien, emacs-orgmode

David Arroyo Menendez <davidam@gnu.org> writes:
> Yes, I have some ítems
>
> mapcar
> defun
> apply
> cons
>
> Then I mark the region of this ítems, apply the function and obtain:
>
> + [ ] mapcar
> + [ ] defun
> + [ ] apply
> + [ ] cons

FWIW, I use rectangular insertion for this :
1. select region (mark on the first 'm', point on the last 'c', or conversely)
2. add string "- [ ] " using C-x r t (string-rectangle).

-- 
Nico.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: org-envolve?
  2014-07-29  9:36     ` org-envolve? Nicolas Richard
@ 2014-07-29 11:00       ` Nick Dokos
  2014-07-29 20:07         ` org-envolve? David Arroyo Menendez
  2014-07-29 19:58       ` org-envolve? David Arroyo Menendez
  1 sibling, 1 reply; 8+ messages in thread
From: Nick Dokos @ 2014-07-29 11:00 UTC (permalink / raw)
  To: emacs-orgmode

Nicolas Richard <theonewiththeevillook@yahoo.fr> writes:

> David Arroyo Menendez <davidam@gnu.org> writes:
>> Yes, I have some ítems
>>
>> mapcar
>> defun
>> apply
>> cons
>>
>> Then I mark the region of this ítems, apply the function and obtain:
>>
>> + [ ] mapcar
>> + [ ] defun
>> + [ ] apply
>> + [ ] cons
>
> FWIW, I use rectangular insertion for this :
> 1. select region (mark on the first 'm', point on the last 'c', or conversely)
> 2. add string "- [ ] " using C-x r t (string-rectangle).

Another way is to

 - mark the region, C-x C-x if necessary to put point on the first item.
 - C-c - repeatedly until you get the bullets you want.
 - C-u C-c C-c to add the boxes.

Nick

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: org-envolve?
  2014-07-29  9:36     ` org-envolve? Nicolas Richard
  2014-07-29 11:00       ` org-envolve? Nick Dokos
@ 2014-07-29 19:58       ` David Arroyo Menendez
  1 sibling, 0 replies; 8+ messages in thread
From: David Arroyo Menendez @ 2014-07-29 19:58 UTC (permalink / raw)
  To: Nicolas Richard; +Cc: bzg, emacs-orgmode

Nicolas Richard <theonewiththeevillook@yahoo.fr> writes:

> David Arroyo Menendez <davidam@gnu.org> writes:
>> Yes, I have some ítems
>>
>> mapcar
>> defun
>> apply
>> cons
>>
>> Then I mark the region of this ítems, apply the function and obtain:
>>
>> + [ ] mapcar
>> + [ ] defun
>> + [ ] apply
>> + [ ] cons
>
> FWIW, I use rectangular insertion for this :
> 1. select region (mark on the first 'm', point on the last 'c', or conversely)
> 2. add string "- [ ] " using C-x r t (string-rectangle).

Thanks for the tip.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: org-envolve?
  2014-07-29 11:00       ` org-envolve? Nick Dokos
@ 2014-07-29 20:07         ` David Arroyo Menendez
  0 siblings, 0 replies; 8+ messages in thread
From: David Arroyo Menendez @ 2014-07-29 20:07 UTC (permalink / raw)
  To: Nick Dokos; +Cc: emacs-orgmode

Nick Dokos <ndokos@gmail.com> writes:

>>> Then I mark the region of this ítems, apply the function and obtain:
>>>
>>> + [ ] mapcar
>>> + [ ] defun
>>> + [ ] apply
>>> + [ ] cons
>>
>> FWIW, I use rectangular insertion for this :
>> 1. select region (mark on the first 'm', point on the last 'c', or conversely)
>> 2. add string "- [ ] " using C-x r t (string-rectangle).
>
> Another way is to
>
>  - mark the region, C-x C-x if necessary to put point on the first item.
>  - C-c - repeatedly until you get the bullets you want.
>  - C-u C-c C-c to add the boxes.
>
> Nick

What will we do with davidam-org-envolve-src and davidam-org-src? Must
we use another way or make sense store it in a function?

Thanks.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-07-29 20:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-27 19:26 org-envolve? David Arroyo Menendez
2014-07-27 21:27 ` org-envolve? Bastien
2014-07-28 23:30   ` org-envolve? David Arroyo Menendez
2014-07-29  0:38     ` org-envolve? Thomas S. Dye
2014-07-29  9:36     ` org-envolve? Nicolas Richard
2014-07-29 11:00       ` org-envolve? Nick Dokos
2014-07-29 20:07         ` org-envolve? David Arroyo Menendez
2014-07-29 19:58       ` org-envolve? David Arroyo Menendez

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).