[Orgmode] Re: bug? no newline at beginning of file

2008-11-23 Thread Mikael Fornius
I am just a regular user of org-mode but I reproduced you problem and I
think you shoul use C-j to make a newline before the table.

Because when point is on an orgtbl the return key is bound to orgtbl-ret
and at first glance it looks nontrivial to implement the behavior you
ask for.

But I am not a org-developer, this was just some thoughts.

/Mikael Fornius


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


[Orgmode] Re: bug? no newline at beginning of file

2008-11-23 Thread Mikael Fornius
Mikael Fornius [EMAIL PROTECTED] writes:

 ... this was just some thoughts.

Replying my own post now.

My thought was not of any great value because I now fully understand
your problem:

In org-mode it works as one expect but not in orgtbl-mode and when point
is at beginning of line in the table and you hit RET the table splits up
but not at first line in orgtbl.

/Mikael Fornius


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


[Orgmode] no selection: CLIPBOARD with org-remember-apply-template

2008-11-23 Thread Matt and Lale Lovell
Hello,

I'm attempting to copy my work setup for org-mode and remember at
home.  Both are using XEmacs 21.4.21 and the same ~/.xemacs/init.el
for requiring packages and setting customizations.

Using either org-6.10c or org-6.13pre4, I get an error after selecting
the type of note (t, j, or i, based upon the sample provided in
the org-mode manual):

Debugger entered--Lisp error: (error no selection CLIPBOARD)
  get-selection-internal(CLIPBOARD STRING)
  get-selection(CLIPBOARD nil)
  get-selection-foreign(CLIPBOARD)
  get-clipboard-foreign()
  current-kill(0)
  org-remember-apply-template()
  run-hooks(org-remember-apply-template)
  remember-mode()
  (let* ((annotation ...) (buf ...)) (run-hooks (quote 
remember-before-remember-hook)) (funcall (if remember-in-new-frame ... ...) 
buf) (if remember-in-new-frame (set-window-dedicated-p ... t)) (remember-mode) 
(when (= ... ...) (when initial ...) (setq remember-annotation annotation) 
(when remember-initial-contents ...) (when ... ...) (setq 
remember-initial-contents nil) (goto-char ...)) (message Use C-c C-c to 
remember the data.))
  remember(nil)
  org-do-remember()
  org-remember(nil)
  call-interactively(org-remember)


I thought I had things working before, but I'm at a loss to track down
what's triggering the above error.  I don't think it's any bug in
org-mode, but perhaps an interaction with something else loaded in
XEmacs? 

I welcome any suggestions or recommendations.

Many thanks,
  Matt

-- 
Matthew  Lale Lovell  



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


[Orgmode] Re: no selection: CLIPBOARD with org-remember-apply-template

2008-11-23 Thread Matt and Lale Lovell
Matt and Lale Lovell writes:
  This turned out to be an interaction with improperly installed
  byte-code for vm (viewmail) 8.0.12.  Removing and re-installing vm
  resolved the problem.

Correction...

The presence of contents from TODO.org in the kill ring recorded in my
~/.session appears to be the actual culprit.  I'm currently running:

  ;;; session.el --- use variables, registers and buffer places across sessions

  ;; Copyright 1996-1999, 2001-2003 Free Software Foundation, Inc.
  ;;
  ;; Author: Christoph Wedler [EMAIL PROTECTED]
  ;; Version: 2.2

I'll see if there's a newer version and/or anything special which
needs to be done for session/remember-mode interactions.

Matt

-- 
Matthew  Lale Lovell  



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


[Orgmode] Re: C-c C-o bug.

2008-11-23 Thread anhnmncb
Carsten Dominik [EMAIL PROTECTED] writes:

 Hi, I cannot reproduce this, my browser is called with the arguments.

 - Carsten

 On Nov 22, 2008, at 2:48 PM, anhnmncb wrote:

 `C-c C-o' opens link at point by browse-url-generic-program without
 browse-url-generic-args.

 My relevent setting is:

 (setq browse-url-generic-program firefox.exe
  browse-url-generic-args (list  -P portable -profile 
My fault:   ~~ an extra 
space...

 (concat (getenv emacs_dir) /../../MozillaFirefox/Profiles/
 aujthov1.portable/))
  browse-url-browser-function 'browse-url-generic)

 When C-c C-o on link, then orgmode runs firefox.exe without the args.

 emacs version:
 GNU Emacs 23.0.60.1 (i386-mingw-nt5.0.2195) of 2008-11-18 on mybox

 orgmode version:
 Org-mode version 6.12a



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



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



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


[Orgmode] Re: How to make a todo entry in plain text?

2008-11-23 Thread Bernt Hansen
anhnmncb [EMAIL PROTECTED] writes:

 ,
 | * TODO Things I need to do
 |  - [ ] get foo1, foo2, foo3.
 | ** TODO foo2 is got by this way
 |  - [ ] do thing 2
 |  - [ ] ...
 `

 In such case, the level 2 TODO will break up my the one plain list into
 two. So assume that the original header is:

 * TODO Things I need to do [0/3]

 Now it will become: 

 * TODO Things I need to do [0/1]

