[Orgmode] Iterate over list with `org-next-item'
Hi all, I am trying to iterate over a list with `org-next-item'. I just tried: (ignore-errors (while (equal nil (org-next-item and it worked. Is there a better way to do this? I'm not very versed in Elisp, and `org-next-item' returning `nil' on success, and throwing an error at the end of the list is throwing me a bit. Thank you, Zachary ___ 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
[Orgmode] Re: Make a time-stamp non-interactively
Hi Brent, Thank you very much for pointing that function out. I am still learning how to use apropos and just found about `C-u apropos' which shows that function when `apropos' did not. Anyway, much easier than my hack. Thank you, Zachary On Wed, Apr 14, 2010 at 7:26 PM, Bernt Hansen be...@norang.ca wrote: Zachary Young zacharysyo...@gmail.com writes: Hi all, I'm still new to elisp, so forgive me if I am missing something obvious... I would like to make an orgmode active time-stamp from within a custom function I am writing. I have looked at `org-time-stamp' but do not see a way to call this in a *non-interactive* fashion from my code. Inside `org-time-stamp' I was looking for a core time-stamp function that the interactive functions would call... but could not make one out. Is there a function already defined that when called will make a time-stamp with default values? If not, can someone point out the lines of code inside `org-time-stamp' that I can duplicate in my own code? I would prefer not to have to make a macro. Thank you, Zachary Hi Zachary, You probably want something like org-insert-time-stamp. I use this to insert inactive timestamps in buffers like this: (defun bh/insert-inactive-timestamp () (interactive) (org-insert-time-stamp nil t t nil nil nil)) If you change the third parameter from t to nil it gives you active timestamps. See the docstring for more details. HTH, Bernt ___ 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
[Orgmode] Make a time-stamp non-interactively
Hi all, I'm still new to elisp, so forgive me if I am missing something obvious... I would like to make an orgmode active time-stamp from within a custom function I am writing. I have looked at `org-time-stamp' but do not see a way to call this in a *non-interactive* fashion from my code. Inside `org-time-stamp' I was looking for a core time-stamp function that the interactive functions would call... but could not make one out. Is there a function already defined that when called will make a time-stamp with default values? If not, can someone point out the lines of code inside `org-time-stamp' that I can duplicate in my own code? I would prefer not to have to make a macro. Thank you, Zachary ___ 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
[Orgmode] Re: Make a time-stamp non-interactively
Hi all, Sorry, I did some more digging right after I sent this, and found the following in org-remember.el: (ct (or org-overriding-default-time (org-current-time))) (format-time-string (car org-time-stamp-formats) ct) So, there it is. Thank you, Zachary On Wed, Apr 14, 2010 at 6:56 PM, Zachary Young zacharysyo...@gmail.comwrote: Hi all, I'm still new to elisp, so forgive me if I am missing something obvious... I would like to make an orgmode active time-stamp from within a custom function I am writing. I have looked at `org-time-stamp' but do not see a way to call this in a *non-interactive* fashion from my code. Inside `org-time-stamp' I was looking for a core time-stamp function that the interactive functions would call... but could not make one out. Is there a function already defined that when called will make a time-stamp with default values? If not, can someone point out the lines of code inside `org-time-stamp' that I can duplicate in my own code? I would prefer not to have to make a macro. Thank you, Zachary ___ 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
[Orgmode] Export HTML from command line
Hi all, When I run `org-export-as-html' in a buffer, it works as I expect, but when I try to run it from an emacs batch command: emacs --batch --execute='(setq vc-follow-symlinks nil)' --visit= current-day.org --execute='(org-export-as-html-and-open nil)' anything between #+BEGIN_HTML: and #+END_HTML: are exported like the following: p#+BEGIN_HTML: lt;pregt;Revision: 934 Message: /pol li Revved 'release-name' variable to '1.10'. /li /ol p Modified : /trunk/scripts/AutoDoc/AutoDoc.buildlt;/pregt; #+END_HTML: /p and I am expecting: preRevision: 934 Message: 1) Revved 'release-name' variable to '1.10'. Modified : /trunk/scripts/AutoDoc/AutoDoc.build/pre This is my first try at running emacs as a batch command, so I might be doing something wrong there. If more information is required, please let me know. Thank you, Zach ___ 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
[Orgmode] Linking/referencing static HTML
Hi all, I've looked around at the orgmode and org babel manuals, and I am still not sure that I want to do is possible... I have an HTML file that is an e-mail signature that I use. Up to now I've had copies of the HTML in couple of template ORG files, like so: #+BEGIN_HTML div signature and corporate disclamer stuff /div #+END_HTML This has been working, but again, I have the exact same HTML copied in 5 different files, which means 5 separate edits for any changes. I just tried: #+BEGIN_HTML iframe src=signature.html/ #+END_HTML but getting the CSS right has been challenging. Is there any way to make orgmode insert a the contents of file during export? Thank you, Zach ___ 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