Re: [Orgmode] Re: org-style folding for a .emacs
Seb, Though, is there a way to get the font used for org-levels in the Emacs config file? That would really greatly improve the readability, then! Try changing th-outline-minor-mode-init to: (defun th-outline-minor-mode-init () (interactive) (setq outline-regexp (th-outline-regexp)) ;; highlight the headings ;; see http://www.gnu.org/software/emacs/manual/html_node/emacs/Font-Lock.html ;; use M-x customize-apropos face to customize faces ;; to find the corresponding face for each outline level see org-faces.el (let ((heading-1-regexp (concat (substring outline-regexp 0 -1) \\{1\\} \\(.*\\))) (heading-2-regexp (concat (substring outline-regexp 0 -1) \\{2\\} \\(.*\\))) (heading-3-regexp (concat (substring outline-regexp 0 -1) \\{3,\\} \\(.*\\ (font-lock-add-keywords nil `((,heading-1-regexp 1 font-lock-function-name-face t) (,heading-2-regexp 1 font-lock-variable-name-face t) (,heading-3-regexp 1 font-lock-keyword-face t) That should atleast highlight the first three headings properly and make it more readable. I'm not quite sure how to make it cycle through the 8 colors like org-mode does. Hope that helps, ~Michael Zeller Sébastien Vauban wxhgmqzgw...@spammotel.com writes: Hello Michael, Does anyone have a recipe for easy org-style folding of an elisp file? I'd like to divide my .emacs into segments to make it easier to oversee and navigate. I asked myself this question a couple of days ago. Telepathy. For real. Good it has been asked, and answered. In my case, I am very interested as well by the literate programming approach. But I will comment on this later. In summary, add the following to your ~/.emacs.el: (defun th-outline-regexp () Calculate the outline regexp for the current mode. (let ((comment-starter (replace-regexp-in-string [[:space:]]+ comment-start))) (when (string= comment-start ;) (setq comment-starter ;;)) (concat ^ comment-starter \\*+))) (defun th-outline-minor-mode-init () (interactive) (setq outline-regexp (th-outline-regexp))) (add-hook 'outline-minor-mode-hook 'th-outline-minor-mode-init) and add the following as the top line of your ~/.emacs.el: ; -*- mode: emacs-lisp; mode: outline-minor; -*- Now you can add ;;* and ;;**, etc as headings in your .emacs.el and cycle using M-tab, M-left and M-right will collapse or expand all headings respectively. I am guessing you mean to make segments such as ;;* SHORTCUTS and ;;* VARIABLES, this will do that, but not too much more. Done. Though, is there a way to get the font used for org-levels in the Emacs config file? That would really greatly improve the readability, then! Best regards, Seb ___ 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] problems cloning using the http protocol
--- Mar 14/7/09, Richard Riley rileyrg...@googlemail.com ha scritto: Giovanni Ridolfi giovanni.rido...@yahoo.it writes: --- Mar 14/7/09, Dias Badekas dbade...@aia.gr ha scritto: At work being behind a corporate firewall I have no choice but to use the http protocol inorder to get the latest development of orgmode. why don't you download the zip file? http://orgmode.org/index.html#sec-3.2 For people who cannot use git, we provide zip or tar.gz snapshot release files corresponding to the latest git version. I would guess that it's not as up to date ^ ?-| Errm, Richard, please !! Before 'guessing', please, search and verify !! ;-) (or is it dynamically generated on request?) http://article.gmane.org/gmane.emacs.orgmode/10688 I think that words are important. If Carsten writes: zip [...] snapshot release files *corresponding* to the *latest git version*. he means corresponding to the latest git version, or he's a liar. Is he? cheers, Giovanni ___ 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] error appearing when tring to export an org buffer to html: (error mumamo-find-chunks: ...
Hi all! I have an error appearing when tring to export an org buffer to html. versions: - GNU Emacs 23.1.50.1 (i386-mingw-nt5.1.2600) of 2009-06-30 on LENNART-69DE564 (patched) - Org-mode version 6.28trans - I am using the htmlize.el file from the org contrib section error message: Debugger entered--Lisp error: (error mumamo-find-chunks: Bad ret=#overlay from 17974 to 17992 in DIPLAN/DIPLAN.html, end=21735) signal(error (mumamo-find-chunks: Bad ret=#overlay from 17974 to 17992 in DIPLAN/DIPLAN.html, end=21735)) error(mumamo-find-chunks: Bad ret=%s, end=%s #overlay from 17974 to 17992 in DIPLAN/DIPLAN.html 21735) (if (and (= ret-beg end-param) (= end-param ret-end)) nil (error mumamo-find-chunks: Bad ret=%s, end=%s ret end-param)) (unless (and (= ret-beg end-param) (= end-param ret-end)) (error mumamo-find-chunks: Bad ret=%s, end=%s ret end-param)) (let* ((ret this-new-chunk) (ret-beg ...) (ret-end ...)) (unless (and ... ...) (error mumamo-find-chunks: Bad ret=%s, end=%s ret end-param)) ret) (progn (let* (... ... ...) (unless ... ...) ret)) (if end-param (progn (let* ... ... ret))) (when end-param (let* (... ... ...) (unless ... ...) ret)) (let* ((last-chunk-is-closed ...) (ok-pos ...) (end-param end) (end ...) narpos this-new-values this-new-chunk prev-chunk first-change-pos interrupted (point-max ...) (while-n2 0) (while-n3 0) old-are-deleted) (when (= ok-pos end) (setq this-new-chunk ...) (unless this-new-chunk ...)) (unless this-new-chunk (save-match-data ... ... ...)) (setq mumamo-find-chunks-level (1- mumamo-find-chunks-level)) (when this-new-chunk (setq prev-chunk ...) (when ... ... ... ... ...)) (when end-param (let* ... ... ret))) (let* ((mumamo-find-chunks-1-active t) (change-min ...) (change-max ...) (chunk-at-change-min ...) (chunk-at-change-min-start ...) (this-syntax-min-max ...) (this-syntax-min ...) (in-min-border ...) (here ...) (first-check-from ...)) (when (and chunk-at-change-min ...) (assert in-min-border)) (when mumamo-last-change-pos (when chunk-at-change-min ... ...) (setq mumamo-last-change-pos nil)) (let* (... ... ... ... narpos this-new-values this-new-chunk prev-chunk first-change-pos interrupted ... ... ... old-are-deleted) (when ... ... ...) (unless this-new-chunk ...) (setq mumamo-find-chunks-level ...) (when this-new-chunk ... ...) (when end-param ...))) (save-restriction (widen) (let* (... ... ... ... ... ... ... ... ... ...) (when ... ...) (when mumamo-last-change-pos ... ...) (let* ... ... ... ... ... ...))) mumamo-find-chunks-1(21735 mumamo-get-chunk-save-buffer-state) (let ((chunk ...) region-info) (when (and end chunk ...) (setq region-info ...) (if ... ... ...)) chunk) mumamo-find-chunks(21735 mumamo-get-chunk-save-buffer-state) (setq chunk (mumamo-find-chunks pos mumamo-get-chunk-save-buffer-state)) (progn (setq chunk (mumamo-find-chunks pos mumamo-get-chunk-save-buffer-state))) (let* ((modified ...) (buffer-undo-list t) (inhibit-read-only t) (inhibit-point-motion-hooks t) (inhibit-modification-hooks t) deactivate-mark buffer-file-name buffer-file-truename) (progn (setq chunk ...)) (unless modified (restore-buffer-modified-p nil))) (mumamo-save-buffer-state nil (setq chunk (mumamo-find-chunks pos mumamo-get-chunk-save-buffer-state))) (let (chunk) (mumamo-save-buffer-state nil (setq chunk ...)) chunk) mumamo-get-chunk-save-buffer-state(21735) (if (not mumamo-current-chunk-family) (progn (lwarn ... :warning Could not turn on mumamo because chunk family was not set\n in buffer %s. ...) (with-current-buffer *Warnings* ... ... ...)) (let (...) (unless main-major-mode ... ...) (setq mumamo-major-mode main-major-mode) (when ... ...) (mumamo-initialize-state) (mumamo-set-fontification-functions) (mumamo-save-buffer-state nil ...) (when ... ... ... ...)) (when (boundp ...) (setq flyspell-generic-check-word-predicate ...)) (run-hooks (quote mumamo-turn-on-hook)) (mumamo-get-chunk-save-buffer-state (point)) (let* (... ...) (mumamo-set-major major)) (mumamo-find-chunks nil mumamo-turn-on-actions)) mumamo-turn-on-actions(org-mode) (let ((old-major-mode ...)) (kill-all-local-variables) (run-hooks (quote change-major-mode-hook)) (setq mumamo-multi-major-mode (quote nxhtml-mumamo-mode)) (setq nxhtml-mumamo-mode t) (mumamo-add-multi-keymap (quote nxhtml-mumamo-mode) nxhtml-mumamo-mode-map) (setq mumamo-current-chunk-family (copy-tree ...)) (mumamo-turn-on-actions old-major-mode) (run-hooks (quote nxhtml-mumamo-mode-hook))) nxhtml-mumamo-mode() set-auto-mode-0(nxhtml-mumamo-mode nil) set-auto-mode() normal-mode() org-export-as-html(nil hidden) org-export-as-html-and-open(nil) call-interactively(org-export-as-html-and-open) org-export(nil) call-interactively(org-export nil nil) Can anybody see whats wrong? Rainer ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org
Re: [Orgmode] Re: [SOLVED] org-export-blocks
Haha! Interesting comment. I did try it for about 20 minutes but the sheer effort involved with stopping the decade-reinforced, Tourette-like hand spasms (:, :wq and so on) made this much more tricky for me. In the end I printed out a couple of Emacs cheat sheets and pinned them up next to monitors That and a few weeks of _only_ Emacs and I was OK. Another interesting element of the whole experience was migrating from Ruby to using Python exclusively at the same time... It was an interesting few weeks! I have to be honest, I now wish I'd given Emacs more of a chance years ago. Next the aim is to see how much of all my other tools I can replace with Emacs (already using Gnus, org-mode etc). SM 2009/7/15 Giovanni Ridolfi giovanni.rido...@yahoo.it: -- Mar 14/7/09, Simon Mullis si...@mullis.co.uk ha scritto: (a 10+ year Vi/Vim veteran who turned to the light a few months ago...) with Viper, I suppose ;-) see also: http://upsilon.cc/~zack/tags/emacs/ cheers, Giovanni -- Simon Mullis _ si...@mullis.co.uk ___ 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] Error while: Stack overflow in regexp matcher
--- Mer 15/7/09, Sébastien Vauban wxhgmqzgw...@spammotel.com ha scritto: I'm trying to publish my `.emacs' file onto the Web [...] I've always an error when trying to publish my config file: while: Stack overflow in regexp matcher. Nothing gets published. Of course, my `.emacs' file is quite long, but that worked within similar technology (htmlize [¹]) with Muse. This is my simplified `dot-emacs.org' file: --8---cut here---start-8--- #+TITLE: Emacs Init File #+LANGUAGE: en * Init File Here is my init file: #+INCLUDE: ~/.emacs src emacs-lisp Rather long, no? --8---cut here---end---8--- [¹] Yes, I'm using the version of Carsten, being Emacs 23 user. here, with your file, htmlize.el 21 November 2008 : ;; Author: Hrvoje Niksic hnik...@xemacs.org ;; Modified by: Carsten Dominik carsten at orgmode dot org in my org\lisp directory that is in path GNU Emacs 23.0.94.1 (i386-mingw-nt5.1.2600) of 2009-05-24 on SOFT-MJASON Org-mode version 6.28trans my .emacs is published ok. (15 kb) However a 791 kb org file (147443 lines) gives the error: org-export-select-backend-specific-text: Stack overflow in regexp matcher :-( cheers, Giovanni ___ 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] Comments in Org-mode
Manuel Amador amador.man...@gmail.com writes: Hi Sebastian and Russell, You are correct. The problem appears after I comment a region in org-mode with: M-x comment-region enter # enter Ahh - yes. If I comment something with M-x comment-region enter # enter it happens here, too. I never did that in Org-mode - I simply add an `#' and that's OK. To comment a region I do C-x r t # RET as `comment-region' doesn't seem to do the right thing anyway (add the comment character in line 0) and it's faster to type (in c-mode we have `C-c C-c' which I use a lot though). Shouldn't Org-mode provide it's own `comment-region-function'? Or at least re-define `comment-start' et al? Sebastian ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] re. org-export-blocks
I'm using org-mode 6.14 and Gnu/Emacs 23.0.91.1(Ubuntu Jaunty) Thats old (the org I mean; the emacs is recent but thats probably not relevant) As far as I know both ditaa and org-export-blocks was added more recently than that ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Error while: Stack overflow in regexp matcher
Hi, Giovanni Ridolfi wrote: Sébastien Vauban ha scritto: I'm trying to publish my `.emacs' file onto the Web [...] I've always an error when trying to publish my config file: while: Stack overflow in regexp matcher. Nothing gets published. Of course, my `.emacs' file is quite long, but that worked within similar technology (htmlize [¹]) with Muse. This is my simplified `dot-emacs.org' file: --8---cut here---start-8--- #+TITLE: Emacs Init File #+LANGUAGE: en * Init File Here is my init file: #+INCLUDE: ~/.emacs src emacs-lisp Rather long, no? --8---cut here---end---8--- [¹] Yes, I'm using the version of Carsten, being Emacs 23 user. here, with your file, htmlize.el 21 November 2008 : ;; Author: Hrvoje Niksic hnik...@xemacs.org ;; Modified by: Carsten Dominik carsten at orgmode dot org in my org\lisp directory that is in path ,[ ~/Downloads/emacs/site-lisp/org-mode/contrib/lisp/htmlize.el ] | | ;; htmlize.el -- Convert buffer text and decorations to HTML. | | ;; Copyright (C) 1997,1998,1999,2000,2001,2002,2003,2005,2006,2009 Hrvoje Niksic ` Weird. Though my htmlize file is coming from org-mode/contrib/lisp, there is no reference to Carsten, like in yours. GNU Emacs 23.0.94.1 (i386-mingw-nt5.1.2600) of 2009-05-24 on SOFT-MJASON FYI, I'm having `GNU Emacs 23.0.94.1 (i486-pc-linux-gnu, GTK+ Version 2.16.1) of 2009-06-18 on samarium, modified by Debian'. Org-mode version 6.28trans FYI, I'm using `Org-mode version 6.28trans' as well. my .emacs is published ok. (15 kb) However a 791 kb org file (147443 lines) My `.emacs' file is 7,844 lines long, for a total of 278 KBytes. gives the error: org-export-select-backend-specific-text: Stack overflow in regexp matcher :-( So, exactly the same problem when the file gets longer... Best regards, Seb -- Sébastien Vauban ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] org-style folding for programs (was org-style folding for a .emacs)
Scot Becker wrote: Does anyone have a recipe for easy org-style folding of an elisp file? I'd like to divide my .emacs into segments to make it easier to oversee and navigate. Scot Im sure there was a mail about 3-5 months back to the org-list in which someone had announced a new mode. What I remember about it: - Like org-mode it did hide and show but on programs rather than on text - The author claimed that he had got a. the idea from org b. the programming trickery for overloading the tab key to do different things from yasnippet c. there was a third thing -- cant remember exactly what -- maybe the basic idea from hide-show or outline or somethin' - And Carsten responded with a wonderful or great idea or some such Does someone remember this exchange? ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Comments in Org-mode
Manuel Amador amador.man...@gmail.com writes: I think I have found a bug (or a feature!). Sometimes when writing documents I tend to comment out a line by adding a # in the column 0. However, after doing this in a line at the middle of the document, I get the following behavior: * Random stuff Some initial things. # Then I comment this line out But when I keep writing a sufficiently long line such that # the cursor moves to the next line, a # character creeps in! # and will keep appearing for the remainder of the document. -- I cannot duplicate the problem (but only partially). I experienced extra comment lines inserted only when there was no space between the initial comment line and the uncommented line, i.e.: --8---cut here---start-8--- # Then I comment this line out But when I keep writing a sufficiently long line such that # the cursor moves to the next line, a # character creeps in! # and will keep appearing for the remainder of the document. --8---cut here---end---8--- I did not experience extra comment lines in lines further down the text. I'm running the latest git org-mode and a recent development emacs -- GNU Emacs 23.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.16.2) of 2009-07-01 -- on archlinux. Samuel, Thanks for replying. The thread that you mentioned however, seems to be concerned with a different issue. My issue shows up not just in a line right after a commented line, but could happen anywhere later in the text. That is, after the comment-region command is used, every time a new line is automatically created, it starts with #. http://article.gmane.org/gmane.emacs.orgmode/13312 I can confirm that Samuel's advice above offers an interim fix for the problem I was experiencing (i.e., comment lines added on filled lines when there was no empty line between the initial commented line and the subsequent uncommented line --- now that's a mouthful!). I'm not sure whether the fix addresses the problem of unwanted comment lines father down in the text (which I could not replicate). Best, Matt ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Quick aquamacs related windowing question
Nick Dokos wrote: Robert Goldman rpgold...@sift.info wrote: I use org-mode on Aquamacs, and have some problems with the windowing. E.g., when I schedule an item created with remember, aquamacs opens the *Calendar* window in a different frame, then after I choose the date, I am incorrectly left in that frame, instead of being returned to the remember buffer. This means that my C-c C-c to save the note is rejected (because it's meaningless in the *Calendar* buffer), and I have to return the focus to the remember buffer by hand. Does anyone else see this in aquamacs? Or, if you use aquamacs and you DON'T see this, would you let me know? I'd appreciate it, because it would help me track down this problem... I suspect the problem is that (at least on aquamacs) save-excursion isn't doing what I expect it to do across frames. I don't know about aquamacs, but when I set calendar-setup to calendar-only (I usually leave it at nil which foregoes frames altogether), and try org-remember with C-c C-s to schedule it from the remember buffer, I get the calendar frame and the following error: Debugger entered--Lisp error: (wrong-type-argument window-live-p nil) select-window(nil) org-eval-in-calendar(nil t) byte-code(...) org-read-date(nil to-time nil nil nil nil) byte-code(...) org-add-planning-info(scheduled nil closed) org-schedule(nil) call-interactively(org-schedule nil nil) If I try to schedule an item in an org file, I get the frame but clicking on a date does not seem to do anything. So maybe org cannot deal with separate calendar frames. Thank you very much. I only use calendar to the extent that org-mode invokes it, so I wasn't aware of the calendar-setup variable. So I got NIL, the same way you do. On the other hand, on Aquamacs 1.8, based on emacs 22.3, I do not get the error you are getting, and selecting a date works fine. Trying to figure this out is a bit tricky, because I need to figure out why something I expect to see is not happening, rather than something happening wrong... I will post more as I have more results. If anyone has any idea about what piece of code /should/ be returning the cursor to the remember buffer, I would be grateful for any suggestions. R ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: org-style folding for a .emacs
Hello Michael, Does anyone have a recipe for easy org-style folding of an elisp file? I'd like to divide my .emacs into segments to make it easier to oversee and navigate. I asked myself this question a couple of days ago. Telepathy. For real. Good it has been asked, and answered. In summary, add the following to your ~/.emacs.el: (defun th-outline-regexp () Calculate the outline regexp for the current mode. (let ((comment-starter (replace-regexp-in-string [[:space:]]+ comment-start))) (when (string= comment-start ;) (setq comment-starter ;;)) (concat ^ comment-starter \\*+))) [...] (add-hook 'outline-minor-mode-hook 'th-outline-minor-mode-init) and add the following as the top line of your ~/.emacs.el: ; -*- mode: emacs-lisp; mode: outline-minor; -*- Now you can add ;;* and ;;**, etc as headings in your .emacs.el. Done. Though, is there a way to get the font used for org-levels in the Emacs config file? That would really greatly improve the readability, then! Try changing th-outline-minor-mode-init to: (defun th-outline-minor-mode-init () (interactive) (setq outline-regexp (th-outline-regexp)) ;; highlight the headings ;; see http://www.gnu.org/software/emacs/manual/html_node/emacs/Font-Lock.html ;; use M-x customize-apropos face to customize faces ;; to find the corresponding face for each outline level see org-faces.el (let ((heading-1-regexp (concat (substring outline-regexp 0 -1) \\{1\\} \\(.*\\))) (heading-2-regexp (concat (substring outline-regexp 0 -1) \\{2\\} \\(.*\\))) (heading-3-regexp (concat (substring outline-regexp 0 -1) \\{3,\\} \\(.*\\ (font-lock-add-keywords nil `((,heading-1-regexp 1 font-lock-function-name-face t) (,heading-2-regexp 1 font-lock-variable-name-face t) (,heading-3-regexp 1 font-lock-keyword-face t) That should atleast highlight the first three headings properly and make it more readable. I'm not quite sure how to make it cycle through the 8 colors like org-mode does. You know what? You really are wonderful ;-) This is making my month... Though, I slightly adapted your code (that was in what's possible for me) so that I get exactly the same faces as within a real Org file: --8---cut here---start-8--- (defun th-outline-minor-mode-init () (interactive) (setq outline-regexp (th-outline-regexp)) ;; highlight the headings ;; see http://www.gnu.org/software/emacs/manual/html_node/emacs/Font-Lock.html ;; use M-x customize-apropos face to customize faces ;; to find the corresponding face for each outline level see org-faces.el (let ((heading-1-regexp (concat (substring outline-regexp 0 -1) \\{1\\} \\(.*\\))) (heading-2-regexp (concat (substring outline-regexp 0 -1) \\{2\\} \\(.*\\))) (heading-3-regexp (concat (substring outline-regexp 0 -1) \\{3\\} \\(.*\\))) (heading-4-regexp (concat (substring outline-regexp 0 -1) \\{4,\\} \\(.*\\))) ) (font-lock-add-keywords nil `((,heading-1-regexp 1 'org-level-1 t) (,heading-2-regexp 1 'org-level-2 t) (,heading-3-regexp 1 'org-level-3 t) (,heading-4-regexp 1 'org-level-4 t) --8---cut here---end---8--- That way, having those faces defined (inspired by the resistors color code): --8---cut here---start-8--- (org-level-1 ((t (:foreground cornflower blue :weight bold :height 1.8 :family Arial (org-level-2 ((t (:foreground LimeGreen :weight bold :height 1.6 :family Arial (org-level-3 ((t (:foreground orange :weight bold :height 1.3 :family Arial --8---cut here---end---8--- I get a much, much, much more readable emacs file -- nice, moreover as mine is really huge! Hope that helps, Oohhh y! Best regards, Seb -- Sébastien Vauban ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Comments in Org-mode
If it does not fully solve the problem, make comment-start a local variable, check fill-prefix, and make sure your load and mode hooks don't affect filling, or if they do, that they are idempotent. (setq comment-empty-lines t) (set (make-local-variable 'comment-start) #) On Wed, Jul 15, 2009 at 07:35, Matthew Lundinm...@imapmail.org wrote: http://article.gmane.org/gmane.emacs.orgmode/13312 -- Myalgic encephalomyelitis makes you die decades early (Jason et al. 2006) and suffer severely. Conflicts of interest are destroying research. Silence = death. Again. http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] problems cloning using the http protocol
I was under the impression that downloading/pulling only the changes from git (even with the *dumb* http method) would be better than getting repeatedly the whole archive. According to some posts on this thread, maybe the above assumption is not correct with git. is that right ? Still, it seems simpler to just do a git pull instead of going thru a download, unpack cycle Giovanni Ridolfi giovanni.rido...@yahoo.it writes: why don't you download the zip file? http://orgmode.org/index.html#sec-3.2 For people who cannot use git, we provide zip or tar.gz snapshot release files corresponding to the latest git version. cheers, Giovanni ___ 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] problems cloning using the http protocol
Thanks for all your help. Turns out that the git version was 1.4.* and has a bug that prevented proper use of http_proxy settings. Upgrading to git 1.6.3.3 solved the problem. Now I can use git clone http:// Scot Becker scot.bec...@gmail.com writes: Just tried: git clone http://repo.or.cz/r/org-mode.git behind my corporate firewall, and it worked. It's slow, however. So I don't think the problem is on the server end. Did you try any other projects (using git+http proxy)? I don't suppose anyone knows how to git org develpment releases sometimes behind an http proxy and sometimes directly (as on a laptop that is sometimes behind a firewall, and sometimes not.) I couldn't make this to work. Scot ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: problems cloning using the http protocol
If this is relevant your question, you may want to look into setting up a http CONNECT proxy, to use the efficient git protocol through your corporate proxy. I found these articles while searching for my problem. http://www.emilsit.net/blog/archives/how-to-use-the-git-protocol-through-a-http-connect-proxy/ http://limlian.blogspot.com/2008/08/use-http-proxy-for-git-client.html Bernt Hansen be...@norang.ca writes: Scot Becker scot.bec...@gmail.com writes: So I don't think the problem is on the server end. Did you try any other projects (using git+http proxy)? I don't suppose anyone knows how to git org develpment releases sometimes behind an http proxy and sometimes directly (as on a laptop that is sometimes behind a firewall, and sometimes not.) I couldn't make this to work. There are multiple options UNTESTED You might be able to get away with creating a second remote for the project like this: [remote origin] fetch = +refs/heads/*:refs/remotes/origin/* url = http://repo.or.cz/r/org-mode.git [remote origin2] url = git://repo.or.cz/org-mode.git fetch = +refs/heads/*:refs/remotes/origin/* then git fetch origin uses the HTTP protocol and git fetch origin2 uses the git protocol You can set up origin to be whichever you use more often (or switch as required.) The only differences between these remotes are: - name of the remote - you can name it anything you like - the fetch = lines are identical - using the same remote ref 'refs/remotes/origin'. This should work okay since the repos are physically the same - the url specifies the transport method to use. Just use two remotes origin for your fast git protocol access http for your slow http protocol access then you'll have remotes like origin/master and http/master If you can't git pull origin, you can manually git fetch http and git merge http/master or whatever is appropriate I carry my org-mode.git around on my USB stick -- so I can just clone/pull/fetch from that without internet access. I'll update my workstation/laptop repo when it has net access and then push to the usb stick. HTH, Bernt ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Comments in Org-mode
Samuel, Your previous fix does seem to work for me. Thanks! Manuel On Wed, Jul 15, 2009 at 09:03:44AM -0700, Samuel Wales wrote: If it does not fully solve the problem, make comment-start a local variable, check fill-prefix, and make sure your load and mode hooks don't affect filling, or if they do, that they are idempotent. (setq comment-empty-lines t) (set (make-local-variable 'comment-start) #) On Wed, Jul 15, 2009 at 07:35, Matthew Lundinm...@imapmail.org wrote: http://article.gmane.org/gmane.emacs.orgmode/13312 -- Myalgic encephalomyelitis makes you die decades early (Jason et al. 2006) and suffer severely. Conflicts of interest are destroying research. Silence = death. Again. http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Org Special Ctrl A/E, option reversed
Rainer Stengele said unto the world at 15/07/09 01:48 AM: On 15.07.2009 05:47, Brian van den Broek wrote: Rainer Stengele said unto the world at 14/07/09 05:25 AM: hi all, , | Org Special Ctrl A/E: Hide Value Value Menu after stars/bullet and before tags first | State: EDITED, shown value does not take effect until you set or save it. | Non-nil means `C-a' and `C-e' behave specially in headlines and items. Hide Rest snip | When set to the symbol `reversed', the first `C-a' or `C-e' works normally, | and only a directly following, identical keypress will bring the cursor | to the special positions. snip | Groups: Org Edit Structure ` How can I set this variable to reversed, as indicated in the paragraph before the last one? The Value Menu does not include such a value. Rainer Hi Rainer, Put (setq org-special-ctrl-a/e 'reversed) into your .emacs. Best, Brian vdB Hi Brian, thanks, that's intuitive ... I just thought the value could be set in the variable customisation. Have a nice day, Rainer Hi Rainer, I mostly use customization for discovery and prefer to maintain my configuration independently of its interface. If you've a bit of elisp (that's all I've got ;-) it's generally pretty easy to figure out such things. Bastien: As you are wearing the Carsten-hat for the moment, it strikes me that Rainer's expectation that a documented value for the variable would be available in the customization value-menu is reasonable. Perhaps the reversed option ought to be added to that menu? Alas, I can't patch---it really is but a bit of elisp that I've got. Best, Brian vdB ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Comments in Org-mode
Matthew Lundin m...@imapmail.org writes: Manuel Amador amador.man...@gmail.com writes: I think I have found a bug (or a feature!). Sometimes when writing documents I tend to comment out a line by adding a # in the column 0. However, after doing this in a line at the middle of the document, I get the following behavior: * Random stuff Some initial things. # Then I comment this line out But when I keep writing a sufficiently long line such that # the cursor moves to the next line, a # character creeps in! # and will keep appearing for the remainder of the document. -- I cannot duplicate the problem (but only partially). I experienced extra comment lines inserted only when there was no space between the initial comment line and the uncommented line, i.e.: # Then I comment this line out But when I keep writing a sufficiently long line such that # the cursor moves to the next line, a # character creeps in! # and will keep appearing for the remainder of the document. I did not experience extra comment lines in lines further down the text. I can reproduce it with `emacs -Q' here (transient-mark-mode is t in current emacs 23). The trick is to use `comment-region'. Here's the recipe: sh$ emacs -Q C-x d ~/emacs/lisp/ext/org-mode/lisp RET % m \.elc$ RET L y L y L y L y L y ... until files are loaded successfully C-x C-f file.org M-x auto-fill-mode To get the error, you must select a region: C-SPACE C-n C-n C-n M-x comment-region RET # RET Note here: the indentation is wrong. You might want to correct this, before going on (comment char not in first column). It doesn't change the behavior. Now type some `C-j' more text and see what happens. The bad thing is, once it started, it never ends. No matter where text is wrapped, you get the `#' at the start of line. Also, _no_ comment char is inserted, if add a comment by hand without a preceding new line. To try this, you'll have to restart emacs -Q weoru oeori tueportpoeiurptoeiurtopueoru toeuiroeuir topewrtoeoru toeu toe ewprou oeur poeuiopuwe rteowp ru erwoi uteo t. # Asdfsdf - NOW ADD A LOT OF TEXT TO THIS COMMENT ... Sebastian ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Comments in Org-mode
Sebastian, The proposed fix by Samuel did seem to correct this problem for me. This is what I added to my .emacs file: (require 'filladapt) ;; fixes problems with autofill in orgmode (if (featurep 'filladapt) (filladapt-mode 1)) (setq filladapt-token-table '( ;; this must be first (^ beginning-of-line) ;; Included text in news or mail replies (+ citation-) ;; Included text generated by SUPERCITE. We can't hope to match all ;; the possible variations, your mileage may vary. (\\(\\w\\|[0-9]\\)[^'`\ \t\n]*[ \t]* supercite-citation) ;; Lisp comments (;+ lisp-comment) ;; UNIX shell comments (#+ sh-comment) ;; Postscript comments (%+ postscript-comment) ;; C++ comments (///* c++-comment) ;; Texinfo comments (@c[ \t] texinfo-comment) (@comment[ \t] texinfo-comment) ;; Bullet types. ;; ;; LaTex \item ;; (item[ \t] bullet) ;; ;; 1. x ;;x ;; (^[]+[0-9]+\\.[ \t] bullet) ;; ;; 2.1.3 x xx x xx x ;;xxx ;; (^[]+[0-9]+\\(\\.[0-9]+\\)+[ \t] bullet) ;; ;; a. xx xx ;;xxx xxx ;; (^[]+[A-Za-z]\\.[ \t] bullet) ;; ;; 1) x xx x xx or (1) xx xx x x xx xx ;;xx xx xxx xx x x xx x ;; (^[]+(?[0-9]+)[ \t] bullet) ;; ;; a) x xx x xx or (a) xx xx x x xx xx ;;xx xx xxx xx x x xx x ;; (^[]+(?[A-Za-z])[ \t] bullet) ;; ;; 2a. xx x xxx x x xxx ;; xxx xx x xx x ;; (^[]+[0-9]+[A-Za-z]\\.[ \t] bullet) ;; ;; 1a) x xx x xx or (1a) xx xx x x xx xx ;; xx xx xxx xx x x xx x ;; (^[]+(?[0-9]+[A-Za-z])[ \t] bullet) ;; ;; - xx xxx or * xx xx x xxx xxx ;;xxx xx xx x xxx x xx x x x ;; (^[]+[-~*+]+[ \t] bullet) ;; ;; o xx xxx xx x xx xxx x xxx xx x xxx ;;xxx xx xx ;; (^[]+o[ \t] bullet) ;; don't touch ([ \t]+ space) ($ end-of-line) )) Manuel On Wed, Jul 15, 2009 at 07:15:42PM +0200, Sebastian Rose wrote: Matthew Lundin m...@imapmail.org writes: Manuel Amador amador.man...@gmail.com writes: I think I have found a bug (or a feature!). Sometimes when writing documents I tend to comment out a line by adding a # in the column 0. However, after doing this in a line at the middle of the document, I get the following behavior: * Random stuff Some initial things. # Then I comment this line out But when I keep writing a sufficiently long line such that # the cursor moves to the next line, a # character creeps in! # and will keep appearing for the remainder of the document. -- I cannot duplicate the problem (but only partially). I experienced extra comment lines inserted only when there was no space between the initial comment line and the uncommented line, i.e.: # Then I comment this line out But when I keep writing a sufficiently long line such that # the cursor moves to the next line, a # character creeps in! # and will keep appearing for the remainder of the document. I did not experience extra comment lines in lines further down the text. I can reproduce it with `emacs -Q' here (transient-mark-mode is t in current emacs 23). The trick is to use `comment-region'. Here's the recipe: sh$ emacs -Q C-x d ~/emacs/lisp/ext/org-mode/lisp RET % m \.elc$ RET L y L y L y L y L y ... until files are loaded successfully C-x C-f file.org M-x auto-fill-mode To get the error, you must select a region: C-SPACE C-n C-n C-n M-x comment-region RET # RET Note here: the indentation is wrong. You might want to correct this, before going on (comment char not in first column). It doesn't change the behavior. Now type some `C-j' more text and see what happens. The bad thing is, once it started, it never ends. No matter where text is wrapped, you get the `#' at the start of line. Also, _no_ comment char is inserted, if add a comment by hand without a preceding new line. To try this, you'll have to restart emacs -Q weoru oeori tueportpoeiurptoeiurtopueoru toeuiroeuir topewrtoeoru toeu toe ewprou oeur poeuiopuwe rteowp ru erwoi uteo t. # Asdfsdf - NOW ADD A LOT OF TEXT TO THIS COMMENT ... Sebastian ___ 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] Vertical split in Emacs 23
Hi, I've recently upgraded to Emacs 23, and I'm not at all impressed with the vertical split that it seems to prefer when there's supposedly enough buffer width to allow it - the Agenda gets squashed up and things like the TODO quick selection menus look terrible. Is there a way of changing this back to the old behaviour? Through experimentation I've found that if I reduce the frame width sufficiently it reverts to horizontal split but I like to work with emacs maximized most often. Thanks Paul ___ 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] Quick aquamacs related windowing question
Quick follow-up: The problem seems to be related to a block of code in org-read-date that's wrapped in (save-excursion (save-window-excursion )) Does anyone have a clear understanding of how these two special forms are going to interact? I looked into the documentation for save-window-excursion, and while it saves the currently-selected WINDOW, it does NOT save (or at least the info page doesn't say it saves) the currently-selected FRAME. So this seems to be my problem. I will try to discover how to either save the currently selected frame (this may not be possible --- I don't know how Emacs interacts with the window manager), or how to tell Aquamacs to always pop up the *Calendar* buffer in the same frame. Best, Robert ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Org Special Ctrl A/E, option reversed
Brian van den Broek van...@gmail.com wrote: Bastien: As you are wearing the Carsten-hat for the moment, it strikes me that Rainer's expectation that a documented value for the variable would be available in the customization value-menu is reasonable. Perhaps the reversed option ought to be added to that menu? Alas, I can't patch---it really is but a bit of elisp that I've got. Here's the defcustom for this variable (found by C-h v org-special-ctrl-a/e RET and then clicking on the file link in the *Help* buffer): , | (defcustom org-special-ctrl-a/e nil | Non-nil means `C-a' and `C-e' behave specially in headlines and items. | | When t, `C-a' will bring back the cursor to the beginning of the | headline text, i.e. after the stars and after a possible TODO keyword. | In an item, this will be the position after the bullet. | When the cursor is already at that position, another `C-a' will bring | it to the beginning of the line. | | `C-e' will jump to the end of the headline, ignoring the presence of tags | in the headline. A second `C-e' will then jump to the true end of the | line, after any tags. | | When set to the symbol `reversed', the first `C-a' or `C-e' works normally, | and only a directly following, identical keypress will bring the cursor | to the special positions. | | This may also be a cons cell where the behavior for `C-a' and `C-e' is | set separately. | :group 'org-edit-structure | :type '(choice | (const :tag off nil) | (const :tag after stars/bullet and before tags first t) | (const :tag true line boundary first reversed) | (cons :tag Set C-a and C-e separately | (choice :tag Special C-a | (const :tag off nil) | (const :tag after stars/bullet first t) | (const :tag before stars/bullet first reversed)) | (choice :tag Special C-e | (const :tag off nil) | (const :tag before tags first t) | (const :tag after tags first reversed) | ` As you can see, the reversed setting is available from the value menu, under the tag true line boundary first. So it is there, but perhaps not obviously. HTH, Nick PS BTW, I share your general dislike of the customization interface, but I have always thought that I am in the minority on that. ___ 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] UIDs in icalendar export (exporting my agenda)
hello, i want to export my org-agenda as an icalendar file so that i can load it into some online calendar and access it on my phone. however, i'm facing some issues with the iCalendar files which org is generating. i can reproduce the problem by using org-export-icalendar-this-file on the following (simple) org file ---test.org * 2009-05-24 +1y bob dylan * 2009-01-27 +1y mozart ---/test.org here's the test.ics that gets generated: ---test.ics BEGIN:VCALENDAR VERSION:2.0 X-WR-CALNAME:test PRODID:-//my-name//Emacs with Org-mode//EN X-WR-TIMEZONE:+0530 CALSCALE:GREGORIAN BEGIN:VEVENT UID: TS-c7g0uc40uoe0 DTSTART;VALUE=DATE:20090524 DTEND;VALUE=DATE:20090525 RRULE:FREQ=YEARLY;INTERVAL=1 SUMMARY: bob dylan CATEGORIES:test END:VEVENT BEGIN:VEVENT UID: TS-c7g0uc40uoe0 DTSTART;VALUE=DATE:20090127 DTEND;VALUE=DATE:20090128 RRULE:FREQ=YEARLY;INTERVAL=1 SUMMARY: mozart CATEGORIES:test END:VEVENT END:VCALENDAR ---/test.ics if you notice, the UIDs in both the events are same. aren't they supposed to be different? when i import this file into an online calendar (like google) one of the event is dropped. am i missing something? i'm using org 6.28trans on emacs 23.0.94. thanks, -- ajd. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Vertical split in Emacs 23
Hey Paul, Paul Mead paul.d.m...@gmail.com writes: Hi, I've recently upgraded to Emacs 23, and I'm not at all impressed with the vertical split that it seems to prefer when there's supposedly enough buffer width to allow it - the Agenda gets squashed up and things like the TODO quick selection menus look terrible. Is there a way of changing this back to the old behaviour? I don't know if this will exactly revert it back to the previous behavior, but if you change `split-width-threshold' to a bigger number (e.g. 999) than the default it should be more sensible looking. Thanks Paul br, benny ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Org Special Ctrl A/E, option reversed
On Wed, Jul 15, 2009 at 10:52, Nick Dokosnicholas.do...@hp.com wrote: I have always thought that I am in the minority on that. I think that many people share the opinion. I wrote a list of suggestions to help-gnu-emacs and bug-gnu-emacs, but somebody needs to implement them. -- Myalgic encephalomyelitis makes you die decades early (Jason et al. 2006) and suffer severely. Conflicts of interest are destroying research. Silence = death. Again. http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] UIDs in icalendar export (exporting my agenda)
aldrin d'souza aldrindso...@gmail.com wrote: i want to export my org-agenda as an icalendar file so that i can load it into some online calendar and access it on my phone. however, i'm facing some issues with the iCalendar files which org is generating. i can reproduce the problem by using org-export-icalendar-this-file on the following (simple) org file ---test.org * 2009-05-24 +1y bob dylan * 2009-01-27 +1y mozart ---/test.org here's the test.ics that gets generated: ---test.ics ---/test.ics if you notice, the UIDs in both the events are same. aren't they supposed to be different? when i import this file into an online calendar (like google) one of the event is dropped. am i missing something? i'm using org 6.28trans on emacs 23.0.94. I tried your test.org and my test.ics has different UIDs for the two events. They also have a different format: UID: TS-01503584-f7a0-4b1d-b826-6a573852c4f7 UID: TS-891e3508-5228-4101-84dd-72f509a4b757 so we must be using different methods of UID generation. What is the value of org-id-method in your setup? Mine says: C-h v org-id-methodRET , | org-id-method is a variable defined in `org-id.el'. | Its value is uuidgen | ... ` Then, looking at the code, the UID is set through this expression: (if org-icalendar-store-UID (org-id-get-create) (or (org-id-get) (org-id-new))) I presume (but you should check) that you have org-icalendar-store-UID set to t (mine is defaulted to nil) which means that it gets the UID stored in an ID property in the item (with the variable set to nil, a new UID is generated every time, which is OK for experimentation, but probably not OK for synchronizing: you'd want the ID of an item to remain constant in that case). Could it be that both your items have the same value for this property? What happens if you delete the ID value from one (or both) and then try the export again? HTH, Nick ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: UIDs in icalendar export (exporting my agenda)
aldrin d'souza aldrindso...@gmail.com writes: if you notice, the UIDs in both the events are same. aren't they supposed to be different? when i import this file into an online calendar (like google) one of the event is dropped. am i missing something? i'm using org 6.28trans on emacs 23.0.94. My guess: you're running on a system where current-time always returns zero micro-seconds (Windows?); try with M-: (current-time). In the ideal case the output in the echo area looks like (19038 12367 114552), but yours is probably like (19038 12367 0). Since you don't have the uuidgen utility installed, the function `org-id-time-to-b36' is being called to generate the id, but since it's called twice in the same second and depends on current-time, it returns the same value twice. So someone should make `org-id-time-to-b36' return unique values in this case. (Append a random number?) Magnus ___ 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] Export Org Mode in Wiki Format
Hello, I am a newbie but have done a Google search for this. I would like to export a .org file to a Confluence wiki page. Does anyone have any insight of how to do this? Thanks, Mike -- Mike Malloy | Senior Director of Product Management | Appregatta Technologies, Inc. 45 Belden Place | San Francisco, CA 94104 | 415.391.2408 ___ 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] Proper way to link external files into a project?
Sebastian Rose sebastian_r...@gmx.de writes: Andreas Rottmann a.rottm...@gmx.at writes: Hi! I'd like to include several files into an org-mode project that live outside the project tree. I tried to just symlink them into the appropriate place into my project, and thought that might suffice to get them published correctly, but that doesn't work out, as org-mode doesn't consider the symlink's name, but the true filename; for example, I have this: First of all: How about hardlinks? I'd rather not use them in this case. Second: See http://orgmode.org/worg/org-tutorials/org-publish-html-tutorial.php#sec-7.1 That shows how you can share files between projects, simply by pulling them in through a special export project. I use this technique a lot. One advantage is that each project has a complete set of files. The drawbacks are minor for my use-case, but that might vary. But as linking was enough, this approach should be fine. Thanks! I'm now using this approach, and it works well. The only drawback for me is that I have to pollute the included projects' org files with a line like this: #+SETUPFILE: ~/.emacs.d/org-templates/level-2.org Ideally, I'd like to have that information inferred, or at least external to the included projects, as they should not have to know at which location they are used. You don't know about a trick how to get around this? I'd also be willing to write some elisp to that end... Regards, Rotty -- Andreas Rottmann -- http://rotty.yi.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] Export Org Mode in Wiki Format
On Jul 15, 2009, at 12:30 PM, Mike Malloy wrote: I would like to export a .org file to a Confluence wiki page. Does anyone have any insight of how to do this? I'v found that exporting to HTML then visiting http://toolserver.org/~diberri/cgi-bin/html2wiki/index.cgi works quite nicely. I don't use confluence, but the MoinMoin conversion is reasonable. Hope this helps, Ed ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: org-style folding for a .emacs
Hello Eric, Eric Schulte wrote: I've added some simplifying functions to the literate programming functionality of org-babel. It should now be easy to embed your elisp initialization into org-mode files. Specifically there is now a new `org-babel-load-file' function which can load the elisp portions of org-mode files in the same manner as the normal `load-file' command. To use this you need to clone the latest version of org-babel[1], and then add the following to your emacs initialization (this worked for me when a base emacs emacs -Q). (add-to-list 'load-path ~/path/to/org/lisp) (add-to-list 'load-path ~/path/to/org-babel/lisp) (require 'org-babel-init) ;; now you can load your org-mode files with embedded elisp (org-babel-load-file ~/path/to/org-mode-file.org) ;; for example (org-babel-load-file ~/path/to/org-babel/test-tangle.org) Hopefully this will provide the literate programming functionality without too much trouble. I'm a heavy user of literate programming for rapports I write for clients (in fact, for me, first, but I give them to our clients as well). Up to a couple of months ago, I was doing literate programming via LaTeX and nuweb, from Windows as my nuweb binary was just available for that platform. So, writing a `.w' file from which I extract a `.tex' one and the source code. Then, the last time I did it, I switched to doing such reports under Ubuntu, with the noweb package. That is a `.nw' file which is compiled to a `.tex', and which is as well outputting all my code. This is nice, and works well. But, now, I am trying as hard as possible to avoid writing LaTeX directly and let Org do the work for me. So, if I can use Org to create my `.tex' file and the source code from it as well (did I understand correctly?), then that will be wonderful. Do you have examples or a tiny tutorial about this? Best regards, Seb PS- Excellent you're looking at this, because I thought I was the latest literate programmer on earth. All the mailing lists about that are dying. -- Sébastien Vauban ___ 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] sorting a single todo kw by inactive timestamp
I have siblings with various todo kw. I would like to sort just the ones with a certain todo kw (which, if it makes it easier, can be considered to be contiguous) by the first inactive timestamp. I want all the other nodes to not be changed in any way. Does anybody have safe code for doing this type of thing? Perhaps the way it is done is to select a region of a bunch of contiguous nodes that have a given todo kw, but I don't want to reinvent regexps or figure out all the ways that such code could be brittle. This is to be called automatically. Thanks. ___ 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-style folding for a .emacs
El lun, jul 13 2009 a les 23:23, Scot Becker va escriure: Does anyone have a recipe for easy org-style folding of an elisp file? I'd like to divide my .emacs into segments to make it easier to oversee and navigate. I did this without needing to change variables or define new functions. Just add at the first line: ; -*- mode: emacs-lisp; mode:outline-minor; outline-regexp:* [^\n] -*- (Reopen the file to activate that). And then start headings with ;;; (that's level 1), for instance: ;;; a ; something else a.1 ; bla ;; this is still a normal comment ;;; b Cycle with C-tab, C-S-tab, … -- Daniel ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode