Re: [Orgmode] Attempting to build latest version
At Mon, 03 Jan 2011 13:59:40 -0500, J. David Boyd wrote: I'm getting this error message: In toplevel form: lisp/org-indent.el:223:39:Error: Wrong type argument: listp, nstars make: *** [lisp/org-indent.elc] Error 1 Any ideas how to get around this? Current development version in master compiles fine here, so maybe this problem was fixed. Or does it still persist? Best, -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de pgpgPY87h3DvI.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] Handling file links under Windows
Guided by Matt's suggestion I started digging further. I see the problem, but I don't know how to fix it other than by making crude changes directly to source in org.el. Both the command path and the file link path need to be properly formatted for Windows. In particular, in org-file-apps list, I need something like (\\.jnt\\' . (format %s %%s (w32-short-file-name C:\\Program Files\\Windows Journal\\Journal.exe))). But, this expression doesn't work verbatim. If I evaluate (format) and paste the result as the cdr of the dotted pair, e.g. (\\.jnt\\' . c:/PROGRA~1/WI0FCF~1/Journal.exe %s), the command is invoked. So, question 1: How do I eval the (format...) expression automatically?.. A more serious problem is that emacs is failing to correctly convert slashes to backslashes in the file path. My emacs is launched by cygwin, and so apparently it thinks that slashes are OK, but in fact they are not. Here are the explicit modifications to org-find-file in org.el that are needed to get things to work: Original code (doesn't work under Windows): (setq cmd (replace-match (save-match-data (shell-quote-argument (convert-standard-filename file))) t t cmd))) Here's what works: (setq cmd (replace-match (w32-short-file-name (save-match-data (convert-standard-filename (replace-regexp-in-string / \\ file t t t t cmd)) Note that instead of (convert-standard-filename file) I need to explicitly replace slashes with backslashes, and shell-quote-argument must be replaced with w32-short-file-name. So, question 2: Is there a way to make these modifications without patching org?.. --Leo On Sat, Jan 15, 2011 at 10:27 PM, Matthew Fidler matthew.fid...@gmail.com wrote: Leo, I am not at my computer, so I can't try this out. However I believe it may be the spaces in your commands. Try: ((\\.jnt\\' . (format %s %%s (w32-short-file-name C:\\Program Files\\Windows Journal\\Journal.exe)) (\\.pdf\\' . (format %s %%s (w32-short-file-name C:\\Program Files (x86)\\Adobe\\Acrobat 10.0\\Acrobat\\Acrobat.exe) (auto-mode . emacs) (\\.x?html?\\' . default)) Matt On Jan 15, 2011, at 9:03 PM, Leo Alekseyev dnqu...@gmail.com wrote: Dear All, I would like to have links to PDF files open those files in Acrobat and links to Windows Journal (JNT) files open them in Windows Journal -- very simple; same as it would be as if I double-clicked them anywhere in Windows. Here is what happens now: PDF files open in emacs doc-view mode, and JNT files fail to open with the message ShellExecute failed: Application not found^M (sic). If I try to explicitly set the variable org-file-apps, so that its value is ((\\.jnt\\' . C:\\Program Files\\Windows Journal\\Journal.exe %s) (\\.pdf\\' . C:\\Program Files (x86)\\Adobe\\Acrobat 10.0\\Acrobat\\Acrobat.exe %s) (auto-mode . emacs) (\\.x?html?\\' . default)) -- but in this case, opening those links silently fails (even though I can type e.g. C:\Program Files\Windows Journal\Journal.exe foo.jnt from Windows command line and it works fine). Can anyone help with getting this to work right?.. Links are rather fundamental to org-mode and it's annoying not to have them working right. --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 ___ 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: Handling file links under Windows
Leo Alekseyev dnqu...@gmail.com writes: If I try to explicitly set the variable org-file-apps, so that its value is ((\\.jnt\\' . C:\\Program Files\\Windows Journal\\Journal.exe %s) Let me venture the guess that those spaces in the path are not quoted on their way to the windows shell. Something like ((\\.jnt\\' . \C:\\Program Files\\Windows Journal\\Journal.exe\ \%s\) might be the ticket (can't test right now). Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ SD adaptation for Waldorf rackAttack V1.04R1: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada ___ 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] pcomplete bug in 7.4
At Mon, 03 Jan 2011 23:30:49 +0100, kelaouchi wrote: Completing todo keywords using M-TAB always works for TODO and WAITING on 7.4 (except it doesn't add any space after keyword). Completing other todo keywords (as SOMEDAY, CANCELLED, ...) only works the first time i run M-TAB. I can confirm this problem with Org-mode version 7.4 (release_7.4.199.g8be1) GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) of 2010-12-11 on raven, modified by Debian emacs -Q, just load Org mode and this file: #+begin_src org ,#+TODO: TODO SOMEDAY | DONE #+end_src I noticed that SOMEDAY gets completed if the keyword is defined before TODO, e.g.: #+TODO: SOMEDAY TODO | DONE Seems to work. best, -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de pgpJTNRJ9TMWW.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] Bug: Invalid XHTML generated [7.4]
At Sun, 9 Jan 2011 17:42:46 +1300, Aidan Gauland wrote: The closing /div tag in this Org file is placed *before* the closing /li and /ul items for the *** A third item heading. I can confirm this with Org-mode version 7.4 (release_7.4.199.g8be1) GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) of 2010-12-11 on raven, modified by Debian best, -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de pgpfQkW0JujYa.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] Help with org-link-translation-function
At Tue, 4 Jan 2011 05:40:30 -0600, Leo Alekseyev wrote: Hi All, I am trying to achieve the following: any link of the form [[/ssh:host:/path/to/file]] should, when followed, be translated to [[/plink:host:/path/to/file]] (without being textually altered, of course). The reason for this is that Emacs Tramp under Windows refuses to cooperate with OpenSSH and can't handle SSH links. The only workaround I've found is to use the plink protocol instead of SSH. I think what I'm trying to achieve is possible with org-link-translation-function, but my naive attempts haven't been successful... Any help would be greatly appreciated! Maybe this might help: (defun dmaus/org-mode/org-link-ssh-to-plink (type path) Return plink: link with PATH if TYPE is ssh. (cons type (if (string-match /ssh: path) (replace-match /plink: nil nil path) path))) (setq org-link-translation-function 'dmaus/org-mode/org-link-ssh-to-plink) HTH, -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de pgpaXZ2tJJavR.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] org-goto and automatic isearch
At Sun, 09 Jan 2011 18:13:47 +0100, Maximilian Matthé wrote: Hello, today I wanted to try C-c C-j. I dont want to have automatic isearch so I have this in my initialization file: , | (setq org-goto-auto-isearch nil) ` But whenever I say M-x org-goto (or C-c C-j) and press n or p incremental search starts. I want to move via n and p to the next heading as described in the documentation. I use the current git pull, emacs 23.1.1 . Maybe it's a bug or I don't use it correctly... `org-goto-auto-isearch' needs to be set before loading Org mode. The keymap for org-goto-mode is set up when org.el is evaluated, thus the `org-goto-auto-isearch' which changes the keybindings in this mode needs to be set (or rather unset) at this time to take effect. Best, -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de pgp34YoS9f2vY.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] [Worg] some issues
A few things I noted today while I was browsing around Worg: 1. The sitemap and siteindex links point to the root of the webserver, instead they should point to subdirectory worg. 2. The sources directory seems to exist, albeit apparently it is empty. All links into it that I've tried are dead. 3. The RSS feed link doesn't seem to work and in any case points to repo.or.cz as its source. 4. Listing of directories is forbidden, but several links to these exist (e.g. code/). 5.Several unencoded in URL. 6. Some CSS errors (grey instead of gray as color name, some CSS elements that don't exist in the specified version 2.1). I can recommend using the Multivalidator favelet from Tantek Çelik: http://tantek.com/favelets/ Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ Samples for the Waldorf Blofeld: http://Synth.Stromeko.net/Downloads.html#BlofeldSamplesExtra ___ 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] Must declare value as string in org-agenda-custom-commands easy customize interface
On Sun, Jan 16, 2011 at 5:43 AM, David Maus dm...@ictsoc.de wrote: From my understanding this is correct. The dialog allows you to set an arbitrary symbol to an arbitrary value, i.e. not limited to another symbol (e.g. 'all). Thus a sexp is required and the single quote in front of the symbol all is the short hand notation of (quote all). Thanks for your reply, David. If this is the case, shouldn't this be a dropdown menu with sexp as an option for entering your own symbols? It's just a minor gripe, and one for which I would submit a patch if I knew enough elisp. -- Jeffrey Horn http://www.failuretorefrain.com/jeff/ ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] How to write special LaTeX symbols
Nick Dokos nicholas.do...@hp.com writes: Nick Dokos nicholas.do...@hp.com wrote: Alternatively, you can use UTF-8 in your org file and write Schr=C3=B6dinger explicitly. This will survive the LaTeX export intact and the \usepackage[utf8]{inputenc} in the LaTeX file will do the right thing with it.[fn:2] [fn:2] I'm not sure whether it will survive the email trip though. Here's hoping that it will. Well, it didn't survive the email trip: I messed up the encoding I guess, but I can't fight with email right now. Sorry about that. I'm attaching my test file: I hope that will survive. Well, actually, that's strange as it did survive the email trip as far as I can see! Schrödinger came out just fine when I viewed your original email. Are you sure it's not a problem with your email viewer? -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.4 (release_7.4.199.g8be1.dirty) ___ 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] what am I missing about remote editing?
Filippo A. Salustri salus...@ryerson.ca writes: So, I'm looking at my global todo agenda, and I'd like to change the state of the task under the cursor. According to the doc, 't' should let me do that, but when I hit 't', I get wrong type argument: stringp, nil which isn't really doing it for me as an explanation of what I'm doing wrong. Thoughts anyone? Cheers. Fil Works for me just fine. What versions of org and emacs are you using? What is the value of org-todo-keywords? What is the actual entry you are trying to update? You may wish to M-x toggle-debug-on-error RET to get a backtrace to see if that gives any hints. -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.4 (release_7.4.199.g8be1.dirty) ___ 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] what am I missing about remote editing?
I'm using the current versions of Aquamacs and orgmode. Just 30 mins ago, I noticed that it started working after I restarted Aquamacs. Will try to reproduce this sometime today and forward info to list. Cheers. Fil On 16 January 2011 08:56, Eric S Fraga e.fr...@ucl.ac.uk wrote: Filippo A. Salustri salus...@ryerson.ca writes: So, I'm looking at my global todo agenda, and I'd like to change the state of the task under the cursor. According to the doc, 't' should let me do that, but when I hit 't', I get wrong type argument: stringp, nil which isn't really doing it for me as an explanation of what I'm doing wrong. Thoughts anyone? Cheers. Fil Works for me just fine. What versions of org and emacs are you using? What is the value of org-todo-keywords? What is the actual entry you are trying to update? You may wish to M-x toggle-debug-on-error RET to get a backtrace to see if that gives any hints. -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.4 (release_7.4.199.g8be1.dirty) -- Filippo A. Salustri, Ph.D., P.Eng. Mechanical and Industrial Engineering Ryerson University 350 Victoria St, Toronto, ON M5B 2K3, Canada Tel: 416/979-5000 ext 7749 Fax: 416/979-5265 Email: salus...@ryerson.ca http://deseng.ryerson.ca/~fil/ ___ 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] what am I missing about remote editing?
Filippo A. Salustri salus...@ryerson.ca writes: I'm using the current versions of Aquamacs and orgmode. By current, for org, do you mean from the git repository or that which comes with aquamacs? Type M-x org-version RET for the actual version information. -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.4 (release_7.4.199.g8be1.dirty) ___ 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] what am I missing about remote editing?
Sorry; I mean 7.4, downloaded from the website. Cheers. Fil On 16 January 2011 09:09, Eric S Fraga e.fr...@ucl.ac.uk wrote: Filippo A. Salustri salus...@ryerson.ca writes: I'm using the current versions of Aquamacs and orgmode. By current, for org, do you mean from the git repository or that which comes with aquamacs? Type M-x org-version RET for the actual version information. -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.4 (release_7.4.199.g8be1.dirty) -- Filippo A. Salustri, Ph.D., P.Eng. Mechanical and Industrial Engineering Ryerson University 350 Victoria St, Toronto, ON M5B 2K3, Canada Tel: 416/979-5000 ext 7749 Fax: 416/979-5265 Email: salus...@ryerson.ca http://deseng.ryerson.ca/~fil/ ___ 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 exporter #+INCLUDE bug
Yes. This is a bug and a bit hard to fix. I only happens if the #+include line is before the first headline in the buffer. I am afraid I do not have a simple solution. It is fairly simple to make a work-around: , | * THIS IS A BUGFIX :noexport: | #+INCLUDE: cd.org | #+INCLUDE: books.org | #+INCLUDE: misc.org ` Cheers, Rasmus ___ 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] installing contrib
Hi, I don't know how to install the contents of the contrib folder. I need especially the mac specific additions. Is just the copying of the .el files in my site-lisp directory enough? Thank you in advance, Costa ___ 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] Painless integration of source blocks with language
Seth Burleigh wbu...@gmail.com writes: As for how to trace back through noweb links, the best option seem to be using the existing jump function to navigate from raw source to the embedded block, keeping track of the point's offset form the beginning of the block, then using `org-babel-expand-src-block' to expand the body of the embedded code block marking noweb references with text properties as they are inserted into the expanding body, and then using the point offset to place the point into the appropriate noweb reference. This process could then recurse on the embedded noweb code block until it ends up in a non-noweb portion of an expanded code block body. If you dont have any comment anchors in the text, how would you know which noweb block you are in? If your org file and raw files are synched, then you could, but if they become unsynched, which is the way it should be (change raw code until done, then detangle to org), i dont exactly see how you can do it. Yea, I think you're right. I can't come up with any way of marking or remembering the boundaries of noweb reference sections without inserting comment wrappers around such sections. I've just pushed up a new header argument combination :comments noweb which will wrap all embedded noweb sections in link comments, as demonstrated in the following example. Hopefully this should be sufficient for a complete mapping from a pure code file back to the original org-mode file. #+source: wrappable #+begin_src emacs-lisp (setq x (+ 4 x)) #+end_src #+begin_src emacs-lisp :comments noweb :noweb yes :tangle yes (let ((x 1)) (message x=%s x) wrappable (message x=%s x)) #+end_src which tangles out the following emacs-lisp #+begin_src emacs-lisp ;; [[file:~/src/babel-dev/scraps.org::*wrap%20noweb%20references%20in%20comments][wrap-noweb-references-in-comments:2]] (let ((x 1)) (message x=%s x) ;; [[file:~/src/babel-dev/scraps.org::*wrap%20noweb%20references%20in%20comments][wrappable]] (setq x (+ 4 x)) ;; wrappable ends here (message x=%s x)) ;; wrap-noweb-references-in-comments:2 ends here #+end_src Cheers -- Eric ___ 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: Worg needs some reorganizing
I recall a discussion of holding a competition to select a new css style for Worg (found it here [1]). I think that such a change could fruitfully be combined with the Worg re-organization. Looking forward to these changes -- Eric Alan E. Davis lngn...@gmail.com writes: I would like to add a comment about the sidebar concept. If I understand correctly, there is something like a sidebar already, or an index. There are links, but they jump to the SAME PAGE. It would be helpful, at least to me, were these links to point to the pages already pointed to at their targets. My 2¢ worth. Alan Pollution is nothing but the resources we are not harvesting. We allow them to disperse because we've been ignorant of their value. --- R. Buckminster Fuller ___ 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 Footnotes: [1] http://thread.gmane.org/gmane.emacs.orgmode/27224 ___ 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] installing contrib
K T sault...@fastmail.net writes: Hi, I don't know how to install the contents of the contrib folder. I need especially the mac specific additions. Is just the copying of the .el files in my site-lisp directory enough? No need to copy; simply add that directory (aka folder) to the load path: (add-to-list 'load-path .../contrib/lisp) where the dots in the last argument should be replaced by the full path to wherever org has been placed on your system. On my system, I do: (add-to-list 'load-path ~/git/org-mode/contrib/lisp/) HTH. -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.4 (release_7.4.199.g8be1.dirty) ___ 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: Worg needs some reorganizing
Eric Schulte schulte.e...@gmail.com writes: I recall a discussion of holding a competition to select a new css style for Worg (found it here [1]). I think that such a change could fruitfully be combined with the Worg re-organization. I'm not a web-designer, but here's my stab at re-designing Worg: http://orgmode.org/tmp/worg/ I think a good addition to Worg would be the option to view it with or without the javascript section folding. I personally prefer the entire web page to be visible without clicking. Is there a way to do this I'm not aware of? Regards, Jason ___ 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: [Feature Request] Cross headings in tables
Achim Gratz strom...@nexgo.de writes: [...] So I'd like to have first-class cross headings, maybe like this: |--+---+-| | Header | some more | and more| |--+---+-| | item | stuff | things | | etc. | pp. | ad nauseam | |--+---+-| | Header | to keep | things together | |--+---+-| | | ... | | |--+---+-| So, the first heading would be determined by the first horizontal separator inside the table (for backwards compatibility) and any following heading would need get some special syntax (like the | above, but anything that doesn't collide with existing syntax will just be fine I think). If there's a heading marker before the first horizontal separation, it should probably take precedence over the backwards-compatible markup. That would also enable to have table headings without a separator, something that's not possible today. I've spent some time on this and have developed a patch that gets halfway there. You can have consecutive headers, headers inside the table and even headers at the end of the table: --8---cut here---start-8--- |-+ | unrelated 1 | |~| | Test1 | |-+ | unrelated 2 | | Test2 | | unrelated 3 | |~| | Test3 | |-+ | unrelated 4 | | Test4 | | unrelated 5 | | Test5 | |~| | unrelated 6 | | Test6 | |-+ --8---cut here---end---8--- The first header is still determined like it always was. Headers inside table need to get a special hline, the choice of ~ for this was dictated by most of the other characters already being used for various markup inside or outside tables. When I say halfway there, I mean that the export is working and the lines are recognized as hlines everywhere I could find (there may still be some regexpressions floating around that don't). However, aligning tables will replace the wigglies with plain dashes since I have not yet found a way to inject the correct character for the currently hardcoded -. The HTML export for the above table looks like this: --8---cut here---start-8--- table border=2 cellspacing=0 cellpadding=6 rules=groups frame=hsides caption/caption colgroupcol class=left /col class=left / /colgroup thead trth scope=col class=leftunrelated 1/thth scope=col class=leftgt;=/th/tr /thead thead trth scope=col class=leftTest1/thth scope=col class=left=/th/tr /thead tbody trtd class=leftunrelated 2/tdtd class=leftlt;=/td/tr trtd class=leftTest2/tdtd class=left==/td/tr trtd class=leftunrelated 3/tdtd class=left-=/td/tr /tbody thead trth scope=col class=leftTest3/thth scope=col class=left:=/th/tr /thead tbody trtd class=leftunrelated 4/tdtd class=leftgt;=/td/tr trtd class=leftTest4/tdtd class=left=/td/tr trtd class=leftunrelated 5/tdtd class=leftlt;=/td/tr trtd class=leftTest5/tdtd class=left==/td/tr /tbody thead trth scope=col class=leftunrelated 6/thth scope=col class=left-=/th/tr trth scope=col class=leftTest6/thth scope=col class=left:=/th/tr /thead /table --8---cut here---end---8--- And ASCII: --8---cut here---start-8--- unrelated 1 - Test1 - unrelated 2 Test2 unrelated 3 - Test3 - unrelated 4 Test4 unrelated 5 Test5 - unrelated 6 Test6 --8---cut here---end---8--- If somebody has an idea how to make the table alignment work, please lend me a hand. Experimental patch is attached, comments are welcome. From 0fd4e39641ab17ae1586747396acbe1e9fa48321 Mon Sep 17 00:00:00 2001 From: Achim Gratz strom...@stromeko.de Date: Sun, 16 Jan 2011 19:06:13 +0100 Subject: [PATCH] Allow headings inside tables without splicing them. *EXPERIMENTAL* This patch is an incomplete implementation, most notably, table (re-)alignment does not work. --- lisp/org-html.el | 15 +-- lisp/org-table.el | 30 +++--- lisp/org.el |4 ++-- 3 files changed, 30 insertions(+), 19 deletions(-) diff --git a/lisp/org-html.el b/lisp/org-html.el index 9a5d225..d69d037 100644 --- a/lisp/org-html.el +++ b/lisp/org-html.el @@ -1899,7 +1899,7 @@ for formatting. This is required for the DocBook exporter. html-table-tag attributes)) (head (and org-export-highlight-first-table-line (delq nil (mapcar - (lambda (x) (string-match ^[ \t]*|- x)) + (lambda (x) (string-match ^[ \t]*|[-~] x)) (cdr lines) (nline 0) fnum
Re: [Orgmode] Re: Worg needs some reorganizing
Jason Dunsmore emacs-orgm...@dunsmor.com writes: Eric Schulte schulte.e...@gmail.com writes: I recall a discussion of holding a competition to select a new css style for Worg (found it here [1]). I think that such a change could fruitfully be combined with the Worg re-organization. I'm not a web-designer, but here's my stab at re-designing Worg: http://orgmode.org/tmp/worg/ Nice, here's my minimal stylesheet contribution -- most notable for the expandable TOC in the corner. The source is below [1] and the resulting style.css is attached below [2] This can be seen in the following two screenshots folded: http://i.imgur.com/CLkfl.png unfolded: http://imgur.com/5To2y I think a good addition to Worg would be the option to view it with or without the javascript section folding. I agree I personally prefer the entire web page to be visible without clicking. Is there a way to do this I'm not aware of? not that I know of Cheers -- Eric Regards, Jason Footnotes: [1] #+begin_src sass :file style.css body background-image: url(http://orgmode.org/img/org-mode-unicorn.png) background-repeat: no-repeat #outline-container-1 padding-top: 100px /* TOC inspired by http://jashkenas.github.com/coffee-script */ #table-of-contents position: fixed right: 0em top: 0em background: white -webkit-box-shadow: 0 0 1em #777 -moz-box-shadow: 0 0 1em #777 -webkit-border-bottom-left-radius: 5px -moz-border-radius-bottomleft: 5px text-align: right h2 max-width: 8em font-size: 10pt font-weight: normal padding-left: 0.5em padding-left: 0.5em padding-top: 0.05em padding-bottom: 0.05em #text-table-of-contents display: none text-align: left :hover #text-table-of-contents display: block padding: 0.5em #+end_src [2] body { background-image: url(http://orgmode.org/img/org-mode-unicorn.png); background-repeat: no-repeat; } body #outline-container-1 { padding-top: 100px; } /* TOC inspired by http://jashkenas.github.com/coffee-script */ #table-of-contents { position: fixed; right: 0em; top: 0em; background: white; -webkit-box-shadow: 0 0 1em #77; -moz-box-shadow: 0 0 1em #77; -webkit-border-bottom-left-radius: 5px; -moz-border-radius-bottomleft: 5px; text-align: right; } #table-of-contents h2 { max-width: 8em; font-size: 10pt; font-weight: normal; padding-left: 0.5em; padding-left: 0.5em; padding-top: 0.05em; padding-bottom: 0.05em; } #table-of-contents #text-table-of-contents { display: none; text-align: left; } #table-of-contents:hover #text-table-of-contents { display: block; padding: 0.5em; } ___ 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: Worg needs some reorganizing
Eric Schulte schulte.e...@gmail.com writes: Jason Dunsmore emacs-orgm...@dunsmor.com writes: Eric Schulte schulte.e...@gmail.com writes: I recall a discussion of holding a competition to select a new css style for Worg (found it here [1]). I think that such a change could fruitfully be combined with the Worg re-organization. I'm not a web-designer, but here's my stab at re-designing Worg: http://orgmode.org/tmp/worg/ Nice, here's my minimal stylesheet contribution -- most notable for the expandable TOC in the corner. The source is below [1] and the resulting style.css is attached below [2] I've uploaded yours to: http://orgmode.org/tmp/worg-eric/ So far we have option #1: http://orgmode.org/tmp/worg/ http://orgmode.org/tmp/worg.css and option #2: http://orgmode.org/tmp/worg-eric/ http://orgmode.org/tmp/worg-eric.css I didn't copy the images, so there will be some broken image links. If anybody else wants to contribute one, here are a few commands to get you started: --8---cut here---start-8--- cd /tmp wget http://orgmode.org/tmp/worg.tar.gz tar zxvf worg.tar.gz cd worg wget http://orgmode.org/tmp/worg.css find . -type f -exec sed -i 's|/worg/worg.css|worg.css|' '{}' \; --8---cut here---end---8--- Then edit worg.css, view file:///tmp/worg/index.html in your browser to see your changes take effect, and, when finished, send me the css file. ___ 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: Worg needs some reorganizing
and option #2: http://orgmode.org/tmp/worg-eric/ http://orgmode.org/tmp/worg-eric.css Thanks for putting this up, I see a problem in the current stylesheet, could you please apply the attached alternate version? Thanks -- Eric body { background-image: url(http://orgmode.org/img/org-mode-unicorn.png); background-repeat: no-repeat; } body #content { padding-top: 100px; } /* TOC inspired by http://jashkenas.github.com/coffee-script */ #table-of-contents { position: fixed; right: 0em; top: 0em; background: white; -webkit-box-shadow: 0 0 1em #77; -moz-box-shadow: 0 0 1em #77; -webkit-border-bottom-left-radius: 5px; -moz-border-radius-bottomleft: 5px; text-align: right; } #table-of-contents h2 { max-width: 8em; font-size: 10pt; font-weight: normal; padding-left: 0.5em; padding-left: 0.5em; padding-top: 0.05em; padding-bottom: 0.05em; } #table-of-contents #text-table-of-contents { display: none; text-align: left; } #table-of-contents:hover #text-table-of-contents { display: block; padding: 0.5em; } ___ 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: Worg needs some reorganizing
Eric Schulte schulte.e...@gmail.com writes: and option #2: http://orgmode.org/tmp/worg-eric/ http://orgmode.org/tmp/worg-eric.css Thanks for putting this up, I see a problem in the current stylesheet, could you please apply the attached alternate version? Okay, I uploaded the new version. ___ 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] Blogging from org-mode
Some months back I contributed improvements to org-html. My intent was to make it easy to post org files as blog posts. So this is a sort of delayed announcement. There are two packages that post to blogs from org-mode: My org2blog/atom and Puneesh's (punchagan's) org2blog/wp. I know there are also blog hosts based on org-mode, but that's different. This is pushing org files to a normal blog host such as Blogger (for org2blog/atom) or Wordpress (org2blog/wp) org2blog/atom lives in the git repo http://repo.or.cz/r/org2blog.git and org2blog/wp lives in https://github.com/punchagan/org2blog.git Both respect the normal export options (#+TITLE: etc) but other than that the approaches are fairly different. Please tell me if I've missed any other org-based blogging software (other than the blog hosting software which is a different category). Tom Breton (Tehom) ___ 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 issue of URL when the text begins with a date
Date: Sat, 15 Jan 2011 07:40:35 +0100 From: dm...@ictsoc.de To: vincent@hotmail.fr Subject: Re: [Orgmode] Export issue of URL when the text begins with a date CC: dm...@ictsoc.de; emacs-orgmode@gnu.org At Fri, 14 Jan 2011 22:12:07 +0100, Vincent Belaïche wrote: Thank-you David again for carrying out this correction. By the way, I noticed in the source tree that has a test base, that there is some testing sub-directory. I was expecting that there would be a list of testNN.org testNN.tex testNN.html etc... so that to check that to carry out non regression tests from testNN.org exported to reference testNN.tex and testNN.html. It seems that such a non-regression test base and script do not exist. However that would be good to have in order to check that any correction does not break anything. That's exactly what the testing framework[1] could and should do. I've just not figured out how to best write tests for entire export operations. Thinking of it: We could create an input file dedicated to test link exporting, put in different kinds of links, export and then use regexps to check if the links have been exported fine. Best, -- David [...] Hello David and al., I sketched some test script, herein attached. It allows to make a few export tests. I hope that this is what you had in view... Vincent. test-export.el Description: application/emacs-lisp ___ 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] Doors links
Date: Fri, 14 Jan 2011 23:18:21 +0100 From: m...@christianmoe.com To: emacs-orgmode@gnu.org Subject: Re: [Orgmode] Doors links Hi, Try these: [[info:org:Link abbreviations]] [[info:org:Adding%20hyperlink%20types][info:org:Adding hyperlink types]] Yours, Christian [...] Thanks, I will try that ! I think that the trick deserves a forward link in the documentation. I made a patch to the doc, attached. Vincent. diff --git a/doc/org.texi b/doc/org.texi index 4d696ae..96e2e50 100644 --- a/doc/org.texi +++ b/doc/org.texi @@ -3093,6 +3093,8 @@ elisp:org-agenda @r{Interactive Elisp command} elisp:(find-file-other-frame Elisp.org) @r{Elisp form to evaluate} @end example +For customizing Org to add new link types @ref{Adding hyperlink types}. + A link should be enclosed in double brackets and may contain a descriptive text to be displayed instead of the URL (@pxref{Link format}), for example: ___ 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] Blogging from org-mode
On 2011-01-16, Tom Breton (Tehom) te...@panix.com wrote: Please tell me if I've missed any other org-based blogging software (other than the blog hosting software which is a different category). Right, there are hosted blogs (like Blogger) and self-hosted blogs (where you run the software). Here is the latest version of my Blogger command. I wrote it for these reasons: 1) should work with all recent versions of Emacs including 22 2) works on subtrees (not files) 3) does not require any downloads of Google software (self-contained) 4) handles H levels correctly 5) uses subtree top level headline as a title 6) shows you the HTML 7) doesn't include stuff I don't want there (author etc.) The only change I would make, but cannot do for health reasons, is to make it work with mail2blogger. I would be delighted if there were some other protocol that it could use. Could your API work to send the result to Blogger? If so, how? Do you have to sign up with Google in some special way or does it work just through the web? Thanks. Samuel (defun alpha-org-blog-subtree () Copy the subtree, converted to HTML, for pasting into Blogger as a blog post. No other software needs to be installed. === For an example of this code in action, see http://thekafkapandemic.blogspot.com/ . You have to turn off Blogger's conversion of newline to br tags in two places. This requires the new editor. mail2blogger is a very intriguing option here and I'd like to do that. Avoids the web entirely. See comments. To display the results in a browser, use M-x browse-url-of-buffer . No temporary file is created. === Mark pages (About, Contribute, etc.) with the tag, :page:. This will remove the top headline. The reason is that Blogger pages always include the title as the name of the page and it looks silly to have two titles. === You should turn off Blogger's showing of titles. Turning off the titles has one convenience: you don't have to enter it manually. It also has one drawback: people who link to your post by copying that link cannot do so (they can get it from other places, including the URL bar and Archives in the sidebar). Perhaps mail2blogger will fix that by letting you set the title by email subject. Of course you can manually enter the title. In which case use :page:. === I use Blogger.com instead of Wordpress.com because it appears to have a better attitude toward accessibility. (interactive) ;;; todo list ;;; ;;; === mail2blogger === ;;; ;;; I tried using mail2blogger, but the HTML got posted. There might ;;; be a way to fix this. How do you do an HTML email in a format ;;; that gets recognized as HTML? ;;; ;;; We want to use raw programmatic email, such as sent using msmtp ;;; or the built-in Emacs client. The ability to do so will obviate ;;; the need to use Google's command line client or to run Emacs 23. ;;; ;;; This is the next thing to try. Patch welcome. I have no idea ;;; how to do it. ;;; ;;; === ;;; ;;; Another good thing to try would be to automate grabbing the source from ;;; the page automatically to compare what you just created with ediff or ;;; git diff --color-words. This is for edits. ;;; ;;; Also, export whole blog before each post for git. Requires post ;;; method maybe. How to do that? ;;; ;;; Also, check for fixmes. (Or org could check for fixmes before ;;; all export. Is there a hook?) ;;; ;;; Also, remind you to extract big chunks of comments for possible ohter ;;; blog entries. ;;; ;;; /Also, remind you to make sure all links work and review formatting/. ;;; ;;; === ;;; ;;; Is there HTML for a title? I will guess not. (save-excursion ;;say about to publish editing or about to publish post. with ;;mail2blogger, we can automate this and assume publish. ;; ;;technically, this should be later in case you kill something inside ;;the note. ;; ;;(let ((k kill-ring)) ;;(let ((c (car kill-ring))) (org-add-note) ;; ;;could add sugu here. donekeep or tag should be done manually. ;; ;;how do we want blogs to sort? probably donekeep. probably not by ;;latest edit but by publish. ;;i have an issue with --, which is perfect for emdash in ascii, but ;;gets converted to endash in html. i'd like it to be emdash in html. ;;is there an option for that? ;; ;;if not, we have to replace -- with --- somehow here before exporting. ;;that requires a temporary buffer. ;;org converts headlines to html h numbers according to the level in the ;;org file, not the level in the region. i prefer the latter. ;; ;;kludge it. ;; ;;for a blog we want it to start with delta 0 = h1. delta 1 respects ;;the variable. ;; ;;for some reason, blogger does not format h2 bold on firefox. so h3 ;;looks bigger? if so, do delta 2. css wizards please weigh in on this. (let ((delta 2)) (outline-mark-subtree) (when (member page (org-get-tags))
[Orgmode] Feature Request: Assort a subtree randomly ?
Let's say I have a subtree, of review materials, for example. I would like to randomize the order of the elements. I would like to have the option to randomize the subtree in some different ways: 1. sort the members of one subtree that is a list, randomly. 2. sort all the headlines, randomly. 3. sort the subtrees randomly, and the lists within each sub-subtree also randomly, ad nauseum. I have written a sort routine in elisp. It's been many long years ago, but I remember that the basis support for writing sorts is pretty general. Suppose I had time to do this. What would I need to look at? Of course, my need is today, to sort review materials for my students in random order. Alan Davis Pollution is nothing but the resources we are not harvesting. We allow them to disperse because we've been ignorant of their value. --- R. Buckminster Fuller ___ 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] Blogging from org-mode
On 2011-01-16, Tom Breton (Tehom) te...@panix.com wrote: Please tell me if I've missed any other org-based blogging software (other than the blog hosting software which is a different category). Right, there are hosted blogs (like Blogger) and self-hosted blogs (where you run the software). Here is the latest version of my Blogger command. Interesting. I would be delighted if there were some other protocol that it could use. Feel free to play with org2blog/atom, and there's a mob user on the repo if you feel like contributing. Could your API work to send the result to Blogger? If so, how? Do you have to sign up with Google in some special way or does it work just through the web? Yes, and you don't have to do anything special on Google. It uses the Atom API thru g-client (elisp software by T V Raman), which is what drags in the curl and xsltproc dependencies. Those are not special Google software, but they are non-elisp, non-emacs programs. My philosophy is to make a package do one thing well. But it leads to dependencies. Please let me know if you have any trouble obtaining the g-client version that supports this. mail2blogger is a very intriguing option here and I'd like to do that. Avoids the web entirely. See comments. I tried out mailing to blogger before writing org2blog/atom, but I was frustrated by the things the mail interface couldn't do. Mark pages (About, Contribute, etc.) with the tag, :page:. This will remove the top headline. The reason is that Blogger pages always include the title as the name of the page and it looks silly to have two titles. Right, it does and it does. I'd be interested in a neat solution for double-titling. Right now I just let org2blog/atom export both. Tom Breton (Tehom) ___ 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: Basic organization question
Tommy Kelly tommy.ke...@verilab.com writes: Thomas S. Dye t...@tsdye.com writes: Several times when I've had this type of question, I've found answers I can use on Bernt Hansen's Org-mode pages: http://doc.norang.ca/org-mode.html Actually, when I said: And I like the idea discussed in http://orgmode.org/org.html, where I mis-copy/pasted. I was actually meaning Bernt's stuff. But although he seems to rely a lot on different files and subtrees, he also seems to get into tags and categories. I'm trying to take things slowly, adding a little bit more functionality at a time as needed. I don't want to jump straight to his overall method and then modify from there. Hi Tommy, I use categories only as a visual cue on the agenda for what the task is related to. TAGS are much more flexible for controlling what you see on the agenda and I use tags for filtering what is displayed on the agenda. Taking things slow and adding only what you need for your workflow is definitely how I recommend you approach your use of org-mode. That's what I did. The only use I have for categories is the left-column display of the agenda showing what category some task belongs to. I find that a little easier to read (at a glance) than a bunch of tags that are applied to the task. I tried various approaches and in the beginning everything was in one big file for me. I started separating things when it logically made sense to me to do that (and the single-file was getting unweildy). Try stuff out and see if you like it. Figure out what works best for you. 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
[Orgmode] Encrypting org-mode files
What is the de-facto way to encrypt using org? I now I can use GnuPG, but I'd prefer something that integrates better and auto-decrypts when the agenda is triggered. Thanks! Marcelo. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] How to write special LaTeX symbols
Hello all, Thanks for your response! I can go with the UTF-8 method. The only problem for me now is I don't know how to input the ö from Emacs. I've tried the C-x 8 RET, but don't know the name or hex. Any suggestions? Xin On Sun, Jan 16, 2011 at 8:54 AM, Eric S Fraga e.fr...@ucl.ac.uk wrote: Nick Dokos nicholas.do...@hp.com writes: Nick Dokos nicholas.do...@hp.com wrote: Alternatively, you can use UTF-8 in your org file and write Schr=C3=B6dinger explicitly. This will survive the LaTeX export intact and the \usepackage[utf8]{inputenc} in the LaTeX file will do the right thing with it.[fn:2] [fn:2] I'm not sure whether it will survive the email trip though. Here's hoping that it will. Well, it didn't survive the email trip: I messed up the encoding I guess, but I can't fight with email right now. Sorry about that. I'm attaching my test file: I hope that will survive. Well, actually, that's strange as it did survive the email trip as far as I can see! Schrödinger came out just fine when I viewed your original email. Are you sure it's not a problem with your email viewer? -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.4 (release_7.4.199.g8be1.dirty) ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] How to write special LaTeX symbols
Xin Shi shixin...@gmail.com wrote: Hello all, Thanks for your response! I can go with the UTF-8 method. The only problem for me now is I don't know how to input the =F6 from Emacs. I've tried the C-x 8 RET, but don't know the name or hex. Any suggestions? I've no idea what the hex codes are: what I did was change my input method to german-prefix[fn:1] and typed ``Schrodinger'': the input method changes the concatenation of the double quote and the o to the internal representation of o-umlaut. The buffer is utf-8, so the utf-8 representation of ``o umlaut'' is saved. At least, I think that's the way it works. Nick Footnotes: [fn:1] With C-x RET C-\ german-prefix RET ___ 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: How to write special LaTeX symbols
Xin Shi wrote: Hello all, Thanks for your response! I can go with the UTF-8 method. The only problem for me now is I don't know how to input the ö from Emacs. I've tried the C-x 8 RET, but don't know the name or hex. Any suggestions? The key combinations are pretty intuitive once you learn a few. For example, ö is C-x 8 o, and é is C-x 8 ' e. 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