emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-capture + autoload
@ 2010-08-18 11:12 Jambunathan K
  2010-08-18 11:59 ` Jambunathan K
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Jambunathan K @ 2010-08-18 11:12 UTC (permalink / raw)
  To: emacs-orgmode


It would be convenient if I could do a 

M-x customize-group org-capture and/or 
M-x customize-variable org-capture-templates

without having triggered a prior org-capture.

For now, I trigger a capture, abort it and then proceed ahead with
customizing these.

Jambunathan K.

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

* Re: org-capture + autoload
  2010-08-18 11:12 org-capture + autoload Jambunathan K
@ 2010-08-18 11:59 ` Jambunathan K
  2010-08-18 14:30 ` Bastien
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 8+ messages in thread
From: Jambunathan K @ 2010-08-18 11:59 UTC (permalink / raw)
  To: emacs-orgmode


    > It would be convenient if I could do a

    > M-x customize-group org-capture and/or M-x customize-variable
    > org-capture-templates

    > without having triggered a prior org-capture.

    > For now, I trigger a capture, abort it and then proceed ahead with
    > customizing these.

Ok. I need to do a C-c c C. 

It was sitting right there in front my eyes waiting to be noticed. I
erred because I didn't expect to see something in the capture templates
which I have not entered myself.

That said, it would be convenient to have the variable customized the
standard way. Some habits die hard.

Jambunathan K.

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

* Re: org-capture + autoload
  2010-08-18 11:12 org-capture + autoload Jambunathan K
  2010-08-18 11:59 ` Jambunathan K
@ 2010-08-18 14:30 ` Bastien
  2010-08-18 15:59 ` Bernt Hansen
  2010-08-19  8:32 ` Magnus Henoch
  3 siblings, 0 replies; 8+ messages in thread
From: Bastien @ 2010-08-18 14:30 UTC (permalink / raw)
  To: Jambunathan K; +Cc: emacs-orgmode

Jambunathan K <kjambunathan@gmail.com> writes:

> It would be convenient if I could do a 
>
> M-x customize-group org-capture and/or 
> M-x customize-variable org-capture-templates
>
> without having triggered a prior org-capture.

Just (require 'org-capture) somewhere in your config.

-- 
 Bastien

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

* Re: org-capture + autoload
  2010-08-18 11:12 org-capture + autoload Jambunathan K
  2010-08-18 11:59 ` Jambunathan K
  2010-08-18 14:30 ` Bastien
@ 2010-08-18 15:59 ` Bernt Hansen
  2010-08-18 17:22   ` Jambunathan K
  2010-08-19  8:32 ` Magnus Henoch
  3 siblings, 1 reply; 8+ messages in thread
From: Bernt Hansen @ 2010-08-18 15:59 UTC (permalink / raw)
  To: Jambunathan K; +Cc: emacs-orgmode

Jambunathan K <kjambunathan@gmail.com> writes:

> It would be convenient if I could do a 
>
> M-x customize-group org-capture and/or 
> M-x customize-variable org-capture-templates
>
> without having triggered a prior org-capture.
>
> For now, I trigger a capture, abort it and then proceed ahead with
> customizing these.

Add