I don't think you can do that.  Lists can't cross task/heading
boundaries as far as  I know.

-Bernt


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


[Orgmode] Clearing highlighting after a tag search

2008-11-23 Thread Graham Smith
If I use C+c \ to search for a tag, it highlights the todo entries
which have that tag. BUT how do I then clear the highlighting. Maybe
its some generic Emacs command, becausue I can't find it in the org
manual, so would appreciate some help.

Thanks,

Graham


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


[Orgmode] Re: Release 6.13

2008-11-23 Thread Bernt Hansen
Carsten Dominik [EMAIL PROTECTED] writes:

 New contributed file /org-exp-blocks.el/
 

 This new file implements special export behavior of
 user-defined blocks.  The currently supported blocks are

 - comment :: Comment blocks with author-specific markup
 - ditaa ::  conversion of ASCII art into pretty png files
  using Stathis  Sideris' /ditaa.jar/ program
 - dot :: creation of graphs in the /dot/ language
 - R :: Sweave type exporting using the R program

 For more details and examples, see the file commentary in
 /org-exp-blocks.el/.

 Kudos to Eric Schulte for this new functionality, after
 /org-plot.el/ already his second major contribution.  Thanks
 to Stathis for this excellent program, and for allowing us to
 bundle it with Org-mode.

Thanks for this!  I really like that C-c ' now makes editing the ditaa
images easy.

Now for my questions related to improving my work-flow for generating
documents with ditaa images.

Q1: Can org-publish-current-project somehow automatically pick up ditaa
generated images?

I have a play org file http://doc.norang.ca/org-mode.org which
generates the page at http://doc.norang.ca/org-mode.html.

I usually edit the source file and then
   M-x org-publish-current-project
to publish my changes.

This was working great... until ditaa came along :).

Now exporting my .org files creates new ditaa generated images (.png
files) which don't get exported with the document because they are
part of a different project.  After org-publish-current-project I
have to remember to also org-publish doc-png to get the ditaa
generated images published.

Publishing the parent project 'doc' instead

  doc
 doc-org (org - HTML export - publishing target)
 doc-png (copy .png  - publishing target)

works fine so maybe I just need fix my workflow so my publish code
is smart enough to find the appropriate parent project and publish
that instead.

Q2: Can org-publish handle a source file in more than one project?

Sometimes I would like to publish the generated page (org-mode.html)
as well as the source file that creates it (org-mode.org) as in Q1
above.  I don't think I can have a doc-org project that generates
HTML and a doc-src project that just copies the .org files verbatim
to the target directory since after publishing one of the two
projects the file is 'unchanged' and skipped for publishing the
second one.  Is there a way to accomplish this?

For now I'm manually touching the org file and manually publishing
the doc-src project to make it work.


ditaa images look great on HTML exports.  I'm having some difficulty
including them in other formats (PDF for instance - they end up being
tiny.)  Someday I'll find a good solution for that.
http://doc.norang.ca/org-mode.pdf is an example.

Thanks for org-mode!

Regards,
Bernt





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


[Orgmode] Re: Clearing highlighting after a tag search

2008-11-23 Thread Bernt Hansen
Graham Smith [EMAIL PROTECTED] writes:

 If I use C+c \ to search for a tag, it highlights the todo entries
 which have that tag. BUT how do I then clear the highlighting. Maybe
 its some generic Emacs command, becausue I can't find it in the org
 manual, so would appreciate some help.

C-c C-c clears it.

-Bernt


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


[Orgmode] Re: Clearing highlighting after a tag search

2008-11-23 Thread Graham Smith
That was quick !!

 C-c C-c clears it.

Many thanks,

Graham


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


