Re: [Orgmode] exporting - filtering
On Sep 15, 2008, at 12:57 PM, Richard G Riley wrote: Carsten Dominik [EMAIL PROTECTED] writes: Hi Richard, On Jul 22, 2008, at 1:06 AM, Richard G Riley wrote: When publishing/exporting can I limit certain sections to only exported if they are tagged for export? e.g I have a normal org mode hierarchy for my web page but then import a task based org file and then only have some of those published? If not I think it would be nice addition some time in the future. I have finally been able to get to this message, and I am wondering what the logic should be. I think it is rather straight forward to mark subtrees that should be *excluded* from export. You can, in fact, already do so by starting a tree with the COMMENT keyword, which How does this affect agenda generation? has exactly this purpose. Granted, a tag or property might be more appropriate - the fact that it is a keyword at the beginning of the entry has more historic than practical reasons. The logic for only selecting some trees for inclusion is harder, if you think about subtrees that are not top-level. If you mark a level 5 subtree for export, what should happen to the hierarchy above it? his can get quickly very complex, so I was wondering if you have been thinking about a reasonable logic for this. The way I personally see the html export is for publication of facts, figures and ideas. And I tend to find very few of my entries in my org files are of enough quality in terms of content and format to be published. Assuming we mark/tag for export and to answer your final question: If you mark a level five level item for export then you simply export all headers for its level the other levels before hand. Tagging for export is nice since you can have a section where the top level is tagged for export and all items inherit it too. So two tags would be ideal export and no_export (or something more ORGish since you might with to temporarily repress the publication of certain items in an exported block (all tagged as export thanks to the tags inheritance mechanism). Using tags for selective export is now up in the git repo, and will be part of release 6.7 later this week. - Carsten ___ 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 - filtering
--- Mer 17/9/08, Carsten Dominik [EMAIL PROTECTED] ha scritto: part of release 6.7 later this week. I mean, 6.07, ;-) cheers, Giovanni __ Do You Yahoo!? Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da tanto spazio gratuito per i tuoi file e i messaggi http://mail.yahoo.it ___ 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: (prepend-to-buffer buffer-name string)
save-excursion is used to save your location when you temporarily move somewhere else to do something (save-excursion (with-current-buffer buffer (goto-char (point-min)) (insert Stuff at the front of the buffer\n))) -Bernt Nick Dokos [EMAIL PROTECTED] writes: Parker, Matthew [EMAIL PROTECTED] wrote: Yes, but this would require I first move to the buffer to write to, do the insert, then move back to the buffer I'm searching in. That's what with-current-buffer is for I believe: (with-current-buffer some-buffer (insert foo)) HTH, Nick -Original Message- From: Bernt Hansen [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2008 11:03 PM To: Parker, Matthew Cc: emacs-orgmode@gnu.org Subject: Re: (prepend-to-buffer buffer-name string) See the builtin function 'insert' (insert string to insert) -Bernt Parker, Matthew [EMAIL PROTECTED] writes: I've reviewed a lot of the docs, but maybe missed something... Is there a function that allows you to just insert text into a buffer. i.e. just like (prepend-to-buffer buffer-name start stop)... but instead of passing a start and a stop, you can just pass a string. Thanks, 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 ___ 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: Question about cursor movement
Zitat - Sullivan, Gregory (US SSA) * Di Sep 16 2008 um 18:56 - Try leaving the cell with TAB to move to the next field (in left-to-right, top-to-bottom order), whereas RET goes down one row. Okay, that explains how to move the cursor. But the question is how to reduce the cursor movement (or to avoid unnecessary cursor movement in that particular case) I read in another thread that a prinicple of orgmode is to minimize the movement of the cursor. If it is so I would expect the cursor to stay in the field where the formula is evaluated. But maybe I got it wrong... henry ___ 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: Question about cursor movement
henry atting wrote: Okay, that explains how to move the cursor. But the question is how to reduce the cursor movement (or to avoid unnecessary cursor movement in that particular case) Would 'C-c C-c' do the trick? -- Chris Randle Windows XP SP3 - GNU Emacs 22.1.1 - Org-mode 6.06b ___ 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: Question about cursor movement
Zitat - Chris Randle * Mi Sep 17 2008 um 18:26 - henry atting wrote: Okay, that explains how to move the cursor. But the question is how to reduce the cursor movement (or to avoid unnecessary cursor movement in that particular case) Would 'C-c C-c' do the trick? Indeed it does. :) henry ___ 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-export-sweave
Carsten-- Thanks for the response! On Tue, Sep 16 2008, Carsten Dominik wrote: since you want to include tis code literally into LaTeX, the best is probably to encapsulate it into #+BEGIN_LATEX #+END_LATEX and to try to solve only the local editing issue. Yes, this makes sense. Though, since really all I need to do is wrap source code written in R in a \LaTeX environment, I might also like to use #v+ #+LATEX: \begin{Scode} a - 3 a #+LATEX: \end{Scode} #v- Take a look at the function org-edit-src-find-region-and-lang. There is a list of regular expressions that can be used to identify regions that should be edited in special modes - maybe I can make this list extensible - first, give it a try and see if you can get it working by editing the list. While I think opening up this list to customization is probably a good idea, I could not get my new entries to behave the way I wanted. The problem, I suspect, may have to do with the ordering of the different language environments. Suppose I had #v+ #+BEGIN_LATEX \begin{Scode} a - 3 a \end{Scode} #+END_LATEX #v- in an org file. I guess that I want the code within the Scode environment to me in r-mode, and the code outside of that but still within the LATEX block to be in LaTeX-mode. In what order should these two definitions appear within the re-list? FWIW, attached is a patch of the setup I tried to use. When I hit C-c ' inside either of the above examples, I get a temporary buffer that's in latex-mode. I was hoping to get a temporary buffer in r-mode. I also tried a version of the code that used the same entries in the re-list, but put them at the bottom, under the entries for ascii. Same results. Thanks for any further advice, /au diff --git a/lisp/org.el b/lisp/org.el index 4b29704..0612653 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -5562,6 +5562,8 @@ the language, a switch telling of the content should be in a single line. (^#\\+begin_example.*\n ^#\\+end_example fundamental) (^#\\+html: \n html single-line) (^#\\+begin_html.*\n \n#\\+end_html html) + (^\\s*begin{scode} ^\\s*end{scode} r) + (^#\\+latex:\\s*begin{scode} ^#\\+latex:\\s*end{scode} r) (^#\\+begin_latex.*\n \n#\\+end_latex latex) (^#\\+latex: \n latex single-line) (^#\\+begin_ascii.*\n \n#\\+end_ascii fundamental) -- Austin Frank http://aufrank.net GPG Public Key (D7398C2F): http://aufrank.net/personal.asc pgpA7norSaf0y.pgp Description: PGP signature ___ 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] org-agenda-busy-at
Carsten and other org-folk-- Any chance that it would be possible to query the agenda to see whether anything is scheduled at a particular time? The application I have in mind is scheduling new events with remember templates. If there's already something in the agenda for the timestamp I enter in a new remember entry, I would love to be given the message There is already an event scheduled at that time. Really use this timestamp? I could see a further extension of this, such that it allowed different behavior for different kinds of time stamps. Something like (setq org-agenda-busy-warn '(active . t) '(scheduled . -1h +1h) '(deadline . +3d)) would warn you if you tried to add a new timestamp that occurred within the range of an active timestamp; and would warn you if the new timestamp were within plus or minus one hour of a timestamp with the SCHEDULED property; and would also warn you if you tried to add a new timestamp within three days of a deadline. You tried to create a new event with timestamp 2008-10-31 20:00-21:30. There is already an entry with timestamp 2008-10-31 20:30-12:00. You have an event SCHEDULED at 2008-10-31 19:30. You have a DEADLINE on 2008-11-2. Proceed/Edit timestamp/Cancel? We could then use a function, org-agenda-busy-at, to check timestamps included in new remember notes before they get filed. I don't know whether this kind of information is easily retrievable from the agenda, or whether it could be stored as the agenda is built. Is there someplace in the code that I should look to check into the feasibility of this idea? Is it just impossible? Is it one of those things where Carsten says a mystical incantation and it's done? Thanks, /au -- Austin Frank http://aufrank.net GPG Public Key (D7398C2F): http://aufrank.net/personal.asc pgpu7uH1VU0ty.pgp Description: PGP signature ___ 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] Bug: remember/refiling filing target
Hi Wanrong, still, this is a difficult bug to fix, because my completion function keeps the outline path internally as a string. What I have done now is that during completion, any / in the headlines will be modified to \. This is a bit annoying in the case when you actually need to type that character to move forward with completion. However, most of the time this is not needed, and this trick makes sure that the completion is not interrupted at the wrong location in the string. - Carsten On Jul 21, 2008, at 5:02 PM, Wanrong Lin wrote: Hi, There seems to be a bug in remember/refiling filing target auto- completion prompt, if the target heading text has a forward slash /. For example, if my filing target is the following: * TODO A/B switch needs to be fixed With M-x org-refile, when I press TAB in the mini-buffer to bring up the filing target list, the above target shows up as A/, all text after the forward slash is cut out. However, the actual auto- completion (by pressing A/ and TAB) does work. I am using org 6.05b on Emacs 22.2, my refiling config is: (setq org-refile-targets '((org-agenda-files . (:maxlevel . 2 (setq org-refile-use-outline-path t) Thanks a lot if someone can take a look of it. Wanrong ___ 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