[O] convert outline to .csv
Example: * Micro topic 1 ** Microbes are small ** You can't see them! *** Isn't that something? * Micro topic 2 ** I hope I like the teacher *** She will be great! ** Micro is cool! I'd like to convert them into a .csv file like so: "* Micro topic 1"," "** Microbes are small", "** You can't see them!", "*** Isn't that something?", "* Micro topic 2", "** I hope I like the teacher", "*** She will be great!", "** Micro is cool!" Where the first column contains only top level headings (lines beginning with one star), and the following columns are subheadings belonging to the top level heading. So for each top level heading, there is one row containing the top level heading and its children. I've been messing around with a solution in python with regular expressions as well as macros but haven't gotten very far. Any suggestions?
Re: [Orgmode] Re: Tagging a region of text without creating a branch
So, about inline tasks... what are they for? I've read the code and know what they do, how to use them etc. But I don't know in what context people use them. Why were they created and where are they used? On Oct 8, 2009 9:28 PM, "Bernt Hansen" wrote: Matt Lundin writes: > bar tomas writes: > >> Is it possible... Tags go with headlines. The only way to do what you want is with inline tasks like this: ,[ .emacs ] | (require 'org-inlinetask) ` ,[ test.org ] | | * item1 | this is about item 1 | *** subitem1 :urgent: | bla bla | *** not urgent | more about item1 ` HTH -Bernt ___ Emacs-orgmode mailing list Remember: use `Reply Al... ___ 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] "clearing" the state of an org-mode subtree
org-mode files are plain text. M-% to do a replacement: once you've entered your search term and its replacement, hit ! to replace all without question. 2009/10/9 Robert Goldman : > I'm at about my one year anniversary using Org-mode, and I have a bit of > an odd question. Last year, I made a subtree that was a project for > getting ready for winter (I live in Minnesota, which has harsh winters). > > I worked my way through that list, and now I'd like to do the whole > thing over again. > > So I'd like to copy the subtree (this I believe I can easily do), and > then clear it. That is, I'd like to reset all the TODOs from DONE to > TODO, and clear all the check boxes. > > This seems like a really odd thing to do, so there probably isn't > automation for it, but before I go groveling over it by hand, I thought > I'd ask. > > 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 > ___ 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] Bug in org-icalendar.el
Hi all Just noticed an issue with a recent commit d51a8307 which defines org-icalendar-verify-function as nil but tests it using 'boundp. I'm using revision a7543733... The fix is: @@ -280,7 +280,7 @@ When COMBINE is non nil, add the category to each line." (while (re-search-forward re1 nil t) (catch :skip (org-agenda-skip) - (when (boundp 'org-icalendar-verify-function) + (when org-icalendar-verify-function (unless (funcall org-icalendar-verify-function) (outline-next-heading) (backward-char 1) @@ -403,7 +403,7 @@ END:VEVENT\n" (while (re-search-forward org-todo-line-regexp nil t) (catch :skip (org-agenda-skip) - (when (boundp 'org-icalendar-verify-function) + (when org-icalendar-verify-function (unless (save-match-data (funcall org-icalendar-verify-function)) (outline-next-heading) After that I have further problems with a nil org-todo-line regexp in: re-search-forward(nil nil t) org-print-icalendar-entries(t) but I'm off to a meeting. I'll have a look later Andrew -- Andrew Lawson adl at absentis dot com A notebook, a fountain pen, a good book for inspiration, a spot of tea and an expansive view, could one ask for anything more? ___ 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] More on GTD, browse todos by priority or creation date
org-mode's priority doesn't actually work well with GTD. In org-mode, priority is not inherited, so you can't prioritize projects, only tasks. Usually when this has come up on the list before, the answer is to use tags for priority when you want to prioritize tasks. On Mon, Nov 16, 2009 at 5:41 AM, David Maus wrote: > Hi T o n g, > > At Mon, 16 Nov 2009 02:47:39 + (UTC), > T o n g wrote: >> >> Ok, enough off-track babbling, what I want to know is that weather org- >> mode can somewhat allows me to assign arbitrary levels of priority to my >> todo list, and let me browse them in their priority order (so that high >> priority items get done first). The creation date is another way for me >> to browse my todo items to see what have been on the list for too long. >> > > Orgmode does indeed have a priority feature that seems to fit your > needs. You may check the Orgmode manual [1], Chapter 5.4 "Priorities" and > maybe Chapter 10.4.3 "Sorting of agenda items". > > Regards, > > --David > > [1] http://orgmode.org/manual/ > > -- > OpenPGP... 0x316F4BE4670716FD > Jabber dmj...@jabber.org > Email. maus.da...@gmail.com > ICQ... 241051416 > > > ___ > 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] Org-mode as QDA-Software?
2009/12/18 Sven Bretfeld : > Hi all, especially you org developers out there > > Org mode would be a nice base for bringing a good QDA-Software to the > world of free software, isn't it? QDAS is a special type of software for > qualitative data analysis[¹], mostly used in Sociology and related > fields of Science. Existing programs like Atlas.ti[²] and MaxQDA[³] are > what I deem the essence of proprietary stuff: very expensive, elitist > and utterly unfree (but widely used by research groups who have enough > money at their disposal). > > AFAIK, there is only one piece of QDA software available for Linux, > gTAMS Analyzer, which is quite awkward in my opinion. > > I often advocate QDAS to students and PhD students for managing > Discourse Analysis projects, and its always embarrassing to push them to > expensive programs. But I think org-mode is just one step away from > being a powerful QDAS, especially with org-babel, I think. This lack in > the world of free software might be only a small addon-package away. It > would be the first cross-platform solution, and group functionalities > could be implemented via git, CVS or SVN. To my regret, I'm just a > devoted user, in no way a developer. > > Is any developer out there who deems this a worthwhile project? Students > all over the world would be grateful (if we manage to make it known via > Google and Wikipedia). > > Greetings > > Sven > > [¹] http://en.wikipedia.org/wiki/Qualitative_research. > [²] http://www.atlasti.com/en/. > [³] http://www.maxqda.com/. Without a clearer understanding of what features you want, I don't think anyone's going to be able to answer you to your or their satisfaction. >From skimming the first section of http://www.maxqda.com/products/functionstab (Data management) it looks like orgmode already supports most of these requirements. The latter two, related to weighting paragraphs of text (presumably to mark up relevance?) are not trivially supported unless you wanted to make them subsections and assign them Properties. I've never used this software but the list of features seems very much a grab-bag of stuff all glommed together into one big product with little attention paid to the core requirements: maybe some clear thinking about what the fundamentals of qualitative data analysis tools are will prove useful. ___ 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
RE: [Orgmode] How to "snooze" a repeating item
Thanks, Luke but I don't think that works. I want a command that will move the event forward a day but still keep the repeat at a set interval from the original day. It's still something I find I need to do frequently but have no way to do other than manually. =( :AMN: -Original Message- From: Luke Amdor [mailto:luke.am...@gmail.com] Sent: Sun 1/17/2010 7:26 AM To: Nuxoll, Andrew Cc: emacs-orgmode@gnu.org Subject: Re: [Orgmode] How to "snooze" a repeating item i've been using the org-agenda-date-later function to schedule things later. I think it's what you're looking for. It's not bound to anything, but I bind it to ")" via (org-defkey org-agenda-mode-map ")" 'org-agenda-date-later) Luke On Tue, Dec 1, 2009 at 4:34 PM, Andrew M. Nuxoll wrote: > I've been using org-mode for four months now and I just love it. So I > think I'm post-newb but still very amateur. > > Anyway, my to-do list has several repeating scheduled items like this > contrived example: > > * TODO [#B] Lunch date with Sarah at 12pm > SCHEDULED: <2009-12-08 Tue +1w> > > Or, in English, I meet with Sarah for lunch once a week on Tuesdays. > > Now, let's say that Sarah calls on Monday afternoon and says, "Can we do > lunch on Wednesday this week?" and I say "Sure thing." > > Now I have a problem. I could shift the date to Wednesday like this: > > * TODO [#B] Lunch date with Sarah at 12pm > SCHEDULED: <2009-12-09 Wed +1w> > > But that will mean that the following week it will *still* be scheduled for > Wednesdays (specifically Dec 16 instead of Dec 15). I miss my regular lunch > date with Sarah and catch ire for standing her up. > > How do I handle situations like this? > It seems like I either need a time stamp "stack" or I need a temporary flag > that "self destructs" after a prescribed time. > > :AMN: > > > > ___ > 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 > ___ 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] Bug in org-babel-load-file
Hi guys, There appears to be a bug in org-babel-load-file, where it calls org-babel-tangle-file with file and base-name. Instead of using base-name, it should probably use the exported-file. This causes an issue where the elisp I am extracting is put in "foo.bar" instead of "foo.bar.el". Strangely, this doesn't appear to always happen, but only when there is a file with lots of dot-separated sections. Any thoughts? This is in org 6.34trans. ___ 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] [PATCH] Make org-agenda-todo-ignore-* more flexible
Hi all- I'm pretty close to switching to org-mode to keep a todo list, but the current set of options doesn't do it for me. I want my todo list to show: - todos without a date (that means "do at earliest convenience") - todos scheduled for today or earlier (that means "do at earliest convenience, but don't bother until scheduled date") - todos with near deadlines (that means "do by deadline but not before warning") This patch adds more options to org-agenda-todo-ignore-{scheduled,deadlines} to allow this usecase. It shouldn't break compatibility with existing uses -- both variables do exactly what they used to when set to t. commit: http://github.com/amluto/org-mode/commit/afa59fc91630bcffe388228566aa0137d1b2e7fd topic: http://github.com/amluto/org-mode/tree/agenda-todo-improvements git URL: g...@github.com:amluto/org-mode.git agenda-todo-improvements Do you like this patch? And do I need to submit a copyright assignment? Thanks, Andy ___ 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
Re: [Orgmode] [PATCH] Make org-agenda-todo-ignore-* more flexible
On Sun, Feb 14, 2010 at 4:37 PM, Carsten Dominik wrote: > Hi Andrew, > > On Feb 13, 2010, at 12:17 AM, Andrew Lutomirski wrote: > >> Hi all- >> >> I'm pretty close to switching to org-mode to keep a todo list, but the >> current set of options doesn't do it for me. I want my todo list to >> show: >> >> - todos without a date (that means "do at earliest convenience") >> - todos scheduled for today or earlier (that means "do at earliest >> convenience, but don't bother until scheduled date") >> - todos with near deadlines (that means "do by deadline but not >> before warning") >> >> This patch adds more options to >> org-agenda-todo-ignore-{scheduled,deadlines} to allow this usecase. >> It shouldn't break compatibility with existing uses -- both variables >> do exactly what they used to when set to t. >> >> commit: >> http://github.com/amluto/org-mode/commit/afa59fc91630bcffe388228566aa0137d1b2e7fd >> topic: http://github.com/amluto/org-mode/tree/agenda-todo-improvements >> git URL: g...@github.com:amluto/org-mode.git agenda-todo-improvements >> >> Do you like this patch? And do I need to submit a copyright assignment? > > I like the patch. I have changed it a bit, and therefore I > guess I can accept it for now without. Still - if you don't mind, please > get an assignment just in case you are going to submit more patches. Great! For the record, Łukasz Stelmach (lukasz.stelm...@iem.pw.edu.pl) inspired this patch -- he had an earlier patch that did something similar, although I didn't use any of his code. A couple thoughts, though: s/applie/applies org-agenda-todo-ignore-scheduled = all isn't documented. Maybe the test could be: "all or tDon't show any scheduled entries in the global todo list." (with the appropriate number of spaces) --Andy ___ 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
Re: [Orgmode] [PATCH] Make org-agenda-todo-ignore-* more flexible
On Mon, Feb 15, 2010 at 1:56 AM, Carsten Dominik wrote: > > On Feb 14, 2010, at 11:37 PM, Andrew Lutomirski wrote: >> >> org-agenda-todo-ignore-scheduled = all isn't documented. > > Yes it is. Whoops, I read your first commit but not your second. --Andy ___ 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
Re: [Orgmode] Creating ditaa diagrams
I do most of the work in artist mode, with the line-drawing feature: I love that it's C-c C-c to switch back to the native org-mode. To add arrows and make lines dashed, I switch to picture-mode or just use overwrite. On Sat, Feb 27, 2010 at 8:20 AM, Nathan Neff wrote: > While researching org-babel (wow, wish I'd looked @ it earlier) > I found the cool ditaa functionality. > > I experimented for a couple of hours with Emacs' picture mode and > artist mode, and wanted to get advice/feedback from everyone > on how they draw their ascii diagrams. > > Any advice? > > Thanks, > --Nate > > ___ > 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 > > ___ 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
Re: [Orgmode] [ANN] org-mime -- using orgmode to send html mail?
This looks great. However, I get an error on my test mail: This is should be HTML mode. ~foo~ =bar= _baz_ | Table | A | | 1 | 2 | On calling org-mime-htmlize Debugger entered--Lisp error: (wrong-type-argument stringp nil) string-match(nil #("This is should be HTML mode." 0 28 (fontified t))) byte-code("\304\211\305\n\"\203A org-html-handle-time-stamps(#("This is should be HTML mode." 0 28 (fontified t))) byte-code("\203 org-export-as-html(nil nil nil string t) (let nil (org-export-as-html nil nil nil (quote string) t)) eval((let nil (org-export-as-html nil nil nil (quote string) t))) (progn (insert org-mime-default-header) (insert body) (write-file tmp-file) (eval (list ... org-local-vars ...))) (unwind-protect (progn (insert org-mime-default-header) (insert body) (write-file tmp-file) (eval ...)) (and (buffer-name temp-buffer) (kill-buffer temp-buffer))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn ... ... ... ...) (and ... ...))) (with-current-buffer temp-buffer (unwind-protect (progn ... ... ... ...) (and ... ...))) (let ((temp-buffer ...)) (with-current-buffer temp-buffer (unwind-protect ... ...))) (with-temp-buffer (insert org-mime-default-header) (insert body) (write-file tmp-file) (eval (list ... org-local-vars ...))) (save-excursion (with-temp-buffer (insert org-mime-default-header) (insert body) (write-file tmp-file) (eval ...))) org-mime-org-export("html" #("\nThis is should be HTML mode.\n\n~foo~\n=bar=\n_baz_\n\n| Table | A |\n| 1 | 2 | \n\n-- \n" 0 1 (fontified t) 1 42 (fontified t) 42 43 (fontified t) 43 44 (article-type emphasis fontified t) 44 47 (fontified t) 47 48 (article-type emphasis fontified t) 48 50 (fontified t) 50 63 (fontified t face (gnus-cite-1 message-cited-text)) 63 64 (fontified t) 64 78 (fontified t face (gnus-cite-1 message-cited-text)) 78 79 (fontified t rear-nonsticky t) 79 80 (fontified t) 80 84 (fontified t)) "/tmp/mail2522NRw") (org-mime-replace-images (org-mime-org-export "html" raw-body tmp-file) tmp-file) (let* ((region-p ...) (html-start ...) (html-end ...) (raw-body ...) (tmp-file ...) (body ...) (org-export-skip-text-before-1st-heading nil) (org-export-htmlize-output-type ...) (org-export-preserve-breaks org-mime-preserve-breaks) (html-and-images ...) (html-images ...) (html ...)) (delete-region html-start html-end) (save-excursion (goto-char html-start) (insert ... ...))) org-mime-htmlize(nil) On Fri, Apr 9, 2010 at 12:41 PM, Eric Schulte wrote: > Announcing the addition of org-mime to the contrib directory of Org-mode > > this allows sending HTML email using org-mode including... > > >- *tables* colname onecolname two 11 24 39 >- *inline images* including latex equations [image: $f(n) = n + >\frac{1}{n} \int_{0}^{n}{d_x f(x) + f(n - x)}$] and the results of >ditaa blocks, etc… > > [image: blue.png] > >- *blockquotes* > >HTML e-mail is the use of a subset of HTML (often ill-defined) to >provide formatting and semantic markup capabilities in e-mail that are not >available with plain text. – wikipedia > > - fontified *code blocks* (shown below) >- and *HTML character* conversion, like ∀ character c s.t. ∃ h ∈ *HTML >characters* and c ≡ h, org-html-export of c results in h > > > > The original org-mode formatted plain text is included as a text/plain > mime alternative to the generated html. > > Below find the org-mime export of the org-mime worg page which will be > available at http://orgmode.org/worg/org-contrib/org-mime.php. > > Best -- Eric > > General > > org-mime can be used to send HTML email using Org-mode HTML export. > > This approximates a WYSiWYG HTML mail editor from within Emacs, and can be > useful for sending tables, notified source code, and inline images in email. > > How to use it > Setup > > org-mime exposes two functions > `org-mime-htmlize' can be called from within a mail composition buffer to > export either the entire buffer or just the active region to html, and embed > the results into the buffer as a text/html mime section. > > org-mime-htmlize is an interactive Lisp function in `org-mime.el'. > > (org-mime-htmlize ARG) > > Export a portion of an email body composed using `mml-mode' to > html using `org-mode'. If called with an active region only > export that region, otherwise export the entire body. > > `org-mime-org-buffer-htmlize' can be called from within an Org-mode > buffer to export either the whole buffer or the narrowed subtree or active > region to HTML, and open a new email buffer including the resulting HTML > content as an embedded mime section. > > org-mime-org-buffer-htmlize is an interactive Lisp function in > `org-mime.el'. > > (org-mime-org-buffer-htmlize) > > Export the current org-mode buffer to HTML using > `org-export-as-html' and package the results into an email > handling with appropriate MIME encoding. > > The following key bindings are suggested, which bind the C-c M-o key >
Re: [Orgmode] [ANN] org-mime -- using orgmode to send html mail?
Thanks for the response. I upgraded, now I get a Debugger entered--Lisp error: (wrong-type-argument arrayp t) substring(t 33) (progn (insert org-mime-default-header) (insert body) (write-file tmp-file) (org-load-modules-maybe) (unless org-local-vars (setq org-local-vars ...)) (substring (eval ...) (if ... ... 0))) (unwind-protect (progn (insert org-mime-default-header) (insert body) (write-file tmp-file) (org-load-modules-maybe) (unless org-local-vars ...) (substring ... ...)) (and (buffer-name temp-buffer) (kill-buffer temp-buffer))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn ... ... ... ... ... ...) (and ... ...))) (with-current-buffer temp-buffer (unwind-protect (progn ... ... ... ... ... ...) (and ... ...))) (let ((temp-buffer ...)) (with-current-buffer temp-buffer (unwind-protect ... ...))) (with-temp-buffer (insert org-mime-default-header) (insert body) (write-file tmp-file) (org-load-modules-maybe) (unless org-local-vars (setq org-local-vars ...)) (substring (eval ...) (if ... ... 0))) (save-excursion (with-temp-buffer (insert org-mime-default-header) (insert body) (write-file tmp-file) (org-load-modules-maybe) (unless org-local-vars ...) (substring ... ...))) org-mime-org-export("org" #("\nHTML test\n\n~foo~\n=bar=\n_baz_\n\n| 1 | 2 |\n| a | b |\n" 0 1 (fontified t) 1 11 (fontified t) 11 12 (fontified t) 12 18 (fontified t) 18 24 (fontified t) 24 30 (fontified t) 30 31 (fontified t) 31 40 (fontified t face (gnus-cite-1 message-cited-text)) 40 41 (fontified t) 41 50 (fontified t face (gnus-cite-1 message-cited-text)) 50 51 (fontified t)) "/tmp/mail2522ZvL") (let* ((region-p ...) (html-start ...) (html-end ...) (raw-body ...) (tmp-file ...) (body ...) (org-export-skip-text-before-1st-heading nil) (org-export-htmlize-output-type ...) (org-export-preserve-breaks org-mime-preserve-breaks) (html-and-images ...) (html-images ...) (html ...)) (delete-region html-start html-end) (save-excursion (goto-char html-start) (insert ... ...))) org-mime-htmlize(nil) call-interactively(org-mime-htmlize record nil) I tried this with orgstruct-mode off and on, but it was the same error either way. Earlier, before I got the latest version, I tried with orgstruct-mode on, and it successfull htmlized my mail. But, when I received it, the mail only contained the word "nil". On Mon, Apr 12, 2010 at 1:22 PM, Eric Schulte wrote: > Hi Andrew, > > Thanks for the report. My guess is that somehow the call to > org-export-as-html is erroring out because some org-mode variables > aren't being set, maybe you don't have orgstruct-mode as a minor-mode in > your email composition -- not that it's required, but that could be the > difference between our setups which is causing you to see the bug and > not me. > > I've changed the `org-mime-org-export' so it more closely mimics the > `org-run-like-in-org-mode' wrapping function, which should hopefully fix > this problem. Please let me know either way, and if the problem > persists we can try to figure out exactly which variable isn't being > initialized. > > Thanks for the report! -- Eric > > Andrew Hyatt writes: > > > This looks great. However, I get an error on my test mail: > > > > This is should be HTML mode. > > > > ~foo~ > > =bar= > > _baz_ > > > > | Table | A | > > | 1 | 2 | > > > > On calling org-mime-htmlize > > > > Debugger entered--Lisp error: (wrong-type-argument stringp nil) > > string-match(nil #("This is should be HTML mode." 0 28 (fontified t))) > > byte-code("\304\211. \305\n \"\203A > > org-html-handle-time-stamps(#("This is should be HTML mode." 0 28 > > (fontified t))) > > byte-code(" \203. > > org-export-as-html(nil nil nil string t) > > (let nil (org-export-as-html nil nil nil (quote string) t)) > > eval((let nil (org-export-as-html nil nil nil (quote string) t))) > > (progn (insert org-mime-default-header) (insert body) (write-file > > tmp-file) (eval (list ... org-local-vars ...))) > > (unwind-protect (progn (insert org-mime-default-header) (insert body) > > (write-file tmp-file) (eval ...)) (and (buffer-name temp-buffer) > > (kill-buffer temp-buffer))) > > (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn > ... > > ... ... ...) (and ... ...))) > > (with-current-buffer temp-buffer (unwind-protect (progn ... ... ... > ...) > > (and ... ...))) > > (let ((temp-buffer ...)) (with-current-buffer temp-buffer > (unwind-protect > > ... ...))) > > (with-temp-buffer (insert org-mime-default-header) (insert body) > > (write-file tmp-file) (eval (list ... org-local-vars ...))) > > (save-excu
Re: [Orgmode] [ANN] org-mime -- using orgmode to send html mail?
I do get the same result you do. Hopefully, I'll have some time tomorrow to look into the issue. RIght now, though, my problem is not the nil, but the error I reported in my previous email. On Tue, Apr 13, 2010 at 8:57 PM, Eric Schulte wrote: > So, for some reason the `org-mime-org-export' helper function is > returning nil on your (and Eric's) machines. Could you try evaluating > (C-M-x) the following in your *scratch* buffer? > > (insert (org-mime-org-export "html" "- first > - second > - third" (make-temp-file "quick-test"))) > > When I execute the above it inserts the following into the scratch > buffer > > > > first > > > second > > > third > > > > If instead you get an error, or it inserts nil, then it means that our > systems are somehow different with respect to that function, which is a > slight alteration of `org-run-like-in-org-mode'. > > At that point you could try using something like > > (org-run-like-in-org-mode 'org-export-as-html) > > to export a non-html buffer to html, or you could also try starting up > Emacs with the -Q option, then loading org-mime.el, opening an org-mode > file, and calling org-mime-org-buffer-htmlize, and sending an email to > yourself. > > Sorry I can't be of more help, I'm really mystified as to how this > function could be returning nil. > > Best -- Eric > > Andrew Hyatt writes: > > > Thanks for the response. I upgraded, now I get a > > > > Debugger entered--Lisp error: (wrong-type-argument arrayp t) > > substring(t 33) > > (progn (insert org-mime-default-header) (insert body) (write-file > tmp-file) > > (org-load-modules-maybe) (unless org-local-vars (setq org-local-vars > ...)) > > (substring (eval ...) (if ... ... 0))) > > (unwind-protect (progn (insert org-mime-default-header) (insert body) > > (write-file tmp-file) (org-load-modules-maybe) (unless org-local-vars > ...) > > (substring ... ...)) (and (buffer-name temp-buffer) (kill-buffer > > temp-buffer))) > > (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn ... > > ... ... ... ... ...) (and ... ...))) > > (with-current-buffer temp-buffer (unwind-protect (progn ... ... ... ... > ... > > ...) (and ... ...))) > > (let ((temp-buffer ...)) (with-current-buffer temp-buffer > (unwind-protect > > ... ...))) > > (with-temp-buffer (insert org-mime-default-header) (insert body) > > (write-file tmp-file) (org-load-modules-maybe) (unless org-local-vars > (setq > > org-local-vars ...)) (substring (eval ...) (if ... ... 0))) > > (save-excursion (with-temp-buffer (insert org-mime-default-header) > (insert > > body) (write-file tmp-file) (org-load-modules-maybe) (unless > org-local-vars > > ...) (substring ... ...))) > > org-mime-org-export("org" #("\nHTML test\n\n~foo~\n=bar=\n_baz_\n\n| 1 | > 2 > > |\n| a | b |\n" 0 1 (fontified t) 1 11 (fontified t) 11 12 (fontified t) > 12 > > 18 (fontified t) 18 24 (fontified t) 24 30 (fontified t) 30 31 (fontified > t) > > 31 40 (fontified t face (gnus-cite-1 message-cited-text)) 40 41 > (fontified > > t) 41 50 (fontified t face (gnus-cite-1 message-cited-text)) 50 51 > > (fontified t)) "/tmp/mail2522ZvL") > > (let* ((region-p ...) (html-start ...) (html-end ...) (raw-body ...) > > (tmp-file ...) (body ...) (org-export-skip-text-before-1st-heading nil) > > (org-export-htmlize-output-type ...) (org-export-preserve-breaks > > org-mime-preserve-breaks) (html-and-images ...) (html-images ...) (html > > ...)) (delete-region html-start html-end) (save-excursion (goto-char > > html-start) (insert ... ...))) > > org-mime-htmlize(nil) > > call-interactively(org-mime-htmlize record nil) > > > > I tried this with orgstruct-mode off and on, but it was the same error > > either way. Earlier, before I got the latest version, I tried with > > orgstruct-mode on, and it successfull htmlized my mail. But, when I > received > > it, the mail only contained the word "nil". > > > > On Mon, Apr 12, 2010 at 1:22 PM, Eric Schulte >wrote: > > > >> Hi Andrew, > >> > >> Thanks for the report. My guess is that somehow the call to > >> org-export-as-html is erroring out because some org-mode variables > >> aren't being set, maybe you don't have orgstruct-mode as a minor-mode in > >> your email composition -- not that it's required, but that could be the > >> difference between our setups which is causing you to see the bug and > >> not me. &g
Re: [Orgmode] [ANN] org-mime -- using orgmode to send html mail?
Thanks! I finally got it to work. I actually did have the latest code, but my issue was that when I upgraded to the new org, I forgot to byte-compile before I did M-x org-reload. After I got your latest code, it all works now. I'm looking forward to using it! On Wed, Apr 14, 2010 at 10:59 AM, Eric Schulte wrote: > Hi Andrew, > > I started my emacs with the -Q option, and to my surprise I got the same > error that you have described. I've been able to hunt down the source > of this problem, and it is an old version of org-export-as-org, which > means that you are not loading the latest version of the core org-mode, > but rather the version distributed with Emacs. > > This is what happened to me when I started with the -Q option and simple > required org-install without first adding the path to the newer version > of org-mode to my load path. > > An easy way to verify that this is the case is to call describe-function > with C-h f org-export-as-org, then jump to the source-code of the > function by pressing enter on the linked function name, and jumping down > to the last 5 lines of the function definition. If they don't look like > > > (if (equal to-buffer 'string) > (progn (setq str-ret (buffer-string)) > (kill-buffer (current-buffer)) > str-ret) > (kill-buffer (current-buffer))) > > > > then you are still using an old version of Org-mode. Hopefully once you > are sync'd to the head of the org-mode repository this error will be > fixed. > > Hope this helps, Best -- Eric > > Andrew Hyatt writes: > > > I do get the same result you do. Hopefully, I'll have some time tomorrow > to > > look into the issue. RIght now, though, my problem is not the nil, but > the > > error I reported in my previous email. > > > > On Tue, Apr 13, 2010 at 8:57 PM, Eric Schulte >wrote: > > > >> So, for some reason the `org-mime-org-export' helper function is > >> returning nil on your (and Eric's) machines. Could you try evaluating > >> (C-M-x) the following in your *scratch* buffer? > >> > >> (insert (org-mime-org-export "html" "- first > >> - second > >> - third" (make-temp-file "quick-test"))) > >> > >> When I execute the above it inserts the following into the scratch > >> buffer > >> > >> > >> > >> first > >> > >> > >> second > >> > >> > >> third > >> > >> > >> > >> If instead you get an error, or it inserts nil, then it means that our > >> systems are somehow different with respect to that function, which is a > >> slight alteration of `org-run-like-in-org-mode'. > >> > >> At that point you could try using something like > >> > >> (org-run-like-in-org-mode 'org-export-as-html) > >> > >> to export a non-html buffer to html, or you could also try starting up > >> Emacs with the -Q option, then loading org-mime.el, opening an org-mode > >> file, and calling org-mime-org-buffer-htmlize, and sending an email to > >> yourself. > >> > >> Sorry I can't be of more help, I'm really mystified as to how this > >> function could be returning nil. > >> > >> Best -- Eric > >> > >> Andrew Hyatt writes: > >> > >> > Thanks for the response. I upgraded, now I get a > >> > > >> > Debugger entered--Lisp error: (wrong-type-argument arrayp t) > >> > substring(t 33) > >> > (progn (insert org-mime-default-header) (insert body) (write-file > >> tmp-file) > >> > (org-load-modules-maybe) (unless org-local-vars (setq org-local-vars > >> ...)) > >> > (substring (eval ...) (if ... ... 0))) > >> > (unwind-protect (progn (insert org-mime-default-header) (insert body) > >> > (write-file tmp-file) (org-load-modules-maybe) (unless org-local-vars > >> ...) > >> > (substring ... ...)) (and (buffer-name temp-buffer) (kill-buffer > >> > temp-buffer))) > >> > (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn > ... > >> > ... ... ... ... ...) (and ... ...))) > >> > (with-current-buffer temp-buffer (unwind-protect (progn ... ... ... > ... > >> ... > >> > ...) (and ... ...))) > >> > (let ((temp-buffer ...)) (with-current-buffer temp-buffer > >> (unwind-protect > >> > ... ...))) > >> > (with-temp
[Orgmode] Easter without using org-agenda-holidays?
I'm Canadian and have made an .org file including all the major Canadian holidays in it except for the Easter holidays. Is there a way to include it without using org-agenda-holidays? I'm not interested in knowing when it's Columbus Day, and more importantly, the American Thanksgiving is conflicts with the Canadian Thanksgiving (they're not even in the same month!) ___ 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
Re: [Orgmode] Poll: Who is using these commands
On Mon, May 10, 2010 at 4:33 PM, Carsten Dominik wrote: > > On May 9, 2010, at 12:03 AM, Scott Randby wrote: > > On 05/08/2010 04:22 PM, Friedrich Delgado Friedrichs wrote: >> >>> Hi! >>> Carsten Dominik schrieb: >>> >>>> I am wondering: >>>> >>>> How many of your are using these keys >>>> >>>> C-c C-f >>>> C-c C-b >>>> C-c C-n >>>> C-c C-p >>>> >>> >>> Never. I always use the speed commands since they became available. >>> >> >> The problem I have with speed commands is that, according to the manual, >> they only work "when the cursor is at the beginning of a headline." I need >> commands that work when the cursor is anywhere on the headline. >> > > How about if C-M-a went back to the beginning of the heading and then you > use speed commands? Would that be an alternative, or is that one command to > much? > > - Carsten This makes a great deal of sense to me. I am frequently frustrated when locating the start or end of a tree: how to reliably place point so that M- creates a new tree of the desired level? I suggest the following postconditions: C-M-a guarantees that speed keys are applicable, and C-M-e guarantees that M- is applicable. Andrew ___ 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
Re: [Orgmode] Poll: Who is using these commands
On Sat, May 8, 2010 at 7:14 PM, Carsten Dominik wrote: > I am wondering: > > How many of your are using these keys > > C-c C-f > C-c C-b > C-c C-n > C-c C-p > > for navigation through the outline? These are first class keys, > and I would have good uses for these keys if most people don't actually use > them. > I found their action difficult to follow. Compare C-left. In most environments, if the cursor is within a word, it first moves to the start of the word, and subsequently moves to the preceding word. C-c C-b breaks this idiom. I found this so jarring that I gave up using these keys. regards Andrew ___ 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
Re: [Orgmode] why not auto-renumbering list ?
On 9/8/10 14:35 , "Nicolas Goaziou" wrote: [...] > Thinking about it, we could even lighten [...@start:xx] syntax by making > it [...@num]. It would also make more sense since it can be used > repeatedly in a list. Thus: > > 6. [...@6] I like > 28. [...@28] perfect numbered > 496. [...@496] lists This is the nicest syntax so far. I have a related but slightly off topic question that arose when setting up org versions of Danish course homepages. How do I get something like 2. kvartal (meaning 2nd quarter) on a line on its own that is *not* treated as a list (and thus renumbered on publication) ? Thanks for any help Andrew -- Andrew Swann sw...@imada.sdu.dk http://www.imada.sdu.dk/~swann Department of Mathematics and Computer Science, Tel +45 6550 2354 and CP3-Origins, University of Southern Denmark,Dept +45 6550 2387 Campusvej 55, DK-5230 Odense M, Denmark Fax +45 6550 2325 ___ 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
Re: [Orgmode] why not auto-renumbering list ?
On 10/8/10 11:46 , "Nicolas Goaziou" wrote: > Hello, > >>>>>> Andrew Swann writes: > >> I have a related but slightly off topic question that arose when setting up >> org versions of Danish course homepages. How do I get something like > >> 2. kvartal > >> (meaning 2nd quarter) on a line on its own that is *not* treated as a list >> (and thus renumbered on publication) ? > > You can set `org-plain-list-ordered-item-terminator' to ?). Thus, only > ordered lists with a parenthesis are allowed, and your line will not > be treated as a list item anymore. Many thanks for this suggestion. It is certainly useful. Is there a local solution that could be used just around this line? It would be nice if one could escape the period. Andrew -- Andrew Swann sw...@imada.sdu.dk http://www.imada.sdu.dk/~swann Department of Mathematics and Computer Science, Tel +45 6550 2354 and CP3-Origins, University of Southern Denmark,Dept +45 6550 2387 Campusvej 55, DK-5230 Odense M, Denmark Fax +45 6550 2325 ___ 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
Re: [Orgmode] why not auto-renumbering list ?
On 10/8/10 14:32 , "Nicolas Goaziou" wrote: >>>>>> Andrew Swann writes: > >> Many thanks for this suggestion. It is certainly useful. Is there a local >> solution that could be used just around this line? It would be nice if one >> could escape the period. > > Enforce numbering to 2 with [...@start:2]. It will still be treated as a > list, but it won't be renumbered. > > Otherwise, if this isn't at column 0, you can insert a non-breaking > space (C-q 240) somewhere in front of your item. Org will not > recognize a list, and it will be invisible when exporting. Aha! The C-q 240 non-breaking space is the key. With the 2. at column 0, I can put this immediately after the period and the text is treated as text rather than list item. Excellent. Many thanks Andrew -- Andrew Swann sw...@imada.sdu.dk http://www.imada.sdu.dk/~swann Department of Mathematics and Computer Science, Tel +45 6550 2354 and CP3-Origins, University of Southern Denmark,Dept +45 6550 2387 Campusvej 55, DK-5230 Odense M, Denmark Fax +45 6550 2325 ___ 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
Re: [O] do it today, or well, tomorrow
While we're talking about scheduling... one thing I'd love to see, but never figured out how to do, is to schedule a parent task, and have the subtasks all inherit that schedule. I think I've tried most obvious things, but schedules seem just not to be inherited. On Wed, Oct 12, 2011 at 1:12 PM, Carsten Dominik wrote: > > On 12.10.2011, at 18:08, Andrea Crotti wrote: > >> On 10/12/2011 04:55 PM, Carsten Dominik wrote: >>> >>> An alternative is to use the scheduling mechanism. >>> >>> * TODO My Task >>> SCHEDULED:<2011-10-12 Wed> >>> >>> This task will automatically be forwarded to the following day, until it is >>> done. >>> >>> - Carsten >>> >>> >> Fantastic! >> I only see the habit page on the manual now, but it has to be enabled, >> and the "SCHEDULED" setting has to be done by hand right? > > Use C-c C-s for this. All described in detail in the manual - take the time > to read it! > >> Maybe I should use a capture template for that? > > That is also a possibility, of course! > >> >> And it's not very clear how do I set an habit on a task, when I run >> org-habit-toggle-habits it opens me the agenda buffer, instead of doing >> something in >> the current task as I (wrongly) expected. > > Again, the manual does cover this. the toggle-habit function is for turning > them on and off in the agenda display. > > - Carsten > > > >
[O] [PATCH] Bug: org-ageda-bulk-mark-regexp bugs [7.7]
Emacs : GNU Emacs 23.1.1 (x86_64-pc-linux-gnu, GTK+ Version 2.20.1) of 2011-03-04 on allspice, modified by Debian Package: Org-mode version 7.7 I found a couple of bugs with org-agenda-bulk-mark-regexp: - it didn't work at all :) - once I fixed that, it didn't work for the empty regex (or, I guess, for other expressions that match the emptiness at the end of the buffer). The first problem was solved by initializing entries-marked as 0. The latter, by making sure there is text to match on before proceeding down the while loop. This patch is relative to HEAD as of 2011-10-17T13:46:48+ diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index 60e561c..bf03b68 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -8144,16 +8144,15 @@ This is a command that has to be installed in `calendar-mode-map'." (defun org-agenda-bulk-mark-regexp (regexp) "Mark entries match REGEXP." (interactive "sMark entries matching regexp: ") - (let ((entries-marked 0)) + (let (entries-marked) (save-excursion (goto-char (point-min)) (goto-char (next-single-property-change (point) 'txt)) - (while (and (re-search-forward regexp nil t) - (get-text-property (point) 'txt)) + (while (re-search-forward regexp nil t) (when (string-match regexp (get-text-property (point) 'txt)) (setq entries-marked (+ entries-marked 1)) (call-interactively 'org-agenda-bulk-mark -(if (zerop entries-marked) +(if (not entries-marked) (message "No entry matching this regexp." (defun org-agenda-bulk-unmark ()
[O] Archive to date-tree
Would anyone be interested in the ability to archive to the current date in date-tree instead of an archive file? I'm toying with the idea of implementing this, and I could send it in as a patch when it is done, or just leave it as a personal module if no one is particularly interested.
[O] [PATCH] Add the ability to archive to the datetree.
* org.el (org-archive-location): Add documentation on new datetree option. * org-archive.el (org-archive-subtree): Add special handling of datetree options to archive to datetree. --- lisp/org-archive.el | 21 + lisp/org.el |7 +++ 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/lisp/org-archive.el b/lisp/org-archive.el index 16c35cf..4df6f1e 100644 --- a/lisp/org-archive.el +++ b/lisp/org-archive.el @@ -213,13 +213,14 @@ this heading." (current-time))) category todo priority ltags itags atags ;; end of variables that will be used for saving context - location afile heading buffer level newfile-p infile-p visiting) + location afile heading buffer level newfile-p infile-p visiting + datetree-date) ;; Find the local archive location (setq location (org-get-local-archive-location) afile (org-extract-archive-file location) heading (org-extract-archive-heading location) - infile-p (equal file (abbreviate-file-name afile))) + infile-p (equal file (abbreviate-file-name (or afile "" (unless afile (error "Invalid `org-archive-location'")) @@ -230,6 +231,12 @@ this heading." (setq buffer (current-buffer))) (unless buffer (error "Cannot access file \"%s\"" afile)) + (when (string-match "\\`datetree/" heading) + ;; Replace with ***, to represent the 3 levels of headings the + ;; datetree has. + (setq heading (string-replace-match "\\`datetree/" heading "***")) + (setq datetree-date (org-date-to-gregorian +(or (org-entry-get nil "CLOSED" t) time (if (and (> (length heading) 0) (string-match "^\\*+" heading)) (setq level (match-end 0)) @@ -262,6 +269,9 @@ this heading." (goto-char (point-max)) (insert (format "\nArchived entries from file %s\n\n" (buffer-file-name this-buffer + (when datetree-date + (org-datetree-find-date-create datetree-date) + (org-narrow-to-subtree)) ;; Force the TODO keywords of the original buffer (let ((org-todo-line-regexp tr-org-todo-line-regexp) (org-todo-keywords-1 tr-org-todo-keywords-1) @@ -285,7 +295,8 @@ this heading." ;; Heading not found, just insert it at the end (goto-char (point-max)) (or (bolp) (insert "\n")) - (insert "\n" heading "\n") + ;; datetrees don't need to much spacing + (if datetree-date (insert heading) (insert "\n" heading "\n")) (end-of-line 0)) ;; Make the subtree visible (show-subtree) @@ -296,7 +307,8 @@ this heading." (org-end-of-subtree t)) (skip-chars-backward " \t\r\n") (and (looking-at "[ \t\r\n]*") -(replace-match "\n\n"))) +;; datetree archives don't need so much spacing. +(replace-match (if datetree-date "\n" "\n\n" ;; No specific heading, just go to end of file. (goto-char (point-max)) (insert "\n")) ;; Paste @@ -326,6 +338,7 @@ this heading." (setq n (concat "ARCHIVE_" (upcase (symbol-name e (org-entry-put (point) n v) + (widen) ;; Save and kill the buffer, if it is not the same buffer. (when (not (eq this-buffer buffer)) (save-buffer diff --git a/lisp/org.el b/lisp/org.el index 6ee3b4e..9c80c9c 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -4046,6 +4046,13 @@ Here are a few examples: Archive in file ./basement (relative path), as level 3 trees below the level 2 heading \"** Finished Tasks\". +\"~/org/datetree.org::datetree/* Finished Tasks\" +The \"datetree/\" string is special, signifiying to +archive items to the datetree. Items are placed in +either the CLOSED date of the item, or the current date +if there is no CLOSED date. The heading will be a +subentry to the current date. + You may set this option on a per-file basis by adding to the buffer a line like -- 1.7.3.1
Re: [O] [PATCH] Add the ability to archive to the datetree.
The documentation didn't go into any details about how to specify the org-archive-location, or what you could do with it, instead it just referred to the documentation of that variable. Still, now that you mention it, it seemed worthwhile to add something to the docs, so I did that. I'll send another version of the patch now. On Wed, Nov 9, 2011 at 6:22 AM, Bernt Hansen wrote: > Hi Andrew, > > I'm just eyeballing your patch and there's a typo in your last hunk - > see comment inline. > > Don't you also need to update the texinfo documentation for this > enhancement? > > -Bernt > > Andrew Hyatt writes: > >> * org.el (org-archive-location): Add documentation on new datetree >> option. >> * org-archive.el (org-archive-subtree): Add special handling >> of datetree options to archive to datetree. >> >> --- >> lisp/org-archive.el | 21 + >> lisp/org.el | 7 +++ >> 2 files changed, 24 insertions(+), 4 deletions(-) >> >> diff --git a/lisp/org-archive.el b/lisp/org-archive.el >> index 16c35cf..4df6f1e 100644 >> --- a/lisp/org-archive.el >> +++ b/lisp/org-archive.el >> @@ -213,13 +213,14 @@ this heading." >> (current-time))) >> category todo priority ltags itags atags >> ;; end of variables that will be used for saving context >> - location afile heading buffer level newfile-p infile-p visiting) >> + location afile heading buffer level newfile-p infile-p visiting >> + datetree-date) >> >> ;; Find the local archive location >> (setq location (org-get-local-archive-location) >> afile (org-extract-archive-file location) >> heading (org-extract-archive-heading location) >> - infile-p (equal file (abbreviate-file-name afile))) >> + infile-p (equal file (abbreviate-file-name (or afile "" >> (unless afile >> (error "Invalid `org-archive-location'")) >> >> @@ -230,6 +231,12 @@ this heading." >> (setq buffer (current-buffer))) >> (unless buffer >> (error "Cannot access file \"%s\"" afile)) >> + (when (string-match "\\`datetree/" heading) >> + ;; Replace with ***, to represent the 3 levels of headings the >> + ;; datetree has. >> + (setq heading (string-replace-match "\\`datetree/" heading "***")) >> + (setq datetree-date (org-date-to-gregorian >> + (or (org-entry-get nil "CLOSED" t) time >> (if (and (> (length heading) 0) >> (string-match "^\\*+" heading)) >> (setq level (match-end 0)) >> @@ -262,6 +269,9 @@ this heading." >> (goto-char (point-max)) >> (insert (format "\nArchived entries from file %s\n\n" >> (buffer-file-name this-buffer >> + (when datetree-date >> + (org-datetree-find-date-create datetree-date) >> + (org-narrow-to-subtree)) >> ;; Force the TODO keywords of the original buffer >> (let ((org-todo-line-regexp tr-org-todo-line-regexp) >> (org-todo-keywords-1 tr-org-todo-keywords-1) >> @@ -285,7 +295,8 @@ this heading." >> ;; Heading not found, just insert it at the end >> (goto-char (point-max)) >> (or (bolp) (insert "\n")) >> - (insert "\n" heading "\n") >> + ;; datetrees don't need to much spacing >> + (if datetree-date (insert heading) (insert "\n" heading >> "\n")) >> (end-of-line 0)) >> ;; Make the subtree visible >> (show-subtree) >> @@ -296,7 +307,8 @@ this heading." >> (org-end-of-subtree t)) >> (skip-chars-backward " \t\r\n") >> (and (looking-at "[ \t\r\n]*") >> - (replace-match "\n\n"))) >> + ;; datetree archives don't need so much spacing. >> + (replace-match (if datetree-date "\n" "\n\n" >> ;; No specific heading, just go to end of file. >> (goto-char (point-max)) (insert "\n")) >> ;; Paste >> @@ -326,6 +338,7 @@ this heading." >> (setq n (concat "ARCHIVE_" (upcase (symbol-name e >> (org-
[O] [PATCH] Add the ability to archive to the datetree.
* org.el (org-archive-location): Add documentation on new datetree option. * org-archive.el (org-archive-subtree): Add special handling of datetree options to archive to datetree. --- doc/org.texi| 22 +- lisp/org-archive.el | 21 + lisp/org.el |7 +++ 3 files changed, 37 insertions(+), 13 deletions(-) diff --git a/doc/org.texi b/doc/org.texi index 143b184..128f966 100644 --- a/doc/org.texi +++ b/doc/org.texi @@ -6854,16 +6854,20 @@ is invoked, the level 1 trees will be checked. @cindex archive locations The default archive location is a file in the same directory as the current file, with the name derived by appending @file{_archive} to the -current file name. For information and examples on how to change this, +current file name. You can also choose what heading to file archived +items under, with the possibility to add them to a datetree in a file. +For information and examples on how to specify the file and the heading, see the documentation string of the variable -@code{org-archive-location}. There is also an in-buffer option for -setting this variable, for example@footnote{For backward compatibility, -the following also works: If there are several such lines in a file, -each specifies the archive location for the text below it. The first -such line also applies to any text before its definition. However, -using this method is @emph{strongly} deprecated as it is incompatible -with the outline structure of the document. The correct method for -setting multiple archive locations in a buffer is using properties.}: +@code{org-archive-location}. + +There is also an in-buffer option for setting this variable, for +example@footnote{For backward compatibility, the following also works: +If there are several such lines in a file, each specifies the archive +location for the text below it. The first such line also applies to any +text before its definition. However, using this method is +@emph{strongly} deprecated as it is incompatible with the outline +structure of the document. The correct method for setting multiple +archive locations in a buffer is using properties.}: @cindex #+ARCHIVE @example diff --git a/lisp/org-archive.el b/lisp/org-archive.el index 16c35cf..35ef290 100644 --- a/lisp/org-archive.el +++ b/lisp/org-archive.el @@ -213,13 +213,14 @@ this heading." (current-time))) category todo priority ltags itags atags ;; end of variables that will be used for saving context - location afile heading buffer level newfile-p infile-p visiting) + location afile heading buffer level newfile-p infile-p visiting + datetree-date) ;; Find the local archive location (setq location (org-get-local-archive-location) afile (org-extract-archive-file location) heading (org-extract-archive-heading location) - infile-p (equal file (abbreviate-file-name afile))) + infile-p (equal file (abbreviate-file-name (or afile "" (unless afile (error "Invalid `org-archive-location'")) @@ -230,6 +231,12 @@ this heading." (setq buffer (current-buffer))) (unless buffer (error "Cannot access file \"%s\"" afile)) + (when (string-match "\\`datetree/" heading) + ;; Replace with ***, to represent the 3 levels of headings the + ;; datetree has. + (setq heading (string-replace-match "\\`datetree/" heading "***")) + (setq datetree-date (org-date-to-gregorian +(or (org-entry-get nil "CLOSED" t) time (if (and (> (length heading) 0) (string-match "^\\*+" heading)) (setq level (match-end 0)) @@ -262,6 +269,9 @@ this heading." (goto-char (point-max)) (insert (format "\nArchived entries from file %s\n\n" (buffer-file-name this-buffer + (when datetree-date + (org-datetree-find-date-create datetree-date) + (org-narrow-to-subtree)) ;; Force the TODO keywords of the original buffer (let ((org-todo-line-regexp tr-org-todo-line-regexp) (org-todo-keywords-1 tr-org-todo-keywords-1) @@ -285,7 +295,8 @@ this heading." ;; Heading not found, just insert it at the end (goto-char (point-max)) (or (bolp) (insert "\n")) - (insert "\n" heading "\n") + ;; datetrees don't need too much spacing + (if datetree-date (insert heading) (insert "\n" heading "\n")) (end-of-line 0)) ;; Make the subtree visible (show-subtree) @@ -296,7 +307,8 @@ this heading." (org-end-of-subtree t)) (skip-chars-backward " \t\r\n") (and (looking-at "[ \t\r\n]*") -(replace-match "\n\n"))) +;; datetree archives don't need s
Re: [O] [OT]: Search for missing :END:
My guess is that it's the 18720th byte of the file. To get there, go to the start of your buffer and type M-x goto-char 18720 On Mon, Nov 21, 2011 at 11:27 PM, Markus Heller wrote: > Nick Dokos writes: > >> Markus Heller wrote: >> >>> Hello all, >>> >>> I have an OT request that can hopefully be answered by emacs gurus in >>> less than a minute: >>> >>> I'm looking for an emacs search expression that finds :PROPERTIES: >>> *without* a matching :END: ... >>> >> >> If you mean a regexp, you are wasting your time[fn:1]. Regexps are >> powerful, but their range of applicability is limited to regular >> languages and even then, you have to worry about their efficiency. The >> above *is* a regular language: if P stands for :PROPERTIES: and E stands >> for :END:, then the regexp is >> >> ([^EP]*P[^EP]*E)* >> >> In words, the stuff inside the parens says: 0 or more "other" things >> (non-P and non-E), followed by a P, followed by 0 or more "other" >> things, followed by an E. You can then have 0 or more of the >> parenthesized things. This will succeed on well formed "sentences" and >> fail on others. But it might have to backtrack over the inner [^EP]* >> matches and then the outer matches, and rescan arbitrarily long >> stretches, which in the worst case, can turn your search into an >> exponentially slow descent into the abyss. You might be able to write >> non-greedy regexps that might behave better in this case. In most cases, >> you'd end up with a horrendous-looking regexp: good luck trying to >> understand it next week. That's my biggest problem with complicated regexps. >> >> However, a change of tool will simplify the problem enormously. E.g. here's >> a simple algorithm that can be used for this kind of problem: start a >> nesting depth at 0 - when you see a P, increment the nesting depth by 1; >> when you see an E, decrement it by 1. If the nesting depth ever becomes >> something other than 0 or 1, you got a problem - also, if at EOF, the >> nesting depth is not 0, you got a problem. Easy variations of this will >> check well-formedness even when nesting *is* allowed. >> >> You can easily write such a program in any language you are familiar >> with (it does not have to be elisp, although you *can* write it in >> elisp - personally, I'd use awk). >> >> But assuming that you are getting some error from org, you don't know >> where the problem is and you are trying to find it, it will be simpler >> to just use egrep: >> >> grep -E -n ':PROPERTIES:|:END:' foo.org >> >> will filter out the relevant lines, so all you have to do is scan the >> output by eye and spot any irregularity (consecutive :PROPERTIES: or >> consecutive :END: lines). Even if you have hundreds of them, that's >> *easy* for humans to do.[fn:2] >> >> Or, if you prefer, you can write trivial validation programs to operate >> on the output, e.g.: >> >> grep -E -n ':PROPERTIES:|:END:' foo.org | tee foo.out | grep PROP | >> wc -l >> grep END foo.out | wc -l >> >> (the counts 'd better be the same). >> >> or >> >> grep -E -n ':PROPERTIES:|:END:' foo.org | foo.awk >> >> where foo.awk implements the nesting depth algorithm above - something >> like this: >> >> #! /bin/bash >> >> awk ' >> BEGIN { d = 0;} >> /:PROPERTIES:/ { d++; if (d > 1) { print $1, $d; exit; }} >> /:END:/ { d--; if (d < 0) { print $1, $d; exit; }} >> END { if (d != 0) { print $1, $d; }}' >> >> >> Even on Windoze, you can probably do all this stuff with cygwin. > > Hi Nick, > > thanks for this informative reply. > > Unfortunately, I cannot install cygwin on my work computer. I'll have > to figure something else out ... > > AS for an example, I'm in one of my org files and I do C-TAB and get the > following error: > > OVERVIEW > CONTENTS...done > SHOW ALL > if: :END: line missing at position 18720 > Quit > Mark set > > Where is position 18720? I apologize if this is a stupid question, but > I can't seem to figure this out ... > > Thanks again > Markus > > >
Re: [Orgmode] OrgCamp in NYC?
I'd love to attend a NYC one, and can probably arrange for hosting in a nice space in Manhattan as well. On Sat, Jan 22, 2011 at 6:23 PM, Bradley M. Kuhn wrote: > Bastien wrote on Thursday the 6th: >> "OrgCamps are informal events where people gather IRL to contribute >> to Org by discussing how they use it and by doing contributions to >> the code, the manuals and the online tutorials." > > This is an excellent idea. I hope today's OrgCamp in Paris went well -- > I wish I could have been there. :) > > Meanwhile, I can offer space in NYC (just a conference room) in NYC that > can host up to 10 people. It's in Brooklyn, not too far from Manhattan, > near transit lines. > > Would anyone in NYC have an interest in an OrgCamp? I don't have time > to organize it, but I can coordinate logistics for the venue if someone > else would be willing to do the rest. > > It looks like Paris got 17 people by the end. We'd have to be about > half that for the space I have available, but I'm willing if others are. > -- > -- bkuhn > > ___ > 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 > ___ 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
[O] [GSoC] Merge Driver progress and conflict markers
Hello list, Another small progress update on the org-merge-driver: The merge driver at this point has the ability to detect the insertion and deletion of headings, and should correctly cause updates to the tree structure to conflict. Here is a short example of the merge driver at work: Ancestor File: * Gardening ** Spring Planting * Rocket Cars ** Speed Concerns *** How to go faster * Origami - How do you fold a crane? Local Revision: * Gardening - Buy a sprinkler. * Rocket Cars - rocket cars are cool. ** Speed Concerns - I'm not going fast enough. *** How to go faster *** Bigger engines Remote Revision: * Gardening ** Spring Planting * Rocket Cars - rocket cars are dangerous. ** Safety Concerns - Look into wearing a helmet. * Origami - Cranes are easy. Output File: * Gardening - Buy a sprinkler. * Rocket Cars >>> - rocket cars are cool. === - rocket cars are dangerous. <<< ** Safety Concerns - Look into wearing a helmet. >>> ** Speed Concerns - I'm not going fast enough. *** Bigger engines === <<< >>> === * Origami - Cranes are easy. <<< Currently, I am working on global matching, which is my name for detecting element's movement across the document. I need some input on the display of conflicts: Right now I am trying to devise the output to be as informative and useful as possible. There are a number of issues to consider: 1. Providing the most amount of information possible. This means including descriptive information in the conflict markers, and never combining the conflict markers of side-by-side conflicts. There is also a risk of printing too much, and cluttering the output. 2. Nested conflict markers. With global matching implemented in the near future, the merge driver may be printing nested conflicts. This is because it is possible for conflicts to be inside other conflict boundaries. It will be important to consider the desired behavior and output of the merge driver when merging elements whose parents have conflicted. 3. Compatibility with org-mode and traditional diff tools. Some merge tools may simply fail with nested conflicts. 4. Visual queues. Nested conflict markers could be indented according to their conflict level to help see where they line up. This has the trade off of abandoning the traditional style, and may be initially confusing. Following is a simplified example of nested conflict markers. In the example, each heading is unique and we assume their movement may be tracked. In the actual merge driver, IDs would be used to implement tracking of this nature. EXAMPLE 2 Ancestor: * Heading 1 * Heading 2 * Heading 3 ** Heading A ** heading B Local Revision: * Heading 1 ** DONE Heading A ** Heading B * Heading 2 * Heading 3 Remote Revision: * Heading 2 ** TODO Heading A * Heading 3 Output File: >>> local: updated children * Heading 1 >>> local: content update ** DONE Heading A === ** TODO Heading A <<< remote: content update ** Heading B === <<< remote: deleted * Heading 2 >>> local: moved === >>> local: content update ** DONE Heading A === ** TODO Heading A <<< remote: content update <<< remote: moved * Heading 3 ## output, non-nested conflicts >>> local * Heading 1 ** DONE Heading A ** Heading B === <<< remote * Heading 2 >>> local: moved === ** TODO Heading A <<< * Heading 3 For the moment, I am partial to using nested conflict markers. Nested markers display as much information as possible, and allow the merger to do as much work as possible towards merging the final document. The drawback of nested markers is that they may be a major departure from diff output. Any kind of brainstorming, interesting examples, or opinions would be a huge help to me. Thanks, Andrew
Re: [O] Use nomencl package with latex exporter?
Hello Johan, On Wed, Aug 8, 2012 at 2:40 AM, Johan Ekh wrote: > Thanks, > can you give some hints on how to customize it, or point me to some > information? To have makeindex run, try evaluating the following elisp: (setq org-latex-to-pdf-process '("pdflatex -interaction nonstopmode %b" "bibtex %b" "makeindex %b.nlo -s nomencl.ist -o %b.nls" "pdflatex -interaction nonstopmode %b" "pdflatex -interaction nonstopmode %b")) Alternatively, you can customize the variable org-latex-to-pdf-process as Nick suggests, to accomplish the same thing. Use the following command: M-x customize-variable org-latex-to-pdf-process More documentation is available through customize, and there is lots of great information available here: http://orgmode.org/worg/org-tutorials/org-latex-export.html Hope this helps, Andrew > > /Johan > > > On Mon, Aug 6, 2012 at 9:35 PM, Nick Dokos wrote: >> >> Johan Ekh wrote: >> >> > Thank you Myles, >> > I'm not that comfortable with cmake but I will give your solution a try >> > and report My milage. >> > >> > / Johan >> > >> > Sent from my iPad >> > >> > On 6 aug 2012, at 14:14, Myles English wrote: >> > >> > > >> > > Johan Ekh writes: >> > > >> > >> Hi all, >> > >> I use the default latex exporter in org-mode v7.8 to write documents >> > >> using >> > >> a custom latex class which is built on "article". >> > >> I would like to use the "nomencl" latex package if possible. >> > > >> > >> From the shell I usually run something like >> > >> >> > >> makeindex filename.nlo -s nomencl.ist -o filename.nls >> > >> >> > >> followed by latex or pdflatex, but how can I get the exporter to do >> > >> this? >> >> Customize the variable org-latex-to-pdf-process appropriately. >> >> Nick >> >> > > I don't know the answer to your question, but when I came across the >> > > same problem, I used a makefile-like solution because I felt that the >> > > building process was becoming sufficiently complicated to warrant >> > > using >> > > a specialised tool. If you are comfortable with CMake already it may >> > > be >> > > worth a look. Have a look for "UseLatex.cmake". >> > > >> > > Basically you get emacs to export the .tex file from the .org file: >> > > >> > > add_custom_command( >> > > OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/mypaper.tex >> > > COMMAND emacs --batch >> > >--visit=${CMAKE_CURRENT_BINARY_DIR}/mypaper.org >> > >--load=/home/me/myfuncs.el >> > >--funcall org-export-as-latex-batch >> > > DEPENDS orgfile >> > > COMMENT "Exporting orgmode file to LaTeX using emacs" >> > > ) >> > > >> > > And then bibtex and nomenclature are asked to do their stuff, and a >> > > pdf >> > > is produced, with something like this directive: >> > > >> > > add_latex_document( mypaper.tex >> > > INPUTS tex/bibliography.tex >> > > texlib/mystyle.sty >> > > BIBFILES texlib/mylibrary.bib >> > > DEFAULT_PDF >> > > USE_NOMENCL >> > > ) >> > > >> > > I also get it to generate all my R plots. Other advantages are that >> > > you >> > > get an out-of-source build that is isolated (to some extent) in its >> > > own >> > > directory. And I think it is easier to diagnose the problems when >> > > things go wrong, better than staring at an elisp backtrace. Now if >> > > org >> > > would write my CMakeList.txt for me, that would be a fine thing. >> > > >> > > Myles >> > >> >> >> >
Re: [O] starting value for ordered lists?
Hi Matt, You have to start the text of the item with [@13]. Try: 13. [@13] this is the 13th item Sincerely, Andrew On Wed, Aug 8, 2012 at 2:24 PM, Matt Price wrote: > Hi, > > in the org manual (http://orgmode.org/manual/Plain-lists.html) i read that I > can start an ordered list at a particular number using an [@20] syntax: > > If you want a list to start with a different value (e.g. 20), start the text > of the item with [@20]4. Those constructs can be used in any item of the > list in order to enforce a particular numbering. > > I think I'm not understanding somehting though, as if I try this: > > [@13]. thirteenth item > > org doesn't seem to recognize the line as a list item. I'm running a pretty > recent org 7.8.11 from git. I'm sure I'm just reading the manual wrong -- > any hints? thanks > Matt > >
Re: [O] [babel, ess] How can I make S-RET to be multi-session friendly?
Hello All, Well, despite being relatively new to elisp, I've decided to take a crack at one of your problems. I'm not too sure what is causing the strange behaviour of the session property, but I have some thoughts on getting that one function working. Bear with me :-) It seems that for me, the inferior ess process is not being properly associated with the src edit buffer. It is being set correctly by org-babel-R-associate-session, and then being set a second time incorrectly by org-babel-edit-prep:R. Commenting out line 5 in org-babel-edit-prep:R seems to fix this issue, although I'm honestly not sure if or what it breaks. Everything seems ok for me, but ymmv. Heres the change: #+begin_src emacs-lisp (defun org-babel-edit-prep:R (info) (let ((session (cdr (assoc :session (nth 2 info) (when (and session (string-match "^\\*\\(.+?\\)\\*$" session)) (save-match-data (org-babel-R-initiate-session session nil)) ;;(setq ess-local-process-name (match-string 1 session) ))) #+end_src Is there any one having such issues, or who can weigh in on what exactly is happening here? Without making the above change, it is possible to manually attach an ess process to the current src buffer by using the command: C-c C-s (ess-switch-process) You'll have to specify the process name, rather than the buffer name, and the session must have already been started. From here all ESS functions should work. For example, calling: C-c C-z (ess-switch-to-end-of-ESS) will open the session buffer. I've implemented a variation of the function you mentioned, which uses the inferior process discussed above. It should do something at least remotely like the function you were asking for, and will work with babel sessions, as long as the ess process is associated properly. I've made one change worth mentioning: the function now prompts for a buffer name to set up on if no ess process is associated, instead of only and always using *R*. Try it out, and let me know what you think. Of course feel free to tweak & share! This is my real first dive into lisp, so if anyone has anything to share please do. #+begin_src emacs-lisp (defun my-ess-eval () (interactive) (update-ess-process-name-list) (if (not (ess-make-buffer-current)) ;; Obtain the target ess session (let ((session (read-string "Use session: " (let ((proc (get-process ess-current-process-name))) (if (processp proc) (buffer-name (process-buffer proc))) ;; Obtain buffer matching session (if (not (get-buffer session)) ;; If there is no buffer, create a new one (save-excursion (inferior-ess) (rename-buffer session))) (setq ess-local-process-name (process-name (get-buffer-process session) (ess-make-buffer-current) (if (and transient-mark-mode mark-active) (call-interactively 'ess-eval-region) (call-interactively 'ess-eval-line-and-step))) (add-hook 'ess-mode-hook '(lambda () (local-set-key [(shift return)] 'my-ess-eval))) (add-hook 'inferior-ess-mode-hook '(lambda () (local-set-key [C-up] 'comint-previous-input) (local-set-key [C-down] 'comint-next-input))) (add-hook 'Rnw-mode-hook '(lambda () (local-set-key [(shift return)] 'my-ess-eval))) (require 'ess-site) #+end_src Sincerely, Andrew Young
Re: [O] Emacs shell-script to tangle org-babel at the command line.
Hi Matthew, On Mon, Aug 13, 2012 at 2:15 PM, Matthew Oesting wrote: > I recently wrote what I thought to be a very simply she'll script to tangle a > file; simply call the script on a file, e.g. 'tangle corgi.org' and a file, > 'corgi.rb' (assuming one uses Ruby) appears in the local directory. > > Tangling the file from within Emacs works normally. Tangling from this > script does not work; the only interesting response is "tangled 0 code blocks > from corgi.org". The same file tangles two blocks from within Emacs. > > It seems that the org-babel-tangle function is using some piece of > information present in the normal Emacs loading sequence which is not found > during the script load. I could provide a large number of files, but I > imagine that the problem will be obvious to someone here. > > What is wrong with this code? > > #!/usr/bin/emacs --script > > ;; The subdirectory ~/.emacs.d is to be added to the top-level elisp > ;; file search. > (progn (cd "~/.emacs.d") (normal-top-level-add-subdirs-to-load-path)) > > ;; Org-Mode, Org-Babel, and the tangle library are required, if we are > ;; to proceed further. > (require 'org-install) > (require 'org) > (require 'ob-tangle) > > ;; Load the main configuration and setup file. > (require 'ob-ruby) > (require 'ob-python) > (require 'ob-emacs-lisp) > (require 'ob-lisp) > > ;; Tangle all files given. > (dolist (file command-line-args-left) > (princ file) > (org-babel-tangle-file file)) > > The previous code works for me if the file I'm trying to tangle is in "~/.emacs.d". I think what may be happening is you are specifying your input files as relative paths, and when you cd into .emacs.d, you are no longer loading from the correct directory. Are you getting output such as #+begin_example Wrote /home/user/.emacs.d/input-file.org tangled 0 code blocks from input-file.org #+end_example Try replacing: #+begin_src emacs-lisp (progn (cd "~/.emacs.d") (normal-top-level-add-subdirs-to-load-path)) #+end_src with something that doesn't change the current directory of the buffer permanently. Replace the progn line with following to allow the assigned value of default-directory to go out of scope: #+begin_src emacs-lisp (let ((default-directory ~/.emacs.d)) (normal-top-level-add-subdirs-to-load-path)) #+end_src Andrew
[O] [GSoC] Org Merge Driver Update
Hello Everyone, I've been working on a merge driver for org-mode documents over the summer as a Google Summer of Code project. I just wanted to show everyone some progress on the merge driver. There are some new examples you can see at the project page [1][2], and instructions on how to build and use it. the source is available here: git clone git://orgmode.org/org-merge-driver.git I'd really appreciate if anyone could take the merge driver out for a test spin, and come back with any kind of feedback, such as: - file output - customization - the user interface - the merging rules - new features and element specific support - testing - neat ideas, etc. There is only about a week left in GSoC, but I'm planning to continue to develop the merge driver past the end of GSoC. Please take a look, and thanks, Andrew Young [1] project page: http://orgmode.org/worg/org-contrib/gsoc2012/student-projects/git-merge-tool/ [2] examples: http://orgmode.org/worg/org-contrib/gsoc2012/student-projects/git-merge-tool/examples.html
Re: [O] [GSoC] Org Merge Driver Update
Hi, On Wed, Aug 15, 2012 at 1:04 PM, Eric Schulte wrote: > I'm very excited to start using this merge driver. I've put together an > Arch Linux User Repository (aur) package, which can be used by Arch > Linux users to install the org-merge-driver with pacman. It is > available at [1], Thank you so much for doing this! I'm also an Arch Linux user, and am now using your package as well! > if others find it useful and if Andrew doesn't object > I'd be happy to push it into the official aur database. It is very > simple and installs directly from git. > Yes, of course I don't mind. This would be _awesome_. I just installed OMD through your package. Pretty exciting for me! It took me a little bit to realize the linked file was not corrupted ;), but HTML to the new package. Regarding the gnulib dependency: I have included the Gnulib sources which my project depends on directly into the git repository. Because of this, gnulib shouldn't be nessecary to build. I've done this for two main reasons: 1. I thought that would make the dependencies easier on everyone else to build and install. 2. I believe I've uncovered a bug in one of the sources I'm using, and so for the time being I'm using a slightly edited version. I'm really not sure what the standard is for using GnuLib in a project. I think that distributing Gnulib dependencies directly with a project may be typical, given that it is used at the source level. (If anyone has any opinion on this, please share) For the time being, it may be best to leave Gnulib out as dependency, until I find out what to do. Re-importing Gnulib modules may reintroduce the problem I was having. > I spent some time testing this locally and I've run into what appears to > be an error. Namely when merging a tree with multiple new sub-headings > the merge completes successfully, but the subheadings from the OTHER > branch are deleted by the merge. Here [2] is a tarball of the entire > git directory after the failed merge. Please let me know if there is > any other debug information I can provide. > Thank you for letting me know, and your detailed example. This should be fixed now, along with some other issues. > Thanks, > > Footnotes: > [1] http://cs.unm.edu/~eschulte/data/org-merge-driver-20120815-1.src.tar.gz > > [2] http://cs.unm.edu/~eschulte/data/fruit-test.tar.bz2 > > -- > Eric Schulte > http://cs.unm.edu/~eschulte Thanks again for doing all this, it's really appreciated! Sincerely, Andrew Young
Re: [O] [GSoC] Org Merge Driver Update
Hello Simon, On Fri, Aug 17, 2012 at 10:09 PM, Simon Thum wrote: > Hi Andrew, > > sorry to report less exciting things. I could not compile - the repo > contains two invalid links into my system: > > lrwxrwxrwx 1 simon users38 Aug 18 04:01 tap-driver.sh -> > /usr/share/automake-1.12/tap-driver.sh > lrwxrwxrwx 1 simon users36 Aug 18 04:01 test-driver -> > /usr/share/automake-1.12/test-driver > > I'm on gentoo and do not have automake 1.12. Using a link not the right > thing IMO. > I believe I've fixed the issue, I hadn't realized they were links. They should be updated with the actual files now. Thanks for reporting it. > II removed those from being referenced in source files and came farther, > only for gcc to balk on > > doc_ref.h:54:3: error: redefinition of typedef ‘doc_ref’ > doc_ref.h:31:24: note: previous declaration of ‘doc_ref’ was here > doc_ref.h: In function ‘doc_ref_check_for_circular_conflict’: > > and other such occurrences. > > I'm not sure about the cause, but maybe typedefs conflict with struct names? > It seems that a lot of my typedefs may not be valid c, but are accepted by newer versions of gcc and some other compilers. I only get a warning if I enable -pedantic using "gcc version 4.7.1 20120721 (prerelease) (GCC)". I'm in the process of cleaning up my headers and should have something for you soon. In the meantime, I believe upgrading gcc should make the issue disappear. Let me know if I'm completely wrong :-) > HTH, > > Simon Thanks for trying out the merge driver. it's much appreciated. Sincerely, Andrew
Re: [O] Re-align All Tables in a Region.
Hi Ian, On Sat, Aug 18, 2012 at 4:14 AM, Ian Barton wrote: > I have a file which contains lots of tables. The document is created by a > shell script, so when it's opened none of the tables are aligned. Is there a > command that will let me re-align all tables in a region? There are a lot of > tables, so I don't want to do them one at a time. > > As a workaround I have used #+STARTUP: align in the buffer, which aligns > them if I C-c on the in buffer setting. > > Ian. > Not sure if there is a built-in, but this seems to work for me: #+begin_src emacs-lisp (defun my-align-all-tables () (interactive) (org-table-map-tables 'org-table-align 'quietly)) #+end_src Hope this helps. Sincerely, Andrew
Re: [O] [OT] Xiki - could something like that be done with emacs+orgmode?
The xiki video is interesting, and I immediately thought of babel. However, babel sh-mode doesn't have support for execution yet. Even if it did, it wouldn't be a really good alternative, due to babel's verbosity. One idea is to have a babel subtree (or buffer) that is keyed to a specific language, so that everything under it is assumed to be an executable statement. Something like: * Project A ** Shell :PROPERTIES: :BABEL-TYPE: sh :END: ls - file1 - file2 - file3 run_server ouput-buffer ** Next thing Where the files and output-buffer are linked. The interaction within the BABEL-TYPE heading would be similar to the *scratch* buffer, just execute and it gives you the result immediately below. Except the result should work be org-output, and linked when appropriate. Babel would be handling this, but it wouldn't need the boilerplate for each command, or each output. The idea to use [[shell:ls]] and things like that is also useful, but right now the output goes to a different buffer, and is not otherwise tied in with org-mode. This is why I think babel might be a better fit for this type of functionality. On Tue, Sep 18, 2012 at 2:23 AM, Bastien wrote: > Hi Marcelo, > > Marcelo de Moraes Serpa writes: > >> http://www.youtube.com/watch?v=bUR_eUVcABg&feature=youtu.be >> >> I'm wondering it something like that could be done with emacs (and >> possibly integrating orgmode to add the outlining features)? > > * [[shell:ls -l]] > > * shell:pwd > > ... etc etc. > > I think pretty all the features described here are already available > with some elisp. > > The basic idea is that the command prompt and the results are of the > same kind: text you can edit, and that can produce an output... that you > can further reuse as a command. Which is the core idea of Org. > > If there is any specific feature displayed in the video that seems > useful for Org, let us know. > > My 2 cents, > > -- > Bastien >
Re: [O] [OT] Xiki - could something like that be done with emacs+orgmode?
That's odd, I get "No org-babel-execute function for sh!". I think I just hadn't require'd ob-sh, and when I did this fixed the problem. Thanks! My point about removing the boilerplate still stands, however. If I have some free time in the next month, I may try to see if I can get it removed as I proposed above. On Wed, Sep 19, 2012 at 2:27 AM, Sean O'Halpin wrote: > On Wed, Sep 19, 2012 at 4:37 AM, Andrew Hyatt wrote: > >> The xiki video is interesting, and I immediately thought of babel. >> However, babel sh-mode doesn't have support for execution yet. > > Not sure what you mean by that. Place cursor in source block and hit C-c, e.g. > > #+BEGIN_ORG > * Shell example > > #+begin_src sh > date > #+end_src > > #+RESULTS: > : Wed Sep 19 07:24:17 BST 2012 > > #+END_ORG > > Regards, > Sean >
Re: [O] Org Writer's room
This sounds like an interesting project. My advice is to make a few screenshots that give people an idea what you are working towards. Of course, they could be completely fake, but it would be helpful to understand for people like me who haven't used Scrivener. On Wed, Dec 5, 2012 at 11:01 AM, Matt Price wrote: > Hi Everyone, > > Prompted by a couple of recent threads on help-gnu-emacs > (http://comments.gmane.org/gmane.emacs.help/87787), I am trying to > create a minor mode for org that would implement some of the cool > features of Scrivener > (http://www.literatureandlatte.com/scrivener.php). > > Scrivener is a closed-source but still very cool authoring tool for > writers. After testdriving it, I find that Scrivener's interface > really makes it easy to concentrate on writing while still being aware > of the overall structure of a big project. Lots of my daughter's > friends use it for National Novel Writing Month, in which they try to > write a 50,000 word novel in 30 days; and I'm finding that more and > more of my students have switched to Scrivener from Word or > Libreoffice, over which it offers a lot of improvements (though it's > not so good atthings like footnotes). > > Emacs is pretty different from Scrivener (!!), but I still think we > could implement some of its features, and that doing so would make > emacs/org-mode a *way* better environment for writers. So I've > started working on org-writers-room.el. I'm a terrible coder, and I > can't think in Lisp at all, so I think the code is pretty bad! And > right now it doesn't do much -- just sets up the basic window layout > and define one or two functions But the ambitions are described in > more detail on the github repository: > > https://github.com/titaniumbones/org-writers-room > > I would be really grateful for feedback from both coders and writers. > I'd especially love it if anyone had some ideas on how to implement > the missing features, or better yet, was able to write some code for > the project! As I say, I feel a little over my head when it comes to > elisp. > > Thanks very much! > Matt > >
[O] Bug: ob-clojure.el depends on deprecated swank-clojure [7.7]
Phil Hagelberg has said that the swank-clojure elisp package has been deprecated and should not be used [1]. My version of ob-clojure.el requires swank-clojure. If I don't have the swank-clojure package, I get "org-babel-execute:clojure:Cannot open load file: swank-clojure". If I follow the instructions at [2] and get the swank-clojure package, I get past this error. Is org using a deprecated package, and is this a bug? Thanks in advance. [1] https://groups.google.com/forum/#!starred/clojure/HT8wixvD3GE [2] http://lists.gnu.org/archive/html/emacs-orgmode/2011-12/msg00629.html Emacs : GNU Emacs 23.3.1 (i686-pc-linux-gnu, GTK+ Version 2.24.5) of 2011-08-14 on rothera, modified by Debian Package: Org-mode version 7.7 current state: == (setq org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars) org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-metaup-hook '(org-babel-load-in-session-maybe) org-after-todo-state-change-hook '(org-clock-out-if-current) org-babel-tangle-lang-exts '(("clojure" . "clj") ("emacs-lisp" . "el")) org-export-latex-format-toc-function 'org-export-latex-format-toc-default org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-confirm-shell-link-function 'yes-or-no-p org-export-first-hook '(org-beamer-initialize-open-trackers) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-blank-before-new-entry nil org-babel-pre-tangle-hook '(save-buffer) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-publish-project-alist '(("org-notes" :base-directory "/home/notroot/org/" :base-extension "org" :publishing-directory "/home/notroot/public_html/" :recursive t :publishing-function org-publish-org-to-html :headline-levels 4 :auto-preamble t) ("org-static" :base-directory "/home/notroot/org/" :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf" :publishing-directory "/home/notroot/public_html/" :recursive t :publishing-function org-publish-attachment) ("org" :components ("org-notes" "org-static"))) org-export-preprocess-before-normalizing-links-hook '(org-remove-file-link-modifiers) org-mode-hook '(#[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-show-block-all append local] 5] #[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-confirm-elisp-link-function 'yes-or-no-p org-export-interblocks '((lob org-babel-exp-lob-one-liners) (src org-babel-exp-inline-src-blocks)) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-occur-hook '(org-first-headline-recenter) org-export-preprocess-before-selecting-backend-code-hook '(org-beamer-select-beamer-code) org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc org-beamer-auto-fragile-frames org-beamer-place-default-actions-for-lists) org-metadown-hook '(org-babel-pop-to-session-maybe) org-export-blocks '((src org-babel-exp-src-block nil) (comment org-export-blocks-format-comment t) (ditaa org-export-blocks-format-ditaa nil) (dot org-export-blocks-format-dot nil)) )
Re: [O] Bug: ob-clojure.el depends on deprecated swank-clojure [7.7]
I passed the question along to Phil Hagelberg in that Clojure google group thread. His reply: "Yes, clojure-test-mode uses both slime-eval and slime-eval-async; he should pick one of these like so: (defun clojure-test-eval (string &optional handler) (slime-eval-async `(swank:eval-and-grab-output ,string) (or handler #'identity))) (defun clojure-test-eval-sync (string) (slime-eval `(swank:eval-and-grab-output ,string))) Actually swank:interactive-eval-region and friends are not elisp functions; they are Clojure functions." (... end of reply) In case it helps, Stuart Sierra says he got org-babel and clojure working together. His dotfiles are at https://github.com/stuartsierra/dotfiles On Fri, Jan 13, 2012 at 1:09 AM, Eric Schulte wrote: > I personally no longer use Clojure (having graduated to Common Lisp :)) > so I'm not abreast of the current Clojure environment. > > The only function ob-clojure uses from swank-clojure is > `swank:interactive-eval-region' (used with `slime-eval') in the > `org-babel-execute:clojure' function. Which function would now be used > to evaluate a region of clojure code? Would `slime-eval-region' > suffice? > > Andrew Cheng writes: > >> >> >> Phil Hagelberg has said that the swank-clojure elisp package has been >> deprecated and should not be used [1]. My version of ob-clojure.el >> requires swank-clojure. If I don't have the swank-clojure package, I >> get "org-babel-execute:clojure:Cannot open load file: swank-clojure". >> If I follow the instructions at [2] and get the swank-clojure package, >> I get past this error. Is org using a deprecated package, and is this >> a bug? Thanks in advance. >> >> [1] https://groups.google.com/forum/#!starred/clojure/HT8wixvD3GE >> [2] http://lists.gnu.org/archive/html/emacs-orgmode/2011-12/msg00629.html
Re: [O] Bug: ob-clojure.el depends on deprecated swank-clojure [7.7]
I think so. Here's *Messages* after (def ^:dynamic *state* {}) ... org-babel-execute:clojure Evaluate this clojure code block (state) on your system? (y or n) executing Clojure code block (state)... ("" "#'user/*state*") On Fri, Jan 13, 2012 at 2:48 PM, Eric Schulte wrote: > Alright, > > if you load ob-clojure.el and then evaluate the following to over-ride > the existing definition of `org-babel-execute:clojure' does clojure code > evaluation work? > > (defun org-babel-execute:clojure (body params) > "Execute a block of Clojure code with Babel." > (require 'slime) > (with-temp-buffer > (insert (org-babel-expand-body:clojure body params)) > ((lambda (result) > (let ((result-params (cdr (assoc :result-params params > (if (or (member "scalar" result-params) > (member "verbatim" result-params)) > result > (condition-case nil (org-babel-script-escape result) > (error result) > (slime-eval > `(swank:eval-and-grab-output > ,(buffer-substring-no-properties (point-min) (point-max))) > (cdr (assoc :package params)) > > Thanks, > > Andrew Cheng writes: > >> I passed the question along to Phil Hagelberg in that Clojure google >> group thread. His reply: >> >> "Yes, clojure-test-mode uses both slime-eval and slime-eval-async; he >> should pick one of these like so: >> >> (defun clojure-test-eval (string &optional handler) >> (slime-eval-async `(swank:eval-and-grab-output ,string) >> (or handler #'identity))) >> >> (defun clojure-test-eval-sync (string) >> (slime-eval `(swank:eval-and-grab-output ,string))) >> >> Actually swank:interactive-eval-region and friends are not elisp >> functions; they are Clojure functions." >> >> (... end of reply) In case it helps, Stuart Sierra says he got >> org-babel and clojure working together. His dotfiles are at >> https://github.com/stuartsierra/dotfiles >> >> On Fri, Jan 13, 2012 at 1:09 AM, Eric Schulte wrote: >>> I personally no longer use Clojure (having graduated to Common Lisp :)) >>> so I'm not abreast of the current Clojure environment. >>> >>> The only function ob-clojure uses from swank-clojure is >>> `swank:interactive-eval-region' (used with `slime-eval') in the >>> `org-babel-execute:clojure' function. Which function would now be used >>> to evaluate a region of clojure code? Would `slime-eval-region' >>> suffice? >>> >>> Andrew Cheng writes: >>> >>>> >>>> >>>> Phil Hagelberg has said that the swank-clojure elisp package has been >>>> deprecated and should not be used [1]. My version of ob-clojure.el >>>> requires swank-clojure. If I don't have the swank-clojure package, I >>>> get "org-babel-execute:clojure:Cannot open load file: swank-clojure". >>>> If I follow the instructions at [2] and get the swank-clojure package, >>>> I get past this error. Is org using a deprecated package, and is this >>>> a bug? Thanks in advance. >>>> >>>> [1] https://groups.google.com/forum/#!starred/clojure/HT8wixvD3GE >>>> [2] http://lists.gnu.org/archive/html/emacs-orgmode/2011-12/msg00629.html > > -- > Eric Schulte > http://cs.unm.edu/~eschulte/
[O] Adding the ability to archive into the datetree (updated)
Hi everyone, I previously sent out a patch to add the ability to archive into the datetree. The ability to store finished items by date (along with any other journal-type entry) seems pretty useful to me, which is why I wrote this. Bernt Hansen did a review of my previous patch, and did a great job in testing it out, catching several issues. Thanks, Bernt! I've fixed all the reported issues, and am attaching the modified patch. I'd love for this to get into the next release. If anyone has a desire to try this out, I'd love to hear if it is clear how to use it, and if you encounter any issues. 0001-Add-the-ability-to-archive-to-the-datetree.patch Description: Binary data
[O] requesting help debugging tangle on windows
Tangle works in my linux environment but doesn't quite work in my windows environment. Here's my org file. It defines a code snippet named "block" and then has a tangle section that refers to "block". Tangle results in a file with two blank lines in my windows environment. #+name: block #+begin_src clojure :results silent (+ 2 3) #+end_src #+begin_src clojure :tangle ../src/tmp.clj :results silent :exports none :noweb yes <> #+end_src But --- If my tangle section has regular code in it instead of referring to other named <> then the resulting file after tangle has the code you'd expect. Below is my org setup. The *Messages* buffer doesn't contain any interesting error messages. What can I do to find out what's going on? I did evaluate the following snippet to get C-c C-c to properly evaluate a clojure code block successfully on my machine. It didn't affect the issue of tangling. Just thought I'd mention it to be thorough. The snippet is from Eric Schulte. I thought that by deleting my elpa org folder and starting emacs again I'd get the latest (with his fix) but I discovered that I still needed to run this snippet to get C-c C-c to work. Thanks in advance for any help! (defun org-babel-execute:clojure (body params) "Execute a block of Clojure code with Babel." (require 'slime) (with-temp-buffer (insert (org-babel-expand-body:clojure body params)) ((lambda (result) (let ((result-params (cdr (assoc :result-params params (if (or (member "scalar" result-params) (member "verbatim" result-params)) result (condition-case nil (org-babel-script-escape result) (error result) (slime-eval `(swank:eval-and-grab-output ,(buffer-substring-no-properties (point-min) (point-max))) (cdr (assoc :package params)) Emacs : GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) of 2011-09-03 on SHAN-PC Package: Org-mode version 7.7 current state: == (setq org-export-blocks '((src org-babel-exp-src-block nil) (comment org-export-blocks-format-comment t) (ditaa org-export-blocks-format-ditaa nil) (dot org-export-blocks-format-dot nil)) org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-export-preprocess-before-selecting-backend-code-hook '(org-beamer-select-beamer-code) org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-babel-pre-tangle-hook '(save-buffer) org-occur-hook '(org-first-headline-recenter) org-export-interblocks '((lob org-babel-exp-lob-one-liners) (src org-babel-exp-inline-src-blocks)) org-metaup-hook '(org-babel-load-in-session-maybe) org-confirm-elisp-link-function 'yes-or-no-p org-export-latex-format-toc-function 'org-export-latex-format-toc-default org-export-preprocess-before-normalizing-links-hook '(org-remove-file-link-modifiers) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-export-first-hook '(org-beamer-initialize-open-trackers) org-mode-hook '(#[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-show-block-all append local] 5] #[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-from-is-user-regexp nil org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc org-beamer-auto-fragile-frames org-beamer-place-default-actions-for-lists) org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars) org-metadown-hook '(org-babel-pop-to-session-maybe) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-after-todo-state-change-hook '(org-clock-out-if-current) org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup) org-babel-tangle-lang-exts '(("clojure" . "clj") ("emacs-lisp" . "el")) org-confirm-shell-link-function 'yes-or-no-p )
Re: [O] requesting help debugging tangle on windows
Reproduced the issue with a clean Emacs 24 on Windows with and without my .emacs and .emacs.d on the same machine and on a different machine. Is this message related? Could not read org-id-values from ~\.emacs.d\.org-id-locations. Setting it to nil.
Re: [O] requesting help debugging tangle on windows
#1 worked. My assumption about how I could get the latest org was wrong. Thanks very much for the help! On Sat, Feb 18, 2012 at 10:16 AM, Eric Schulte wrote: > Unfortunately I don't have access to a windows machine for testing of > tangle behavior. Before we delve deeper, could you confirm two things. > > 1. It sounds as though you are not using the latest version of Org-mode > from git. Please upgrade to the latest -- which should also get you > the latest ob-clojure.el so you don't have to evaluate the snippet > posted below. There are instructions for keeping current with org > development at http://orgmode.org/worg/org-faq.html#Keeping-current. > > 2. Try to reproduce the problem using "emacs -Q" which will launch emacs > without any personal configuration. That way we can see if this > windows issue is someone related to your config, or is general. > > Thanks, > > Andrew Cheng writes: > > > Tangle works in my linux environment but doesn't quite work in my windows > > environment. Here's my org file. It defines a code snippet named "block" > > and then has a tangle section that refers to "block". Tangle results in a > > file with two blank lines in my windows environment. > > > > #+name: block > > #+begin_src clojure :results silent > > (+ 2 3) > > #+end_src > > > > #+begin_src clojure :tangle ../src/tmp.clj :results silent :exports none > > :noweb yes > > <> > > #+end_src > > > > But --- If my tangle section has regular code in it instead of referring > to > > other named <> then the resulting file after tangle has the code > > you'd expect. > > > > Below is my org setup. The *Messages* buffer doesn't contain any > > interesting error messages. What can I do to find out what's going on? > > > > I did evaluate the following snippet to get C-c C-c to properly evaluate > a > > clojure code block successfully on my machine. It didn't affect the issue > > of tangling. Just thought I'd mention it to be thorough. The snippet is > > from Eric Schulte. I thought that by deleting my elpa org folder and > > starting emacs again I'd get the latest (with his fix) but I discovered > > that I still needed to run this snippet to get C-c C-c to work. > > > > Thanks in advance for any help! > > > > (defun org-babel-execute:clojure (body params) > > "Execute a block of Clojure code with Babel." > > (require 'slime) > > (with-temp-buffer > >(insert (org-babel-expand-body:clojure body params)) > >((lambda (result) > > (let ((result-params (cdr (assoc :result-params params > > (if (or (member "scalar" result-params) > > (member "verbatim" result-params)) > > result > > (condition-case nil (org-babel-script-escape result) > > (error result) > > (slime-eval > > `(swank:eval-and-grab-output > >,(buffer-substring-no-properties (point-min) (point-max))) > > (cdr (assoc :package params)) > > > > Emacs : GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) > > of 2011-09-03 on SHAN-PC > > Package: Org-mode version 7.7 > > > > current state: > > == > > (setq > > org-export-blocks '((src org-babel-exp-src-block nil) (comment > > org-export-blocks-format-comment t) > > (ditaa org-export-blocks-format-ditaa nil) (dot > > org-export-blocks-format-dot nil)) > > org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point > > org-babel-execute-safely-maybe) > > org-export-preprocess-before-selecting-backend-code-hook > > '(org-beamer-select-beamer-code) > > org-tab-first-hook '(org-hide-block-toggle-maybe > > org-src-native-tab-command-maybe > > org-babel-hide-result-toggle-maybe) > > org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers > > org-cycle-show-empty-lines > > org-optimize-window-after-visibility-change) > > org-agenda-before-write-hook '(org-agenda-add-entry-text) > > org-speed-command-hook '(org-speed-command-default-hook > > org-babel-speed-command-hook) > > org-babel-pre-tangle-hook '(save-buffer) > > org-occur-hook '(org-first-headline-recenter) > > org-export-interblocks '((lob org-babel-exp-lob-one-liners) (src > > org-babel-exp-inline-src-blocks)) > > org-metaup-hook '(org-babel-load-in-session-maybe) > > org-
Re: [O] Bug: org-indent-mode cursor movement [7.8.03]
I've tried "-q" and it works, but only because emacs reverts to default version of org-mode. The version I am having trouble with is currently installed through elpa. As to example file, do you mean example org file? If so, I've had trouble with every org file I've tried, even blank ones. Regards, - Andrew On Feb 23, 2012 4:00 AM, "Nicolas Goaziou" wrote: > Hello, > > Andrew Stine writes: > > > When org-indent-mode is active, the cursor repeatedly jumps to the > > bottom of the buffer. This makes using the buffer impossible while > > org-indent-mode is active. > > I cannot reproduce it. Could you send me an example file where the > problem happens? > > > Regards, > > -- > Nicolas Goaziou >
Re: [O] Bug: org-indent-mode cursor movement [7.8.03]
On Thu, Feb 23, 2012 at 9:44 AM, Nick Dokos wrote: > Andrew Stine wrote: > >> I've tried "-q" and it works, but only because emacs reverts to default >> version of org-mode. The >> version I am having trouble with is currently installed through elpa. >> > > Then create a minimal .emacs file that will load the right version of org > (but exclude > all your customizations) and start with > > emacs -q -l /path/to/minimal/.emacs I've already done so. For reference, the code in that file is: (when (load (expand-file-name "~/.emacs.d/elpa/package.el")) (package-initialize)) I've been able to duplicate this bug on two machines, three installs, of emacs: An Archlinux machine with emacs 23.3 The same Archlinux machines with emacs 24.0 A Solaris 10 machine with emacs 23.3 Another note, I've discovered that the problem goes away if I reload the file "org-indent.el", specifically if I re-eval the function "org-indent-add-properties." I think that this is a problem with the way that elpa is loading the package, but I'm not certain what. > Unless other people are having trouble with this, I'd suspect a customization > of yours. That would follow, but the elpa package is dated Feb 16th and I suspect that most folks don't upgrade every week. I may just be the first person to come across this. - Andrew
Re: [O] Bug: org-indent-mode cursor movement [7.8.03]
Hello all, Byte-compiling org-mode a second time after installation seems to permanently solve the problem for me. I suspect that this is not a bug with org-mode, but with elpa. Thanks for your assistance. - Andrew
[O] Google Summer of Code 2012 Student Application
Hello Org-Mode mailing list, My name is Andrew Young, and I would like to participate in an Org-Mode project for GSoC 2012. My application for the project 'Git merge tool for Org files' can be found here<http://www.google-melange.com/gsoc/proposal/review/google/gsoc2012/pwyl/1#>. I would appreciate as much feedback and criticism as possible. I used the generic GNU Project student application template, which can be found here <http://www.google-melange.com/gsoc/org/google/gsoc2012/gnu>. I have some specific questions: 1. There is no implementation details or decisions in my application, just a basic plan of what needs to be done. Should I start researching implementation details for my application? 2. I would like to post my application on the community site Worg. If this is appropriate, what is the proper channel to request GIT access? If this mailing list is not the appropriate place to discuss my application, please let me know and then feel free to email me directly. I will also be spending as much time as possible on freenode #org-mode as Pwyl. Regards, Andrew Young younga...@gmail.com
Re: [O] Google Summer of Code 2012 Student Application
Hello Bastien, On Thu, Apr 5, 2012 at 2:48 AM, Bastien wrote: > Hi Andrew, > > Andrew Young writes: > >> My name is Andrew Young, and I would like to participate in an Org-Mode >> project for GSoC 2012. My application for the project 'Git merge tool for >> Org files' can be found >> here<http://www.google-melange.com/gsoc/proposal/review/google/gsoc2012/pwyl/1#>. > > Great! > >> I would appreciate as much feedback and criticism as possible. > > First of all, make sure someone can co-mentor this project. I'm willing > to mentor this (as the current maintainer it makes sense, especially for > people judging the project from the outside), but having Carsten as a > co-mentor would be a great win. Make sure Carsten (cc'ed) is okay. I will send him a personal (private) request. > > Carsten, being a co-mentor involves mainly three things: > > 1. registering on google-melange.com > > 2. from there, requesting to be a mentor for the GNU project > > 3. during the project, help the student and have IRC/phone meetings, > at least when I'm not here (I expect to be off for 2-3 weeks this > summer, I will tell when ASAP) > >> I used the generic GNU Project student application template, which can be >> found here <http://www.google-melange.com/gsoc/org/google/gsoc2012/gnu>. > > 1. First things thing: you should rewrite the "summary" section to > remove the "I believe" and other informal writing from Carsten's > prose. Make it yours, make it a real summary. I found the GNU Application template confusing, and was not sure if the summary was supposed to be written by me, or copied from the ideas page (to clarify what project idea I was referring to). I followed your advice and wrote my own project summary, since that seems like the better idea. > > 2. Refer to org-element.el when you mention the Data representation. > org-element.el will be key in representing data and diffs between > data (at any level.) > > 3. Add a documentation section, explaining what doc you will write and > how you you will write/host it (worg is fine.) > Thanks for the pointers. I've incorporated your advice into the proposal. >> I have some specific questions: >> 1. There is no implementation details or decisions in my application, just >> a basic plan of what needs to be done. Should I start researching >> implementation details for my application? > > You can look at org-element.el for the data representation. > >> 2. I would like to post my application on the community site Worg. If >> this is appropriate, what is the proper channel to request GIT access? > > Send me your public key. > >> If this mailing list is not the appropriate place to discuss my >> application, please let me know and then feel free to email me directly. I >> will also be spending as much time as possible on freenode #org-mode as >> Pwyl. > > This mailing list *is* the appropriate place, no worry. > > Thanks again for your proposal, this would be a great plus for Org! > > Best, > > -- > Bastien Thanks again for your suggestions and pointers. My public key is attached. Regards, Andrew youngar17@gmail.com.pub Description: Binary data
Re: [O] Google Summer of Code 2012 Student Application
On Thu, Apr 5, 2012 at 9:36 AM, Thorsten wrote: > > Bastien writes: > > Hi Bastien, hi Andrew, > > > You can now push changes to Worg. > > I just added a directory 'student-projects' under the gsoc2012 directory > on worg, accessible through: > http://orgmode.org/worg/org-contrib/gsoc2012/index.html > (see links at end of page) > > which might be used by Andrew, me and others. > Thank you, I'll fill up a project page as soon as I am able. > Andrew: I'm preparing my application for the Orgmode/Picolisp project, > which turned into a bugtracker for Org-mode project, right now. If you > want, we can communicate (here or privately). > Of course. Let me know if you need anything. > Bastien: thanks for your suggestions (private mail), gave me quite a lot > of thinks to chew - I'm busy with that right now. > > What I really would need to decide upon at the very beginning is the git > workflow - not too complicated, but somehow scalable for the future is > the project succeeds. Any suggestion besides having a master and a > private branch? Should I already consider a workflow similar to the one > used by you for Org-mode? > -- > cheers, > Thorsten > > I think only 8 hours left until the deadline! Best. Andrew Young
Re: [O] Google Summer of Code 2012 Student Application
Hi, On Thu, Apr 5, 2012 at 3:46 AM, Torsten Wagner wrote: > > Hi Andrew, > > > Reading this proposal and having a bit background in writing > proposals, I have the following suggestion: > > * I'm not sure everyone (at least the one who review this) know what > org-mode is. There should be a very small summary about org-mode and > the key-benefit being plain text (which is why you can start this > project after all). This raises the point that I have no idea at all who will be reviewing my proposal. I originally wrote the proposal targeting Org-Mode devs as the audience. This has provided some important insight to my application. Thank you! > > * In the way the proposal is written, you address org-mode users which > uses git (later you mention other CVS too). This actually makes, or at > least sound like, the proposal being only useful for a (small) > intersection of users namely org-mode AND (in the sense of an logic > AND) git-user. > I would find it more useful to describe this work as being an > extension for org-mode users; > ** They can start to collaborate on a org-mode files, including > collaboration with users of possible other software tools (e.g. > mobileorg apps). > ** Org-mode user can use a CVS system which is not only of interest > for collaboration but for keeping a chronological order of changes in > e.g. a project file. > ** It makes org-mode a possible tool for software developers which can > now use org-files e.g. for documentation and notes beside there source > code in the same git repository. > > All this points would show that the proposal is going to extend > org-mode instead of being "limited" useful for only a very particular > user-base. Finally, I guess it would be good to mention that this > project (and org-mode in general) is not limited to a OS but attracts > users of MS Windows, Mac OS and Linux. Simply to demonstrate that the > user-base can be expected to be rather large. > (Not sure if the GNU people like this ;) ) > > Torsten These are all great suggestions and points. This triggered a complete rewrite of the benefits section. Thank you for your help. Regards, Andrew Young
Re: [O] Google Summer of Code -- 3 Org projects for our first participation!
Hi, Thank you Bastien for working so hard to get Org-mode 3 slots, I know most other Gnu projects only received one slot. I'm really excited to be able to work on this project! Thank you to every one else involved as well! Best, Andrew On Tue, Apr 24, 2012 at 7:29 AM, Richard Riley wrote: > Bastien writes: > >> Dear all, >> >> we will have 3 students hacking Org thanks to Google and the GSoC >> program. The list of all accepted projects can be checked here: >> >> http://www.google-melange.com/gsoc/projects/list/google/gsoc2012 >> >> Congratulations to Thorsten, Aurélien and Andrew who made it! >> And special thanks to Thorsten, who really pushed me into this. > > Really cool. org-mode just keeps growing while still keeping its core > simplicity. By far the biggest use I have now is as a simple journal > logger! If I may, and just for the future, what I'd really like to see > is a working org mode and google integration with gnus > integration. Possibly via googlecl which I used yonks ago for a googlecl > based blogger.com blog facility direct from org-files (still working > well enough and is in github (org-googlecl). I know there are some > proofs of concept already there but performance and usability were > pretty rudimentaty. bbdb's days are pretty much up in this day of > smartphone and "everyone integrates with google" ;) This integration > would obviously (!?!) integrate with google calendars which is then > already well catered for on just about any mobile device. > > > >
[O] [GSoC] Org merge driver progress update
Hello everyone, Just to remind everyone, my project is the org merge driver. The project webpage is here<http://orgmode.org/worg/org-contrib/gsoc2012/student-projects/git-merge-tool/index.html>, and the code repository is here<http://orgmode.org/w/?p=org-merge-driver.git;a=summary>. Here is a quick update on the problems I have encountered, and what is going on: I was on my way to finishing my prototype, but I felt that the prototype was not going to really demonstrate any of the concepts and programming techniques which I was going to use in the final version. The prototype was really just going to be bad merge driver. I spent quite some time trying to implement a fast algorithm for finding the shortest edit script of a file (this is what 'diff<http://en.wikipedia.org/wiki/Diff>' does). It turns out that the exact same algorithm<http://www.grantjenks.com/wiki/_media/ideas:diffalgorithmlcs.pdf> was already implemented in Gnulib, which I am now using instead. I am also trying to incorporate elements of polymorphism, generic programming, and object oriented programming in C. Its very interesting, although it can get very complicated. I am planning to use these concepts to make the merge driver more extendable and reusable. Right now I'm considering the implementation of the final merge driver, and doing a lot of scratch work on paper. The prototype should be finished soon, and then I can move onto the real implementation. In the code repository, you can find a implementation notes in doc/implementation.organd a log of what I'm working on in doc/ notes.org. Sincerely, Andrew Young
[O] [GSoC] org-merge-driver weekly update
Hello everyone, I would just like to let everyone know that a prototype for org-merge-driver is available. It is not complete, so of course please do not use it for your repository! ;) You can see some example use of it at the the worg project page: http://orgmode.org/worg/org-contrib/gsoc2012/student-projects/git-merge-tool/prototype.html Sincerely, Andrew Young
Re: [O] [GSoC] org-merge-driver weekly update
Hi Carsten, On Wed, May 30, 2012 at 1:15 PM, Carsten Dominik wrote: > > Hi Andrew, > > On 30.5.2012, at 16:36, Andrew Young wrote: > > > Hello everyone, > > > > I would just like to let everyone know that a prototype for > > org-merge-driver is available. It is not complete, so of course please do > > not use it for your repository! ;) > > > > You can see some example use of it at the the worg project page: > > http://orgmode.org/worg/org-contrib/gsoc2012/student-projects/git-merge-tool/prototype.html > > > A nice start! > > In your first example, it seems incorrect to me that "* A new heading in file > 2" > ends up being the first top-level headline in the merged file. It is added as > second in file two, so I clearly would expect it to appear as second in the > merged file. > > Greetings > > - Carsten > > P.S. Bastien, should comments and discussions like this one be on the list, > or off list? > > - Carsten I agree that the prototype is not correct in this respect. I originally planned to separate orgmode elements into two types: ordered and unordered. Unordered elements would be things like plain lists and headings. Ordered entities would be things like numbered plain lists. This decision led to the prototype not tracking the order which headings appear. Only hierachical position was tracked and used in the prototype. As a result, new headings are always shown at the start of a level, and reordered headings may or may show up in the new order. I have since changed my mind about how to handle this situation. The new strategy is to track the same positional data for both ordered and unordered elements. The difference between the element types will be in how reorders from both files will be merged together. I can modify the prototype to print headings in the correct order, but I'm mostly just interested in moving on. Sincerely, Andrew
Re: [O] [GSoC] org-merge-driver weekly update
Hi Robert Horn, On Mon, Jun 4, 2012 at 11:30 AM, Robert Horn wrote: > Another area that would be nice to address is taking advantage of the > information in date-trees so assist with merging. This is similar to > the logic around keeping headlines in order. With date trees there is a > date and sometimes time tag to help. > > In addition to the occurrence order, there is also an ordering constraint on > date trees that can be used to determine the proper delta. You can use the > date and time information in the headlines to determine the proper sequencing. > > For example, the delta/merger for two files of the form: > File 1: > * Year > ** Year-Month > *** Year-Month-Day > Y-M-D-Time1 stuff1 ... > Y-M-D-Time2 stuff2 ... > Y-M-D-Time4 stuff4 ... > Y-M-D-Time5 stuff5 ... > Y-M-D-Time9 stuff9 ... > File 2: > * Year > ** Year-Month > *** Year-Month-Day > Y-M-D-Time1 stuff1 ... > Y-M-D-Time2 stuff2 ... > Y-M-D-Time3 stuff3 ... > Y-M-D-Time6 stuff6 ... > Y-M-D-Time7 stuff7 ... > > Should be: > * Year > ** Year-Month > *** Year-Month-Day > Y-M-D-Time1 stuff1 ... > Y-M-D-Time2 stuff2 ... > Y-M-D-Time3 stuff3 ... > Y-M-D-Time4 stuff4 ... > Y-M-D-Time5 stuff5 ... > Y-M-D-Time6 stuff6 ... > Y-M-D-Time7 stuff7 ... > Y-M-D-Time9 stuff9 ... > > This time aware merge logic will apply similarly to all levels of the date > tree. > > Date trees are recognizable by the combination of headlines in this > format. A date tree can occur anywhere in an org file, but it will > begin with a level one headline of the form "* ", etc. > > R Horn > rjh...@alum.mit.edu Thank you for the suggestion! The program should support date trees. I wonder if date trees specifically should be aggressively resorted during the merge (reordering more headings than necessary, without regards to the in-file ordering). It is currently my opinion that the program should try to retain the original ordering as much as possible, only sorting the minimum number of headings necessary when merging has made the ordering ambiguous. Sincerely, Andrew Young
[O] [GSoC] org-merge-driver weekly update
Hi everyone, small weekly update; I'm almost finished creating the parser. Because of the nature of org mode grammar, the files are being parsed with regexs and (f)lex. Because Orgmode files can be written in any character encoding supported in Emacs, I am looking into using libiconv to support as many file encodings as possible. Sincerely, Andrew Young
[Orgmode] Tables and Latex "Wrong-number-of-arguments" error
Trying to org-export-latex-... any table in 6.23trans and 6.23b results both on WinXP and Ubuntu results in an error. Sending to html works great. Any guidance would be greatly appreciated. Table is as simple As I could think of: * MASH | id | Actor | Character | |+---+---| | 1 | Allan Alda| "Hawkeye" Benjamin Pierce | | 2 | Gary Burghoff | "Radar" Walter O'Reilly | | 3 | Loretta Switt | "Hotlips" Margaret Hoolihan | Results in following error: Exporting to LaTeX... setq: Wrong number of arguments: #[(string &optional separators) ^E^@^Y^ZESC^\ ^L &^...@^kǔu&^...@^k^mgw&^...@^kt'^...@^k#y...@ǔ^mgwY^@^Rǔ=S ^...@ǔ=k...@ǔ^k=s...@^m^kǔo B^QǕ^S^...@^k^mg=g...@^m^kOB^Q ," [separators list notfirst start rexp string "[ ^L ^M^K]+" 0 nil string-match ...] 5 1390318], 3 ./tmp/table.org (END) Does not seem to be resolved by Manish's comments from: http://lists.gnu.org/archive/html/emacs-orgmode/2009-02/msg00354.html P.S Continue to be amazed by Org - great work thank you. P.P.S thread on variable usage was great way to see how others were using Org. ___ 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] Tables and Latex "Wrong-number-of-arguments" error
Carsten, Attached text file with original table.org and associated backtrace. This was run on 6.24a fresh from git. Slight delay in that I could not get back to my Linux machine for a few days. Also the org-reload does not work as it seems neither my windows or ubuntu machine recognize find-library-name (definition-is-void) so this may be the cause of the above problem. Thank you for looking into this. Andrew On Thu, Mar 5, 2009 at 10:28 AM, Carsten Dominik wrote: > Please make a backtrace with uncompiled code: > > Reload Org with > > C-u C-c C-x r > > and hit the error again. > > Thanks. > > - Carsten > > > On Mar 4, 2009, at 7:48 PM, andrew dasys wrote: > > Trying to org-export-latex-... any table in 6.23trans and 6.23b results >> both on WinXP and Ubuntu results in an error. Sending to html works great. >> Any guidance would be greatly appreciated. >> >> Table is as simple As I could think of: >> >> * MASH >> | id | Actor | Character | >> |+---+---| >> | 1 | Allan Alda| "Hawkeye" Benjamin Pierce | >> | 2 | Gary Burghoff | "Radar" Walter O'Reilly | >> | 3 | Loretta Switt | "Hotlips" Margaret Hoolihan | >> >> >> Results in following error: >> >> Exporting to LaTeX... >> setq: Wrong number of arguments: #[(string &optional separators) >> ^E^@^Y^ZESC^\ >> ^L >> >> &^...@^kǔu&^...@^k^mgw&^...@^kt'^...@^k#y...@ǔ^mgwY^@^Rǔ=S >> ^...@ǔ=k...@ǔ^k=s...@^m^kǔo >> B^QǕ^S^...@^k^mg=g...@^m^kOB^Q >> ," [separators list notfirst start rexp string "[ ^L >> ^M^K]+" 0 nil string-match ...] 5 1390318], 3 >> ./tmp/table.org (END) >> >> >> >> Does not seem to be resolved by Manish's comments from: >> http://lists.gnu.org/archive/html/emacs-orgmode/2009-02/msg00354.html >> >> P.S Continue to be amazed by Org - great work thank you. >> P.P.S thread on variable usage was great way to see how others were using >> Org. >> ___ >> 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 >> > > * MASH | id | Actor | Character | |+---+---| | 1 | Allan Alda| "Hawkeye" Benjamin Pierce | | 2 | Gary Burghoff | "Radar" Walter O'Reilly | | 3 | Loretta Switt | "Hotlips" Margaret Hoolihan | Debugger entered--Lisp error: (wrong-number-of-arguments #[(string &optional separators) "?? ?? ??&