Re: [Orgmode] BUG ??? Cannot export custom link type to ASCII :-(
Hi Sebastian, I have just pushed the code that was needed to allow custom link formatting for ASCII export, like you have implemented it. This was simple an omission in the ascii exporter. So I hope it will work now - Carsten On Mon, Sep 6, 2010 at 1:01 AM, Sebastian Rose sebastian_r...@gmx.de wrote: Bastien bastien.gue...@wikimedia.fr writes: Hi Sebastian, Sebastian Rose sebastian_r...@gmx.de writes: Hmmm this seems so deliberate... For bbdb links this even seems to make sense... But how could I avoid this footnote like behaviour? Actually, I've wished for a long time that we can have a *real* footnote behavior for links when exporting to ASCII. For example: This [[http://orgmode.org][Org]] thingy is great. Would be exported to: This Org¹ thingy is great. ¹ http://orgmode.org I'm putting this on my TODO list... Yes. But I want to avoid the footnote style for my custom track: links. Look at the track I ran today. Who reads a footnote like this one (lines are not wrapped on export): [2010-09-05--30.994--5:32]: track:((9.707050323377189 52.37053766338069) (9.711363315473136 52.37529308313076) (9.710655212293204 52.37074846474) (9.71125602711254 52.3756658283) (9.711813926587638 52.37641963648109) (9.712114333997306 52.37687810926805) (9.711763858795166 52.37705320097925) (9.71047211417 52.377611655826854) (9.709560871015128 52.37804391862884) (9.707973003278312 52.37848927587801) (9.706943035016593 52.37867265696918) (9.705913066754874 52.37875124863228) (9.705312251935538 52.37875124863228) (9.704174995313224 52.378607163809775) (9.70301628101879 52.37839758504682) (9.701170921216544 52.37801772100373) (9.699819087873038 52.37788673264495) (9.697952270398673 52.37772954610157) (9.696850776672363 52.377747447957255) (9.695484638104972 52.37788673264495) (9.694218635449943 52.378174906521316) (9.693617820630607 52.378332091479415) (9.692695140729484 52.37871195281822) (9.691901206861075 52.379000121309296) (9.691257476697501 52.379301386357405) (9.68996286392212 52.38010518640359) (9.690570831189689 52.38041473935315) (9.689862728009757 52.38100415016248) (9.689083099365234 52.38151976904499) (9.688382148633536 52.38192099578275) (9.687008857617911 52.38247109401651) (9.685442447553214 52.3830604773757) (9.684004783521232 52.383610561412425) (9.68355417240673 52.383937989132725) (9.68106508244091 52.384854773830995) (9.68057155598217 52.384959548012894) (9.680585861206055 52.385278671203096) (9.680464267621574 52.38591560093584) (9.680078029523429 52.38613824042515) (9.676988124738273 52.3866620936179) (9.675486087689933 52.38700259485967) (9.67482089985424 52.38723832495006) (9.673662185559806 52.38765739755821) (9.673275947461661 52.38761810967017) (9.668962955365714 52.38928126633751) (9.667868614087638 52.389674128841754) (9.667088985443115 52.38994083686471) (9.66608762730175 52.39022413047344) (9.664649963269767 52.39052531893909) (9.66357707966381 52.39065626980484) (9.660937785993156 52.390878885385035) (9.659457206616935 52.39099674023763) (9.65759038914257 52.39116697446916) (9.655358791242179 52.39137649262204) (9.651060104370117 52.391957463824156) (9.651045799146232 52.391795525944076) (9.650745391736564 52.391795525944076) (9.65059518803173 52.39127173366993) (9.650402068982658 52.39140268232121) (9.645123481641349 52.391743146996376) (9.644050598035392 52.39180862067127) (9.642348289489746 52.391734853683936) (9.640660285840568 52.39157291498709) (9.638042449842033 52.39125863878343) (9.636197090039786 52.39104912007113) (9.635725021253165 52.39104912007113) (9.6120285987854 52.388605098155104) (9.60939645756298 52.38843005224972) (9.606513977050781 52.38844794976713) (9.60456132888794 52.388526524031036) (9.602937698255118 52.38858720070138) (9.593839645276603 52.38918959791672) (9.590985774884757 52.38938603001387) (9.58881855724 52.389608652000526) (9.587101936231193 52.38985746348047) (9.585750102887687 52.39009317832562) (9.57517147053295 52.39243716300863) (9.570751190076408 52.3934323367367) (9.556417465100822 52.396627216511874) (9.556117057691154 52.3949638125) (9.554314613233146 52.39707238631737) (9.55339192023 52.3970592931519) (9.552597999463615 52.39719022463179) (9.55148220051342 52.39750445859858) (9.54998016346508 52.39802817690401)
Re: [Orgmode] A few stats and figures about org/worg and the mailing list
On Mon, Sep 6, 2010 at 12:59 AM, Erik Iverson er...@ccbr.umn.edu wrote: On 09/05/2010 05:52 PM, Sebastian Rose wrote: Bastienbastien.gue...@wikimedia.fr writes: http://orgmode.org/worg/org-worg-stats.php http://orgmode.org/worg/org-mailing-list.php#sec-3 Thanks to Eric Schulte for write the babel file which produced the commits stats (I'll update this graph from time to time.) This is so coool! Reminders on the biggest events on this mailing list. POLL: the 40 variables project ... Of cause, we could repeat and do a much better job. We have now code in the bug reporter that automatically writes the entire local customization into a buffer, in a way that can be read back into a lisp variable. So the analysis could be totally automated... :-) - 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] BUG ??? Cannot export custom link type to ASCII :-(
Sebastian Rose sebastian_r...@gmx.de writes: Yes. But I want to avoid the footnote style for my custom track: links. Look at the track I ran today. (Er.. that's a crazy link!) Actually it would make sense to handle how custom type links are exported in the custom type file itself. For example org-bbdb.el would have a function `org-bbdb-export-link' taking care of the various way BBDB links have to be represented in HTML, LaTeX, etc. -- Bastien ___ 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] BUG ??? Cannot export custom link type to ASCII :-(
Bastien bastien.gue...@wikimedia.fr writes: Sebastian Rose sebastian_r...@gmx.de writes: Yes. But I want to avoid the footnote style for my custom track: links. Look at the track I ran today. (Er.. that's a crazy link!) Actually it would make sense to handle how custom type links are exported in the custom type file itself. For example org-bbdb.el would have a function `org-bbdb-export-link' taking care of the various way BBDB links have to be represented in HTML, LaTeX, etc. Yes!!! We could then have the entire address as footnote! Very useful!!! Sebastian ___ 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] BUG ??? Cannot export custom link type to ASCII :-(
Bastien b...@gnu.org writes: Actually it would make sense to handle how custom type links are exported in the custom type file itself. ... which, of course, is already the case for org-bbdb.el. Sorry for the noise. -- Bastien ___ 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] BUG ??? Cannot export custom link type to ASCII :-(
Carsten Dominik carsten.domi...@gmail.com writes: Hi Sebastian, I have just pushed the code that was needed to allow custom link formatting for ASCII export, like you have implemented it. This was simple an omission in the ascii exporter. So I hope it will work now - Carsten C-c C-e A gives me: Debugger entered--Lisp error: (void-variable type) (assoc type org-link-protocols) (nth 2 (assoc type org-link-protocols)) (setq fnc (nth 2 (assoc type org-link-protocols))) (functionp (setq fnc (nth 2 ...))) (if (functionp (setq fnc ...)) (setq rpl (or ... rpl)) (when (and desc0 ...) (if org-export-ascii-links-to-notes ... ...))) (if (and ( ... 8) (equal ... coderef:)) (setq line (replace-match ... t t line)) (setq rpl (concat [ ... ])) (if (functionp ...) (setq rpl ...) (when ... ...)) (setq line (replace-match rpl t t line))) (while (string-match org-bracket-link-regexp line) (setq link (match-string 1 line) desc0 (match-string 3 line) desc (or desc0 ...)) (if (and ... ...) (setq line ...) (setq rpl ...) (if ... ... ...) (setq line ...))) (while (setq line (pop lines)) (when (and link-buffer ...) (org-export-ascii-push-links ...) (setq link-buffer nil)) (setq wrap nil) (setq line (org-html-expand-for-ascii line)) (while (string-match org-bracket-link-regexp line) (setq link ... desc0 ... desc ...) (if ... ... ... ... ...)) (when custom-times (setq line ...)) (cond (... ... ... ...) (... ... ... ...) (t ... ... ... ... ...))) (let* ((opt-plist ...) (region-p ...) (rbeg ...) (rend ...) (subtree-p ...) (level-offset ...) (opt-plist ...) (org-current-export-dir ...) (org-current-export-file buffer-file-name) (custom-times org-display-custom-times) (org-ascii-current-indentation ...) (level 0) line txt (umax nil) (umax-toc nil) (case-fold-search nil) (bfname ...) (filename ...) (filename ...) (buffer ...) (org-levels-open ...) (odd org-odd-levels-only) (date ...) (author ...) (title ...) (email ...) (language ...) (quote-re0 ...) (todo nil) (lang-words nil) (region ...) (lines ...) thetoc have-headings first-heading-pos table-open table-buffer link-buffer link desc desc0 rpl wrap fnc) (let (...) (org-unmodified ...)) (setq org-min-level (org-get-min-level lines level-offset)) (setq org-last-level org-min-level) (org-init-section-numbers) (setq lang-words (or ... ...)) (set-buffer buffer) (erase-buffer) (fundamental-mode) (org-install-letbind) (mapc (lambda ... ...) org-export-plist-vars) (org-set-local (quote org-odd-levels-only) odd) (setq umax (if arg ... org-export-headline-levels)) (setq umax-toc (if ... ... umax)) (unless body-only (when ... ... ...) (if ... ...) (cond ... ... ...) (if ... ...) (unless ... ...)) (if (and org-export-with-toc ...) (progn ... ... ... ...)) (org-init-section-numbers) (while (setq line ...) (when ... ... ...) (setq wrap nil) (setq line ...) (while ... ... ...) (when custom-times ...) (cond ... ... ...)) (org-export-ascii-push-links (nreverse link-buffer)) (normal-mode) (when thetoc (goto-char ...) (if ... ... ...) (mapc ... thetoc) (or ... ...)) (goto-char (point-min)) (let (beg end) (while ... ... ... ... ...)) (let (beg end) (goto-char ...) (while ... ... ... ... ...) (goto-char ...) (while ... ... ... ...)) (run-hooks (quote org-export-ascii-final-hook)) (or to-buffer (save-buffer)) (goto-char (point-min)) (or (org-export-push-to-kill-ring ASCII) (message Exporting... done)) (if (eq to-buffer ...) (prog1 ... ...) (current-buffer))) org-export-as-ascii(nil nil nil *Org ASCII Export*) org-export-as-ascii-to-buffer(nil) call-interactively(org-export-as-ascii-to-buffer) (if (and bg (nth 2 ass) (not ...) (not ...)) (let (...) (set-process-sentinel p ...) (message Background process \%s\: started p)) (if subtree-p (progn ... ...)) (call-interactively (nth 1 ass)) (when (and bpos ...) (let ... ... ... ... ...))) (let* ((bg ...) subtree-p (help [t] insert the export option template\n[v] limit export to visible part of outline tree\n[1] only export the current subtree\n[SPC] publish enclosing subtree (with LaTeX_CLASS or EXPORT_FILE_NAME prop)\n\n[a/n/u] export as ASCII/Latin-1/UTF-8 [A/N/U] to temporary buffer\n\n[h] export as HTML [H] to temporary buffer [R] export region\n[b] export as HTML and open in browser\n\n[l] export as LaTeX [L] to temporary buffer\n[p] export as LaTeX and process to PDF[d] ... and open PDF file\n\n[D] export as DocBook [V] export as DocBook, process to PDF, and open\n\n[j] export as TaskJuggler [J] ... and open\n\n[m] export as Freemind mind map\n[x] export as XOXO\n[g] export using Wes Hardaker's generic exporter\n\n[i] export current file as iCalendar file\n[I] export all agenda files as iCalendar files [c] ...as one combined file\n\n[F] publish current file [P] publish current project\n[X] publish a project... [E] publish every projects) (cmds ...) r1 r2 ass (cpos ...) (cbuf ...) bpos) (save-excursion (save-window-excursion ... ...
Re: [Orgmode] BUG ??? Cannot export custom link type to ASCII :-(
On Mon, Sep 6, 2010 at 8:50 AM, Bastien bastien.gue...@wikimedia.fr wrote: Sebastian Rose sebastian_r...@gmx.de writes: Yes. But I want to avoid the footnote style for my custom track: links. Look at the track I ran today. (Er.. that's a crazy link!) Actually it would make sense to handle how custom type links are exported in the custom type file itself. For example org-bbdb.el would have a function `org-bbdb-export-link' taking care of the various way BBDB links have to be represented in HTML, LaTeX, etc. That system is present! And funny that you pick bbdb as an example, because it is one of the link types which takes advantage of this. :) The problem was that the ascii exporter did not honor the export settings that are defined when org-add-link-type is called - Carsten -- Bastien ___ 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: Org file rendering/manipulation too slow
I am also under the impression that it is something to do with the screen rendering or font lock (the fact that setting font-lock-verbose to nil speeds up things quite a bit points in this direction). Seems so. For example, if I open the same org file without orgmode activated, it renders pretty fast, without any apparent issues. I also have some big ruby script files which don't have any rendering performance issues whatsoever. Interesting! I might have to reinstall emacs and configure things from scratch to try to isolate the issue. Look forward to the results! Manuel -- --- Manuel Hermenegildo | Prof., C.S.Dept., T.U. Madrid (UPM) Director, IMDEA SW Institute CLIP Group | +34-91-336-7435 (W) -352-4819 (Fax) --- ___ 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: task juggler export
Eric S Fraga ucec...@ucl.ac.uk writes: However, org-taskjuggler seems to use the global value regardless. Hm, org-taskjuggler doesn't do anything magic here. It just takes the value of org-export-taskjuggler-default-project-duration. Is there something I need to do to get it to pay attention to my file local variable value? A pointer to a relevant section in the emacs lisp manual would suffice I just looked at the help string for defcustom (C-h f defcustom) where it says: If symbol has a local binding, then this form affects the local binding. This is normally not what you want. Thus, if you need to load a file defining variables with this form, or with `defvar' or `defconst', you should always load that file _outside_ any bindings for these variables. (`defvar' and `defconst' behave similarly in this respect.) So if I understand this correctly it appears that defcustom is overwriting your file variable. I don't understand however how you could make your file variable work. Maybe the variable org-export-taskjuggler-default-project-duration needs to be buffer-local. How does this interact with defcustom? Thanks Christian -- Christian Egli Swiss Library for the Blind, Visually Impaired and Print Disabled Grubenstrasse 12, CH-8045 Zürich, Switzerland ___ 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] BUG ??? Cannot export custom link type to ASCII :-(
Sebastian Rose sebastian_r...@gmx.de writes: C-c C-e A gives me: Debugger entered--Lisp error: (void-variable type) This should now be fixed in git - please pull and try. -- Bastien ___ 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] BUG ??? Cannot export custom link type to ASCII :-(
Bastien bastien.gue...@wikimedia.fr writes: Sebastian Rose sebastian_r...@gmx.de writes: C-c C-e A gives me: Debugger entered--Lisp error: (void-variable type) This should now be fixed in git - please pull and try. Yes, it is fixed. I still can return what ever I want with no effect (ASCII only): bin61JVw1aEg0.bin Description: application/emacs-lisp Org file: * Test links [[track:((9.707032442092896 52.37033874553582))test.svg][test-track]] ASCII-export: 1 Test links ~ [test-track] [test-track]: track:((9.707032442092896 52.37033874553582))test.svg Sebastian ___ 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] questions about table mode and spreadsheets
Dear Experts, I am becoming very fond of the table/spreadsheet in org-mode and trying to use it more extensively. I have tried digging through the docs but am still having trouble with some things: 1. Is there a way to dynamically add a new row to a table using a table formula? For example, a variety of org-mode things will produce a table as output and allow me to specify some formulas. I'd like to add a formula that says something like create a row at the bottom that sums column 3 and have that be a new row that gets added. Any thoughts? 2. How do I compute the sum of a column only if a corresponding row matches some condition? For example, how do I compute the sum of numbers in column a for which the name in column name is bar? For example, I should get 7 for the sum in column a in the table below: | name | a | b | c | |--+---+---+---| | foo | 1 | 2 | 3 | | bar | 3 | 2 | 1 | | bar | 4 | 5 | 6 | |--+---+---+---| Thanks, -I.S. ___ 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] Bounce: Bug in iCal export?
Do you mind sending a patch just for that? I prefer to check it without switching to the development release. Thanks, Guy On Sun, Sep 5, 2010 at 11:44 PM, David Maus dm...@ictsoc.de wrote: Bastien wrote: David Maus dm...@ictsoc.de writes: Uhh... Not really :/ It will still happens for TODO entries Why? The headline information is fetched again (?) if `org-icalendar-include-todo' is non-nil (line 474) and Org creates a VTODO entity. Looks like the iCal export function could use some refactoring -- I stumbled on this by accident because calling `org-get-headline' with the NO-TAGS option didn't solve the problem for a iCal entry with a TODO state and a tag. Do you mind if I revert the commit and check in a better solution? Absolutely not! Thanks for asking Fine. My first git revert \o/ Best, -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de ___ 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] Bounce: Bug in iCal export?
Guy Wiener wiener@gmail.com writes: Do you mind sending a patch just for that? I prefer to check it without switching to the development release. The best is then to wait for the next release. It's too much work for developers to commit patches *and* to send them individually. (You can still explore the diff on http://repo.or.cz/w/org-mode.git) -- Bastien ___ 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] Bounce: Bug in iCal export?
Thanks - The GIT diff was all I wanted! (I should get to know GIT better). Btw, when is the next release, if anyone knows? Guy On Mon, Sep 6, 2010 at 5:15 PM, Bastien bastien.gue...@wikimedia.fr wrote: Guy Wiener wiener@gmail.com writes: Do you mind sending a patch just for that? I prefer to check it without switching to the development release. The best is then to wait for the next release. It's too much work for developers to commit patches *and* to send them individually. (You can still explore the diff on http://repo.or.cz/w/org-mode.git) -- Bastien ___ 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: Bounce: Bug in iCal export?
Guy Wiener wiener@gmail.com writes: Do you mind sending a patch just for that? I prefer to check it without switching to the development release. Just an FYI : you can generate your own but clearly depends on what version you are actually using. Assuming you have the git repo cloned (whether running from that code or not) and pulled it at the last release, just open up org.el in your editor and then run magit (http://philjackson.github.com/magit/). Do a remote pull (f) which will show all committed changes on the remote git repo. select the one you are interested and hit enter key to give you the diff. You could of course also generate the diff at the git repo. Here is the diff between the current head and the previous commit:- http://repo.or.cz/w/org-mode.git/commitdiff/86f4ef6d1925cb482462c76ef62af6a6ce358550 regards r. Thanks, Guy On Sun, Sep 5, 2010 at 11:44 PM, David Maus dm...@ictsoc.de wrote: Bastien wrote: David Maus dm...@ictsoc.de writes: Uhh... Not really :/ It will still happens for TODO entries Why? The headline information is fetched again (?) if `org-icalendar-include-todo' is non-nil (line 474) and Org creates a VTODO entity. Looks like the iCal export function could use some refactoring -- I stumbled on this by accident because calling `org-get-headline' with the NO-TAGS option didn't solve the problem for a iCal entry with a TODO state and a tag. Do you mind if I revert the commit and check in a better solution? Absolutely not! Thanks for asking Fine. My first git revert \o/ Best, -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de ___ 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 -- ☘ http://www.shamrockirishbar.com, http://www.richardriley.net Learning French is trivial: the word for horse is 'cheval' and everything follows thusly. : quotemaster, #emacs on irc.freenode.net ___ 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] Bounce: Bug in iCal export?
Guy Wiener wiener@gmail.com writes: Btw, when is the next release, if anyone knows? My crystal ball tells me it won't be far away from september 22th, but I don't really know :) -- Bastien ___ 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] Bounce: Bug in iCal export?
Bastien bastien.gue...@wikimedia.fr writes: Guy Wiener wiener@gmail.com writes: Btw, when is the next release, if anyone knows? My crystal ball tells me it won't be far away from september 22th, but I don't really know :) ... maybe 'when it's ready' ? ;-) Giovanni -- Debian Rulez ___ 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] Org now fontifies code blocks
hi everyone, sorry for my silence, I had very little internet access on my seaside vacation. thanks so much everyone for making my dream of fontified source blocks a reality :) On Fri, Sep 3, 2010 at 3:10 PM, Thomas S. Dye t...@tsdye.com wrote: Aloha Dan, This is really nice. Thanks for shepherding it along. In some of my use cases there is a substantial delay when opening a large file and then unfolding sections with many source code blocks. I don't mind this and intend to keep the feature on, but I do think it should be off by default because the user potentially pays an appreciable time penalty for the pleasure of semantic source code markup. Thanks again for this nice feature. All the best, Tom On Sep 3, 2010, at 7:30 AM, Eric S Fraga wrote: On Thu, 02 Sep 2010 08:51:16 -0700, Dan Davison davi...@stats.ox.ac.uk wrote: I've just pushed changes which mean that Org now fontifies code in code blocks. Currently, this is turned on by default, so it would be helpful if people could report any problems, and opinions as to whether it should be on or off by default. [...] This is brilliant! Works very well on my notebook (with small code blocks as that's all I tend to have). Many thanks! -- Eric S Fraga GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D ___ 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 ___ 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 now fontifies code blocks
Eric S Fraga ucec...@ucl.ac.uk writes: On Thu, 02 Sep 2010 08:51:16 -0700, Dan Davison davi...@stats.ox.ac.uk wrote: I've just pushed changes which mean that Org now fontifies code in code blocks. Currently, this is turned on by default, so it would be helpful if people could report any problems, and opinions as to whether it should be on or off by default. [...] This is brilliant! Works very well on my notebook (with small code blocks as that's all I tend to have). Many thanks! Without wanting to rock the boat I think its safer to have this disabled by default. I cant tell you how many times I thought I was in the LISP buffer and ended up making a mess since this enhancement was added. I realise I can configure it myself but possibly the more conservative stick with old default is better? It IS a nice feature when in more capable hands than mine ;) What next? nxhtml integration and live editing inside the src blocks? ___ 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] Removing the blank lines between code and results blocks in LaTeX export
Recently Dan Davidson posted a patch to suppress the removal of blank lines in exported source code. I have the opposite problem - suppression of blank lines added during LaTeX export snip --- begin org file * An R example with :exports both The following code #+begin_src R :exports both :results output 2 + 2 #+end_src shows that there are blank lines added between the code and the results sections in \LaTeX export. Is this configurable? In \LaTeX{} the blank lines cause a new paragraph which often I don't want. --- snip --- end org file --- Just copy those lines to an org file and export it to LaTeX to see what I mean. A related issue is the LaTeX environment for the results. At present it is hard-wired in the function org-export-latex-fixed-width in org-latex.el to be the verbatim environment. I would like to configure the appearance of the results using the LaTeX package fancyvrb and it would be much easier if I could customize the strings preceding and following the exported results. The current strings are \\begin{verbatim}\n and \\end{verbatim}\n\n and, again, the two blank lines inserted after the results can be problematic. ___ 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: Org now fontifies code blocks
maybe there could be an on-by-default variable called org-warn-when-editing-src-block-in-org-buffer, or make the text readonly, etc. making this on-by-default would seem to create another discussion about things being on-by-default :) however, if fontification is on by default, then this should also be on by default, since fontification causes the mistaken in-org-buffer edits that Richard points out, which seems reasonable to want to prevent systematically. I've done this myself a few times. On Mon, Sep 6, 2010 at 12:59 PM, Richard Riley rile...@gmail.com wrote: Eric S Fraga ucec...@ucl.ac.uk writes: On Thu, 02 Sep 2010 08:51:16 -0700, Dan Davison davi...@stats.ox.ac.uk wrote: I've just pushed changes which mean that Org now fontifies code in code blocks. Currently, this is turned on by default, so it would be helpful if people could report any problems, and opinions as to whether it should be on or off by default. [...] This is brilliant! Works very well on my notebook (with small code blocks as that's all I tend to have). Many thanks! Without wanting to rock the boat I think its safer to have this disabled by default. I cant tell you how many times I thought I was in the LISP buffer and ended up making a mess since this enhancement was added. I realise I can configure it myself but possibly the more conservative stick with old default is better? It IS a nice feature when in more capable hands than mine ;) What next? nxhtml integration and live editing inside the src blocks? ___ 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: Org now fontifies code blocks
On 09/06/2010 11:59 AM, Richard Riley wrote: Eric S Fragaucec...@ucl.ac.uk writes: On Thu, 02 Sep 2010 08:51:16 -0700, Dan Davisondavi...@stats.ox.ac.uk wrote: I've just pushed changes which mean that Org now fontifies code in code blocks. Currently, this is turned on by default, so it would be helpful if people could report any problems, and opinions as to whether it should be on or off by default. [...] This is brilliant! Works very well on my notebook (with small code blocks as that's all I tend to have). Many thanks! Without wanting to rock the boat I think its safer to have this disabled by default. I cant tell you how many times I thought I was in the LISP buffer and ended up making a mess since this enhancement was added. I realise I can configure it myself but possibly the more conservative stick with old default is better? It IS a nice feature when in more capable hands than mine ;) What next? nxhtml integration and live editing inside the src blocks? I think several people have that setup already. Last I heard a few days ago, there was an issue with editing R that was being resolved. ___ 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: Bounce: Bug in iCal export?
Richard Riley rile...@gmail.com writes: Guy Wiener wiener@gmail.com writes: Do you mind sending a patch just for that? I prefer to check it without switching to the development release. Just an FYI : you can generate your own but clearly depends on what version you are actually using. Besides, you can just cherry-pick the single commit in question into your local branch (I keep a local and a local-maint branch myself). If the changes were isolated enough, you wouldn't even get a merge conflict. This is best done with a GUI (I use gitk mostly), but it isn't too difficult to do it on the command line either. Achim. ___ 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 now fontifies code blocks
Richard Riley rile...@gmail.com writes: Eric S Fraga ucec...@ucl.ac.uk writes: On Thu, 02 Sep 2010 08:51:16 -0700, Dan Davison davi...@stats.ox.ac.uk wrote: I've just pushed changes which mean that Org now fontifies code in code blocks. Currently, this is turned on by default, so it would be helpful if people could report any problems, and opinions as to whether it should be on or off by default. [...] This is brilliant! Works very well on my notebook (with small code blocks as that's all I tend to have). Many thanks! Without wanting to rock the boat I think its safer to have this disabled by default. I cant tell you how many times I thought I was in the LISP buffer and ended up making a mess since this enhancement was added. Hi Richard, I'm not quite clear what problems are arising from Org buffer edits. Could you expand? Thanks, Dan I realise I can configure it myself but possibly the more conservative stick with old default is better? It IS a nice feature when in more capable hands than mine ;) What next? nxhtml integration and live editing inside the src blocks? ___ 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: Org file rendering/manipulation too slow
Marcelo de Moraes Serpa celose...@gmail.com writes: From the moment I press enter on the minibuffer to the moment the whole file is rendered, it takes about 3 seconds. So, it does take longer than I would expect. Wild-ass guess: EMACS asks for all the fonts to be rendered that you are using in this file... if so, opening the file a second time in the same session should be a lot faster unless something is badly misconfigured. Achim. ___ 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: Org now fontifies code blocks
If setting org-src-fontify-natively to `t' by default triggers a debate on whether we need to set org-warn-when-editing-src-block-in-org-buffer on or off by default, I'd rather set org-src-fontify-natively off by default... My 2 cts, -- Bastien ___ 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 now fontifies code blocks
Dan Davison davi...@stats.ox.ac.uk writes: Richard Riley rile...@gmail.com writes: Eric S Fraga ucec...@ucl.ac.uk writes: On Thu, 02 Sep 2010 08:51:16 -0700, Dan Davison davi...@stats.ox.ac.uk wrote: I've just pushed changes which mean that Org now fontifies code in code blocks. Currently, this is turned on by default, so it would be helpful if people could report any problems, and opinions as to whether it should be on or off by default. [...] This is brilliant! Works very well on my notebook (with small code blocks as that's all I tend to have). Many thanks! Without wanting to rock the boat I think its safer to have this disabled by default. I cant tell you how many times I thought I was in the LISP buffer and ended up making a mess since this enhancement was added. Hi Richard, I'm not quite clear what problems are arising from Org buffer edits. Could you expand? Nothing particularly harsh but I find myself reaching for elisp hot keys and expecting indentation etc to work. It's no big deal and as I said I can config it to revert to the old behaviour. Probably best to forget my suggestion of leaving the default as no fontification ;) -- ☘ http://www.shamrockirishbar.com, http://www.richardriley.net Learning French is trivial: the word for horse is 'cheval' and everything follows thusly. ___ 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: Org now fontifies code blocks
I agree Bastien :) On Mon, Sep 6, 2010 at 2:30 PM, Bastien bastien.gue...@wikimedia.fr wrote: If setting org-src-fontify-natively to `t' by default triggers a debate on whether we need to set org-warn-when-editing-src-block-in-org-buffer on or off by default, I'd rather set org-src-fontify-natively off by default... My 2 cts, -- Bastien ___ 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: task juggler export
On Mon, 06 Sep 2010 11:39:47 +0200, Christian Egli christian.e...@sbs.ch wrote: Eric S Fraga ucec...@ucl.ac.uk writes: However, org-taskjuggler seems to use the global value regardless. Hm, org-taskjuggler doesn't do anything magic here. It just takes the value of org-export-taskjuggler-default-project-duration. Yes, I can see that from the code. It doesn't seem to do anything out of the ordinary with this variable. Is there something I need to do to get it to pay attention to my file local variable value? A pointer to a relevant section in the emacs lisp manual would suffice I just looked at the help string for defcustom (C-h f defcustom) where it says: If symbol has a local binding, then this form affects the local binding. This is normally not what you want. Thus, if you need to load a file defining variables with this form, or with `defvar' or `defconst', you should always load that file _outside_ any bindings for these variables. (`defvar' and `defconst' behave similarly in this respect.) So if I understand this correctly it appears that defcustom is overwriting your file variable. I don't understand however how you could make your file variable work. I'm glad you can understand that help documentation! I cannot figure out what ... load that file _outside_ any bindings ... actually means! Maybe the variable org-export-taskjuggler-default-project-duration needs to be buffer-local. How does this interact with defcustom? Good question. I'll see if I can figure this out (and play with your code) in due course. In the meantime, I had to give up and have prepared my tj file directly (which is not that onerous of course). When this project bid is finished, I'll come back to this. Thanks again for your help, eric -- Eric S Fraga GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D ___ 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 now fontifies code blocks
David O'Toole dto1...@gmail.com writes: I agree Bastien :) Possibly a customize interface for it would be nice too if the code is touched! On Mon, Sep 6, 2010 at 2:30 PM, Bastien bastien.gue...@wikimedia.fr wrote: If setting org-src-fontify-natively to `t' by default triggers a debate on whether we need to set org-warn-when-editing-src-block-in-org-buffer on or off by default, I'd rather set org-src-fontify-natively off by default... My 2 cts, -- Bastien BTW, can the mail list auto .sig append also prefix it with a -- /n so its auto snipped on reply by many newsreaders? ___ 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: Using cdlatex-item within org-mode
Thanks for putting this on the issue tracker at worg! Best, Jeff On Sat, Sep 4, 2010 at 3:33 PM, Jeff Horn jrhorn...@gmail.com wrote: Should it be possible to use cdlatex-item in org-mode? (I read that org-cdlatex-mode has a subset of functionality in the org manual) Specifically, I am trying to use it from within an equation array. When I type `C-c -', a dash is inserted at the beginning of the array line. When I type `itTAB', I receive an error stating `Symbol's function definition is void: reftex-what-environment'. Any ideas? Jeff -- Jeffrey Horn PhD Student in Economics George Mason University (704) 271-4797 jh...@gmu.edu jrhorn...@gmail.com -- Jeffrey Horn PhD Student in Economics George Mason University (704) 271-4797 jh...@gmu.edu jrhorn...@gmail.com ___ 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] some garbage left in org-timer.el
Hello. Someone who starts all her/his functions with bzg- has left this --8---cut here---start-8--- diff --git a/lisp/org-timer.el b/lisp/org-timer.el index 313d4f0..0ffe67d 100644 --- a/lisp/org-timer.el +++ b/lisp/org-timer.el @@ -322,10 +322,6 @@ VALUE can be `on', `off', or `pause'. (message %d minute(s) %d seconds left before next time out rmins rsecs -(defun bzg-test (optional test) - (interactive P) - test) - ;;;###autoload (defun org-timer-set-timer (optional opt) Prompt for a duration and set a timer. --8---cut here---end---8--- -- Miłego dnia, Łukasz Stelmach ___ 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] python session speed vs non session
I have recently been trying out the src executing capabilities of orgmode. I have been confused why a python session takes significantly longer to execute than a non python session. For example #+begin_src python return 2+2 #+end_src executes pretty quickly, but #+begin_src python :session test 2+2 #+end_src executes twice as long. Looking at the command shell for python, it seems that the time is being taken to actually send the source to the command shell buffer. Once its sent (or once i can see it displayed in the command shell buffer) it immediately returns. Any ideas? ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [BUG] org-timer requires org-notify from org-clock
Hello. It seems like there has to be (require 'org-clock) on top of org-timer.el because otherwise the notification lambda in-org-timer-set-timer fails because org-notify is not defined and the timer starts going forward after it passes 0:00:00. It also looks like (declare-function org-notify org-clock (notification optional play-sound)) is not enough. (BTW. now its d-f org-show-notification which is not used in org-timer). Simple (require 'org-clock) helps, as anything else that loads org-clock like clocking-in. -- Miłego dnia, Łukasz Stelmach ___ 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] some garbage left in org-timer.el
Łukasz Stelmach lukasz.stelm...@iem.pw.edu.pl writes: Someone who starts all her/his functions with bzg- has left this I don't know who left this stupid function -- I just removed it :) -- Bastien ___ 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] Force completed habits to revert to HABIT todo keyword instead of TODO
Hi Org mode, Summary: I would like habits to automatically be marked as the todo keyword HABIT instead of TODO after I mark them DONE Reasons: I want to keep my habits separate from my tasks. But they display together on my TODO list. This makes it hard to keep track of what's a habit and what's not. I could change a setting so that scheduled tasks are no longer considered open. But then I lose the ability to see all my habits in a list on the TODO view. Also, I like to see habits clearly marked HABIT instead of TODO in my org outline. Keeping the keywords separated fits better with my workflow. Normally I only need to work on habits from within the org agenda, not the todo list. For example, I start the day by executing scheduled tasks, then priority A tasks, then priority A habits, etc. Is there some setting I can change to do this? Right now I am doing it manually. Thanks, JB -- Ignore the following. It is a nonsense sentence that disables Google ads from displaying next to my emails by triggering sensitive keywords. I enjoy the massacre of ads. This sentence will slaughter ads without a messy bloodbath. ___ 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] Secretary.el
Looking to get secretary.el set up for my new job responsibilities - managing six locations- and I seem to either not get it or just don't get it. I believe that part of the issue that I may have is Control -c w (which activates refile). I have read the instructions several times - 1. I have enabled the module 2. Added the following to my .emacs file (commented out for the moment) ;; org-secreatary ;;(A Work todos with doat or dowith tags-todo ;; -personal+doat={.+}|dowith={.+}/!-TASK ;;((org-agenda-todo-ignore-scheduled nil))) ;; (j TODO dowith and TASK with ;; ((org-sec-with-view TODO dowith) ;; (org-sec-where-view TODO doat) ;; (org-sec-assigned-with-view TASK with) ;; (org-sec-stuck-with-view STUCK with))) ;; (J Interactive TODO dowith and TASK with ;; ((org-sec-who-view TODO dowith))) trying any of the commands that I see in the file source do not provide any results Using Aquamacs 2.1 and 7.01trans (latest from git repository) Any help would be appreciated Andre Powell ___ 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: Force completed habits to revert to HABIT todo keyword instead of TODO
Joseph Buchignani joseph.buchign...@gmail.com writes: Summary: I would like habits to automatically be marked as the todo keyword HABIT instead of TODO after I mark them DONE Reasons: I want to keep my habits separate from my tasks. But they display together on my TODO list. This makes it hard to keep track of what's a habit and what's not. You can exclude from your TODO list all entris with a STYLE propert equal `habit'. I could change a setting so that scheduled tasks are no longer considered open. But then I lose the ability to see all my habits in a list on the TODO view. Also, I like to see habits clearly marked HABIT instead of TODO in my org outline. That's a much better reason. Keeping the keywords separated fits better with my workflow. Normally I only need to work on habits from within the org agenda, not the todo list. For example, I start the day by executing scheduled tasks, then priority A tasks, then priority A habits, etc. Is there some setting I can change to do this? Right now I am doing it manually. I'd try putting habits in a separate file with its own set of TODO kewords defined in a line beginning with `#+SEQ_TODO'. You can also try defining a different DONE keyword for habits together with HABIT and use it as a TODO keyword sequence as described here. info:org#Multiple sets in one file http://orgmode.org/manual/Multiple-sets-in-one-file.html#Multiple-sets-in-one-file I am sure someone with more moxie and bigger mojo than me (at least for now i.e. 00:08 CEST) could come up with a function you could add to org-after-todo-state-change-hook that does exactly what you want. -- Miłego dnia, Łukasz Stelmach ___ 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 open org-entities
Hello, When I try to load orgmode, I am greeted with the following error: Debugger entered--Lisp error: (file-error Cannot open load file org-entities) require(org-entities) byte-code ((long block of numbers I can't copy for some reason followed by) [make-variable-buffer-local org-table-formula-constants-local require calendar fboundp defvaralias boundp calendar-view-holidays-initially-flag view-calendar-holidays-initially calendar-view-diary-initially-flag view-diary-entries-initially diary-fancy-buffer fancy-diary-buffer outline noutline time-date time-subtract defalias subtract-time easymenu overlay org-macs org-entities org-compat org-faces org-list org-src org-footnote ob ob-table ob-lob ob-ref ob-tangle ob-comint ob-keys] 3) require(org) eval((require (quote org))) eval-last-sexp-1(nil) eval-last-sexp(nil) call-interactively(eval-last-sexp nil nil) Version is 7.01 (I think...after all, I can't load orgmode to check, but I git-pulled a few nights ago). Thank you very much, - Raffi. ___ 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] questions about table mode and spreadsheets
On 9/6/10 3:38 PM, Inquisitive Scientist wrote: 2. How do I compute the sum of a column only if a corresponding row matches some condition? For example, how do I compute the sum of numbers in column a for which the name in column name is bar? For example, I should get 7 for the sum in column a in the table below: | name | a | b | c | |--+---+---+---| | foo | 1 | 2 | 3 | | bar | 3 | 2 | 1 | | bar | 4 | 5 | 6 | |--+---+---+---| Here's one way: Add a new row after the first, as below. Then run C-c C-c on the formula line: | name | | a | b | c | |--+---+---+---+---| | foo | | 1 | 2 | 3 | | bar | | 3 | 2 | 1 | | bar | | 4 | 5 | 6 | |--+---+---+---+---| | | | | | | #+TBLFM: $2='(if (string= $1 bar) 1 0):: @5$3=vsum(vmask(@i$...@ii$2,@i...@ii)) It does exactly what you asked, but I don't think it will scale well... Cheers, Christian Thanks, -I.S. ___ 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 -- Christian Moe E-mail: m...@christianmoe.com Website: http://christianmoe.com ___ 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] Speed keys
Is it possible Speed Keys (Refer Org Manual - Sec. 15.3) for Babel blocks? Attached patch extends the speed key functionality. Usage notes: After applying the patch, use variant-1 or variant-2 to enable speed keys within a babel block. variant-1: (defun org-babel-speed-command-hook (keys) (when (org-babel-where-is-src-block-head) (cdr (assoc keys org-babel-key-bindings variant-2: (defun org-babel-speed-command-hook (keys) (when (and (bolp) (looking-at org-babel-src-block-regexp)) (cdr (assoc keys org-babel-key-bindings (add-hook 'org-speed-command-hook 'org-babel-speed-command-hook 'append) Use this hook with caution. (defun org-speed-command-catch-all-hook (keys) 'ignore) (add-hook 'org-speed-command-hook 'org-babel-speed-command-hook 'append) Jambunathan K. From 2fca952e923d44bec554b8b4e7dafc355e068f32 Mon Sep 17 00:00:00 2001 From: Jambunathan K kjambunat...@gmail.com Date: Tue, 7 Sep 2010 04:01:16 +0530 Subject: [PATCH 2/2] Support for user-extensible speed commands. * lisp/org.el (org-speed-command-hook): New. Hook for installing additional speed commands. Use this for enabling speed commands on src blocks. (org-speed-command-default-hook): The default hook for org-speed-command-hook. Factored out from org-self-insert-command and mimics existing behaviour. (org-self-insert-command): Modified to use org-speed-command-hook. TINYCHANGE. --- lisp/org.el | 38 +++--- 1 files changed, 31 insertions(+), 7 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index 09281cc..ead91a3 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -16494,6 +16494,34 @@ If not, return to the original position and throw an error. (defvar org-table-auto-blank-field) ; defined in org-table.el (defvar org-speed-command nil) + +(defun org-speed-command-default-hook (keys) + Hook for activating single-letter speed commands. +`org-speed-commands-default' specifies a minimal command set. Use +`org-speed-commands-user' for further customization. + (when (or (and (bolp) (looking-at outline-regexp)) + (and (functionp org-use-speed-commands) +(funcall org-use-speed-commands))) +(cdr (assoc keys (append org-speed-commands-user +org-speed-commands-default) + +(defcustom org-speed-command-hook 'org-speed-command-default-hook + Hook for activating speed commands at strategic locations. +Hook functions are called in sequence until a valid handler is +found. + +Each hook takes a single argument, a user-pressed command key +which is also a `self-insert-command' from the global map. + +Within the hook, examine the cursor position and the command key +and return nil or a valid handler as appropriate. Handler could +be one of an interactive command, a function, or a form. + +Set `org-use-speed-commands' to non-nil value to enable this +hook. The default setting is `org-speed-command-default-hook'. + :group 'org-structure + :type 'hook) + (defun org-self-insert-command (N) Like `self-insert-command', use overwrite-mode for whitespace in tables. If the cursor is in a table looking at whitespace, the whitespace is @@ -16501,13 +16529,9 @@ overwritten, and the table is not marked as requiring realignment. (interactive p) (cond ((and org-use-speed-commands -(or (and (bolp) (looking-at outline-regexp)) -(and (functionp org-use-speed-commands) - (funcall org-use-speed-commands))) -(setq - org-speed-command - (or (cdr (assoc (this-command-keys) org-speed-commands-user)) - (cdr (assoc (this-command-keys) org-speed-commands-default) +(setq org-speed-command + (run-hook-with-args-until-success + 'org-speed-command-hook (this-command-keys (cond ((commandp org-speed-command) (setq this-command org-speed-command) -- 1.7.0.4 ___ 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: Select default clocking task by Bernt Hansen
Yevgeniy A. Viktorov yevgeniy.vikto...@gmail.com writes: Hello, I've been reading http://doc.norang.ca/org-mode.html and a bit stack with http://doc.norang.ca/org-mode.html#Clocking as far I understand Bernt has * Organization(first level) task in his norang.org and according to this: The first punch-in of the day (f9 I) shows the context agenda view if no default task is selected, otherwise it just clocks in the default task. it must be shown in agenda, but it's not, I seeing empty agenda with the following: Set default clocking task with C-u C-u I And according to Custom Agenda Views setup http://doc.norang.ca/org-mode.html#sec-6 (c Select default clocking task tags LEVEL=2-REFILE ((org-agenda-skip-function '(org-agenda-skip-subtree-if 'notregexp ^\\*\\* Organization)) (org-agenda-overriding-header Set default clocking task with C-u C-u I)) Organization task must be placed onto second level, i.e. it only works if I put ** Organization somewhere. But than I'm loosing concept, thought default task must be set per organization/client file? Would be nice if someone could throw light on this :) Thanks. Hi Yevgeniy, I actually have 3 'Organization' tasks that I clock in -- all at level 2. These are in 3 different org files and are listed in my org-agenda-files variable. My current layout is like this: ,[ todo.org ] | #+FILETAGS: HOME | ... | * Miscellaneous :misc: | ** Organization | ... ` ,[ org.org ] | #+FILETAGS: ORG | ... | * Tuning :tuning: | ** Organization | ... ` ,[ norang.org ] | #+FILETAGS: NORANG | ... | * Administration:admin: | ** Organization | ... ` I used to have a first level * Organization task when I was clocking in by ID but that set up has changed. It's possible I still have references to the old layout in the document that needs to be updated. Sorry about the confusion. Do you have any suggestions on how I can improve the documentation to make this more clear? Regards, 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] [BUG] org-timer requires org-notify from org-clock
Łukasz Stelmach lukasz.stelm...@iem.pw.edu.pl writes: It seems like there has to be (require 'org-clock) on top of org-timer.el because otherwise the notification lambda in-org-timer-set-timer fails because org-notify is not defined and the timer starts going forward after it passes 0:00:00. It also looks like (declare-function org-notify org-clock (notification optional play-sound)) is not enough. (BTW. now its d-f org-show-notification which is not used in org-timer). Simple (require 'org-clock) helps, as anything else that loads org-clock like clocking-in. Fixed, thanks. -- Bastien ___ 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 open org-entities
Raffi R raf...@gmail.com writes: Debugger entered--Lisp error: (file-error Cannot open load file org-entities) Are you sure org-entities.el is in your loadpath? -- Bastien ___ 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] questions about table mode and spreadsheets
A very complex way of not adding the extra column: | name | a | b | c | |--++---+---| | foo | 1 | 2 | 3 | | bar | 3 | 2 | 1 | | bar | 4 | 5 | 6 | |--++---+---| | | 7 | | | #+TBLFM: @5$2='(apply '+ (mapcar* (lambda(x y) (if (string= x bar) y 0)) '(@i$...@ii$1) '(@i$...@ii$2)));L * the two arguments at the end are the name and a columns: '(foo bar bar) and '(1 3 4) * the lambda function returns the second argument if first is bar, 0 otherwise. * mapcar* applies the lambda function to arguments from the 2 lists. * apply '+ adds the resulting list Regards, .j. On Tue, Sep 07, 2010 at 12:44:03AM +0200, Christian Moe wrote: On 9/6/10 3:38 PM, Inquisitive Scientist wrote: 2. How do I compute the sum of a column only if a corresponding row matches some condition? For example, how do I compute the sum of numbers in column a for which the name in column name is bar? For example, I should get 7 for the sum in column a in the table below: | name | a | b | c | |--+---+---+---| | foo | 1 | 2 | 3 | | bar | 3 | 2 | 1 | | bar | 4 | 5 | 6 | |--+---+---+---| Here's one way: Add a new row after the first, as below. Then run C-c C-c on the formula line: | name | | a | b | c | |--+---+---+---+---| | foo | | 1 | 2 | 3 | | bar | | 3 | 2 | 1 | | bar | | 4 | 5 | 6 | |--+---+---+---+---| | | | | | | #+TBLFM: $2='(if (string= $1 bar) 1 0):: @5$3=vsum(vmask(@i$...@ii$2,@i...@ii)) It does exactly what you asked, but I don't think it will scale well... ___ 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: task juggler export
This won't be exactly earth-shattering, but in playing around I might have a hackish workaround which may or may not be helpful... - I took the taskjuggler org file example from here: http://orgmode.org/worg/org-tutorials/org-taskjuggler.php - I added these lines at the end (from here: http://www.taskjuggler.org/tj3/manual/index.html) export FullProject.tjp { taskattributes all hideresource 0 } http://orgmode.org/worg/org-tutorials/org-taskjuggler.php- I used taskjuggler-2.4.3 on the orgmode generated .tjp file to produce the FullProject.tjp - I pasted the reports definition from the tj3 tutoria file at the bottom of FullProject.tjp --- from http://www.taskjuggler.org/tj3/examples/tutorial.tjp - I then began some tweaks --- change all plan: start 2010-xx-xx in *milestones* to simply start 2010-xx-xx --- add an end: 2010-xx-xx to match the start of each milestone (they must be exact) --- removal of all references in the reports section to plan delayed --- removal of the phone contact info --- change from the report AsCo.deliveries to accounting.milestones Basically, I just kept running tj3 FullProject.tjp until the errors stopped :) Anyway, it wasn't *that* much to change. I looked into TaskJuggler quite a while ago and so I was slightly familiar with it and thought I'd tinker around. If org-mode picked up tj3 I'd be down. Without html gantt charts I don't think it has that much going for it so tj3 is pretty much a must for me as opposed to using the UI in 2.4.3. Perhaps my tinkering can help someone in their reworking of org-taskjuggler.el or to see how exporting and tweaking might make things usable in the meantime? I attached the tweaked FullProject.tjp file for examination. This contains the tweaked org export + tweaked report definition from the tj3 tutorial example that made a successful export to the html report files. Just run tj3 FullProject.tjp to see what is generated. John On Mon, Sep 6, 2010 at 10:40 AM, Eric S Fraga ucec...@ucl.ac.uk wrote: On Mon, 06 Sep 2010 11:39:47 +0200, Christian Egli christian.e...@sbs.ch wrote: Eric S Fraga ucec...@ucl.ac.uk writes: However, org-taskjuggler seems to use the global value regardless. Hm, org-taskjuggler doesn't do anything magic here. It just takes the value of org-export-taskjuggler-default-project-duration. Yes, I can see that from the code. It doesn't seem to do anything out of the ordinary with this variable. Is there something I need to do to get it to pay attention to my file local variable value? A pointer to a relevant section in the emacs lisp manual would suffice I just looked at the help string for defcustom (C-h f defcustom) where it says: If symbol has a local binding, then this form affects the local binding. This is normally not what you want. Thus, if you need to load a file defining variables with this form, or with `defvar' or `defconst', you should always load that file _outside_ any bindings for these variables. (`defvar' and `defconst' behave similarly in this respect.) So if I understand this correctly it appears that defcustom is overwriting your file variable. I don't understand however how you could make your file variable work. I'm glad you can understand that help documentation! I cannot figure out what ... load that file _outside_ any bindings ... actually means! Maybe the variable org-export-taskjuggler-default-project-duration needs to be buffer-local. How does this interact with defcustom? Good question. I'll see if I can figure this out (and play with your code) in due course. In the meantime, I had to give up and have prepared my tj file directly (which is not that onerous of course). When this project bid is finished, I'll come back to this. Thanks again for your help, eric -- Eric S Fraga GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D ___ 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 FullProject.tjp Description: Binary data ___ 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: Select default clocking task by Bernt Hansen
At Mon, 06 Sep 2010 19:28:43 -0400, Bernt Hansen wrote: Hi Yevgeniy, I actually have 3 'Organization' tasks that I clock in -- all at level 2. These are in 3 different org files and are listed in my org-agenda-files variable. My current layout is like this: ,[ todo.org ] | #+FILETAGS: HOME | ... | * Miscellaneous :misc: | ** Organization | ... ` ,[ org.org ] | #+FILETAGS: ORG | ... | * Tuning :tuning: | ** Organization | ... ` ,[ norang.org ] | #+FILETAGS: NORANG | ... | * Administration :admin: | ** Organization | ... ` I used to have a first level * Organization task when I was clocking in by ID but that set up has changed. It's possible I still have references to the old layout in the document that needs to be updated. Sorry about the confusion. Do you have any suggestions on how I can improve the documentation to make this more clear? Hello Bernt, thank you for examples, I really lost it :) would be nice to fix references to first level * Organization, i.e. mostly to replace * Organization with ** Organization and include above examples. As far I understand you categorize organization by work you usually do in some context if no other task specified or using Misc when there is no appropriate category? ___ 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 open org-entities
Dear Bastien, How odd; it looks like it was, but copying and pasting it from my copy of the git repository to site-lisp seemed to fix things. Thank you very much! - Raffi. On Mon, Sep 6, 2010 at 8:31 PM, Bastien bastien.gue...@wikimedia.fr wrote: Raffi R raf...@gmail.com writes: Debugger entered--Lisp error: (file-error Cannot open load file org-entities) Are you sure org-entities.el is in your loadpath? -- Bastien ___ 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: Value of `ispell-dictionary-alist' reset by `org-agenda-list'
Sébastien Vauban wxhgmqzgw...@spammotel.com writes: Hi Noorul and everybody, Noorul Islam wrote: 2010/9/3 Sébastien Vauban wxhgmqzgw...@spammotel.com: I still don't understand what's going on, but I've managed getting closer to a long experienced problem in my Emacs: while I set the value of =ispell-dictionary-alist= in the beginning of my =.emacs= file, it is reset when calling =org-agenda-list=. (message Value of `ispell-dictionary-alist' before `org-agenda-list') (edebug-print ispell-dictionary-alist) (org-agenda-list) (message Value of `ispell-dictionary-alist' after `org-agenda-list') (edebug-print ispell-dictionary-alist) (delete-other-windows) Has anyone any idea on how to circumvent this? Since orgmode is using flyspell, looks like it is interfering with ispell. From flyspell.el == (defun flyspell-mode-on () Turn Flyspell mode on. Do not use this; use `flyspell-mode' instead. (ispell-set-spellchecker-params) ; Initialize variables and dicts alists (setq ispell-highlight-face 'flyspell-incorrect) ;; local dictionaries setup (or ispell-local-dictionary ispell-dictionary (if flyspell-default-dictionary (ispell-change-dictionary flyspell-default-dictionary))) == Yes, but I don't understand why Org *would* (and did not write *does*, as it still is not clear enough to me) setq the list of dictionaries... Clearly a behavior to forbid! You might be able to write a flyspell-mode hook function which will set the dictionary you like in the variable flyspell-default-dictionary. Thanks and Regards Noorul ___ 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: Select default clocking task by Bernt Hansen
Yevgeniy A. Viktorov yevgeniy.vikto...@gmail.com writes: At Mon, 06 Sep 2010 19:28:43 -0400, Bernt Hansen wrote: Hi Yevgeniy, I actually have 3 'Organization' tasks that I clock in -- all at level 2. These are in 3 different org files and are listed in my org-agenda-files variable. My current layout is like this: ,[ todo.org ] | #+FILETAGS: HOME | ... | * Miscellaneous :misc: | ** Organization | ... ` ,[ org.org ] | #+FILETAGS: ORG | ... | * Tuning:tuning: | ** Organization | ... ` ,[ norang.org ] | #+FILETAGS: NORANG | ... | * Administration :admin: | ** Organization | ... ` I used to have a first level * Organization task when I was clocking in by ID but that set up has changed. It's possible I still have references to the old layout in the document that needs to be updated. Sorry about the confusion. Do you have any suggestions on how I can improve the documentation to make this more clear? Hello Bernt, thank you for examples, I really lost it :) would be nice to fix references to first level * Organization, i.e. mostly to replace * Organization with ** Organization and include above examples. As far I understand you categorize organization by work you usually do in some context if no other task specified or using Misc when there is no appropriate category? Just to add a ra ra to this post Bernd. Your page on using Org is singularly the most useful I have come across and I have meant to get back and reimplement your method following a bit of a .emacs clean up recently. I think I sent some feedback before but if youÄre planning any overhaul I'll wait a while and then run through the updated version once more. regards r. ___ 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