(require 'org-capture)

to your .emacs

-Bernt

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

* Re: org-capture + autoload
  2010-08-18 15:59 ` Bernt Hansen
@ 2010-08-18 17:22   ` Jambunathan K
  2010-08-18 19:33     ` Bernt Hansen
  0 siblings, 1 reply; 8+ messages in thread
From: Jambunathan K @ 2010-08-18 17:22 UTC (permalink / raw)
  To: Bernt Hansen; +Cc: emacs-orgmode


    >> It would be convenient if I could do a
    >> 
    >> M-x customize-group org-capture and/or M-x customize-variable
    >> org-capture-templates
    >> 
    >> without having triggered a prior org-capture.
    >> 
    >> For now, I trigger a capture, abort it and then proceed ahead
    >> with customizing these.

    > Add
    > (require 'org-capture)
    > to your .emacs

I was wondering whether the symbol could be 'autoloaded' just as the
org-capture defun is autoloaded. 

Jambunathan K.

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

* Re: org-capture + autoload
  2010-08-18 17:22   ` Jambunathan K
@ 2010-08-18 19:33     ` Bernt Hansen
  0 siblings, 0 replies; 8+ messages in thread
From: Bernt Hansen @ 2010-08-18 19:33 UTC (permalink / raw)
  To: Jambunathan K; +Cc: emacs-orgmode

Jambunathan K <kjambunathan@gmail.com> writes:

>     >> It would be convenient if I could do a
>     >> 
>     >> M-x customize-group org-capture and/or M-x customize-variable
>     >> org-capture-templates
>     >> 
>     >> without having triggered a prior org-capture.
>     >> 
>     >> For now, I trigger a capture, abort it and then proceed ahead
>     >> with customizing these.
>
>     > Add
>     > (require 'org-capture)
>     > to your .emacs
>
> I was wondering whether the symbol could be 'autoloaded' just as the
> org-capture defun is autoloaded. 

The org-capture file is autoloaded now the first time you use it ... and
you want the definitions before you use it so you need to load it
explicitly first -- which is what the above require does I think.

I'm not aware of anything like that for symbols but I'm not an emacs
lisp expert by any means.

-Bernt

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

* Re: org-capture + autoload
  2010-08-18 11:12 org-capture + autoload Jambunathan K
                   ` (2 preceding siblings ...)
  2010-08-18 15:59 ` Bernt Hansen
@ 2010-08-19  8:32 ` Magnus Henoch
  2010-08-20  8:02   ` [Accepted] " Carsten Dominik
  3 siblings, 1 reply; 8+ messages in thread
From: Magnus Henoch @ 2010-08-19  8:32 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 552 bytes --]

Jambunathan K <kjambunathan@gmail.com> writes:

> It would be convenient if I could do a 
>
> M-x customize-group org-capture and/or 
> M-x customize-variable org-capture-templates
>
> without having triggered a prior org-capture.
>
> For now, I trigger a capture, abort it and then proceed ahead with
> customizing these.

Here is a patch that adds an "autoload cookie" for
org-capture-templates.  After recompiling, org-install.el should contain
an autoload declaration for org-capture-templates.

Let's see if the patch tracker likes me :)

Magnus


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: org-capture.patch --]
[-- Type: text/x-patch, Size: 298 bytes --]

diff --git a/lisp/org-capture.el b/lisp/org-capture.el
index c0e41f3..e544964 100644
--- a/lisp/org-capture.el
+++ b/lisp/org-capture.el
@@ -76,6 +76,7 @@
   :tag "Org Capture"
   :group 'org)
 
+;;;###autoload
 (defcustom org-capture-templates nil
   "Templates for the creation of new entries.
 

[-- Attachment #3: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* [Accepted] Re: org-capture + autoload
  2010-08-19  8:32 ` Magnus Henoch
@ 2010-08-20  8:02   ` Carsten Dominik
  0 siblings, 0 replies; 8+ messages in thread
From: Carsten Dominik @ 2010-08-20  8:02 UTC (permalink / raw)
  To: emacs-orgmode

Patch 227 (http://patchwork.newartisans.com/patch/227/) is now "Accepted".

Maintainer comment: Thanks

This relates to the following submission:

http://mid.gmane.org/%3Cm2fwybvw7p.fsf%40erlang-solutions.com%3E

Here is the original message containing the patch:

> Content-Type: text/plain; charset="utf-8"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Subject: [Orgmode] Re: org-capture + autoload
> Date: Thu, 19 Aug 2010 13:32:42 -0000
> From: Magnus Henoch <magnus.henoch@gmail.com>
> X-Patchwork-Id: 227
> Message-Id: <m2fwybvw7p.fsf@erlang-solutions.com>
> To: emacs-orgmode@gnu.org
> 
> Jambunathan K <kjambunathan@gmail.com> writes:
> 
> > It would be convenient if I could do a 
> >
> > M-x customize-group org-capture and/or 
> > M-x customize-variable org-capture-templates
> >
> > without having triggered a prior org-capture.
> >
> > For now, I trigger a capture, abort it and then proceed ahead with
> > customizing these.
> 
> Here is a patch that adds an "autoload cookie" for
> org-capture-templates.  After recompiling, org-install.el should contain
> an autoload declaration for org-capture-templates.
> 
> Let's see if the patch tracker likes me :)
> 
> Magnus
> 
> 
> diff --git a/lisp/org-capture.el b/lisp/org-capture.el
> index c0e41f3..e544964 100644
> --- a/lisp/org-capture.el
> +++ b/lisp/org-capture.el
> @@ -76,6 +76,7 @@
>    :tag "Org Capture"
>    :group 'org)
>  
> +;;;###autoload
>  (defcustom org-capture-templates nil
>    "Templates for the creation of new entries.
>  
> 

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

end of thread, other threads:[~2010-08-20  8:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-18 11:12 org-capture + autoload Jambunathan K
2010-08-18 11:59 ` Jambunathan K
2010-08-18 14:30 ` Bastien
2010-08-18 15:59 ` Bernt Hansen
2010-08-18 17:22   ` Jambunathan K
2010-08-18 19:33     ` Bernt Hansen
2010-08-19  8:32 ` Magnus Henoch
2010-08-20  8:02   ` [Accepted] " Carsten Dominik

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