Re: [Orgmode] [PATCH] org-remember: Skip creation of the default '* Notes' task
On Fri, Apr 10, 2009 at 2:49 AM, Bernt Hansen wrote: [snip (17 lines)] Carsten, (and list) I've started using this new workflow just this week and org remember insisted on creating an annoying '* Notes' task before my #+FILETAGS: line since there were no tasks in the file yet. I'm refiling as top-level tasks at the end of the file and the '* Notes' task was just in the way. I couldn't find any good reason to keep this so this patch removes the requirement. I find tasks to refile with a custom agenda tag search looking for the tag REFILE and this change gets rid of the bogus 'Notes' task that kept showing up. If I may ask a question about your workflow. Once you have constructed the agenda view with all tasks tagged REFILE, how do you go and start refiling them? Do you have any way to do refile from the agenda view itself or do you visit the org file containing the task? Thanks -- Manish ___ 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] [PATCH] Auto resume clock-in fails
Hi Adam, this is now fixed, thank you very much for your report and the additional details your provided. That helped a lot. The fix I implemented is different. I have not tested it extensively, and I would be very much obliged if you could give it a thorough test. Thanks! - Carsten On Apr 9, 2009, at 9:55 PM, Adam Elliott wrote: Using org 6.25e: Automatically resuming the clock after an Emacs restart fails under the following cases: 1. If org-log-states-order-reversed set to t (default), and a state change line precedes the clock line to resume. Error message is Cannot restart clock because task does not contain unfinished clock. Example: *** STARTED test :LOGBOOK: - State STARTEDfrom TODO [2009-04-09 Thu 13:50] CLOCK: [2009-04-09 Thu 13:50] :END: Reason: point is placed at start of state change line and so fails looking-at test (org-clock.el:345). Possible solution appears to be to use the existing function org- skip-over-state-notes when looking for the clock line to resume at org-clock.el:343. 2. If org-log-states-order-reversed set to nil. Error message is the same. Reason: point is placed *after* last clock line and so fails looking-at test. Possible solution: test order-reversed and back up one clock entry before looking-at test. I have combined these two ideas into a new function (patch attached). I don't imagine I've handled all of the possible configurations of state change entries, log entries, and clock lines, in and out of drawers, so this will probably serve more as a basis for a solution than a solution itself. (If nothing else, on org-clock.el:346 there's \\t where it should be \t.) Adam --- /usr/local/src/org-6.25e/lisp/org-clock.el 2009-04-09 10:27:00.0 -0400 +++ org-clock.el2009-04-09 15:52:12.43750 -0400 @@ -280,7 +280,7 @@ (interactive P) (catch 'abort (let ((interrupting (marker-buffer org-clock-marker)) - ts selected-task target-pos) + ts selected-task target-pos resume-clock) (when (equal select '(4)) (setq selected-task (org-clock-select-task Clock-in on task: )) (if selected-task @@ -342,16 +342,14 @@ (org-clock-find-position) (cond ((and org-clock-in-resume - (looking-at - (concat ^[ \\t]* org-clock-string -\\[\\([0-9]\\{4\\}-[0-9]\\{2\\}-[0-9]\\{2\\} -+\\sw+ +[012][0-9]:[0-5][0-9]\\)\\][ \t]*$))) - (message Matched %s (match-string 1)) - (setq ts (concat [ (match-string 1) ])) - (goto-char (match-end 1)) + (setq resume-clock +(org-clock-find-last-clock-from-new-clock-position))) + (message Matched %s (car resume-clock)) + (setq ts (concat [ (car resume-clock) ])) + (goto-char (+ (length (car resume-clock)) (cdr resume-clock))) (setq org-clock-start-time (apply 'encode-time - (org-parse-time-string (match-string 1) + (org-parse-time-string (car resume-clock) ((eq org-clock-in-resume 'auto-restart) ;; called from org-clock-load during startup, ;; do not interrupt, but warn! @@ -455,6 +453,29 @@ (and (re-search-forward org-property-end-re nil t) (goto-char (match-beginning 0 +(defun org-clock-find-last-clock-from-new-clock-position () + Attempts to locate last clock line, assuming point is at new +clock line position (see `org-clock-find-position'). If found, +moves point to beginning of last clock line and returns a cons +pair of the starting timestamp of the clock and the position of +the match; and otherwise restores point and returns nil. + (let ((saved-point (point)) heading-bound) +(save-match-data + (if org-log-states-order-reversed + (org-skip-over-state-notes) + (save-excursion + (org-back-to-heading t) + (beginning-of-line 2) + (setq heading-bound (point))) + (re-search-backward (concat ^[ \t]* org-clock-string) heading- bound t)) + (if (looking-at + (concat ^[ \t]* org-clock-string + \\[\\([0-9]\\{4\\}-[0-9]\\{2\\}-[0-9]\\{2\\} + +\\sw+ +[012][0-9]:[0-5][0-9]\\)\\][ \t]*$)) + (cons (match-string 1) (match-beginning 1)) + (goto-char saved-point) + nil + (defun org-clock-out (optional fail-quietly) Stop the currently running clock. If there is no running clock, throw an error, unless FAIL-QUIETLY is set. ___ 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
Re: [Orgmode] Name of file being exported.
Hi, On Apr 14, 2009, at 4:22 AM, Noufal Ibrahim wrote: [apologies if this is a repost. I was not on the list] Hello everyone, I'm a recent org-mode convert (after hearing the talk) and without question, it's one of the best things I've ever used. Thank you for making such a wonderful program. However, org-mode and emacs being what they are, I'm tempted to try and customise it to do more. :) I'm trying a simple trick to insert the version control history of my current file formatted as a table when I export the org file into HTML or ascii. I need this to track changes to design documents etc. I'm using dynamic blocks to do this and have a function defined to insert the output of git log --pretty='format:|%ad|%s|' (buffer-file-name) into the block. This works fine if I run org-update-all-dblocks from the org buffer itself manually. If I export it however, (buffer-file-name) returns a null string so I get the entire log of my repository which is not what I want. In what way are you calling the update of dblocks during export? Have you added a function to this effect to a hook? Which function? To which hook? - Carsten Is there a way to get the buffer/file which is being exported so that I can use that in the command rather than buffer-file-name? Thanks in advance and for such an awesome mode. -- ~noufal http://nibrahim.net.in/ ___ 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] Use tagging in table rows? (was: Personal Finance in org-mode)
Is there a way to use the org-mode tagging interface in table rows to categorize row data? * Headline :tag1:tag2: | col1 | col2 | col3 | |--+--+| | data | data | :tag1: | | data | data | :tag1:tag2 | In the above example, tags in the table are not recognized, and the C-c C-c UI isn't available. Not surprising, as the table rows are not headlines. I find org tables very useful for preparing data for database import, and some form of tagging would make it that much better. Thanks, Jeff ___ 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] export to html: timestamp-kwd
On Apr 14, 2009, at 1:12 AM, Eraldo Helal wrote: Salve Orgers! When exporting to html my auto-timestamp looks like this: span class=timestamp-kwdCLOSED: /span span class=timestamp2009-04-14 Tue 00:52/spanbr I would rather like to have it like this: span class=timestamp-kwdCLOSED: span class=timestamp2009-04-14 Tue 00:52/span/spanbr In words: I would like timestamp keyword html span to include the timestamp. Reason: This would enable me to move the whole thing to the right side of the headline (float: right). Comments on this idea are welcome :) This is a nice application, but I don't think the kwd span should be extended for this. Instead, I have added a new span around both the keyword and the stamp, with class timestamp-wrapper. HTH - Carsten Greetings and happy orging, Eraldo Ps: If you have any other idea on how to get the same result.. please let me know. ___ 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] #+include: export header lines
Hi Dan, special lines like #+OPTIONS are only parsed if the file is pointed to with #+SETUPFILE: ~/src/common/org-header.org HTH - Carsten P.S. Where should we have had what documentation to make this easier for you to find? On Apr 13, 2009, at 9:24 PM, Dan Davison wrote: Dear list, I'm failing to work out how to #+include: a file containing export header directives in such a way that the directives are obeyed. I tried creating this file tmp.org #+include: ~/src/common/org-header.org * heading 1 where the contents of org-header.org are #+OPTIONS:H:3 num:nil toc:t \n:nil @:t ::t |:t ^:{} -:t f:t *:t TeX:t LaTeX:t skip:nil d:(HIDE) tags:not-in-toc #+STYLE: link rel=stylesheet type=text/css href=/home/dan/src/ common/dan.css / #+AUTHOR: Dan Davison #+EMAIL: davi...@stats.ox.ac.uk * this is org-header; that_1 shouldn't be a subscript On export of tmp.org I *do* get the heading from org-header.org, but I do not get the effects of the export directives in org-header.org (dan.css didn't happen, and the _1 subscript comes out as a subscript). In contrast when I export org-header.org itself, I do of course get the effects of the export options. I am conscious that most if not all of my previous posts of this nature have resulted in me being pointed to the section of the manual I *should* have been familiar with! So, for the record, for this problem I looked at http://orgmode.org/manual/Export-options.html#Export-options http://orgmode.org/manual/Include-files.html#index-g_t_0023_002bINCLUDE-878 OTOH I just grepped through the contents of Worg and found no such mechanism being used, so perhaps I am for once asking for something that doesn't already exist. Thanks a lot, Dan ___ 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] Use tagging in table rows? (was: Personal Finance in org-mode)
Hi Jeff, taggin in tables is not supported, i particular because there are also no functions that would make use of these tags. - Carsten On Apr 14, 2009, at 11:36 AM, Jeff Kowalczyk wrote: Is there a way to use the org-mode tagging interface in table rows to categorize row data? * Headline :tag1:tag2: | col1 | col2 | col3 | |--+--+| | data | data | :tag1: | | data | data | :tag1:tag2 | In the above example, tags in the table are not recognized, and the C-c C-c UI isn't available. Not surprising, as the table rows are not headlines. I find org tables very useful for preparing data for database import, and some form of tagging would make it that much better. Thanks, Jeff ___ 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] [PATCH] org-remember: Skip creation of the default '* Notes' task
Manish mailtomanish.sha...@gmail.com writes: On Fri, Apr 10, 2009 at 2:49 AM, Bernt Hansen wrote: [snip (17 lines)] Carsten, (and list) I've started using this new workflow just this week and org remember insisted on creating an annoying '* Notes' task before my #+FILETAGS: line since there were no tasks in the file yet. I'm refiling as top-level tasks at the end of the file and the '* Notes' task was just in the way. I couldn't find any good reason to keep this so this patch removes the requirement. I find tasks to refile with a custom agenda tag search looking for the tag REFILE and this change gets rid of the bogus 'Notes' task that kept showing up. If I may ask a question about your workflow. Once you have constructed the agenda view with all tasks tagged REFILE, how do you go and start refiling them? Do you have any way to do refile from the agenda view itself or do you visit the org file containing the task? Hi Manish! I visit the file containing the task and refile from there. I just use the agenda to verify that all tasks to be refiled are done. I collect tasks for up to a week. One of the items in my weekly review checklist is to find tasks to refile and that's what I use the agenda view for. I'll reorder the tasks to group things together and then refile them as a group to the target task in another file. My main reason for switching to this workflow is to speed up my remember usage - I don't want to think about where the task is going when I create the remember task. It's either a phone call (which starts the clock immediately), or a task or a note. Nothing else is really important at the time I'm entering it. I used to have tons of remember templates to file things directly into the appropriate client org file but then I found I needed to refile them again from there anyway and thinking about which template I need to use before throwing the details in the remember task wasn't buying me anything useful. My reason for refiling everything is client phone calls are clocked and contribute to billable hours at the end of the month. I need to make sure that clocked time is in the correct client org file and project so it doesn't get lost when I invoice the client. I found the easiest way to do that is just get used to refiling everything away so my remember task buckets (tasks.org, notes.org, phone.org) are empty. HTH, 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] Name of file being exported
Hello everyone, I'm a recent org-mode convert (after hearing the talk) and without question, it's one of the best things I've ever used. Thank you for making such a wonderful program. However, org-mode and emacs being what they are, I'm tempted to try and customise it to do more. :) I'm trying a simple trick to insert the version control history of my current file formatted as a table when I export the org file into HTML or ascii. I need this to track changes to design documents etc. I'm using dynamic blocks to do this and have a function defined to insert the output of git log --pretty='format:|%ad|%s|' (buffer-file-name) into the block. This works fine if I run org-update-all-dblocks from the org buffer itself manually. If I export it however, (buffer-file-name) returns a null string so I get the entire log of my repository which is not what I want. Is there a way to get the buffer/file which is being exported so that I can use that in the command rather than buffer-file-name? Thanks in advance and for such an awesome mode. -- ~noufal http://nibrahim.net.in/ ___ 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] repeating timestamp question
Whats the diff between *** TODO Pay Rent SCHEDULED: 2009-04-01 Fri +1m and *** TODO Pay Rent 2009-04-01 Fri +1m [Yeah I found this in the FAQ. But not clear what to do for repeating items like this] ___ 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] Name of file being exported.
Carsten Dominik wrote: [..] In what way are you calling the update of dblocks during export? Have you added a function to this effect to a hook? Which function? To which hook? [..] Hello Carsten, I have done this (add-hook 'org-export-preprocess-hook 'org-update-all-dblocks) Is this not the right hook to add the function to? Thanks -- ~noufal http://nibrahim.net.in/ ___ 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] Name of file being exported.
Noufal Ibrahim nou...@nibrahim.net.in wrote: Carsten Dominik wrote: [..] In what way are you calling the update of dblocks during export? Have you added a function to this effect to a hook? Which function? To which hook? [..] Hello Carsten, I have done this (add-hook 'org-export-preprocess-hook 'org-update-all-dblocks) Is this not the right hook to add the function to? I don't know how Carsten will address this, but it seems that the running of the org-export-preprocess-hook is done too late for your purposes (from inside org-export-preprocess-string and inside a (with-current-buffer (get-buffer-create org-mode-tmp) ... construct, where there is no buffer file name). Can you run org-update-all-dblocks by hand before doing the export? That should update the org file and the export should then have all the right information, no? If so, you can even automate the process by advising org-export, so that org-update-all-dblocks is run before org-export proper is called. [1] HTH, Nick [1] Disclaimer: I have not tried it, so no warranty... ___ 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] #+include: export header lines
Carsten Dominik carsten.domi...@gmail.com writes: Hi Dan, special lines like #+OPTIONS are only parsed if the file is pointed to with #+SETUPFILE: ~/src/common/org-header.org HTH Yes that's what I was looking for, thanks! - Carsten P.S. Where should we have had what documentation to make this easier for you to find? Here are some suggestions. I could try to make a patch if that is helpful? Does one just edit the org.texi manually? I've edited my copy of org.texi as follows, but it didn't compile on make doc [see error at end] * [14.3 Summary of in-buffer settings] It might be logical to include the export options in this summary so that all the #+SOMETHING: options are together. Alternatively a link to [12.3 Export options] would be helpful in the initial text at node 14.3, i.e. around line 9642 in org.texi * #+SETUPFILE doesn't get an index entry So would that be a case of adding @cindex #+SETUPFILE on e.g. line 9691? * Make connections from node [12.3 Export options] to [14.3 Summary of in-buffer settings] Something like this at line 8151? For a summary of other in-buffer settings not specifically related to export, see @ref{Summary of in-buffer settings}. In particular, note that you can place commonly-used (export) options in a separate file which can be included using @code{#+SETUPFILE}. [ Although that doesn't compile for me; I've never used texinfo before. /usr/local/src/org-mode make doc (cd doc; makeinfo --html --number-sections --no-split -o org.html org.texi) /usr/local/src/org-mode/doc//org.texi:8152: Cross reference to nonexistent node `Summary of in-buffer settings' (perhaps incorrect sectioning?). ] Dan On Apr 13, 2009, at 9:24 PM, Dan Davison wrote: Dear list, I'm failing to work out how to #+include: a file containing export header directives in such a way that the directives are obeyed. I tried creating this file tmp.org #+include: ~/src/common/org-header.org * heading 1 where the contents of org-header.org are #+OPTIONS:H:3 num:nil toc:t \n:nil @:t ::t |:t ^:{} -:t f:t *:t TeX:t LaTeX:t skip:nil d:(HIDE) tags:not-in-toc #+STYLE: link rel=stylesheet type=text/css href=/home/dan/src/ common/dan.css / #+AUTHOR: Dan Davison #+EMAIL: davi...@stats.ox.ac.uk * this is org-header; that_1 shouldn't be a subscript On export of tmp.org I *do* get the heading from org-header.org, but I do not get the effects of the export directives in org-header.org (dan.css didn't happen, and the _1 subscript comes out as a subscript). In contrast when I export org-header.org itself, I do of course get the effects of the export options. I am conscious that most if not all of my previous posts of this nature have resulted in me being pointed to the section of the manual I *should* have been familiar with! So, for the record, for this problem I looked at http://orgmode.org/manual/Export-options.html#Export-options http://orgmode.org/manual/Include-files.html#index-g_t_0023_002bINCLUDE-878 OTOH I just grepped through the contents of Worg and found no such mechanism being used, so perhaps I am for once asking for something that doesn't already exist. Thanks a lot, Dan ___ 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
Re: [Orgmode] sha1 errors with feeds, needed to load sha1.el
Hi Greg, thank you for following up and finding the true cause of this problem. I have now modified org-feed.el so that it will work correctly on Emacs 22, even without the code Greg shows above. - Carsten On Apr 14, 2009, at 4:16 PM, Greg Lucas wrote: Sharing this in case anyone else needs it. I'm running Emacs 22.3.1 on Windows with org-mode 6.25e and was unable to get org-feed to work without some digging. First I got: Symbol's function definition is void: sha1-string I found a relevant post on the mailing list and tracked down the latest org-compat.el from git, but then I got: Symbol's function definition is void: sha1-region I poked around and found that there was a sha1.el in my emacs/gnus/lisp that defined these functions. So I added an eval-after-load hook now things seem to work fine: (eval-after-load org '(progn (load sha1) ;; avoid issues with org-feed ;; other org customization )) I guess this could be fixed by somewhere requiring sha1 (e.g. in org-feed.el or org-compat.el)? Also want to point out that org-feed.el is not actually included in the 6.25e zip distribution (even though the autoloads are there for the feed functions), so I had to grab that from git to get started. -- Greg ___ 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] Name of file being exported.
Noufal Ibrahim nou...@nibrahim.net.in wrote: Hi Nick, Nick Dokos wrote: [..] Can you run org-update-all-dblocks by hand before doing the export? That's possible. What I do now is to to add the org-update-all-dbblocks to write-file-hooks as suggested by the info pages. This works for me but there are times when I export directly without saving and I'd like the block to get updated then too. If so, you can even automate the process by advising org-export, so that org-update-all-dblocks is run before org-export proper is called. [1] This sounds better. I shall try this. Although I'm wondering if there isn't a hook that I can add a function to manage what I want. Maybe this will work: the current buffer-file-name is saved in org-export-as-html (and I assume in the other export routines) in a dynamically scoped variable called org-current-export-file. The value of that variable should be available in the hook as well. So instead of (buffer-file-name), you probably want to say (or (buffer-file-name) org-current-export-file) That way, your updater can be called both from inside and outside the export functions. HTH, Nick ___ 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: OrgmodeHow to fold a footer
El dt, abr 14 2009, Wes Hardaker va escriure: On Tue, 14 Apr 2009 00:54:46 +0200, Daniel Clemente n142...@gmail.com said: DC Is there some trick to add a footer at the end? I all the #+ or other text in another header at the bottom called END. IE: * END Ok. I think you can also attach a noexport tag (look in the manual for the real name) to it or something if you're worried about it being exported. Yes, it's „noexport“. But then you don't see the footer. If you want to show something like „this page was created by … at … with org-mode, is valid HTML, etc“ then you need a visible content but hopefully no visible heading called „END“. It would be easier if I could override this text (not only switch it on/off): div id=postamble … p class=creatorHTML generated by org-mode 6.24trans in emacs 23/p … /div In fact I would like to have as a footer: This page was generated on [EXPORT-DATE] by Org-mode [VERSION]. For questions, contact me at: e-mail, etc. -- Daniel ___ 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] variables to get the export date and other export data
Hi, just like [TABLE-OF-CONTENTS] inserts the table of contents, are there other variables which will be translated on export? For instance [EXPORT-DATE] to get the export date, [VERSION] for the Org version, [FILE-NAME] for this file's name, … Otherwise, dynamic blocks with LISP code can be used, as suggested in a recent message. Only that variables can make this easier for common variables. There are also macros like {{{title}}}, {{{author}}}, but they are static (e.g. {{{date}}} is the date the user wrote, not the date at export time). --Daniel ___ 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] headline entries order.
I want to reverse the entries of my logs. So the newest is at the top. I know there is the C-c ^ sort function, but I'm not sure if any are applicable. (Not all of my entries are dated) ___ 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] Use tagging in table rows? (was: Personal Finance in org-mode)
Could using headlines and editing 'rows' with table view in agenda be an option? (using properties in drawers) Greetings, Eraldo .oO( newbie trying to give support *g* ) On Tue, Apr 14, 2009 at 14:20, Carsten Dominik carsten.domi...@gmail.comwrote: Hi Jeff, taggin in tables is not supported, i particular because there are also no functions that would make use of these tags. - Carsten On Apr 14, 2009, at 11:36 AM, Jeff Kowalczyk wrote: Is there a way to use the org-mode tagging interface in table rows to categorize row data? * Headline :tag1:tag2: | col1 | col2 | col3 | |--+--+| | data | data | :tag1: | | data | data | :tag1:tag2 | In the above example, tags in the table are not recognized, and the C-c C-c UI isn't available. Not surprising, as the table rows are not headlines. I find org tables very useful for preparing data for database import, and some form of tagging would make it that much better. Thanks, Jeff ___ 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
Re: [Orgmode] Use tagging in table rows? (was: Personal Finance in org-mode)
On Apr 15, 2009, at 2:23 AM, Eraldo Helal wrote: Could using headlines and editing 'rows' with table view in agenda be an option? (using properties in drawers) To be honest, I don't understand at all. - Carsten Greetings, Eraldo .oO( newbie trying to give support *g* ) On Tue, Apr 14, 2009 at 14:20, Carsten Dominik carsten.domi...@gmail.com wrote: Hi Jeff, taggin in tables is not supported, i particular because there are also no functions that would make use of these tags. - Carsten On Apr 14, 2009, at 11:36 AM, Jeff Kowalczyk wrote: Is there a way to use the org-mode tagging interface in table rows to categorize row data? * Headline :tag1:tag2: | col1 | col2 | col3 | |--+--+| | data | data | :tag1: | | data | data | :tag1:tag2 | In the above example, tags in the table are not recognized, and the C-c C-c UI isn't available. Not surprising, as the table rows are not headlines. I find org tables very useful for preparing data for database import, and some form of tagging would make it that much better. Thanks, Jeff ___ 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
Re: [Orgmode] Name of file being exported.
On Apr 14, 2009, at 8:26 PM, Nick Dokos wrote: Noufal Ibrahim nou...@nibrahim.net.in wrote: Hi Nick, Nick Dokos wrote: [..] Can you run org-update-all-dblocks by hand before doing the export? That's possible. What I do now is to to add the org-update-all-dbblocks to write-file-hooks as suggested by the info pages. This works for me but there are times when I export directly without saving and I'd like the block to get updated then too. If so, you can even automate the process by advising org-export, so that org-update-all-dblocks is run before org-export proper is called. [1] This sounds better. I shall try this. Although I'm wondering if there isn't a hook that I can add a function to manage what I want. Maybe this will work: the current buffer-file-name is saved in org-export-as-html (and I assume in the other export routines) in a dynamically scoped variable called org-current-export-file. The value of that variable should be available in the hook as well. So instead of (buffer-file-name), you probably want to say (or (buffer-file-name) org-current-export-file) That way, your updater can be called both from inside and outside the export functions. Great solution. We could also introduce a new hook which is run before export. However, for the functionality discussed here, I think that before-save-hook would be a very good place too. - Carsten HTH, Nick ___ 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