Re: [Orgmode] Re: Orgmodeorg-export-generic gives an error
Applied, thanks. Wes Hardaker wjhns...@hardakers.net writes: This patch to it should fix things: diff --git a/lisp/org-export-generic.el b/lisp/org-export-generic.el index 64dcb1f..c9fc161 100644 --- a/lisp/org-export-generic.el +++ b/lisp/org-export-generic.el @@ -1029,7 +1029,7 @@ REVERSE means to reverse the list if the plist match is a list subtype) (cond ((null prefixtype) ) - ((and len (characterp prefixtype)) + ((and len (char-or-string-p prefixtype) (not (stringp prefixtype))) ;; sequence of chars (concat (make-string len prefixtype) \n)) ((stringp prefixtype) -- Bastien ___ 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] Feature request: javascript expand collapse
Hi Xin, Xin Shi shixin...@gmail.com writes: I'm sorry that I didn't explain it clearly. Here is what I mean. For instance, one can open this page: http://orgmode.org/Changes.html ^ All one can do is to click the sections and read each pages. If a certain page turns out to be very long, there is no easy way to make it shorter in the first place, then click on the needed parts. The org-info.js script is explicitely done for this, and that's why there is no long page when browsing the manual from this interface... One might say that you can always put those into different sections, but I think it's just another option for people. If it sounds too complicated, we can just leave with this and wait until more people need ... :) Yeah :) -- Bastien ___ 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: OrgmodeOrg-mode as a bug tracker.
Óscar Fuentes o...@wanadoo.es writes: Wes Hardaker wjhns...@hardakers.net writes: o The only downside is the lack of a referenced wiki system: simple links o to revisions (r1010) tickets (#245) etc. You can actually get around this somewhat if you're linking to, say, a svn web server. I do this using something like this: (setq org-link-abbrev-alist '( (nsb . http://sourceforge.net/tracker/index.php?func=detailgroup_id=12694atid=112694aid=%s;))) Thus any links like [[nsb:1234]] will link to the right web page for bug #1234 in the Net-SNMP bug database. SVN repo pointers, etc, can be done just as easily. More generally, using Org as a front-end for other bug tracking online tools looks more actionnable than using it as a back-end. I was thinking along this lines for implementing links to subversion revisions. However, links to bugs reports are not so easy, because you must explicitly assign a unique id to each TODO. org-id.el is not very human-friendly as it generates long ids. Aren't those ids always hidden, either within a link or within a drawer? I guess it is possible to fix this with some lisp customizations. Once the automatic generation and insertion of a simple (counter-based) unique id for each new TODO is achieved, linking to bugs becomes easy using the mechanism you mentioned above. I think it's already the case. -- Bastien ___ 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] emacs on the iPhone
Greg Newman g...@20seven.org writes: For those that are interested (and don't already know), there are a few apps out now for secure shell on the iphone. The one I'm using is issh by zingersoft. http://www.zinger-soft.com/iSSH_features.html So far I've had good luck with it and hopefully later this week will have time to poke a hole in my router to try connecting to my mac so I can give org-mode a try with it. I have successfully run emacs and irssi from my server but it's not setup for org. I got a HTC Magic running Android a few weeks ago. There is a free powerful and fast ssh application called ConnectBot available in the Android Market. ConnectBot can handle ssh keys and lets you put an icon for frequently used connections on the desktop. Connecting to my PC and starting emacsclient -t via a bash-alias (`ec') takes about 5 seconds from everywhere. I think running (and working with) a native Emacs on the phone itself (which isn't available anyway) could never be much faster. Gnus and Org-mode are ready to go. And no need to synchronize. This is the solution I always dreamed of and more than once asked about in this list. I can very much recommend Android (even if its relationship to Google can be annoying). For those who want to give it a try: In ConnectBot CTRL is pressing the mouse ball once, META (ESC) is pressing it twice. TAB is twice pressing the mouse ball and hitting SPC. To expand a tree in an org file you have to set org-cycle to a key. Of course, you should have an internet flatrate if you want to write your PhD thesis that way ;-). Greetings Sven -- Sven Bretfeld \ CEntrum für CERES \ REligionswissenschaftliche \_Studien__ Ruhr-Universität Bochum Universitätsstraße 150 D-44780 Bochum http://www.ruhr-uni-bochum.de/relwiss/Lehrstuhl/Mitarbeitende/Bretfeld.html ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Patch for windowing problem
Hi Robert, Robert Goldman rpgold...@sift.info writes: The closest I can do is to set calendar-setup to 'two-frame, which does pop up a frame and leave my cursor trapped in it, but it actually behaves even /worse/ than Aquamacs, because I can't assign a date at all. Yes, this is a bug - fixed. Let me know if it also fixes the other issue you have - if not, I will investigate further. Thanks for your patience! -- Bastien ___ 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] tabs pic mode and org
--- Mar 21/7/09, Rustom Mody rustompm...@gmail.com ha scritto: What is the way of telling org (or it picture mode?) -- No tab-chars please! Hi, Rustom, how about using emacs ? ;-) M-x untabify 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] Re: [SOLVED] org-export-blocks
I'm not sure if anyone is interested, but I found this pretty funny I was using Vim today (which I still occassionally do) and could not figure out why my save wasn't working for the doc I was editing. After numerous attempts, I looked down and saw my fingers were trying C-x C-s... That's a first for me! After weeks/months of trying not to use Vim :wq in Emacs I am now no longer able to use anything but Notepad.. ;-) SM 2009/7/16 Bastien bastiengue...@googlemail.com: Hi Simon, Simon Mullis si...@mullis.co.uk writes: (load /usr/share/org-mode/lisp/org-exp-blocks.el) The convention is to require a feature rather than to load a file: (require 'org-exp-blocks) The feature 'org-exp-blocks is provided by the library at the end: (provide 'org-exp-blocks) HTH, PS: welcome to the light side... -- Bastien -- 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
[Orgmode] Re: tabs pic mode and org
Rustom Mody rustompm...@gmail.com writes: When I try to use ditaa with org (which is a very neat combo BTW) I keep getting tabs in the picture which gives hell if I move rectangles around. What is the way of telling org (or it picture mode?) -- No tab-chars please! When I edit ditaa blocks in #begin_ditaa x.png #end_ditaa and then using C-c ' inside the block I never get TABs in the result. This prefixes all of the lines with ': ' and uses spaces only for the diagram. Are you doing something differently? My ditaa blocks look something like this: * Test #+begin_ditaa x.png : ++ : || +-+ : || | | : || | | : ++ +-+ #+end_ditaa -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] suggestion: converting plain lists to subtrees
A suggestion for a simple but useful command: convert a plain list to a full-blown org subtree. Sometimes I start with a plain list and later realize that it is getting complex and a full-fledged hierarchy is needed. Converting by hand is a pain. It would be great if this could be automated. Thanks, ilya ___ 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] suggestion: converting plain lists to subtrees
Ilya Shlyakhter ilya_...@alum.mit.edu writes: A suggestion for a simple but useful command: convert a plain list to a full-blown org subtree. Have you seen org-toggle-heading? (C-c * when not in a table). However, it seems that it doesn't preserve any list hierarchical structure when converting to headlines. Bastien -- I think C-c * could do with a mention in the manual section on Plain Lists. Here's a patch which just copies the section on C-c * from the Structure Editing section. Dan diff --git a/doc/org.texi b/doc/org.texi index 3dc329e..75d9c79 100644 --- a/doc/org.texi +++ b/doc/org.texi @@ -1435,6 +1435,15 @@ region when calling this, all lines will be converted to list items. If the first line already was a list item, any item markers will be removed from the list. Finally, even without an active region, a normal line will be converted into a list item. +...@kindex C-c * +...@item C-c * +Turn a normal line or plain list item into a headline (so that it +becomes a subheading at its location). Also turn a headline into a +normal line by removing the stars. If there is an active region, turn +all lines in the region into headlines. If the first line in the +region was an item, turn only the item lines into headlines. Finally, +if the first line is a headline, remove the stars from all headlines +in the region. @kindex s...@key{left} @kindex s...@key{right} @item s...@key{left}/@key{right} Sometimes I start with a plain list and later realize that it is getting complex and a full-fledged hierarchy is needed. Converting by hand is a pain. It would be great if this could be automated. Thanks, ilya ___ 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] Error after org-remember-insinuate on Aquamacs
Hi all, Ok, I'm not really fluent in emacs, but I try to describe my problem anyhow ;-) I'm using org-mode in Aquamacs for a while now and since lately the following error occurs (unfortunately I don't know what change caused the problem): When loading the minimal .emacs below [1], which just loads org-mode and remember, I get the following error: Variable binding depth exceeds max-specpdl-size My setup is Aquamacs 1.8 orgmode 6.27a remember 2.0 If I load the same .emacs in the console based emacs (22.3.1) of the fink distribution on my mac no error occurs. And also no error occurs when commenting out org-remember-insinuate. Can anybody tell me what this max-specpdl-size is about (except from what i have learned from describe-variable) and (hopefully) help to get my Aquamacs/org-setup working again. (Btw: How can I debug emacs in order to find out where exactly the error lies) Thank you very much for your help, Markus [1] Here is the .emacs: ;; Org-Mode (setq load-path (cons ~/elisp/org-6.27a/lisp load-path)) (require 'org-install) ;; Orgmode remember (setq load-path (cons ~/elisp/remember/ load-path)) (require 'remember) (org-remember-insinuate) ; Fails! (define-key global-map \C-cr 'org-remember) ___ 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 after org-remember-insinuate on Aquamacs
Markus Baden markus.ba...@gmail.com wrote: Hi all, Ok, I'm not really fluent in emacs, but I try to describe my problem anyhow ;-) I'm using org-mode in Aquamacs for a while now and since lately the following error occurs (unfortunately I don't know what change caused the problem): Disclaimer: I know nothing about Aquamacs other than the name. When loading the minimal .emacs below [1], which just loads org-mode and remember, I get the following error: Variable binding depth exceeds max-specpdl-size This typically means that there is a recursive call (or a set of mutually recursive calls) that does not bottom out. My setup is Aquamacs 1.8 orgmode 6.27a remember 2.0 If I load the same .emacs in the console based emacs (22.3.1) of the fink distribution on my mac no error occurs. And also no error occurs when commenting out org-remember-insinuate. I hope you are starting both Aquamacs and the normal emacs so that they don't load any init files at all. For normal emacs, that's the -Q switch; I don't know what it is for Aquamacs. The only way I can think of that this difference in behavior might arise is by having the different emacsen start differently. Can anybody tell me what this max-specpdl-size is about (except from what i have learned from describe-variable) and (hopefully) help to get my Aquamacs/org-setup working again. (Btw: How can I debug emacs in order to find out where exactly the error lies) See the Feedback section in the org manual: http://orgmode.org/manual/index.html#Feedback It's likely that you'll get a large backtrace buffer, but it should be possible to find a cycle of calls that repeats endlessly in the backtrace. Thank you very much for your help, Markus [1] Here is the .emacs: ;; Org-Mode (setq load-path (cons ~/elisp/org-6.27a/lisp load-path)) (require 'org-install) ;; Orgmode remember (setq load-path (cons ~/elisp/remember/ load-path)) (require 'remember) (org-remember-insinuate) ; Fails! (define-key global-map \C-cr 'org-remember) FWIW, I tried this on my emacs (ubuntu 8.04, GNU Emacs 23.1.50.1 (i686-pc-linux-gnu), Org-mode version 6.28trans) and had no problem. 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] How to Calculate duration time in Table ?
Hello, I have a table in org which stores the date, I'm wondering if there is any function to calculate the duration? For example: | Start Date | End Date | Duration | |++--| | 2004.08.07 | 2005.07.08 | | I tried to use B-C, but failed ... Thanks! Xin ___ 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] ANN: org-mac-protocol, let's try again
Chris,I figured out what my issue was last night. My org-mode 6.25 was stomping on my git clone of 6.28b. With that fixed i can get it to work... with only links. With notes and remember i get the following error every time; any clues? Process *tramp/scp org-protocol* exited abnormally with code 255 On Mon, Jul 20, 2009 at 8:03 PM, Christopher Suckling suckling.l...@googlemail.com wrote: Apologies to the early adopters to whom I sold some dummies. Hopefully this should work better. (I had so much residual stuff sitting in memory that I was under the false impression that everything just worked TM) The installer is, I'm afraid, 10.5 only. The manual includes, um, manual installation instructions for 10.4. Available from: http://claviclaws.net/org/ or git://github.com/claviclaws/org-mac-protocol.git Best wishes, Christopher ___ 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] How to Calculate duration time in Table ?
Xin Shi shixin...@gmail.com wrote: I have a table in org which stores the date, I'm wondering if there is any function to calculate the duration? For example: | Start Date | End Date | Duration | |++--| | 2004.08.07 | 2005.07.08 | | I tried to use B-C, but failed ... Try the following: | Start Date | End Date | Duration | |++--| | 2004.08.07 | 2005.07.08 | 335 | #+TBLFM: $3=(date($2)-date($1)) See this thread: http://thread.gmane.org/gmane.emacs.orgmode/7741 as well as this post (which is really a followup on the above): http://article.gmane.org/gmane.emacs.orgmode/7753 The problem that this last article pointed out was solved in http://article.gmane.org/gmane.emacs.orgmode/8001 and Chris Randle's original musings are at http://article.gmane.org/gmane.emacs.orgmode/6536/ 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
Re: [Orgmode] emacs on the iPhone
Sven Bretfeld sven.bretf...@gmx.ch writes: Connecting to my PC and starting emacsclient -t via a bash-alias (`ec') takes about 5 seconds from everywhere. I think running (and working with) a native Emacs on the phone itself (which isn't available anyway) could never be much faster. Gnus and Org-mode are ready to go. And no need to synchronize. As an aside, you could actually run emacs natively on the g1. I've followed the instructions from Jay Freeman (http://www.saurik.com/id/10, seems to be down though, try using the Google cache) for installing Debian on the g1 (on your SD card -- I recommend getting an 8GB card). After you've installed Debian you run openssh and connect to localhost using ConnectBot. Even better, you could install xorg and run emacs using AndroidVNC in X, although I've found this to be much slower. Although, theoretically you could use a browser such as Conkeror in X to follow http links, although this is extremely slow for me. You're better off with w3m-el, until newer hardware comes out. Also note that the keyboard under AndroidVNC is not as nice as ConnectBot's layout. This is the solution I always dreamed of and more than once asked about in this list. I can very much recommend Android (even if its relationship to Google can be annoying). I also recommend Android. For those who want to give it a try: In ConnectBot CTRL is pressing the mouse ball once, META (ESC) is pressing it twice. TAB is twice pressing the mouse ball and hitting SPC. To expand a tree in an org file you have to set org-cycle to a key. Of course, you should have an internet flatrate if you want to write your PhD thesis that way ;-). With my solution, you don't need to drop all of that money on an internet plan, but you would need to sync your org files. For using the g1 without a plan, just buy a prepaid SIM card and connect using adb shell when registering the phone and execute: am start -a android.intent.action.MAIN -n com.android.settings/.Settings to bring up the Wifi settings and register without buying a dataplan. I spend about $10 a month prepaid and use Skype for everything else. Greetings Sven Thanks, ~Michael Zeller ___ 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] emacs on the iPhone
Man, you guys are making me want and android phone.I sat in a cafe with a friend who grep'd his mail server from his g1 and was impressed. On Tue, Jul 21, 2009 at 2:54 PM, Michael Zeller michael.dylan.zel...@gmail.com wrote: Sven Bretfeld sven.bretf...@gmx.ch writes: Connecting to my PC and starting emacsclient -t via a bash-alias (`ec') takes about 5 seconds from everywhere. I think running (and working with) a native Emacs on the phone itself (which isn't available anyway) could never be much faster. Gnus and Org-mode are ready to go. And no need to synchronize. As an aside, you could actually run emacs natively on the g1. I've followed the instructions from Jay Freeman (http://www.saurik.com/id/10, seems to be down though, try using the Google cache) for installing Debian on the g1 (on your SD card -- I recommend getting an 8GB card). After you've installed Debian you run openssh and connect to localhost using ConnectBot. Even better, you could install xorg and run emacs using AndroidVNC in X, although I've found this to be much slower. Although, theoretically you could use a browser such as Conkeror in X to follow http links, although this is extremely slow for me. You're better off with w3m-el, until newer hardware comes out. Also note that the keyboard under AndroidVNC is not as nice as ConnectBot's layout. This is the solution I always dreamed of and more than once asked about in this list. I can very much recommend Android (even if its relationship to Google can be annoying). I also recommend Android. For those who want to give it a try: In ConnectBot CTRL is pressing the mouse ball once, META (ESC) is pressing it twice. TAB is twice pressing the mouse ball and hitting SPC. To expand a tree in an org file you have to set org-cycle to a key. Of course, you should have an internet flatrate if you want to write your PhD thesis that way ;-). With my solution, you don't need to drop all of that money on an internet plan, but you would need to sync your org files. For using the g1 without a plan, just buy a prepaid SIM card and connect using adb shell when registering the phone and execute: am start -a android.intent.action.MAIN -n com.android.settings/.Settings to bring up the Wifi settings and register without buying a dataplan. I spend about $10 a month prepaid and use Skype for everything else. Greetings Sven Thanks, ~Michael Zeller ___ 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] suggestion: converting plain lists to subtrees
Dan Davison davi...@stats.ox.ac.uk writes: Ilya Shlyakhter ilya_...@alum.mit.edu writes: A suggestion for a simple but useful command: convert a plain list to a full-blown org subtree. Have you seen org-toggle-heading? (C-c * when not in a table). However, it seems that it doesn't preserve any list hierarchical structure when converting to headlines. Yes, Ilya suggestion makes sense, I will work on this. Bastien -- I think C-c * could do with a mention in the manual section on Plain Lists. Here's a patch which just copies the section on C-c * from the Structure Editing section. Applied, thanks! -- Bastien ___ 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] View Agenda for last 7 days
Hi Org peeps I'd like to have a custom agenda block to show the previous 7 days, or even the last week for GTD style weekly reviews, but I can't figure out how to make it go. So if I view the agenda on the 21st of july, I should see July 14th through 20th. If it is easier, seeing the 3rd week in July would also be fine (13th-19th) So far this is what I have for my org-agenda-custom-commands: (W Weekly Review ((agenda ((org-agenda-overriding-header Last 7 Days (broken)) (org-agenda-ndays 7) (org-agenda-repeating-timestamp-show-all t))) (agenda ((org-agenda-overriding-header Next 30 Days) (org-agenda-ndays 30) (org-agenda-include-diary t) (org-agenda-files nil) (org-agenda-show-all-dates t) (org-agenda-use-time-grid nil))) (stuck ) ,(jonnay-org-tags-todo PROJECTs that are waiting to be re-understood (list _reproject) PROJECT) (todo PROJECT) (todo TODO) (todo WAITING)) nil (weekly.html weekly.ps )) I tried setting org-agenda-ndays to -7, but that didn't really work. Is there some way to tell org-agenda to start at a different date? Jonathan Arkell Sr. Developer Inspired by Drum + Bass, Scheme, Kawaii 402 - 11 Avenue SE Calgary, AB T2G 0Y4 t: 403.206.4377 www.criticalmass.com The information contained in this message is confidential. It is intended to be read only by the individual or entity named above or their designee. If the reader of this message is not the intended recipient, you are hereby notified that any distribution of this message, in any form, is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete or destroy any copy of this message. ___ 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: View Agenda for last 7 days
Jonathan Arkell jonath...@criticalmass.com writes: Hi Org peeps I'd like to have a custom agenda block to show the previous 7 days, or even the last week for GTD style weekly reviews, but I can't figure out how to make it go. So if I view the agenda on the 21st of july, I should see July 14th through 20th. If it is easier, seeing the 3rd week in July would also be fine (13th-19th) That's easy... but it's not a custom agenda... (setq org-agenda-start-on-weekday nil) then your weekly agenda starts on today. Then left arrow to the 7 days before today. You can also jump directly to any date with 'j' in the agenda to show the 7 days starting on the given date. Does that help? -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
Re: [Orgmode] How to Calculate duration time in Table ?
Nick Dokos nicholas.do...@hp.com writes: Try the following: | Start Date | End Date | Duration | |++--| | 2004.08.07 | 2005.07.08 | 335 | #+TBLFM: $3=(date($2)-date($1)) Nice, I added a note in Worg/org-hacks.org. -- Bastien ___ 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] View Agenda for last 7 days
Jonathan Arkell jonath...@criticalmass.com writes: I'd like to have a custom agenda block to show the previous 7 days, or even the last week for GTD style weekly reviews, but I can't figure out how to make it go. Check `org-agenda-start-day' - combining it with `org-agenda-ndays' should do it. HTH, -- Bastien ___ 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] How to Calculate duration time in Table ?
Bastien bastiengue...@googlemail.com wrote: Nick Dokos nicholas.do...@hp.com writes: Try the following: | Start Date | End Date | Duration | |++--| | 2004.08.07 | 2005.07.08 | 335 | #+TBLFM: $3=(date($2)-date($1)) Nice, I added a note in Worg/org-hacks.org. Thanks for doing that. The only problem is that the TBLFM line has been stripped, so it's not clear *what* the solution is, unless one follows the link to the message. Would it work better if I had quoted the above (e.g. boxquote or the gnus message method)? Thanks, 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: Orgmodeorg-export-generic gives an error
On Mon, 20 Jul 2009 15:39:06 -0700, Wes Hardaker wrote: On Fri, 17 Jul 2009 20:19:19 + (UTC), srinivas sp...@yahoo.com said: s Nick Dokos suggested the following fix to .emacs: s (if ( emacs-major-version 23) s (defun characterp (obj) s (and (char-or-string-p obj) (not (stringp obj) s Inserting this check makes org-export-generic work for me. My Emacs s version on Windows is 22.3.1. (I was on vacation for a week and didn't see this problem). I wrote export-generic under xemacs and didn't notice that there was a function compatibility issue. This patch to it should fix things: diff --git a/lisp/org-export-generic.el b/lisp/org-export-generic.el index 64dcb1f..c9fc161 100644 --- a/lisp/org-export-generic.el +++ b/lisp/org-export-generic.el @@ -1029,7 +1029,7 @@ REVERSE means to reverse the list if the plist match is a list subtype) (cond ((null prefixtype) ) - ((and len (characterp prefixtype)) + ((and len (char-or-string-p prefixtype) (not (stringp prefixtype ))) ;; sequence of chars (concat (make-string len prefixtype) \n)) ((stringp prefixtype) Someone mentioned in a previous post about a function you use to create a new org-generic-alist called set-alist which is not known in gnu emacs. (defun org-set-generic-type (type definition) Adds a TYPE and DEFINITION to the existing list of defined generic export definitions. (set-alist 'org-generic-alist type definition)) I went searching for the function. I found the library which seems to be part of the xemacs bundle. What could we use for people who use gnu emacs? Is there a function in emacs that would be a good substitute? Shelagh ___ 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] ANN: org-mac-protocol, let's try again
On Tue, 21 Jul 2009 15:15:09 -0400, Greg Newman g...@20seven.org wrote: Chris,I figured out what my issue was last night. My org-mode 6.25 was stomping on my git clone of 6.28b. With that fixed i can get it to work... with only links. With notes and remember i get the following error every time; any clues? Process *tramp/scp org-protocol* exited abnormally with code 255 Greg, I did come across this. Unfortunately, I didn't make a note of when or where and can't reproduce it this evening. I have a suspicion, but only a suspicion, that it may have resulted from a (now fixed) tramp bug in CVS Emacs. I last complied on 15 July. Could this be a possibility? [There are gaps in the above logic; I can't figure out why org-link should work whilst org-note and org-remember bork. I'm clutching at straws. No idea why it is so fragile.] Christopher ___ 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] How to Calculate duration time in Table ?
Nick Dokos nicholas.do...@hp.com writes: Bastien bastiengue...@googlemail.com wrote: Nick Dokos nicholas.do...@hp.com writes: Try the following: | Start Date | End Date | Duration | |++--| | 2004.08.07 | 2005.07.08 | 335 | #+TBLFM: $3=(date($2)-date($1)) Nice, I added a note in Worg/org-hacks.org. Thanks for doing that. The only problem is that the TBLFM line has been stripped, so it's not clear *what* the solution is, unless one follows the link to the message. Opps, fixed! Thanks for checking. Would it work better if I had quoted the above (e.g. boxquote or the gnus message method)? No no, I just need more sleep :) -- Bastien ___ 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: Orgmodeorg-export-generic gives an error
Shelagh Manton shelagh.man...@gmail.com writes: Someone mentioned in a previous post about a function you use to create a new org-generic-alist called set-alist which is not known in gnu emacs. (defun org-set-generic-type (type definition) Adds a TYPE and DEFINITION to the existing list of defined generic export definitions. (set-alist 'org-generic-alist type definition)) I went searching for the function. I found the library which seems to be part of the xemacs bundle. What could we use for people who use gnu emacs? Is there a function in emacs that would be a good substitute? (defun set-alist (symbol key value) Set cdr of an element (KEY . ...) in the alist bound to SYMBOL to VALUE. (or (boundp symbol) (set symbol nil)) (set symbol (put-alist key value (symbol-value symbol (defun put-alist (key value alist) Set cdr of an element (KEY . ...) in ALIST to VALUE and return ALIST. If there is no such element, create a new pair (KEY . VALUE) and return a new alist whose car is the new pair and cdr is ALIST. (let ((elm (assoc key alist))) (if elm (progn (setcdr elm value) alist) (cons (cons key value) alist Those two functions come from alist.el which is included in Apel: http://pdb.finkproject.org/pdb/package.php/apel PS: On debian ~$ apt-get install apel should be okay... -- Bastien ___ 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] Unnecessary comma escapes in HTML export of #+INCLUDE files
If I include a file in my Org file, say using #+INCLUDE: script.sh src sh and export to HTML, the included file shows up as a pre block, which is nice. However, a leading comma is put in front of every line that starts with a #, even those with leading whitespace. I understand that a comma is used to escape # in the first column of literal examples, to distinguish from Org comment lines. (This escaping is no longer strictly necessary, since the #+BEGIN_EXAMPLE block can now be indented.) For included files, could we not add the escaping commas? Thanks for considering! -- Best, Hsiu-Khuern. ___ 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] How to Calculate duration time in Table ?
Cool! thanks for all :) Xin On Tue, Jul 21, 2009 at 7:47 PM, Bastien bastiengue...@googlemail.comwrote: Nick Dokos nicholas.do...@hp.com writes: Bastien bastiengue...@googlemail.com wrote: Nick Dokos nicholas.do...@hp.com writes: Try the following: | Start Date | End Date | Duration | |++--| | 2004.08.07 | 2005.07.08 | 335 | #+TBLFM: $3=(date($2)-date($1)) Nice, I added a note in Worg/org-hacks.org. Thanks for doing that. The only problem is that the TBLFM line has been stripped, so it's not clear *what* the solution is, unless one follows the link to the message. Opps, fixed! Thanks for checking. Would it work better if I had quoted the above (e.g. boxquote or the gnus message method)? No no, I just need more sleep :) -- Bastien ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: tabs pic mode and org
Thanks Bernt for C-c ' -- thats what I needed. BTW Whats the : at BOL for? On Tue, Jul 21, 2009 at 10:29 PM, Bernt Hansenbe...@norang.ca wrote: Rustom Mody rustompm...@gmail.com writes: When I try to use ditaa with org (which is a very neat combo BTW) I keep getting tabs in the picture which gives hell if I move rectangles around. What is the way of telling org (or it picture mode?) -- No tab-chars please! When I edit ditaa blocks in #begin_ditaa x.png #end_ditaa and then using C-c ' inside the block I never get TABs in the result. This prefixes all of the lines with ': ' and uses spaces only for the diagram. Are you doing something differently? My ditaa blocks look something like this: * Test #+begin_ditaa x.png : ++ : | | +-+ : | | | | : | | | | : ++ +-+ #+end_ditaa -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