[Orgmode] Using yasnippet with org Mode

2008-11-23 Thread Ian Barton
Someone on the list mentioned yasnippet a while ago. I have been trying 
it out and I like it. However, I can't get it to play nicely with org 
mode. I have read various fixes, but none seem to work for me. To 
summarize what I have done:


In my .emacs:

(require 'org-install)

;; Yasnippet
(add-to-list 'load-path ~/.emacs-lisp/plugins)
(require 'yasnippet)
(add-to-list 'yas/extra-mode-hooks
 'python-mode-hook)
(yas/initialize)
(yas/load-directory ~/.emacs-lisp/snippets/)

;; Make Yasnippet play nicely with org mode.
(add-hook 'org-mode-hook
'(lambda ()
(make-variable-buffer-local 'yas/trigger-key)
(setq yas/trigger-key [tab])))

When I run C-h k I get:

tab runs the command yas/expand
  which is an interactive Lisp function in `yasnippet.el'.
It is bound to tab, TAB.
(yas/expand)

Expand a snippet.

I can see yas in my status line when I open an org file and using tab 
with yasnippet works fine in other text mode files. I think that I am 
probably missing something obvious, as other people can get it to work.


Ian.


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


Re: [Orgmode] Using yasnippet with org Mode

2008-11-23 Thread Eric Schulte
Ian Barton [EMAIL PROTECTED] writes:

 ;; Make Yasnippet play nicely with org mode.
 (add-hook 'org-mode-hook
 '(lambda ()
 (make-variable-buffer-local 'yas/trigger-key)
 (setq yas/trigger-key [tab])))


I think maybe your lambda should not be quoted, try

;; Make Yasnippet play nicely with org mode.
(add-hook 'org-mode-hook
  (lambda ()
(make-variable-buffer-local 'yas/trigger-key)
(setq yas/trigger-key [tab])))

-- Eric


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


[Orgmode] getting org-goto to work with ido

2008-11-23 Thread Samuel Wales
Hi Carsten,

Thanks for the release.

ido.el works very well for org-refile.

  (setf org-refile-use-outline-path nil)
  (setq org-refile-targets '((org-agenda-files . (:maxlevel . 5

org-goto does not work, but can be made to work.

  (setf org-goto-auto-isearch nil)
  (setf org-goto-interface 'outline-path-completion)

To get it to work, I changed org.el's org-goto to remove the
line that contains  (org-refile-use-outline-path t).

Those who haven't tried ido yet, it's really nice (imo).

-- 
Professional myalgic encephalomyelitis denialists are knowingly
causing further suffering and death by opposing biomedical research on
this fast-spreading serious disease.  Do you care about the world?
http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm


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


[Orgmode] Re: Using yasnippet with org Mode

2008-11-23 Thread Tassilo Horn
Eric Schulte [EMAIL PROTECTED] writes:

Hi Eric,

 I think maybe your lambda should not be quoted, try

Since lambda evaluates to itself, that doesn't make any difference.

,
| ELISP (lambda () nil)
| (lambda nil nil)
| ELISP (quote (lambda () nil))
| (lambda nil nil)
`

I suspect yasnippet doesn't play nice with org because both are
passionate key hijackers.  I'd try to bind yas/expand to some other key,
maybe M-TAB in org-mode.

Bye,
Tassilo



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


Re: [Orgmode] Re: Using yasnippet with org Mode

2008-11-23 Thread Eric Schulte
Tassilo Horn [EMAIL PROTECTED] writes:

 Eric Schulte [EMAIL PROTECTED] writes:

 Hi Eric,

 I think maybe your lambda should not be quoted, try

 Since lambda evaluates to itself, that doesn't make any difference.


Thanks Tassilo, I didn't realize that was the case

As for using yasnippets with tab, the following successfully binds tab
to yas/expand when I start emacs with

  emacs -Q  (skips loading customization)

and then evaluate the following elisp to load yasnippets and org-mode

(load ~/emacs/elisp/util/yasnippet.el)
(yas/initialize)
(yas/load-directory ~/emacs/snippets)
(add-to-list 'load-path ~/emacs/org)
(require 'org)
(add-hook 'org-mode-hook
  (lambda ()
;; yasnippet
(make-variable-buffer-local 'yas/trigger-key)
(setq yas/trigger-key [tab])
(define-key yas/keymap [tab] 'yas/next-field-group)))

This works for me using a fairly recent Emacs 23 from cvs.

Hope this helps -- Eric


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


[Orgmode] RFC: Improvements to org-remember

2008-11-23 Thread James TD Smith
I have a number of improvements to org-remember I am planning to implement. I
have briefly discussed some of them with Carsten, and I thought I should post a
detailed description here for discussion as I'm sure you will have ideas,
suggestions and criticisms of the proposed changes.

* Preliminary work
** Refactoring

  Carsten suggested that the remember handler could do with some refactoring
  before adding any new features, as it has gotten quite complicated in places.

  The longest functions are `org-remember-apply-template' and
  `org-remember-handler', so these are probably the best place to start.

  I think it would make sense to move the code to get values for remember
  expansions out of `org-remember-apply-template' into separate functions. These
  could be added to an association list indexed by the expansion character. This
  would also make it easier to add new expansions.

** Unit tests

   If we can decide on a unit testing framework, this would be an ideal
   opportunity to add some test coverage, as I'll need to do extensive testing
   to ensure I don't break anything with the refactoring or the new features. I
   have some experience with unit testing using JUnit.
   
** Plists for remember templates

   I want to change the format of remember templates to use plists. This is to
   allow introducing a number of optional parameters to control the new features
   I want to add. Org uses plists elsewhere, for example in the #+OPTIONS:
   configuration header, and #+PLOT: lines, so the syntax should already be
   familiar to org users.

   I also think it would make sense to to move some options which are currently
   set using escapes outside of the template, specifically %! (store
   template immediately) and % (jump to entry after storing).

   For backwards compatibility, the current template format would still be
   supported, but the additional options would not be available. Defaults for 
the
   extra parameters would be set so if they are not present the templates would
   work as they do currently.

   The current options would be represented as below:
   - :template :: the template itself
   - :name :: the name of the template
   - :target :: The :target parameter takes the place of the current file and
headline target specification. The parameter specifies only the
default target; all the other options will remain available via
numeric prefixes to C-c C-c. The available options are:
 - filename:heading :: a file target. If the heading is omitted,
 a top-level heading will be created.
 - clock :: currently clocked task
 - current :: add under the the org headline where the point is.
 - interactive :: select a location interactively using the appropriate
  interface
 - function :: call function to get the target. The function can return
 either a marker, or a file/headline string.
   - :test :: a function, or list of major modes. The template is only
  available if the function returns true, or the current
  buffer is in one of the appropriate modes
   - :immediate :: replaces the %! escape; if t, the template is stored as soon
   as all escapes are replaced.
   - :jumpto :: replaces the % escape; if t, org jumps to the target location
when the note is stored.

* New features
** Adding non-headline items

   For some time I have wanted to be able to use remember to add checklist
   entries and table rows as well as org headlines. To configure this, a :type
   parameter will be added to the template, which can be either headline (the
   default), list, checklist or table.

   - Table rows.

 Currently if you want to use org to record periodic measurements (for
 example see the thread about using org to manage fitness training), you
 have to use properties and column view, which has a number of limitations
 (speed, calculations). Being able to add table rows via remember would make
 it much easier to do this.

 The simplest implementation would use a template containing the appropriate
 number of table columns, for example something like

 | %U | %^{Value 1} | %^{Value 2} |

 This would be added to the table at the appropriate position (depending on
 the :prepend value for the template, and then formatted properly using
 `org-table-align'.

 The handler would also need to ensure that table formulae get updated
 (increment row ranges etc) and that values are recalculated (if automatic
 recalculation is enabled) after the line is added.

 An extension to this would be to include a truncated copy of the table in
 the remember buffer, with just the headers (and possibly formulae) from the
 target table, so the user could add multiple lines in the remember buffer
 and then add them to the table.

   - Checklist entries

 

Re: [Orgmode] RFC: Improvements to org-remember

2008-11-23 Thread Samuel Wales
All of this looks great.  I especially like code integrity, plist
syntax, and :prefix.

Do you want more ideas for remember?


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


Re: [Orgmode] Using yasnippet with org Mode

2008-11-23 Thread Oliver Charles
Hi, sorry to be a little off topic but...

I'm curious to hear what snippets people are using with org-mode.
Anyone fancing sharing?

- OLlie

On Sun, Nov 23, 2008 at 7:23 PM, Ian Barton [EMAIL PROTECTED] wrote:
 Someone on the list mentioned yasnippet a while ago. I have been trying it
 out and I like it. However, I can't get it to play nicely with org mode. I
 have read various fixes, but none seem to work for me. To summarize what I
 have done:

 In my .emacs:

 (require 'org-install)

 ;; Yasnippet
 (add-to-list 'load-path ~/.emacs-lisp/plugins)
 (require 'yasnippet)
 (add-to-list 'yas/extra-mode-hooks
 'python-mode-hook)
 (yas/initialize)
 (yas/load-directory ~/.emacs-lisp/snippets/)

 ;; Make Yasnippet play nicely with org mode.
 (add-hook 'org-mode-hook
 '(lambda ()
 (make-variable-buffer-local 'yas/trigger-key)
 (setq yas/trigger-key [tab])))

 When I run C-h k I get:

 tab runs the command yas/expand
  which is an interactive Lisp function in `yasnippet.el'.
 It is bound to tab, TAB.
 (yas/expand)

 Expand a snippet.

 I can see yas in my status line when I open an org file and using tab with
 yasnippet works fine in other text mode files. I think that I am probably
 missing something obvious, as other people can get it to work.

 Ian.


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



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


Re: [Orgmode] Re: Release 6.13

2008-11-23 Thread Sebastian Rose
Hi Bernt,


this is how it works here:


(setq org-publish-project-alist
  '((org-notes
 :base-directory ~/emacs/org/notes/
 :auto-index t
 :index-filename sitemap.org
 :index-title Sitemap
 :recursive t
 :base-extension org
 ;; this could be: /ssh:[EMAIL PROTECTED]:~/html/notebook/
 :publishing-directory ~/public_html/org-notes/
 :publishing-function org-publish-org-to-html
 :headline-levels 4
;:section-numbers nil
;:table-of-contents nil
 :auto-preamble t
;:auto-postamble nil
 :style link rel=\stylesheet\ href=\stylesheet.css\ 
type=\text/css\ /

 )
(org-notes-static
 :base-directory ~/emacs/org/notes/
 :recursive t
 :base-extension 
css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf\\|txt\\|htm\\|html\\|dtd\\|php
 :publishing-directory ~/public_html/org-notes/
 :publishing-function org-publish-attachment)

(org :components (org-notes org-notes-static))


This way first the *.org files are published (and thus ditaa images are
created in :base-directory) and then the new generated images.





Best,

   Sebastian


Bernt Hansen [EMAIL PROTECTED] writes:
 Carsten Dominik [EMAIL PROTECTED] writes:

 New contributed file /org-exp-blocks.el/
 

 This new file implements special export behavior of
 user-defined blocks.  The currently supported blocks are

 - comment :: Comment blocks with author-specific markup
 - ditaa ::  conversion of ASCII art into pretty png files
  using Stathis  Sideris' /ditaa.jar/ program
 - dot :: creation of graphs in the /dot/ language
 - R :: Sweave type exporting using the R program

 For more details and examples, see the file commentary in
 /org-exp-blocks.el/.

 Kudos to Eric Schulte for this new functionality, after
 /org-plot.el/ already his second major contribution.  Thanks
 to Stathis for this excellent program, and for allowing us to
 bundle it with Org-mode.

 Thanks for this!  I really like that C-c ' now makes editing the ditaa
 images easy.

 Now for my questions related to improving my work-flow for generating
 documents with ditaa images.

 Q1: Can org-publish-current-project somehow automatically pick up ditaa
 generated images?

 I have a play org file http://doc.norang.ca/org-mode.org which
 generates the page at http://doc.norang.ca/org-mode.html.

 I usually edit the source file and then
M-x org-publish-current-project
 to publish my changes.

 This was working great... until ditaa came along :).

 Now exporting my .org files creates new ditaa generated images (.png
 files) which don't get exported with the document because they are
 part of a different project.  After org-publish-current-project I
 have to remember to also org-publish doc-png to get the ditaa
 generated images published.

 Publishing the parent project 'doc' instead

   doc
  doc-org (org - HTML export - publishing target)
  doc-png (copy .png  - publishing target)

 works fine so maybe I just need fix my workflow so my publish code
 is smart enough to find the appropriate parent project and publish
 that instead.

 Q2: Can org-publish handle a source file in more than one project?

 Sometimes I would like to publish the generated page (org-mode.html)
 as well as the source file that creates it (org-mode.org) as in Q1
 above.  I don't think I can have a doc-org project that generates
 HTML and a doc-src project that just copies the .org files verbatim
 to the target directory since after publishing one of the two
 projects the file is 'unchanged' and skipped for publishing the
 second one.  Is there a way to accomplish this?

 For now I'm manually touching the org file and manually publishing
 the doc-src project to make it work.


 ditaa images look great on HTML exports.  I'm having some difficulty
 including them in other formats (PDF for instance - they end up being
 tiny.)  Someday I'll find a good solution for that.
 http://doc.norang.ca/org-mode.pdf is an example.

 Thanks for org-mode!

 Regards,
 Bernt





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


-- 
Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 Hannover

Tel.:  +49 (0)511 - 36 58 472
Fax:   +49 (0)1805 - 233633 - 11044
mobil: +49 (0)173 - 83 93 417
Email: s.rose emma-stil de, sebastian_rose gmx de
Http:  www.emma-stil.de


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the 

[Orgmode] using variables in org-publish-project-alist

2008-11-23 Thread Richard Riley

I removed directory names from my projects list thus

,
| (setq org-publish-project-alist
|   '(
|   (web-extra
|:base-directory rgr-source  ;; **
|:publishing-directory rgr-publish
|:base-extension gif\\|jpg\\|jpeg\\|png\\|css
|:publishing-function org-publish-attachment
|  :recursive t
|)
|   (web-org
|:base-directory rgr-source
|:publishing-directory rgr-publish
|:base-extension org
|:publishing-function org-publish-org-to-html
|  :recursive t
|:section-numbers nil
|:style link rel=stylesheet
|  href=\./style.css\
|  type=\text/css\
|:auto-preamble t
|:auto-postamble t
|:preamble (format div id='Content'a href='../'Back/a - a 
href='%s'Home/a rgr-home)
|:postamble /div
|:author nil
|)
|   (web
|:components(web-org web-extra)
|)
|   )
|   )
`

I included an external file:

,
| (load-file ~/.emacs.d/.webvars)
`

where I declares the variables:

,
| (setq rgr-source /home/sh/webs/rgr/)
| (setq rgr-publish  /ssh:rgr.net:/home/sh/webs/rgr/)
| (setq rgr-home http://rgr.net/default/;)
`

C-h v on rgr-source gives

,
| rgr-source's value is 
| /home/sh/webs/rgr/
| 
| Documentation:
| Not documented as a variable.
`

but when I publish the project or a project file I get this:

,
| org-publish-get-base-files: Wrong type argument: stringp, rgr-source
`

I have a niggly feeling its going to be something obvious but what?

thanks for any info,

r.


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


[Orgmode] Relative clocking

2008-11-23 Thread Alan E. Davis
I have been taking notes on videos, and need a relative clock function,
starting when I start the film.  Each note should start with a time stamp
HH:MM indicating the time relative to the beginning of the film.  I need to
use these notes to prepare study guides for my students.

It is probably easy to do, but I could not see an easy way to do it, in the
docs.

Thank you,

Alan

-- 
Alan Davis

It's never a matter of liking or disliking ...
  ---Santa Ynez Chumash Medicine Man
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Auto schedule

2008-11-23 Thread Richard Riley

One of the things I use org-mode for is storing German language lessons
I get from a flashcard site.

What would be the best way to automatically schedule a reminder
(org-mode to-do item) for X days from now from a remember template?


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


Re: [Orgmode] RFC: Improvements to org-remember

2008-11-23 Thread Sebastian Rose
James TD Smith [EMAIL PROTECTED] writes:
 * New features
 ** Adding non-headline items
- Table rows.
- Checklist entries
- Plain list entries.
 ** Per-template insertion order
 ** Automatic sorting


Yes :-)

+1


Best,

-- 
Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 Hannover
Tel.:  +49 (0)511 - 36 58 472
Fax:   +49 (0)1805 - 233633 - 11044
mobil: +49 (0)173 - 83 93 417
Http:  www.emma-stil.de


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


[Orgmode] exporting unnumbered section headings?

2008-11-23 Thread Bill White
Hi all -

Inspired by other posts on the list recently, I'm setting up an
org-based website.  So far I've been able to change everything to suit
me except numbered html section headings - I'd prefer unnumbered
headings, if possible.  For example, this:

   WRI stuff
   Emacs stuff

instead of this:

   1 WRI stuff
   2 Emacs stuff

Or at the very least, heading numbers like 1., 2. would be
preferable.  Is there a way to change this?

Versions:

 - GNU Emacs 23.0.60.1 (i686-pc-linux-gnu, GTK+ Version 2.12.9) of
   2008-11-22 on billw-desktop
 - Org-mode version 6.13

Initialization:

(require 'org-publish)
(setq org-publish-project-alist
  '(
(org-notes
 :base-directory ~/org/
 :base-extension org
 :publishing-directory /var/www/org/
 :recursive t
 :publishing-function org-publish-org-to-html
 :headline-levels 4 ; Just the default for this project.
 :auto-preamble t
 )
(org-static
 :base-directory ~/org/
 :base-extension css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf
 :publishing-directory ~/public_html/
 :recursive t
 :publishing-function org-publish-attachment)
(org :components (org-notes org-static))
  ))

Thanks -

bw
-- 
Bill White . [EMAIL PROTECTED] . http://members.wolfram.com/billw
No ma'am, we're musicians.


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


[Orgmode] How to specify top or bottom under a headline in remember templates?

2008-11-23 Thread Alan E. Davis
I have found org mode/remember extremely useful for logging various things
during the day, both at work and at home.  I have defined about 30 templates
that make it extremely simple to insert notes or entries into logfiles or
journals.  In some cases, it is convenient to have two or three headlines in
a file, and certain templates insert under various headlines.  However, I
don't see a way to specify that *under a headline* an item is to be inserted
at the bottom of the list.

Am I missing something?

Alan

-- 
Alan Davis

It's never a matter of liking or disliking ...
  ---Santa Ynez Chumash Medicine Man
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] How to specify top or bottom under a headline in remember templates?

2008-11-23 Thread Sebastian Rose
Hi Alan,



I think this can be changed globaly (i.e., for all templates)
only. Customize the variable

org-reverse-note-order




Alan E. Davis [EMAIL PROTECTED] writes:
 I have found org mode/remember extremely useful for logging various things
 during the day, both at work and at home.  I have defined about 30 templates
 that make it extremely simple to insert notes or entries into logfiles or
 journals.  In some cases, it is convenient to have two or three headlines in
 a file, and certain templates insert under various headlines.  However, I
 don't see a way to specify that *under a headline* an item is to be inserted
 at the bottom of the list.

 Am I missing something?

 Alan


Regards,

-- 
Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 Hannover

Tel.:  +49 (0)511 - 36 58 472
Fax:   +49 (0)1805 - 233633 - 11044
mobil: +49 (0)173 - 83 93 417
Http:  www.emma-stil.de


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


[Orgmode] Re: org-browse-url.el: Bookmark from a browser into org links

2008-11-23 Thread Robert Goldman
I have tried these instructions, and with my Firefox (Mozilla/5.0
(Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.4) Gecko/2008102920
Firefox/3.0.4) I get only the error that:

Firefox doesn't know how to open this address, because the protocol
(org-browse-url-store) isn't associated with any program.

I do NOT get prompted for the location of a program to run for this
protocol.

My attempts to just stick the program location into the about:config
entry also fail, with the same error.

I have tried setting it to

/bin/sh /Users/rpg/bin/org-browse-url-store

that doesn't work, either.

This error seems to me pretty much undebuggable.  Any suggestions?

thanks,
r


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


Re: [Orgmode] exporting unnumbered section headings?

2008-11-23 Thread Matthew Lundin

Hi Bill

Bill White [EMAIL PROTECTED] writes:

 Hi all -

 Inspired by other posts on the list recently, I'm setting up an
 org-based website.  So far I've been able to change everything to suit
 me except numbered html section headings - I'd prefer unnumbered
 headings, if possible.  For example, this:

WRI stuff
Emacs stuff

 instead of this:

1 WRI stuff
2 Emacs stuff


Add this to your org-notes project config:

:section-numbers nil

Matt


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


Re: [Orgmode] exporting unnumbered section headings?

2008-11-23 Thread Sebastian Rose


Globally:

M-x org-export-with-section-numbers


Per Project:

 (require 'org-publish)
 (setq org-publish-project-alist
   '(
 (org-notes
 :section-numbers nil
...



See
   http://orgmode.org/manual/Publishing-options.html#Publishing-options



Bill White [EMAIL PROTECTED] writes:
 Hi all -

 Inspired by other posts on the list recently, I'm setting up an
 org-based website.  So far I've been able to change everything to suit
 me except numbered html section headings - I'd prefer unnumbered
 headings, if possible.  For example, this:

WRI stuff
Emacs stuff

 instead of this:

1 WRI stuff
2 Emacs stuff

 Or at the very least, heading numbers like 1., 2. would be
 preferable.  Is there a way to change this?

 Versions:

  - GNU Emacs 23.0.60.1 (i686-pc-linux-gnu, GTK+ Version 2.12.9) of
2008-11-22 on billw-desktop
  - Org-mode version 6.13

 Initialization:

 (require 'org-publish)
 (setq org-publish-project-alist
   '(
 (org-notes
  :base-directory ~/org/
  :base-extension org
  :publishing-directory /var/www/org/
  :recursive t
  :publishing-function org-publish-org-to-html
  :headline-levels 4 ; Just the default for this project.
  :auto-preamble t
  )
 (org-static
  :base-directory ~/org/
  :base-extension css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf
  :publishing-directory ~/public_html/
  :recursive t
  :publishing-function org-publish-attachment)
 (org :components (org-notes org-static))
   ))

 Thanks -

 bw

-- 
Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 Hannover

Tel.:  +49 (0)511 - 36 58 472
Fax:   +49 (0)1805 - 233633 - 11044
mobil: +49 (0)173 - 83 93 417
Email: s.rose emma-stil de, sebastian_rose gmx de
Http:  www.emma-stil.de


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


[Orgmode] footnote-start-tag / footnote-end-tag not used in export

2008-11-23 Thread Kevin Brubeck Unhammer
Hi,

If I setq footnote-start-tag / footnote-end-tag to something other
than [ and ], org-export-as-latex doesn't recognize them... I'm
assuming it involves replacing the hardcoded strings \\[[0-9]+\\] in
 org-export-latex-preprocess with something like

(concat \\ footnote-start-tag footnote-regexp \\ footnote-end-tag)

but I couldn't get that to work on my setup. Is this something that
could be easily fixed? (The incentive being that  and  for
footnote-tags could make it easier to use LaTeX options without
conflicts.)



best regards,
Kevin Brubeck Unhammer


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


Re: [Orgmode] Re: org-browse-url.el: Bookmark from a browser into org links

2008-11-23 Thread Ross Patterson
Robert Goldman [EMAIL PROTECTED] writes:

 I have tried these instructions, and with my Firefox (Mozilla/5.0
 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.4) Gecko/2008102920
 Firefox/3.0.4) I get only the error that:

 Firefox doesn't know how to open this address, because the protocol
 (org-browse-url-store) isn't associated with any program.

 I do NOT get prompted for the location of a program to run for this
 protocol.

 My attempts to just stick the program location into the about:config
 entry also fail, with the same error.

 I have tried setting it to

 /bin/sh /Users/rpg/bin/org-browse-url-store

 that doesn't work, either.

 This error seems to me pretty much undebuggable.  Any suggestions?

Double check all strings?  I copied and pasted those docs.

Ross


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


[Orgmode] Re: Relative clocking [Further discussion and ideas by OP]

2008-11-23 Thread Alan E. Davis
I have looked at the list archives, and discovered some previous postings on
a similar topic, about elapsed time.  Perhaps I can be more specific.

On Mon, Nov 24, 2008 at 12:01 PM, Alan E. Davis [EMAIL PROTECTED] wrote:

 I have been taking notes on videos, and need a relative clock function,
 starting when I start the film.


A post by Adam Speirs made a useful suggestion in response to a question by
Alan Dove:

http://lists.gnu.org/archive/html/emacs-orgmode/2007-07/msg00338.html

In particular, he posted three functions.  I have gotten them to work, they
are simple.  I am uncertain how they interact with Org Mode, whether they
work in a harmonious fashion with the clocking code in org mode.  I didn't
figure out how to turn off the clock!   So I rebooted when I needed to
restart.  I could edit his functions and insert exactly what I need.

I liked them because they don't require me to diddle around with properties
and drawers, with which I am yet somewhat uncomfortable.

A further suggestion is born or my initial experiment with his function: I
started the clock a bit too late, so all the timestamps are off by about
30-40 seconds.  Is it (at least in theory) possible to adjust all time
stamps in a subtree by the same amount?  That would enable me to correct all
of my notes in one fell stroke.

Thank you.

Alan



-- 
Alan Davis

It's never a matter of liking or disliking ...
  ---Santa Ynez Chumash Medicine Man
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode