[Orgmode] dates in a spreadsheet
I'm using the spreadsheet capabilities of org for the first time (very cool!) to plan an upcoming trip. I'd like to create a column formula to automatically calculate the dates/day of week but I'm a bit stumped. I don't see a way for the formula to know which row it is currently processing. I'm also coming up short trying to find any elisp to go from day of year - formatted date string. Any suggestions? ___ 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] Request for help
He everyone, as you probably have noticed, I am currently having trouble to keep up with addressing the issues that come up here on the mailing list. This is due to a very high load at my work (double teaching, plus a new satellite observatory which, after initial problems, now works and binds a lot of my time), and also due to some other problems and commitments. My preference would be that I use the time that currently remains for addressing bigger issues, like implementing encryption for MobileOrg, better support for entities in all backends, and preparing the next release. Some of you don't know Emacs Lisp, but do know enough about Org so that you could help answering more general questions on the mailing list. Some of you know Emacs Lisp and are (or want to become) contributers with copyright assignment. If you could try to step up efforts and adopt some of the issues that come up here, that would be very much appreciated. Maybe drop a quick message announcing that you will be the one working on it, so that we can avoid double work. That would allow me to ignore that thread until you come back with either a solution (a patch?), or a summary of the discussion around it, proposing further action or proposing to drop it. Thanks, and yes, I know that many people are already doing some of what I am asking for. - Carsten ___ 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] org-babel: tangling to latex .sty/.cls files
Hi all, a while ago Babel allowed latex code to be tangled to a file named f.sty or f.cls ; it's currently not possible any more, because the tangled file is named f.sty.tex or f.cls.tex. I tried to deal with it but I'm really missing this feature a lot. Do you think org-babel could allow this again ? Thanks very much in advance, cheers, Nicolas ___ 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] Disabling warnings when following [[elisp:...]] links
Hi, is it possible to disable warnings when following [[elisp:...]] links on a per-buffer basis ? I'd find this much useful ! Thanks in advance, Nicolas ___ 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] Re: Disabling warnings when following [[elisp:...]] links
You should be able to customize variable `org-confirm-elisp-link-function' and to do it per-buffer basis works with emacs file local variables. Begin the org-file with this line: -*- org-confirm-elisp-link-function: nil -*- then re-open the file. For more info: (info (Emacs) Specifying File Variables) -- Mikael Fornius ___ 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] Export HTML from command line
From the documentation http://orgmode.org/manual/Quoting-HTML-tags.html#Quoting-HTML-tags I would say that you need to remove the : in #+BEGIN_HTML: and the closing line. However leaving them works also on my emacs (org 6.31trans). If it still does not work, can you send a minimal org file in which the error is reproducible ? Pierre Le 16 mars 10 à 20:47, Zachary Young a écrit : Hi all, When I run `org-export-as-html' in a buffer, it works as I expect, but when I try to run it from an emacs batch command: emacs --batch --execute='(setq vc-follow-symlinks nil)' -- visit=current-day.org --execute='(org-export-as-html-and-open nil)' anything between #+BEGIN_HTML: and #+END_HTML: are exported like the following: p#+BEGIN_HTML: lt;pregt;Revision: 934 Message: /pol li Revved 'release-name' variable to '1.10'. /li /ol p Modified : /trunk/scripts/AutoDoc/AutoDoc.buildlt;/pregt; #+END_HTML: /p and I am expecting: preRevision: 934 Message: 1) Revved 'release-name' variable to '1.10'. Modified : /trunk/scripts/AutoDoc/AutoDoc.build/pre This is my first try at running emacs as a batch command, so I might be doing something wrong there. If more information is required, please let me know. Thank you, Zach ___ 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] Clocking in the current task should clock it out first
Hi, in recent org-modes a new behaviour was added: when doing C-c C-x C-i on the current task, it isn't clocked out first. It shows the message „Clock continues in [task]“ and adds a new line for the clock in. This creates a clock section like: #+BEGIN_EXAMPLE *** after pressing many successive C-c C-x C-i … :CLOCK: CLOCK: [2010-03-17 dc 10:25]--[2010-03-17 dc 10:30] = 0:05 CLOCK: [2010-03-17 dc 10:20] CLOCK: [2010-03-17 dc 10:20] CLOCK: [2010-03-17 dc 10:20] CLOCK: [2010-03-17 dc 10:20] CLOCK: [2010-03-17 dc 10:20] CLOCK: [2010-03-17 dc 10:20] CLOCK: [2010-03-12 dv 16:38]--[2010-03-12 dv 16:39] = 0:01 :END: #+END_EXAMPLE They are later correctly found to be dangling clocks. I presume this is a bug? Daniel ___ 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] Re: org-refile bug
I can non reproduce this problem. I Also use current release_6.34c.210.g6976 and tried with basic completion, ido-completion and iswitchb. Can you give some more information? Warnings in *Messages* and maybe M-x toggle-debug-on-error gives backtrace? -- Mikael Fornius ___ 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] Trivial fix for %3f in URL bug
Hi all, Regarding the previous thread “%3f shouldn't be unescaped in HTTP URLs”, I suggested that leaving the '?' or '%3f' characters in a URL as provided by the user might be the best thing to do, since they mean different things (query separator and literal question mark, respectively) and the user should know best (especially if the URL was copied from a browser). Fixing the old behaviour is trivial: just remove the ``(?? . %3F)`` entry from the ``org-link-escape-chars`` list in ``org.el``. Cheers, :: Ivan Vilata i Balaguer -- http://ivan.lovesgazpacho.net/ --- org.el.orig 2010-03-17 11:51:04.0 +0100 +++ org.el 2010-03-17 11:51:42.0 +0100 @@ -7877,7 +7877,6 @@ (?\371 . %F9) ; `u (?\373 . %FB) ; ^u (?\; . %3B) -(??. %3F) (?=. %3D) (?+. %2B) ) signature.asc Description: Digital signature ___ 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] Trivial fix for %3f in URL bug
On Mar 17, 2010, at 11:53 AM, Ivan Vilata i Balaguer wrote: Hi all, Regarding the previous thread “%3f shouldn't be unescaped in HTTP URLs”, I suggested that leaving the '?' or '%3f' characters in a URL as provided by the user might be the best thing to do, since they mean different things (query separator and literal question mark, respectively) and the user should know best (especially if the URL was copied from a browser). Fixing the old behaviour is trivial: just remove the ``(?? . %3F)`` entry from the ``org-link-escape-chars`` list in ``org.el``. OK, I have applied this patch, thanks. I am, however, wondering if this does the right thing consistently, for example also when adding URLs containing a question mark using `C-c C-l'. Or when editing a link with `C-c C-l' while the cursor is on it. Maybe you or others can make a few more tests in this direction? Thanks. - Carsten ___ 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] A bug in org-fix-bullet-type
Hello, In an org buffer with the following: 1. one - another one| 2. two 3. tree Place the point at | and M-left, the point will no longer at |. I think this is due to org-fix-bullet-type which restores point position by column. But org-fix-bullet-type could insert different length of text depending on the list item type (ie - or 1. or 1)). Cheers, Leo ___ 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] Re: Clocking in the current task should clock it out first
Daniel Clemente n142...@gmail.com writes: Hi, in recent org-modes a new behaviour was added: when doing C-c C-x C-i on the current task, it isn't clocked out first. It shows the message „Clock continues in [task]“ and adds a new line for the clock in. This creates a clock section like: #+BEGIN_EXAMPLE *** after pressing many successive C-c C-x C-i … :CLOCK: CLOCK: [2010-03-17 dc 10:25]--[2010-03-17 dc 10:30] = 0:05 CLOCK: [2010-03-17 dc 10:20] CLOCK: [2010-03-17 dc 10:20] CLOCK: [2010-03-17 dc 10:20] CLOCK: [2010-03-17 dc 10:20] CLOCK: [2010-03-17 dc 10:20] CLOCK: [2010-03-17 dc 10:20] CLOCK: [2010-03-12 dv 16:38]--[2010-03-12 dv 16:39] = 0:01 :END: #+END_EXAMPLE They are later correctly found to be dangling clocks. I presume this is a bug? Hi Daniel, Yes I believe this is a bug. I think I've also run into this issue but I have auto clock resolution disabled so this is not leaving open clocks in my setup. (setq org-clock-auto-clock-resolution nil) This of course is only a temporary work around until a real fix occurs. I haven't had the time to investigate this yet but it is on my list of things to look at. -Bernt ___ 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] Re: icalendar: exporting times of day specified in heading?
Hi Stephen, Sorry for the late reply, but I've just begun using i d to enter dates into my org files and I have a few comments on the patch you submitted in February. Stephen Eglen s.j.eg...@damtp.cam.ac.uk writes: I often use org-agenda-diary-entry to make simple entries into an agenda.org file. I see that the agenda is clever enough to recognise if a time range has been typed into the heading. However, this time range is not exported by the icalendar code. Attached is a patch to the code underlying 'i d' entries in the *Org Agenda* buffer. If a time of day is specified in the entry, it is extracted from the entry and put into the timestamp of the diary entry. (The .ics exporting code recognises these timestamps and therefore the ics export code does not need altering.) For example, given the following three entries added using 'i d' from *Org Agenda*: i d RET test 1 12:00-14:00 classes RET i d RET test 2 did you get 7am wake up call? RET i d RET test 3 find 3--5 volunteers RET then the following entries are added to agenda.org: *** 2010-02-03 Wednesday test 3 find 3--5 volunteers 2010-02-03 Wed test 2 did you get wake up call? 2010-02-03 Wed 07:00 test 1 classes 2010-02-03 Wed 12:00-14:00 When I enter the time of day after typing i d, the time of day is added to the timestamp (as above) but is *not* removed the headline. E.g., --8---cut here---start-8--- Day entry: 9:00am go shopping [RET] --8---cut here---end---8--- ...results in the following headline... --8---cut here---start-8--- * 9:00am go shopping 2010-03-17 Wed 09:00 --8---cut here---end---8--- As a consequence, the agenda line duplicates the time of day. --8---cut here---start-8--- index: 9:00.. 9:00am go shopping --8---cut here---end---8--- I'd be curious to know whether others can duplicate this bug. As this behvaiour may not be desired by all, I've currently put the code conditional on org-agenda-search-headline-for-time being non-nil (the default is t). If that variable is nil, then the above three test entries generates the regular tree: Might I request an independent variable for this? While I would like the agenda to scan my headlines for time of day specifications (and thus have org-agenda-search-headline-for-time set to t), I am not sure I want org-agenda-add-entry-to-org-agenda-diary-file to alter the information I enter at the Day entry: prompt. Thanks, Matt ___ 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] Re: icalendar: exporting times of day specified in heading?
hi Matt, When I enter the time of day after typing i d, the time of day is added to the timestamp (as above) but is *not* removed the headline. E.g., Day entry: 9:00am go shopping [RET] ...results in the following headline... * 9:00am go shopping 2010-03-17 Wed 09:00 that's odd; I just tried that and got: *** go shopping 2010-03-17 Wed 09:00 which then shows in the agenda as: agenda: 9:00.. go shopping I'd be curious to know whether others can duplicate this bug. me too! Do you get any better behaviour if you just put 9:00 or 09:00? Would be good to resolve this in case there is a bug lurking elsewhere... Might I request an independent variable for this? While I would like the agenda to scan my headlines for time of day specifications (and thus have org-agenda-search-headline-for-time set to t), I am not sure I want org-agenda-add-entry-to-org-agenda-diary-file to alter the information I enter at the Day entry: prompt. Certainly I'd be in agreement with that, as I don't want to jump on others preferences. Currently, org-agenda.el has (l 7079) (if org-agenda-search-headline-for-time to check whether we should extract the time; how about if I replaced it with a variable called org-agenda-extract-time-from-entry which defaults to nil so this behaviour is normally off? Sorry about this Matt. Stephen ___ 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] LaTeX export Avoid \newline command after timestampsX-Draft-From: (nnimap+mc:INBOX.sncb)
Hi, When exporting an Org buffer to latex, I can see that Org generates an extra \newline command just after exporting the timestamps to the heading. An example. This Org stuff: --8---cut here---start-8--- *** DONE My Task :Be: SCHEDULED: 2010-03-01 Mon DEADLINE: 2010-03-05 Fri :LOGBOOK: - State STARTEDfrom TODO [2010-03-02 Tue 09:30] - State DONE from STARTED[2010-03-02 Tue 10:00] CLOCK: [2010-03-02 Tue 09:30]--[2010-03-02 Tue 10:00] = 0:30 - PWA. :END: :PROPERTIES: :Effort: 4:00 :END: --8---cut here---end---8--- Is exported to latex this way: --8---cut here---start-8--- \subsubsection{\textbf{DONE} My Task \textbf{:Be:}} \label{sec-2.2.2} \texttt{SCHEDULED:} \textit{2010-03-01 Mon} \texttt{DEADLINE:} \textit{2010-03-05 Fri}\newline --8---cut here---end---8--- At the end of the timestamps line, you can see the extra \newline command. This \newline command should be removed as it adds extra vertical space which does not respect the document class definition used for the document. In order to do that, I made the following change to org-latex.el and it works for me, but I'm not sure my change is completely safe: --8---cut here---start-8--- index 03216a8..88bd8c3 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -1511,7 +1511,7 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER. (beginning-of-line 1) (unless (looking-at .*newline[ \t]*$) (end-of-line 1) - (insert \\newline) + (defun org-export-latex-fixed-width (opt) When OPT is non-nil convert fixed-width sections to LaTeX. --8---cut here---end---8--- Is this the right thing to do to avoid this extra \newline command? Thanks, Francesco ___ 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] printing error
When I try to print, using ps-print-buffer-with-faces, I am getting the following error message: Wrong type argument: stringp, (blue :weight bold) Any ideas? Thanks ___ 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] creating notes in tasks
Greetings I have found the notes tool in tasks to be invaluable (in an agenda view click on/highlight a task hit z). Is there a way to do this from a task in my todo.org file? Often when I am sorting through my todo file I want to make little notes attached to a task. Of course I can manually edit them but the notes tool in an agenda view is much more convenient. Cheers, Neil = Neil Hepburn, Economics Instructor Department of Social Sciences, Augustana Faculty University of Alberta 4901-46 Avenue Camrose, Alberta T4V 2R3 Phone (780) 679-1588 email nhepb...@ualberta.ca No trees were harmed in creating this message. (However, millions of electrons were terribly disturbed.) ___ 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] LaTeX export Avoid \newline command after timestampsX-Draft-From: (nnimap+mc:INBOX.sncb)
Hi Francesco, thanks for this. The reason why I put this is is to make sure that text after that line will start in a new line, and now flow into the scheduled/deadline line. For example: *** DONE My Task :Be: SCHEDULED: 2010-03-01 Mon DEADLINE: 2010-03-05 Fri this should start a new line but does not with your patch Do you disagree that this is the right thing to do? Do you know a method to achieve the same result without generating extra white space? - Carsten On Mar 17, 2010, at 1:43 PM, Francesco Pizzolante wrote: Hi, When exporting an Org buffer to latex, I can see that Org generates an extra \newline command just after exporting the timestamps to the heading. An example. This Org stuff: --8---cut here---start-8--- *** DONE My Task :Be: SCHEDULED: 2010-03-01 Mon DEADLINE: 2010-03-05 Fri :LOGBOOK: - State STARTEDfrom TODO [2010-03-02 Tue 09:30] - State DONE from STARTED[2010-03-02 Tue 10:00] CLOCK: [2010-03-02 Tue 09:30]--[2010-03-02 Tue 10:00] = 0:30 - PWA. :END: :PROPERTIES: :Effort: 4:00 :END: --8---cut here---end---8--- Is exported to latex this way: --8---cut here---start-8--- \subsubsection{\textbf{DONE} My Task \textbf{:Be:}} \label{sec-2.2.2} \texttt{SCHEDULED:} \textit{2010-03-01 Mon} \texttt{DEADLINE:} \textit{2010-03-05 Fri}\newline --8---cut here---end---8--- At the end of the timestamps line, you can see the extra \newline command. This \newline command should be removed as it adds extra vertical space which does not respect the document class definition used for the document. In order to do that, I made the following change to org-latex.el and it works for me, but I'm not sure my change is completely safe: --8---cut here---start-8--- index 03216a8..88bd8c3 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -1511,7 +1511,7 @@ The conversion is made depending of STRING- BEFORE and STRING-AFTER. (beginning-of-line 1) (unless (looking-at .*newline[ \t]*$) (end-of-line 1) - (insert \\newline) + (defun org-export-latex-fixed-width (opt) When OPT is non-nil convert fixed-width sections to LaTeX. --8---cut here---end---8--- Is this the right thing to do to avoid this extra \newline command? Thanks, Francesco ___ 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 - Carsten ___ 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] A bug in org-fix-bullet-type
Hi Leo, am not able to reproduce this problem. - Carsten On Mar 17, 2010, at 1:52 PM, Leo wrote: Hello, In an org buffer with the following: 1. one - another one| 2. two 3. tree Place the point at | and M-left, the point will no longer at |. I think this is due to org-fix-bullet-type which restores point position by column. But org-fix-bullet-type could insert different length of text depending on the list item type (ie - or 1. or 1)). Cheers, Leo ___ 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 - Carsten ___ 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] Re: A bug in org-fix-bullet-type
Carsten Dominik carsten.domi...@gmail.com writes: am not able to reproduce this problem. I am, doing org-outdent-item replaces the - char for 2., thus the point is one char earlier. Whether to call this behavior a bug I don't know. Regards, Emilio ___ 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] Re: Disabling warnings when following [[elisp:...]] links
2010/3/17 Mikael Fornius m...@abc.se: You should be able to customize variable `org-confirm-elisp-link-function' and to do it per-buffer basis works with emacs file local variables. Begin the org-file with this line: -*- org-confirm-elisp-link-function: nil -*- then re-open the file. For more info: (info (Emacs) Specifying File Variables) Thanks Mikael, it's exactly what I needed ! Nicolas ___ 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] Re: A bug in org-fix-bullet-type
On 2010-03-17 14:37 +, Carsten Dominik wrote: Hi Leo, am not able to reproduce this problem. - Carsten Odd. I can reproduce it with org 6.34 trans from git repo. I attach two screen shots to show the difference. attachment: org-before.pngattachment: org-after.png Best, Leo ___ 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] Re: creating notes in tasks
Press C-c C-z to add a note to an entry. -- Mikael Fornius ___ 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] Re: printing error
It works for me. Does this sentence This command works only if you are using a window system, so it has a way to determine color values. in the doc-string of ps-print-buffer-with-faces make sense? -- Mikael Fornius ___ 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] Re: A bug in org-fix-bullet-type
Yes, I now see it as well. Fixed, thanks. - Carsten On Mar 17, 2010, at 3:54 PM, Leo wrote: On 2010-03-17 14:37 +, Carsten Dominik wrote: Hi Leo, am not able to reproduce this problem. - Carsten Odd. I can reproduce it with org 6.34 trans from git repo. I attach two screen shots to show the difference. org-before.pngorg-after.png Best, Leo ___ 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 - Carsten ___ 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] Re: dates in a spreadsheet
Can you give an example table of what you want to do? I do not understand fully. | A| B | |--+-| | [2010-03-16 Tue] | Tue | | [2010-03-17 Wed] | Tue | | | | Do you want to automatically extract the weekday from an org-mode time-stamp in another column? -- Mikael Fornius ___ 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] [babel] org-babel: tangling to latex .sty/.cls files
Unless I hear views to the contrary from other org-babel users, I'm going to change this later today so that, when a file name is supplied for tangling, org-babel no longer attempts to guess the file extension. The only situation when tangling will guess the file name extension is if you supply ':tangle yes' in which case the behaviour will be as it is currently (i.e. the org file name, minus .org, plus the extension defined in org-babel-tangle-langs.) The patch I propose to apply is below. For a file named z.org, here are what some blocks will tangle to with this patch. #+begin_src sh :tangle yes= z.sh #+begin_src latex :tangle latex-code = latex-code #+begin_src latex :tangle latex-code.tex = latex-code.tex #+begin_src latex :tangle a.cls = a.cls Dan --8---cut here---start-8--- diff --git a/contrib/babel/lisp/org-babel-tangle.el b/contrib/babel/lisp/org-babel-tangle.el index dd76195..4880118 100644 --- a/contrib/babel/lisp/org-babel-tangle.el +++ b/contrib/babel/lisp/org-babel-tangle.el @@ -109,7 +109,7 @@ exported source code blocks by language. target-file)) (file-name (when base-name ;; decide if we want to add ext to base-name -(if (and ext (not (string= (file-name-extension base-name) ext))) +(if (and ext (string= yes tangle)) (concat base-name . ext) base-name ;; ;; debugging ;; (message --8---cut here---end---8--- Nicolas Girard nicolas.gir...@nerim.net writes: Hi all, a while ago Babel allowed latex code to be tangled to a file named f.sty or f.cls ; it's currently not possible any more, because the tangled file is named f.sty.tex or f.cls.tex. I tried to deal with it but I'm really missing this feature a lot. Do you think org-babel could allow this again ? Thanks very much in advance, cheers, Nicolas ___ 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] dates in a spreadsheet
Josh Mattoon joshmatt...@gmail.com writes: I'm using the spreadsheet capabilities of org for the first time (very cool!) to plan an upcoming trip. I'd like to create a column formula to automatically calculate the dates/day of week but I'm a bit stumped. I don't see a way for the formula to know which row it is currently processing. I'm also coming up short trying to find any elisp to go from day of year - formatted date string. Any suggestions? Hi Josh, Could you provide a small example table that shows the challenge you are describing? Dan ___ 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] Re: icalendar: exporting times of day specified in heading?
Ok, here is a patch that introduces a new variable so that the code to extract times from diary entries entered using 'i d' is off by default. 2010-03-17 Stephen Eglen step...@gnu.org * org-agenda.el (org-agenda-insert-diary-extract-time): New variable. (org-agenda-add-entry-to-org-agenda-diary-file): Use this new variable rather than org-agenda-search-headline-for-time. *** /tmp/ediff23195Zk 2010-03-17 15:22:42.0 + --- /home/stephen/langs/emacs/elisp-ds/org-mode/lisp/org-agenda.el 2010-03-17 15:20:56.0 + *** *** 7066,7071 --- 7066,7076 (const :tag in a date tree date-tree) (const :tag as top level at end of file top-level))) + (defcustom org-agenda-insert-diary-extract-time nil + Non-nil means extract any time specification from the diary entry. + :group 'org-agenda + :type 'boolean) + (defun org-agenda-add-entry-to-org-agenda-diary-file (type text optional d1 d2) Add a diary entry with TYPE to `org-agenda-diary-file'. If TEXT is not empty, it will become the headline of the new entry, and *** *** 7103,7109 (let* (fmt time time2 (org-agenda-time-leading-zero t)) ! (if org-agenda-search-headline-for-time ;; Use org-format-agenda-item to parse text for a time-range and ;; remove it. (setq fmt (org-format-agenda-item nil text nil nil t) --- 7108,7114 (let* (fmt time time2 (org-agenda-time-leading-zero t)) ! (if org-agenda-insert-diary-extract-time ;; Use org-format-agenda-item to parse text for a time-range and ;; remove it. (setq fmt (org-format-agenda-item nil text nil nil t) ___ 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] Re: creating notes in tasks
Hi Neil, Emacs is great at self documenting. When your cursor is in your org buffer, press C-h m , change to the new buffer and search for note. If you want to know more about a command sequence then press C-h k and then the sequence you are interested in. e.g C-h k C-c C-z in an org buffer:- , | C-c C-z runs the command org-add-note, which is an interactive Lisp | function in `org.el'. | | It is bound to C-c C-z. | | (org-add-note) | | Add a note to the current entry. | This is done in the same way as adding a state change note. ` regards r. Neil Hepburn nhepb...@ualberta.ca writes: Greetings I have found the notes tool in tasks to be invaluable (in an agenda view click on/highlight a task hit z). Is there a way to do this from a task in my todo.org file? Often when I am sorting through my todo file I want to make little notes attached to a task. Of course I can manually edit them but the notes tool in an agenda view is much more convenient. Cheers, Neil = Neil Hepburn, Economics Instructor Department of Social Sciences, Augustana Faculty University of Alberta 4901-46 Avenue Camrose, Alberta T4V 2R3 Phone (780) 679-1588 email nhepb...@ualberta.ca No trees were harmed in creating this message. (However, millions of electrons were terribly disturbed.) ___ 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] Re: A bug in org-fix-bullet-type
On 2010-03-17 15:11 +, Carsten Dominik wrote: Yes, I now see it as well. Fixed, thanks. - Carsten Many thanks, Carsten. Leo ___ 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] Re: org-refile bug
Mikael Fornius m...@abc.se writes: I can non reproduce this problem. I Also use current release_6.34c.210.g6976 and tried with basic completion, ido-completion and iswitchb. Can you give some more information? Warnings in *Messages* and maybe M-x toggle-debug-on-error gives backtrace? Thanks for looking into this. There were no warnings or errors. It just silently failed to file the entry in my org file. Only status messages were shown in *Messages*. It has to do with the contents of my ~/.emacs.d/bookmarks file. When it wasn't working, my bookmarks file contained the following: $ cat .emacs.d/bookmarks Emacs Bookmark Format Version 1 ;;; This format is meant to be slightly human-readable; ;;; nevertheless, you probably don't want to edit it. ;;; -*- End Of Bookmark File Format Version Stamp -*- ((org-refile-last-stored (filename . ~/repo/org/todo.org) (front-context-string . *** Buy some tom) (rear-context-string . se\n** Gardening\n) (position . 1030)) (org-remember-last-stored (filename . ~/repo/org/todo.org) (front-context-string . *** TODO Buy som) (rear-context-string . se\n** Gardening\n) (position . 874)) ) I removed the file and then refiling from org-remember using C-1 C-c C-c began working. After a successful test, the contents were: $ cat .emacs.d/bookmarks Emacs Bookmark Format Version 1 ;;; This format is meant to be slightly human-readable; ;;; nevertheless, you probably don't want to edit it. ;;; -*- End Of Bookmark File Format Version Stamp -*- ((org-refile-last-stored (filename . ~/repo/org/todo.org) (front-context-string . ** test\n* Misc\n*) (rear-context-string . SEARCH\n\n* Inbox\n) (position . 318)) (org-remember-last-stored (filename . ~/repo/org/todo.org) (front-context-string . ** test\n* Misc\n*) (rear-context-string . SEARCH\n\n* Inbox\n) (position . 318)) ) Any idea what the problem is? ___ 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] Re: icalendar: exporting times of day specified in heading?
Applied, thanks. Stephen, woudl you ming changing your diff format to diff -u ? Somehow I have problems to apply your patches (already earlier...) Thanks - Carsten On Mar 17, 2010, at 4:28 PM, Stephen Eglen wrote: Ok, here is a patch that introduces a new variable so that the code to extract times from diary entries entered using 'i d' is off by default. 2010-03-17 Stephen Eglen step...@gnu.org * org-agenda.el (org-agenda-insert-diary-extract-time): New variable. (org-agenda-add-entry-to-org-agenda-diary-file): Use this new variable rather than org-agenda-search-headline-for-time. *** /tmp/ediff23195Zk 2010-03-17 15:22:42.0 + --- /home/stephen/langs/emacs/elisp-ds/org-mode/lisp/org-agenda.el 2010-03-17 15:20:56.0 + *** *** 7066,7071 --- 7066,7076 (const :tag in a date tree date-tree) (const :tag as top level at end of file top-level))) + (defcustom org-agenda-insert-diary-extract-time nil + Non-nil means extract any time specification from the diary entry. + :group 'org-agenda + :type 'boolean) + (defun org-agenda-add-entry-to-org-agenda-diary-file (type text optional d1 d2) Add a diary entry with TYPE to `org-agenda-diary-file'. If TEXT is not empty, it will become the headline of the new entry, and *** *** 7103,7109 (let* (fmt time time2 (org-agenda-time-leading-zero t)) ! (if org-agenda-search-headline-for-time ;; Use org-format-agenda-item to parse text for a time-range and ;; remove it. (setq fmt (org-format-agenda-item nil text nil nil t) --- 7108,7114 (let* (fmt time time2 (org-agenda-time-leading-zero t)) ! (if org-agenda-insert-diary-extract-time ;; Use org-format-agenda-item to parse text for a time-range and ;; remove it. (setq fmt (org-format-agenda-item nil text nil nil t) - Carsten ___ 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] Re: Wikipedia article on Org-mode
Carsten Dominik carsten.domi...@gmail.com writes: Hi, there is a Wikipedia article about Org-mode, and it has problems in the reference section. Somehow I feel I should not be he one editing this article - can someone here fix these issues? Thanks - Carsten Oh, you mean some of us that are unbiased about Org-mode? Good luck with that! :- ___ 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] Re: [babel] org-babel: tangling to latex .sty/.cls files
On Mar 17, 2010, at 5:32 AM, Chris Gray wrote: Dan Davison wrote: Unless I hear views to the contrary from other org-babel users, I'm going to change this later today so that, when a file name is supplied for tangling, org-babel no longer attempts to guess the file extension. The only situation when tangling will guess the file name extension is if you supply ':tangle yes' in which case the behaviour will be as it is currently (i.e. the org file name, minus .org, plus the extension defined in org-babel-tangle-langs.) Would it be possible to add the extension if no extension exists? Cheers, Chris Aloha Chris, Perhaps this behavior could be controlled by a variable? I can see how it might be handy for some uses, but I prefer Dan's proposal for everyday use. All the best, Tom ___ 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] Re: org-refile bug
This goes beyond my knowledge of org-remember. Maybe it has something to do with corrupt org-*-last-stored data if the last org-entry data is removed or changed? Just guessing here... I tried to corrupt the data myself, then did bookmark-load and org-remember C-1 C-c C-c but then it worked. When looking briefly in org-remember.el I could not find any bookmark-* function call that looked like it was depending on its success. Just so you have not forgotten: did you search all your org-agenda-files if the entry was misplaced somewhere? Someone with better knowledge of org-remember then me can sort this out? -- Mikael Fornius ___ 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] dates in a spreadsheet
Sure thing. Basically I'd like the date column to be automatically calculated so that I can move things around, add extra days here and there, and not have to edit that column by hand. | date | location | activities| notes | |---+--+---+| | 03-16 Tue | moon | collect rocks || | 03-17 Wed | mars | terraform | this might take a few days | | 03-18 Thu | earth| breath air|| If I wanted to add an extra day on mars I could just enter a new row, recalculate the forumula, and the dates would be automagically updated. It's not such a big deal in a small example like this but I'm planning out a 3 week vacation with a fair number of destinations. I'd like the day of week to display because some sites are closed on certain days. It goes without saying that I've spent more time trying to figure this out than it would actually save so it's more about education at this point :) On Wed, Mar 17, 2010 at 8:26 AM, Dan Davison davi...@stats.ox.ac.uk wrote: Josh Mattoon joshmatt...@gmail.com writes: I'm using the spreadsheet capabilities of org for the first time (very cool!) to plan an upcoming trip. I'd like to create a column formula to automatically calculate the dates/day of week but I'm a bit stumped. I don't see a way for the formula to know which row it is currently processing. I'm also coming up short trying to find any elisp to go from day of year - formatted date string. Any suggestions? Hi Josh, Could you provide a small example table that shows the challenge you are describing? Dan ___ 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] Re: [babel] org-babel: tangling to latex .sty/.cls files
Chris Gray chrismg...@gmail.com writes: Dan Davison wrote: Unless I hear views to the contrary from other org-babel users, I'm going to change this later today so that, when a file name is supplied for tangling, org-babel no longer attempts to guess the file extension. The only situation when tangling will guess the file name extension is if you supply ':tangle yes' in which case the behaviour will be as it is currently (i.e. the org file name, minus .org, plus the extension defined in org-babel-tangle-langs.) Would it be possible to add the extension if no extension exists? You mean where the extension is defined to be everything after the last '.'? I believe that that was the kind of thing we were attempting to do but that I am now thinking was misguided. For example, if someone wants an output file name like xxx.yyy.tex, then they might supply :tangle xxx.yyy in which case we might end up concluding that the extension is yyy and they'll never get the .tex. Dan Cheers, Chris ___ 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] cannot pull from repo.or.cz today
Is anyone else seeing this? $ git pull --verbose repo.or.cz[0: 195.113.20.142]: errno=Operation timed out fatal: unable to connect a socket (Operation timed out) Cheers Will -- Dr William Henney, Centro de Radioastronomía y Astrofísica, Universidad Nacional Autónoma de México, Campus Morelia ___ 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] [babel] using tramp when tangling
I'd find useful to use tramp syntax in the :tangle specification. In my case it would be to specify sudo when tangling config files that are supposed to go to areas not writable by the user running Emacs. Something like: #+begin_src sh :tangle /sudo::/etc/my_config_file ... #+end_src other people might be interested in remote access to tangle targets. Is there a way to achieve the above? If I try to tangle the above, I get something along the lines that tramp cannot append to file. Would it be possible to have org-babel to (optionally) tangle to a buffer and then save to file in one go? Thanks a lot for the excellent addition to org-mode. Maurizio ___ 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] cannot pull from repo.or.cz today
William Henney wrote: Is anyone else seeing this? $ git pull --verbose repo.or.cz[0: 195.113.20.142]: errno=Operation timed out fatal: unable to connect a socket (Operation timed out) Nope, works fine here. -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de pgpQae19YNWB4.pgp Description: PGP signature ___ 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] Re: icalendar: exporting times of day specified in heading?
Carsten Dominik carsten.domi...@gmail.com wrote: Applied, thanks. Stephen, woudl you ming changing your diff format to diff -u ? Somehow I have problems to apply your patches (already earlier...) Thanks for applying it. Sure, re: diffs -- actually, all I do is M-x ediff-revision on a file, and then send the output of 'D'. Is there a git command for comparing the current local version of a file and the last check-in of that file? Stephen ___ 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] Re: [babel] using tramp when tangling
Maurizio Vitale m...@cuma.i-did-not-set--mail-host-address--so-tickle-me writes: I'd find useful to use tramp syntax in the :tangle specification. In my case it would be to specify sudo when tangling config files that are supposed to go to areas not writable by the user running Emacs. Something like: #+begin_src sh :tangle /sudo::/etc/my_config_file ... #+end_src other people might be interested in remote access to tangle targets. Is there a way to achieve the above? If I try to tangle the above, I get something along the lines that tramp cannot append to file. Would it be possible to have org-babel to (optionally) tangle to a buffer and then save to file in one go? It's a bug of append-file. We could not use it: (code by Alexey Voinov, stolen from magit): --8---cut here---start-8--- diff --git a/contrib/babel/lisp/org-babel-tangle.el b/contrib/babel/lisp/org-babel-tangle.el index dd76195..c4ea0d8 100644 --- a/contrib/babel/lisp/org-babel-tangle.el +++ b/contrib/babel/lisp/org-babel-tangle.el @@ -127,7 +127,12 @@ exported source code blocks by language. (insert (concat she-bang \n)) (setq she-banged (cons file-name she-banged))) (org-babel-spec-to-string spec) - (append-to-file nil nil file-name)) + (let ((content (buffer-string))) + (with-temp-buffer + (insert-file-contents file-name) + (goto-char (point-max)) + (insert content) + (write-region nil nil ignore-file ;; update counter (setq block-counter (+ 1 block-counter)) (add-to-list 'path-collector file-name) --8---cut here---end---8--- -- Rémi Vanicat ___ 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] LaTeX export Avoid \newline command after timestampsX-Draft-From: (nnimap+mc:INBOX.sncb)
Carsten Dominik wrote: Hi Francesco, thanks for this. The reason why I put this is is to make sure that text after that line will start in a new line, and now flow into the scheduled/deadline line. For example: *** DONE My Task :Be: SCHEDULED: 2010-03-01 Mon DEADLINE: 2010-03-05 Fri this should start a new line but does not with your patch Do you disagree that this is the right thing to do? Do you know a method to achieve the same result without generating extra white space? We could simply insert a blank line (e.g. \n\n), couldn't we? This would let LaTeX start a new paragraph if there's no space between scheduled/deadline line and do no harm if there is, because LaTeX doesn't care about multiple newlines. HTH -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de pgpOpfqby69D8.pgp Description: PGP signature ___ 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] [babel] using tramp when tangling
Maurizio Vitale m...@cuma.i-did-not-set--mail-host-address--so-tickle-me writes: I'd find useful to use tramp syntax in the :tangle specification. In my case it would be to specify sudo when tangling config files that are supposed to go to areas not writable by the user running Emacs. Something like: #+begin_src sh :tangle /sudo::/etc/my_config_file ... #+end_src other people might be interested in remote access to tangle targets. Is there a way to achieve the above? If I try to tangle the above, I get something along the lines that tramp cannot append to file. Would it be possible to have org-babel to (optionally) tangle to a buffer and then save to file in one go? I would like this to be possible. As you suggest, the change would involve not using append-to-file; it shouldn't be that hard. I've added it to the org-babel TODO list, but if you or anyone else would like to have a go that would be great. Dan Thanks a lot for the excellent addition to org-mode. Maurizio ___ 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] Re: icalendar: exporting times of day specified in heading?
thanks -- this works great: git diff org-agenda.el for comparing my version against last check in. Stephen ___ 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] dates in a spreadsheet
Hey Nick, the first one came through just fine. This is pretty cool but still not quite what I'm looking for. It totally helped me get what I wanted though! I wanted to have a separate row for each day so I could fill in activities. Modifying your example I get: | date | place | activity | notes | |--+-+---+--| | 2010-03-19 Fri | | | dummy | | 2010-03-20 Sat | | | | | 2010-03-21 Sun | moon| collect rocks | | | 2010-03-22 Mon | jupiter | thrash around the red dot | | | 2010-03-23 Tue | mars| see the little green men | | | 2010-03-24 Wed | earth | | home, sweet home | #+TBLFM: @2$1 = 03-19-2010::$1 = @-1$1 + 1 Exactly what I wanted! I can insert days, move them around, and just hit C-u C-c C-c to have it update. I'd like to understand how it works though, if you don't mind. What does the ::$1 synax mean? And how did it know that we were dealing with a date? On Wed, Mar 17, 2010 at 12:58 PM, Nick Dokos nicholas.do...@hp.com wrote: Josh Mattoon joshmatt...@gmail.com wrote: If I wanted to add an extra day on mars I could just enter a new row, recalculate the forumula, and the dates would be automagically updated. It's not such a big deal in a small example like this but I'm planning out a 3 week vacation with a fair number of destinations. I'd like the day of week to display because some sites are closed on certain days. [Not sure what mailer mangled my previous reply to the point of unrecognizability, but here is another attempt - I hope it's cleaner. Let me know if there is a problem.] | date | duration | place | activity | notes | |--+--+-+---+--| | 2010-03-17 Wed |0 | | | dummy | | 2010-03-17 Wed |3 | moon| collect rocks | | | 2010-03-20 Sat |5 | mars| see the little green men | | | 2010-03-25 Thu |5 | jupiter | thrash around the red dot | | | 2010-03-30 Tue | | earth | | home, sweet home | #+TBLFM: @2$1 = 03-17-2010::$1 = @-1$1 + @-1$2 ___ 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] problem with latex preview
I am having trouble viewing the latex fragments in my emacs window (via C-c C-x C-l). First, I was getting no output (*Messages* buffer said Failed to create png file from ...). I installed AUCTex and that problem went away. Now, the latex image overlay shows only a part of the image. If I run dvipng.exe on the temporary file, I get multiple warnings similar to the following: c:\Programs\MiKTeX 2.8\miktex\bin\dvipng.exe arning: font cmr7 at 400 dpi not found, characters will be left blank The latex portions appear correctly if I perform a pdf export. I am using emacs 23.0 on Windows with MiKTeX 2.8 and org version 6.34trans. Curiously, this was all working fine before I upgraded miktex from 2.5 to 2.8 a few months ago, although that may be a red herring. Any ideas? Thanks. Cheers, Scott ___ 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] Re: dates in a spreadsheet
Josh Mattoon joshmatt...@gmail.com writes: Hey Nick, the first one came through just fine. This is pretty cool but still not quite what I'm looking for. It totally helped me get what I wanted though! I wanted to have a separate row for each day so I could fill in activities. Modifying your example I get: | date | place | activity | notes | |--+-+---+--| | 2010-03-19 Fri | | | dummy | | 2010-03-20 Sat | | | | | 2010-03-21 Sun | moon | collect rocks | | | 2010-03-22 Mon | jupiter | thrash around the red dot | | | 2010-03-23 Tue | mars | see the little green men | | | 2010-03-24 Wed | earth | | home, sweet home | #+TBLFM: @2$1 = 03-19-2010::$1 = @-1$1 + 1 Exactly what I wanted! I can insert days, move them around, and just hit C-u C-c C-c to have it update. I'd like to understand how it works though, if you don't mind. What does the ::$1 synax mean? And how did it know that we were dealing with a date? As I understand it This is a formula line with 2 formulas in it. The formulas are separated by the :: @2$1 = 03-19-2010 sets the cell at row 2, column 1 to Mar 19, 2010 Then the next formula just calculates all of the values for column 1 leaving the static entry previously defined alone. $1 = @-1$1 + 1 column 1 entries are the previous row for column 1 plus 1 so it just adds 1 to the initial value of the date for each following row in your table. HTH, Bernt ___ 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] Re: [babel] using tramp when tangling
vani...@debian.org (Rémi Vanicat) writes: Maurizio Vitale m...@cuma.i-did-not-set--mail-host-address--so-tickle-me writes: I'd find useful to use tramp syntax in the :tangle specification. In my case it would be to specify sudo when tangling config files that are supposed to go to areas not writable by the user running Emacs. Something like: #+begin_src sh :tangle /sudo::/etc/my_config_file ... #+end_src other people might be interested in remote access to tangle targets. Is there a way to achieve the above? If I try to tangle the above, I get something along the lines that tramp cannot append to file. Would it be possible to have org-babel to (optionally) tangle to a buffer and then save to file in one go? It's a bug of append-file. We could not use it: (code by Alexey Voinov, stolen from magit): Well that was solved quickly. Thanks Rémi, I've applied that with a couple of minor changes. Dan diff --git a/contrib/babel/lisp/org-babel-tangle.el b/contrib/babel/lisp/org-babel-tangle.el index dd76195..c4ea0d8 100644 --- a/contrib/babel/lisp/org-babel-tangle.el +++ b/contrib/babel/lisp/org-babel-tangle.el @@ -127,7 +127,12 @@ exported source code blocks by language. (insert (concat she-bang \n)) (setq she-banged (cons file-name she-banged))) (org-babel-spec-to-string spec) - (append-to-file nil nil file-name)) + (let ((content (buffer-string))) + (with-temp-buffer + (insert-file-contents file-name) + (goto-char (point-max)) + (insert content) + (write-region nil nil ignore-file ;; update counter (setq block-counter (+ 1 block-counter)) (add-to-list 'path-collector file-name) ___ 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] Re: icalendar: exporting times of day specified in heading?
Hi Stephen, Stephen Eglen s.j.eg...@damtp.cam.ac.uk writes: When I enter the time of day after typing i d, the time of day is added to the timestamp (as above) but is *not* removed the headline. E.g., Day entry: 9:00am go shopping [RET] ...results in the following headline... * 9:00am go shopping 2010-03-17 Wed 09:00 that's odd; I just tried that and got: *** go shopping 2010-03-17 Wed 09:00 which then shows in the agenda as: agenda: 9:00.. go shopping I'd be curious to know whether others can duplicate this bug. me too! Do you get any better behaviour if you just put 9:00 or 09:00? Would be good to resolve this in case there is a bug lurking elsewhere... I believe I've pinned down the cause of the reported behavior. My default agenda buffer is a custom agenda block, which consists of an agenda view and a todo view. The inclusion of the todo view caused the variable org-prefix-has-time to be set to nil, which in turn prevented org-format-agenda-item from removing the time of day string from the headline (see lines 4857-64 of org-agenda.el). Thus, when I called i d from the block agenda, the time was not removed from the headline; when I called i d from the default agenda or the calendar, it was removed. Here's a patch that ensures the time of day is removed regardless of the current value of org-prefix-has-time: --8---cut here---start-8--- diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index a50a364..9d4a4c4 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -7107,6 +7107,7 @@ the resulting entry will not be shown. When TEXT is empty, switch to ((eq type 'day) (let* (fmt time time2 + (org-prefix-has-time t) (org-agenda-time-leading-zero t)) (if org-agenda-insert-diary-extract-time ;; Use org-format-agenda-item to parse text for a time-range and --8---cut here---end---8--- Currently, org-agenda.el has (l 7079) (if org-agenda-search-headline-for-time to check whether we should extract the time; how about if I replaced it with a variable called org-agenda-extract-time-from-entry which defaults to nil so this behaviour is normally off? Many thanks for adding this new variable. Best, Matt ___ 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