[Orgmode] How to use variable in org publish function
Dear all, I'm trying to define a variable, to let org-mode know different path to use when I'm under different system (Windows or Mac), but got trouble to get it work. Here is the Code: (defconst lch-win32-p (eq system-type 'windows-nt) "Are we on Windows?") (defconst lch-mac-p (eq system-type 'darwin) "Are we on Mac") (if lch-mac-p (defvar org-source-dir "~/Dropbox/org/org" "org source dir"));For under windows, it should be My Dropbox... (setq org-publish-project-alist '( ("org-notes" *:base-directory org-source-dir*))) Apparently, this doesn't work, since the variable org-source-dir will not be evaluated inside the quote, but I really didn't find out how to make it evaled... Does anyone has any hints? Thanks a lot. Chao ___ 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: HTML export and blogging to blogger.com
On Wed, Nov 17, 2010 at 5:47 AM, Christian Moe wrote: > Hi, > > Samuel Wales wrote: > >> So I guess I'd like to know if: >> >> 1) anybody has a /hook in the exporter/ to unfill paragraphs, or >> > > This is what I've come up with for posting comments on WordPress blogs, > without tags and linebreaks. It can probably be written more elegantly, > but it does what I need. Haven't tried Blogger but possibly it works for you > as well. > , | code > `- > > I didn't try yours, but I found many similar functions and sent them out last night. I'm hoping they did not get missed! It looks like many have written functions to do just what Samuel is looking for (unfill-region/paragraph). Here is the code again which worked like so: - write a bunch of stuff and highlight it - M-x unfill-region (command provided by the code below) - C-u C-c C-e R - M-< C-space M-> M-w - Paste in blogger box >From http://blog.bookworm.at/2007/08/emacs-unfill-region.html: > ,- > | (defun unfill-region (begin end) > | "Remove all linebreaks in a region but leave paragraphs, indented text > | (quotes, code) and lines starting with an asterisk (lists) intact" > | (interactive "r") > | (replace-regexp "\\([^\n]\\)\n\\([^ *\n]\\)" "\\1 \\2" nil begin end)) > `- > And several links with additional very similar looking code: - http://blog.chrislowis.co.uk/2010/03/03/unfill-region-emacs.html - http://xahlee.org/emacs/emacs_unfill-paragraph.html - http://nolan.eakins.net/node/208 John > Yours, > Christian > > > > ___ > 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: Clean capture from command line?
Eric S Fraga writes: > tycho garen writes: > >>> One of the things I'd like to be able to do is capture a new TODO from a >>> command line. e.g. >> >> I use the following code that I got from Jack Moffit >> (http://www.metajack.im), that does more or less what you're looking >> for, I think. Add the following block to your org configs. >> >> ; >> >> (defadvice capture-finalize (after delete-capture-frame activate) >> "Advise capture-finalize to close the frame if it is the capture frame" >> (if (equal "capture" (frame-parameter nil 'name)) >> (delete-frame))) >> >> (defadvice capture-destroy (after delete-capture-frame activate) >> "Advise capture-destroy to close the frame if it is the rememeber frame" >> (if (equal "capture" (frame-parameter nil 'name)) >> (delete-frame))) >> >> (defun make-capture-frame () >> "Create a new frame and run org-capture." >> (interactive) >> (make-frame '((name . "capture"))) >> (select-frame-by-name "capture") >> (delete-other-windows) >> (org-capture) >> ) >> >> >> ; >> >> Then call emacs as follows: >> >> emacsclient -n -e '(make-capture-frame)' > > Doesn't work for me, for some strange reason. > > I think you may have forgotten to say that the advices have to be > activated? If so, I assume this would be done by: > > (ad-activate 'capture-finalize) > (ad-activate 'capture-destroy) > > But, in any case, this doesn't seem to make any difference in my case. > Yes, that is not the problem. The advice is already activated in the definition itself (see the "activate" parameter). > The capture process itself works. I get my menu of templates just fine. > Org captures the information when it should, i.e. if I finish normally > (C-c C-c), and ignores it if I abort (C-c C-k). In either case, the > frame, named "capture", remains. > Hitting my "delete-frame" button (the Windows menu key to the right of > my spacebar -- had to use these keys for something) works just fine so > the problem is not with the delete frame function. > > Any suggestions? There's no error of any form that I can see. The problem is that the functions capture-finalize and capture-destroy do not exist. I imagine the original code was designed for remember mode (which does have the functions remember-destroy and remember-finalize). The relevant function in org-capture.el, I believe, is org-capture-finalize. I think the following defadvice should work: --8<---cut here---start->8--- (defadvice org-capture-finalize (after delete-capture-frame activate) "Advise capture-finalize to close the frame if it is the capture frame" (if (equal "capture" (frame-parameter nil 'name)) (delete-frame))) --8<---cut here---end--->8--- Best, Matt ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: [Babel] now understands org-mode lists
"Eric Schulte" writes: > Jambunathan K writes: > >> "Eric Schulte" writes: >> >>> Hi, >>> >>> I've just pushed up a small commit (including minimal documentation) >>> which teaches code blocks how to read and write Org-mode lists. The >>> following example should demonstrate the new behavior. >>> >>> >>> #+results: a-list >>> - org-mode >>> - and >>> - babel >>> >>> >>> #+source: a-list >>> #+begin_src emacs-lisp :var lst=a-list :results list >>> (reverse lst) >>> #+end_src >>> >> >> Why not call the underlying type an 'orglist'. One can for example think >> of orgpropeties etc etc. >> > > I was just thinking that list is simpler and shorter, we need not prefix > everything in the Org domain with the prefix org. Is there a regular > list that you are concerned this name will conflate with. > Probably I just jumped to a quick conclusion based on a naive understanding of the description. I thought that `results' are `output' as `orgmode lists'. Our mails have crossed. I have tried answering in the last of my previous mails most of the questions that you have raised. Ignore me if I don't make any sense :-). To reiterate: 1. Alphabetical lists has already surfaced and a patch is in progress. 2. ascii backend is the dumbest one that doesn't offer any custom style associations like HTML or OpenOffice. I find the ASCII backend the most useful of all the backends. 3. The easy menu map is one Orgmode already uses to capture 'polymorphic' behaviour as in C-c C-e binding and may be this could be used for choosing styles (from the user side). 4. The new feature could be used for 'ingestion' of custom-styles. So a power-user has better control. Jambunathan K. ___ 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] now understands org-mode lists
> Let's say one wants to number the lists using prime numbers. So one > could have two lists. > > # list1 (may be generated programmatically) > > 1. 2 > 2. 3 > 3. 5 > 4. 7 > 5. 11 > 6. 13 > > > # list2 (user-typed) > 1. Carsten > 2. Bastien > 3. Eric Schulte > 4. Dan Davison > 5. Eric S Faga > 6. Samuel Wales > > and juxtapose them together to get a custom numbering as follows > > 2. Carsten > 3. Bastien > 5. Eric Schulte > 7. Dan Davison > 11. Eric S Faga > 13. Samuel Wales May be the juxtaposition happens as overlays. So basically the custom bullets (2, 3, 5, 7, 11, 13 etc) are overlays over 1, 2, 3, 4, 5, 6 etc so that Org still recognize them as lists. Apologies for being so gross. To summarize, what I am really thinking is this: 1. Use C-c C-c (org-dwim) with a prefix modifier key that makes it (org-custom-dwim). 2. The custom dwim pops up an easy menu that is context dependent. For example, for the list case it could offer a choice of numbering styles - alphabetical, subsection etc. 3. Make Babel recognize implicit arguments and results. So when on a Orgmode list (or when the active region is a Ormode list), Babel creates a virtual 'input' var that represents the textual list and does 'replace-region' for the results block. So there is no more '#+results' that the user sees in the text document 4. The easy menu keys in (2) maps to 'library of babel' calls that behave as in (3) which creates needed overlays. 5. Make the exporters (specifically the ASCII exporter) to use overlays to emit the custom-styled lists. The above idea is more or less along the lines that I exchanges with you a few months back where I (tried) articulating the idea of Babel as 'a text manipulator' of Orgmode entities like headlines etc. Jambunathan K. > > All this with a C-c C-c on list2. > > What this example does is essentially relate a 'list of styles' to a > 'list of text elements' and create a 'custom-styled list'. > > Jambunathan K. > >> Jambunathan K. >> >>> >>> This is just a quick first pass at this functionality, there are still >>> some unanswered questions, such as if and how code blocks should >>> differentiate between ordered and unordered lists (ordered get an index >>> for each item?), how nested lists should be represented etc... >>> >>> Best -- 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 >> >> ___ >> 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: [Babel] now understands org-mode lists
Jambunathan K writes: > Jambunathan K writes: > >> "Eric Schulte" writes: >> >>> Hi, >>> >>> I've just pushed up a small commit (including minimal documentation) >>> which teaches code blocks how to read and write Org-mode lists. The >>> following example should demonstrate the new behavior. >>> >>> >>> #+results: a-list >>> - org-mode >>> - and >>> - babel >>> >>> >>> #+source: a-list >>> #+begin_src emacs-lisp :var lst=a-list :results list >>> (reverse lst) >>> #+end_src >>> >> >> Why not call the underlying type an 'orglist'. One can for example think >> of orgpropeties etc etc. >> >> Btw, for the sake of illustration, how would one convert a numbered list >> to an alphabetical list or an unordered list. Convert some thing like >> >> 1. One >>1. OneOne >> 3. Two >> 4. Three >> >> to >> >> - One >> - One >> - Two >> - Three >> >> or >> >> 1. One >>1.1 OneOne >> 2. Two >> 3. Three >> >> C-c C-c on a list currently renumbers the list which I find quite >> useful. May be there is a way to 'rebind' it so that it not only >> renumbers but renumbers with a different style (that the user is >> comfortable with). Think 'replace-region' for example. >> > > Let's say one wants to number the lists using prime numbers. is this possible with normal Org-mode lists? I thought that numbered lists automatically re-numbered themselves. > So one could have two lists. > > # list1 (may be generated programmatically) > > 1. 2 > 2. 3 > 3. 5 > 4. 7 > 5. 11 > 6. 13 > > > # list2 (user-typed) > 1. Carsten > 2. Bastien > 3. Eric Schulte > 4. Dan Davison > 5. Eric S Faga > 6. Samuel Wales > > and juxtapose them together to get a custom numbering as follows > > 2. Carsten > 3. Bastien > 5. Eric Schulte > 7. Dan Davison > 11. Eric S Faga > 13. Samuel Wales > This seems like a problem more suited to tables. Lists are inherently one dimensional and the problem you pose is inherently two dimensional. > > All this with a C-c C-c on list2. > > What this example does is essentially relate a 'list of styles' to a > 'list of text elements' and create a 'custom-styled list'. > I see what you're getting at, but rather than develop towards the most complex conceivable use-case I prefer to keep things simple, only introducing complexity when it seems "natural" and generally useful. I find that taking such a stingy approach to development tends to result in simpler more maintainable code. -- Eric > > Jambunathan K. > >> Jambunathan K. >> >>> >>> This is just a quick first pass at this functionality, there are still >>> some unanswered questions, such as if and how code blocks should >>> differentiate between ordered and unordered lists (ordered get an index >>> for each item?), how nested lists should be represented etc... >>> >>> Best -- 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
[Orgmode] Re: [Babel] now understands org-mode lists
Jambunathan K writes: > "Eric Schulte" writes: > >> Hi, >> >> I've just pushed up a small commit (including minimal documentation) >> which teaches code blocks how to read and write Org-mode lists. The >> following example should demonstrate the new behavior. >> >> >> #+results: a-list >> - org-mode >> - and >> - babel >> >> >> #+source: a-list >> #+begin_src emacs-lisp :var lst=a-list :results list >> (reverse lst) >> #+end_src >> > > Why not call the underlying type an 'orglist'. One can for example think > of orgpropeties etc etc. > I was just thinking that list is simpler and shorter, we need not prefix everything in the Org domain with the prefix org. Is there a regular list that you are concerned this name will conflate with. > > Btw, for the sake of illustration, how would one convert a numbered list > to an alphabetical list or an unordered list. Convert some thing like > > 1. One >1. OneOne > 3. Two > 4. Three > > to > > - One > - One > - Two > - Three > > or > > 1. One >1.1 OneOne > 2. Two > 3. Three > > C-c C-c on a list currently renumbers the list which I find quite > useful. May be there is a way to 'rebind' it so that it not only > renumbers but renumbers with a different style (that the user is > comfortable with). Think 'replace-region' for example. > I haven't thought of how these `meta' or `style' properties of lists should be represented, I am hoping that some good ideas for this will come from the list (the mailing list). The most obvious solution seems to be a new header argument ":list-style" or somesuch, which could take options for all org-mode list style types. The backend uses the `org-list-to-generic' function which already exists inside of Org-mode and has a great deal of options so ideally any solution will serve as a thin layer to pass options directly from the user through to this function. The main question is "what's the best syntax". Thanks -- Eric > > Jambunathan K. > >> >> This is just a quick first pass at this functionality, there are still >> some unanswered questions, such as if and how code blocks should >> differentiate between ordered and unordered lists (ordered get an index >> for each item?), how nested lists should be represented etc... >> >> Best -- 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 ___ 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] now understands org-mode lists
Jambunathan K writes: > "Eric Schulte" writes: > >> Hi, >> >> I've just pushed up a small commit (including minimal documentation) >> which teaches code blocks how to read and write Org-mode lists. The >> following example should demonstrate the new behavior. >> >> >> #+results: a-list >> - org-mode >> - and >> - babel >> >> >> #+source: a-list >> #+begin_src emacs-lisp :var lst=a-list :results list >> (reverse lst) >> #+end_src >> > > Why not call the underlying type an 'orglist'. One can for example think > of orgpropeties etc etc. > > Btw, for the sake of illustration, how would one convert a numbered list > to an alphabetical list or an unordered list. Convert some thing like > > 1. One >1. OneOne > 3. Two > 4. Three > > to > > - One > - One > - Two > - Three > > or > > 1. One >1.1 OneOne > 2. Two > 3. Three > > C-c C-c on a list currently renumbers the list which I find quite > useful. May be there is a way to 'rebind' it so that it not only > renumbers but renumbers with a different style (that the user is > comfortable with). Think 'replace-region' for example. > Let's say one wants to number the lists using prime numbers. So one could have two lists. # list1 (may be generated programmatically) 1. 2 2. 3 3. 5 4. 7 5. 11 6. 13 # list2 (user-typed) 1. Carsten 2. Bastien 3. Eric Schulte 4. Dan Davison 5. Eric S Faga 6. Samuel Wales and juxtapose them together to get a custom numbering as follows 2. Carsten 3. Bastien 5. Eric Schulte 7. Dan Davison 11. Eric S Faga 13. Samuel Wales All this with a C-c C-c on list2. What this example does is essentially relate a 'list of styles' to a 'list of text elements' and create a 'custom-styled list'. Jambunathan K. > Jambunathan K. > >> >> This is just a quick first pass at this functionality, there are still >> some unanswered questions, such as if and how code blocks should >> differentiate between ordered and unordered lists (ordered get an index >> for each item?), how nested lists should be represented etc... >> >> Best -- 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 > > ___ > 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: [Babel] now understands org-mode lists
"Eric Schulte" writes: > Hi, > > I've just pushed up a small commit (including minimal documentation) > which teaches code blocks how to read and write Org-mode lists. The > following example should demonstrate the new behavior. > > > #+results: a-list > - org-mode > - and > - babel > > > #+source: a-list > #+begin_src emacs-lisp :var lst=a-list :results list > (reverse lst) > #+end_src > Why not call the underlying type an 'orglist'. One can for example think of orgpropeties etc etc. Btw, for the sake of illustration, how would one convert a numbered list to an alphabetical list or an unordered list. Convert some thing like 1. One 1. OneOne 3. Two 4. Three to - One - One - Two - Three or 1. One 1.1 OneOne 2. Two 3. Three C-c C-c on a list currently renumbers the list which I find quite useful. May be there is a way to 'rebind' it so that it not only renumbers but renumbers with a different style (that the user is comfortable with). Think 'replace-region' for example. Jambunathan K. > > This is just a quick first pass at this functionality, there are still > some unanswered questions, such as if and how code blocks should > differentiate between ordered and unordered lists (ordered get an index > for each item?), how nested lists should be represented etc... > > Best -- 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 ___ 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: Bastien is going to become the maintainer of Org mode in January
Hello, Carsten Dominik writes: > Dear all, > > after 7 years of responsibility for Org-mode, it is time for > me to let go and step down as the maintainer of Org-mode. [snip (52 lines)] I, as a simple org-mode user, just want to thank you, for all of the work you've done. It makes mine easier every day. Let me wish you all the best for the future. I'd like too to congratz Bastien, good luck in your new involvment. Org is dead! Long live Org! Best regards, -- e20100...@inbox.lv ___ 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] Error when running org-babel-execute-buffer -- Wrong type argument: consp, nil
Thanks for doing most of the debugging on this. After much banging of my head, I stumbled onto this very nice page of common problems with compiled Macros in Emacs Lisp [1], it looks like this sort of thing has happened before. :) I realized I was guilty of one of the macro sins specified above, and after rectifying that design flaw I believe (at least for my simple test case) this error should be fixed. Please let me know if you continue to run into this problem with the byte-compiled version of this macro. Best -- Eric David Maus writes: > At Mon, 08 Nov 2010 09:45:25 -0500, > Nick Dokos wrote: >> Something to do with the compilation of the org-babel-map-src-blocks >> macro, no doubt. I don't see it with uncompiled files. > > Not a solution, but some debugging showed that > `org-babel-get-src-block-info' fails to get the info of the source > block when run byte-compiled. > > If I change the last sexp of the function > > (when info (append info (list name indent))) > > to > > (if info (append info (list name indent)) > (error "EMPTY INFO")) > > And run byte-compiled Org, the EMPTY INFO error is thrown before the > invalid argument. > > 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 Footnotes: [1] http://www.gnu.org/s/emacs/manual/html_node/elisp/Problems-with-Macros.html ___ 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] now understands org-mode lists
Hi, I've just pushed up a small commit (including minimal documentation) which teaches code blocks how to read and write Org-mode lists. The following example should demonstrate the new behavior. #+results: a-list - org-mode - and - babel #+source: a-list #+begin_src emacs-lisp :var lst=a-list :results list (reverse lst) #+end_src This is just a quick first pass at this functionality, there are still some unanswered questions, such as if and how code blocks should differentiate between ordered and unordered lists (ordered get an index for each item?), how nested lists should be represented etc... Best -- 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] org-article setup
No problem and thanks for your swift work! John On Wed, Nov 17, 2010 at 4:47 PM, Thomas S. Dye wrote: > Aloha John, > > Thanks for helping with this. It is fixed now, though the change on Worg > might not appear for some minutes. > > All the best, > Tom > > On Nov 17, 2010, at 12:07 PM, John Hendy wrote: > > That did it. Thanks. I'll have to play around with it now. I actually am > not sure what I'll use this for! Just tried to help Mario figure things out > :) > > > John > > On Wed, Nov 17, 2010 at 3:40 PM, Thomas S. Dye wrote: > >> Hi John, >> >> Perhaps this is missing: >> >> (require 'org-latex) >> >> Let me know if that fixes your problem and I'll add it to the >> instructions. >> >> All the best, >> Tom >> >> On Nov 17, 2010, at 11:07 AM, John Hendy wrote: >> >> Thanks, Tom. >> >> I'm getting an error, though. I tried both settings from Section 1.2 ( >> http://orgmode.org/worg/org-contrib/babel/examples/article-class.php#sec-1_2) >> and get this error when I start emacs: >> >> ,- >> | Symbol's value as variable is void: org-export-latex-classes >> `- >> >> I just did a fresh git pull, make clean, make && make install just to be >> sure it wasn't just my version. >> >> What am I goofing up? >> >> >> Thanks, >> John >> >> On Wed, Nov 17, 2010 at 12:58 AM, Thomas S. Dye wrote: >> >>> Aloha John and Mario, >>> >>> I've moved my buggy development efforts to a branch and you can now pull >>> a stable version of Org-article if you're so inclined. >>> >>> All the best, >>> Tom >>> >>> On Nov 16, 2010, at 7:11 PM, John Hendy wrote: >>> >>> On Tue, Nov 16, 2010 at 5:46 PM, Mario E. Munich wrote: >>> Dear all, I am trying to use the org-article class created by Tomas Dye. As you might guess, I am having some trouble and thus the email. I am using emacs 23.1.1 on Ubuntu 10.10 and org-mode verision TAG=7.3. I have followed the instructions on worg: http://orgmode.org/worg/org-contrib/babel/examples/article-class.php up to the point in which I need to tangle the org document. If I try to run the tangle command: M-x org-babel-tangle RET, I get the following error: No org-bable-execute function for python! I think that the problem is that I do not have any setup for Babel in my .emacs, so I went to look for the standard Babel setup in the org manual and in worg. >>> >>> Yup -- that's the error. >>> >>> - In the org Manual, I see chapter 14 devoted to Babel, but I do not see any information on how to set it up in my .emacs (maybe it is enabled by default since Babel is included in org, but I am not sure). >>> I concur and think that's weird. Even if it is on worg... perhaps the >>> manual should point there? There's a decent amount on babel in the manual so >>> I found it a bit odd that it didn't provide the setup syntax (like Thomas >>> did). >>> >>> - In worg, there is a page for Babel: http://orgmode.org/worg/org-contrib/babel/index.php and a corresponding Introductory Tutorial. In this page, there is a section called Initial Configuration in which there is a mention of a "five-step process", but the corresponding list of steps only have 3 items. >>> >>> 5 vs. 3 is kind of funny. Some of those aren't really even steps. For >>> your case it's as easy as opening up .emacs and adding this: >>> >>> (org-babel-do-load-languages >>> 'org-babel-load-languages >>> '((python . t))) >>> >>> Though as Thomas listed, you can have more. It looks like he actually >>> puts his right into the org file itself with a #+src block. >>> >>> As for the rest of the steps, I actually wasn't able to get it to >>> compile. I get a bunch of these errors: >>> >>> ,- >>> | SyntaxError: invalid syntax >>> | File "", line 17 >>> |print res >>> |^ >>> | SyntaxError: invalid syntax >>> `- >>> >>> I think I get those to go away with "print (res)" instead of res by >>> itself. I think I've had that error before and it's a python version issue. >>> I'd suggest changing it if it's accepted by older versions since python is >>> perhaps moving that direction? I run Arch Linux and would guess that I may >>> be on a later version than a lot of distros. >>> >>> I also get this at the end in the minibuffer at the very end: >>> ,- >>> | reference "gantttest" not found in this buffer >>> `- >>> >>> I get not class file. >>> >>> I would appreciate if somebody could guide me towards a simple Babel configuration that would help me tangle the org-article.org document. >>> It'd probably be a good idea for someone to clean up worg and the manual >>> a bit. I can do some of those things -- Thomas, perhaps you want to handle >>> the org-article specific things if there are some compilation issues on my >>> end that find fixes and I can make worg a little clearer about babel setup? >>> Not sure who oversees the manual, but a redirect at th
Re: [Orgmode] Change DOCTYPE declaration?
On Wed, Nov 17, 2010 at 05:25:05PM -0500, Nick Dokos wrote: > #+BIND: uriel-change-doctype t > > but a good (if not scalable) solution to the problem. > > I have a question however: why is it that hooks can't be set using > this mechanism? >From my limited understanding, the #+BIND directive is for binding variables. For correctly adding a hook you must call add-hook, which adds a function to the corresponding hook list. ___ 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-article setup
Aloha John, Thanks for helping with this. It is fixed now, though the change on Worg might not appear for some minutes. All the best, Tom On Nov 17, 2010, at 12:07 PM, John Hendy wrote: That did it. Thanks. I'll have to play around with it now. I actually am not sure what I'll use this for! Just tried to help Mario figure things out :) John On Wed, Nov 17, 2010 at 3:40 PM, Thomas S. Dye wrote: Hi John, Perhaps this is missing: (require 'org-latex) Let me know if that fixes your problem and I'll add it to the instructions. All the best, Tom On Nov 17, 2010, at 11:07 AM, John Hendy wrote: Thanks, Tom. I'm getting an error, though. I tried both settings from Section 1.2 (http://orgmode.org/worg/org-contrib/babel/examples/article-class.php#sec-1_2 ) and get this error when I start emacs: ,- | Symbol's value as variable is void: org-export-latex-classes `- I just did a fresh git pull, make clean, make && make install just to be sure it wasn't just my version. What am I goofing up? Thanks, John On Wed, Nov 17, 2010 at 12:58 AM, Thomas S. Dye wrote: Aloha John and Mario, I've moved my buggy development efforts to a branch and you can now pull a stable version of Org-article if you're so inclined. All the best, Tom On Nov 16, 2010, at 7:11 PM, John Hendy wrote: On Tue, Nov 16, 2010 at 5:46 PM, Mario E. Munich wrote: Dear all, I am trying to use the org-article class created by Tomas Dye. As you might guess, I am having some trouble and thus the email. I am using emacs 23.1.1 on Ubuntu 10.10 and org-mode verision TAG=7.3. I have followed the instructions on worg: http://orgmode.org/worg/org-contrib/babel/examples/article-class.php up to the point in which I need to tangle the org document. If I try to run the tangle command: M-x org-babel-tangle RET, I get the following error: No org-bable-execute function for python! I think that the problem is that I do not have any setup for Babel in my .emacs, so I went to look for the standard Babel setup in the org manual and in worg. Yup -- that's the error. - In the org Manual, I see chapter 14 devoted to Babel, but I do not see any information on how to set it up in my .emacs (maybe it is enabled by default since Babel is included in org, but I am not sure). I concur and think that's weird. Even if it is on worg... perhaps the manual should point there? There's a decent amount on babel in the manual so I found it a bit odd that it didn't provide the setup syntax (like Thomas did). - In worg, there is a page for Babel: http://orgmode.org/worg/org-contrib/babel/index.php and a corresponding Introductory Tutorial. In this page, there is a section called Initial Configuration in which there is a mention of a "five-step process", but the corresponding list of steps only have 3 items. 5 vs. 3 is kind of funny. Some of those aren't really even steps. For your case it's as easy as opening up .emacs and adding this: (org-babel-do-load-languages 'org-babel-load-languages '((python . t))) Though as Thomas listed, you can have more. It looks like he actually puts his right into the org file itself with a #+src block. As for the rest of the steps, I actually wasn't able to get it to compile. I get a bunch of these errors: ,- | SyntaxError: invalid syntax | File "", line 17 |print res |^ | SyntaxError: invalid syntax `- I think I get those to go away with "print (res)" instead of res by itself. I think I've had that error before and it's a python version issue. I'd suggest changing it if it's accepted by older versions since python is perhaps moving that direction? I run Arch Linux and would guess that I may be on a later version than a lot of distros. I also get this at the end in the minibuffer at the very end: ,- | reference "gantttest" not found in this buffer `- I get not class file. I would appreciate if somebody could guide me towards a simple Babel configuration that would help me tangle the org-article.org document. It'd probably be a good idea for someone to clean up worg and the manual a bit. I can do some of those things -- Thomas, perhaps you want to handle the org-article specific things if there are some compilation issues on my end that find fixes and I can make worg a little clearer about babel setup? Not sure who oversees the manual, but a redirect at the least to worg for .emacs configuration would be helpful. John Thanks a lot for all the help! -Mario ___ 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] Change DOCTYPE declaration?
Yo can set variables on a per-file basis. Check EXPORT OPTIONS on the manual. You can set variables there (but not add hooks), so maybe something like this works: #+begin_src emacs-lisp ;; in your .emacs file: (add-hook 'org-export-html-final-hook (lambda () (if ( (boundp 'uriel-change-doctype) ) (let ((kill-whole-line t)) (goto-char (point-min)) (next-line) (kill-line 2) (insert "http://www.w3.org/TR/html4/strict.dtd\";>\n") ) ) ) ) #+end_src So the hook body will only execute if uriel-change-doctype is bound to some value. Then, on your document, include #+BIND uriel-change-doctype t Not tested, good luck! .j. On Wed, Nov 17, 2010 at 03:23:08PM -0500, Uriel Avalos wrote: > Thanks for the reply. After some monkeying around, I found I could do this: > > (add-hook 'org-export-html-final-hook > (lambda () >(let ((kill-whole-line t)) > (goto-char (point-min)) > (next-line) > (kill-line 2) > (insert " \"http://www.w3.org/TR/html4/strict.dtd\";>\n") > ) > ) > ) > > To undo it, I can call this: > > (setq org-export-html-final-hook nil) > > However, one question, the above sets the doctype GLOBALLY. Is there > a way to do set this automagically per file? (I.e., some kind of > file-specific export option) > > Juan Pechiar wrote: > > > The DOCTYPE declaration is hardcoded inside org-html.el > > > > You may change it by defining a hook and modifying the generated HTML. > > Have a look at the following message, where they get rid of the > > declaration: > > > > http://lists.gnu.org/archive/html/emacs-orgmode/2010-06/msg00063.html > > > > you may add some 'insert' there with your own declaration. > > > > On Wed, Nov 17, 2010 at 01:04:09PM -0500, Uriel Avalos wrote: > > > How do I change the doctype declaration? ___ 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-article setup
Hi John, Perhaps this is missing: (require 'org-latex) Let me know if that fixes your problem and I'll add it to the instructions. All the best, Tom On Nov 17, 2010, at 11:07 AM, John Hendy wrote: Thanks, Tom. I'm getting an error, though. I tried both settings from Section 1.2 (http://orgmode.org/worg/org-contrib/babel/examples/article-class.php#sec-1_2 ) and get this error when I start emacs: ,- | Symbol's value as variable is void: org-export-latex-classes `- I just did a fresh git pull, make clean, make && make install just to be sure it wasn't just my version. What am I goofing up? Thanks, John On Wed, Nov 17, 2010 at 12:58 AM, Thomas S. Dye wrote: Aloha John and Mario, I've moved my buggy development efforts to a branch and you can now pull a stable version of Org-article if you're so inclined. All the best, Tom On Nov 16, 2010, at 7:11 PM, John Hendy wrote: On Tue, Nov 16, 2010 at 5:46 PM, Mario E. Munich wrote: Dear all, I am trying to use the org-article class created by Tomas Dye. As you might guess, I am having some trouble and thus the email. I am using emacs 23.1.1 on Ubuntu 10.10 and org-mode verision TAG=7.3. I have followed the instructions on worg: http://orgmode.org/worg/org-contrib/babel/examples/article-class.php up to the point in which I need to tangle the org document. If I try to run the tangle command: M-x org-babel-tangle RET, I get the following error: No org-bable-execute function for python! I think that the problem is that I do not have any setup for Babel in my .emacs, so I went to look for the standard Babel setup in the org manual and in worg. Yup -- that's the error. - In the org Manual, I see chapter 14 devoted to Babel, but I do not see any information on how to set it up in my .emacs (maybe it is enabled by default since Babel is included in org, but I am not sure). I concur and think that's weird. Even if it is on worg... perhaps the manual should point there? There's a decent amount on babel in the manual so I found it a bit odd that it didn't provide the setup syntax (like Thomas did). - In worg, there is a page for Babel: http://orgmode.org/worg/org-contrib/babel/index.php and a corresponding Introductory Tutorial. In this page, there is a section called Initial Configuration in which there is a mention of a "five-step process", but the corresponding list of steps only have 3 items. 5 vs. 3 is kind of funny. Some of those aren't really even steps. For your case it's as easy as opening up .emacs and adding this: (org-babel-do-load-languages 'org-babel-load-languages '((python . t))) Though as Thomas listed, you can have more. It looks like he actually puts his right into the org file itself with a #+src block. As for the rest of the steps, I actually wasn't able to get it to compile. I get a bunch of these errors: ,- | SyntaxError: invalid syntax | File "", line 17 |print res |^ | SyntaxError: invalid syntax `- I think I get those to go away with "print (res)" instead of res by itself. I think I've had that error before and it's a python version issue. I'd suggest changing it if it's accepted by older versions since python is perhaps moving that direction? I run Arch Linux and would guess that I may be on a later version than a lot of distros. I also get this at the end in the minibuffer at the very end: ,- | reference "gantttest" not found in this buffer `- I get not class file. I would appreciate if somebody could guide me towards a simple Babel configuration that would help me tangle the org-article.org document. It'd probably be a good idea for someone to clean up worg and the manual a bit. I can do some of those things -- Thomas, perhaps you want to handle the org-article specific things if there are some compilation issues on my end that find fixes and I can make worg a little clearer about babel setup? Not sure who oversees the manual, but a redirect at the least to worg for .emacs configuration would be helpful. John Thanks a lot for all the help! -Mario ___ 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] Configuration query
Aloha all, This might be a naive query, but I'm wondering if there is some standard way to put the emacs configuration back to a previous state outside of the customization interface? I'm finding that I frequently work with Org-mode files that need different configurations. I typically have a #+begin_src emacs-lisp block in these files that I can execute with C-c C-c, so that emacs behaves the way the file requires for the task at hand. When I'm done, though, and jump onto the next task, which might depend on my standard configuration to work correctly, I sometimes find that the changes I've made break things. At this point, I typically save, quit emacs and start over. What I'd like to do is be able to have, in each file that contains an emacs-lisp source block that changes the configuration, a corresponding source code block that puts things back the way they were before the block was executed. Perhaps there is an easy way to do this? All the best, Tom ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-article setup
Thanks, Tom. I'm getting an error, though. I tried both settings from Section 1.2 ( http://orgmode.org/worg/org-contrib/babel/examples/article-class.php#sec-1_2) and get this error when I start emacs: ,- | Symbol's value as variable is void: org-export-latex-classes `- I just did a fresh git pull, make clean, make && make install just to be sure it wasn't just my version. What am I goofing up? Thanks, John On Wed, Nov 17, 2010 at 12:58 AM, Thomas S. Dye wrote: > Aloha John and Mario, > > I've moved my buggy development efforts to a branch and you can now pull a > stable version of Org-article if you're so inclined. > > All the best, > Tom > > On Nov 16, 2010, at 7:11 PM, John Hendy wrote: > > On Tue, Nov 16, 2010 at 5:46 PM, Mario E. Munich wrote: > >> Dear all, >> >> I am trying to use the org-article class created by Tomas Dye. As you >> might guess, I am having some trouble and thus the email. I am using emacs >> 23.1.1 on Ubuntu 10.10 and org-mode verision TAG=7.3. >> >> I have followed the instructions on worg: >> >> http://orgmode.org/worg/org-contrib/babel/examples/article-class.php >> >> up to the point in which I need to tangle the org document. >> >> If I try to run the tangle command: M-x org-babel-tangle RET, I get the >> following error: No org-bable-execute function for python! >> >> I think that the problem is that I do not have any setup for Babel in my >> .emacs, so I went to look for the standard Babel setup in the org manual and >> in worg. >> > > Yup -- that's the error. > > >> >> - In the org Manual, I see chapter 14 devoted to Babel, but I do not see >> any information on how to set it up in my .emacs (maybe it is enabled by >> default since Babel is included in org, but I am not sure). >> >> > I concur and think that's weird. Even if it is on worg... perhaps the > manual should point there? There's a decent amount on babel in the manual so > I found it a bit odd that it didn't provide the setup syntax (like Thomas > did). > > >> - In worg, there is a page for Babel: >> http://orgmode.org/worg/org-contrib/babel/index.php and a corresponding >> Introductory Tutorial. In this page, there is a section called Initial >> Configuration in which there is a mention of a "five-step process", but the >> corresponding list of steps only have 3 items. >> > > 5 vs. 3 is kind of funny. Some of those aren't really even steps. For your > case it's as easy as opening up .emacs and adding this: > > (org-babel-do-load-languages > 'org-babel-load-languages > '((python . t))) > > Though as Thomas listed, you can have more. It looks like he actually puts > his right into the org file itself with a #+src block. > > As for the rest of the steps, I actually wasn't able to get it to compile. > I get a bunch of these errors: > > ,- > | SyntaxError: invalid syntax > | File "", line 17 > |print res > |^ > | SyntaxError: invalid syntax > `- > > I think I get those to go away with "print (res)" instead of res by itself. > I think I've had that error before and it's a python version issue. I'd > suggest changing it if it's accepted by older versions since python is > perhaps moving that direction? I run Arch Linux and would guess that I may > be on a later version than a lot of distros. > > I also get this at the end in the minibuffer at the very end: > ,- > | reference "gantttest" not found in this buffer > `- > > I get not class file. > > >> >> I would appreciate if somebody could guide me towards a simple Babel >> configuration that would help me tangle the org-article.org document. >> >> > It'd probably be a good idea for someone to clean up worg and the manual a > bit. I can do some of those things -- Thomas, perhaps you want to handle the > org-article specific things if there are some compilation issues on my end > that find fixes and I can make worg a little clearer about babel setup? Not > sure who oversees the manual, but a redirect at the least to worg for .emacs > configuration would be helpful. > > > John > > >> Thanks a lot for all the help! >> >> -Mario >> >> >> ___ >> 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
Re: [Orgmode] Org 7.3
At Wed, 17 Nov 2010 13:39:31 -0600, Schlesinger, Paul wrote: > > In Vista but not XP some/many links set with \C-c L give "No link > found" with \C-c o. As I happen to work at Windows 7 at work: Can you give an example of a link that can be open? Best, -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de pgp6gYc4Lc1ud.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] %20 in file://... URL
At Sat, 13 Nov 2010 07:18:42 +0100, Vincent Belaïche wrote: > > Herein attached follows my patch. Please feel free for brickbats... > Thanks for sending the patch, but it won't provide a clean solution to the problem: The function modified by your patch works under the assumption, that for example the sequence %3A represents a percent escaped colon. But the function that creates the link in the first place does not percent-escape chars -- If we use just this patch, opening a link to a file literarally called "%3A.org" will fail. So we need to modify all functions that create links to propertly percent-escape the part of a link that follows the link type in order to make all functions unescape the link. Good news: Reworking the percent-escaping is a work in progress on my list[1] and if it is finished and accepted, the problem should be solved. Best, -- David [1] http://thread.gmane.org/gmane.emacs.orgmode/30694/focus=33179 -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de pgpRMD9n7TTsy.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] %20 in file://... URL
At Sat, 13 Nov 2010 07:18:42 +0100, Vincent Belaïche wrote: > > Herein attached follows my patch. Please feel free for brickbats... > Thanks for sending the patch, but it won't provide a clean solution to the problem: The function modified by your patch works under the assumption, that for example the sequence %3A represents a percent escaped colon. But the function that creates the link in the first place does not percent-escape chars -- If we use just this patch, opening a link to a file literarally called "%3A.org" will fail. So we need to modify all functions that create links to propertly percent-escape the part of a link that follows the link type in order to make all functions unescape the link. Good news: Reworking the percent-escaping is a work in progress on my list[1] and if it is finished and accepted, the problem should be solved. Best, -- David [1] http://thread.gmane.org/gmane.emacs.orgmode/30694/focus=33179 -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de pgpiQV40jbmeM.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] Change DOCTYPE declaration?
Thanks for the reply. After some monkeying around, I found I could do this: (add-hook 'org-export-html-final-hook (lambda () (let ((kill-whole-line t)) (goto-char (point-min)) (next-line) (kill-line 2) (insert "http://www.w3.org/TR/html4/strict.dtd\";>\n") ) ) ) To undo it, I can call this: (setq org-export-html-final-hook nil) However, one question, the above sets the doctype GLOBALLY. Is there a way to do set this automagically per file? (I.e., some kind of file-specific export option) On Wed, 17 Nov 2010 16:34:27 -0200 Juan Pechiar wrote: > Hi, > > The DOCTYPE declaration is hardcoded inside org-html.el > > You may change it by defining a hook and modifying the generated HTML. > Have a look at the following message, where they get rid of the > declaration: > > http://lists.gnu.org/archive/html/emacs-orgmode/2010-06/msg00063.html > > you may add some 'insert' there with your own declaration. > > Regards, > .j. > > On Wed, Nov 17, 2010 at 01:04:09PM -0500, Uriel Avalos wrote: > > How do I change the doctype declaration? > > > > Is there an export option or variable I can set? I tried searching > > for the variable. Perhaps I'm using a version of orgmode that's too > > old? > > > > The only thing I could find was org-export-html-xml-declaration but > > that's not the same thing. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Org 7.3
In Vista but not XP some/many links set with \C-c L give "No link found" with \C-c o. Paul Schlesinger ___ 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: proposal for enhanced org-get-priority function
Carsten Dominik writes: > I have not added you patch as it is, because in some ways the syntax > it adds is questionable, and, as others have pointed out, sorting can > be done in different ways, too. > > However, instead, I have introduced a variable that can be set to a > user-defined function to compute the base priority of a node. So you > can simply put your function into that variable and continue to use > your special syntax, with us making it an official Org syntax. > > The name of the variable is org-get-priority-function. Thanks, Carsten, as always, for coming up with an elegant solution that keeps Org nice and simple for new users, while nonetheless allowing us power users to keep refining our ~/.emacs. :) Best, Matt ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Clean capture from command line?
tycho garen writes: >> One of the things I'd like to be able to do is capture a new TODO from a >> command line. e.g. > > I use the following code that I got from Jack Moffit > (http://www.metajack.im), that does more or less what you're looking > for, I think. Add the following block to your org configs. > > ; > > (defadvice capture-finalize (after delete-capture-frame activate) > "Advise capture-finalize to close the frame if it is the capture frame" > (if (equal "capture" (frame-parameter nil 'name)) > (delete-frame))) > > (defadvice capture-destroy (after delete-capture-frame activate) > "Advise capture-destroy to close the frame if it is the rememeber frame" > (if (equal "capture" (frame-parameter nil 'name)) > (delete-frame))) > > (defun make-capture-frame () > "Create a new frame and run org-capture." > (interactive) > (make-frame '((name . "capture"))) > (select-frame-by-name "capture") > (delete-other-windows) > (org-capture) > ) > > > ; > > Then call emacs as follows: > > emacsclient -n -e '(make-capture-frame)' Doesn't work for me, for some strange reason. I think you may have forgotten to say that the advices have to be activated? If so, I assume this would be done by: --8<---cut here---start->8--- (ad-activate 'capture-finalize) (ad-activate 'capture-destroy) --8<---cut here---end--->8--- But, in any case, this doesn't seem to make any difference in my case. The capture process itself works. I get my menu of templates just fine. Org captures the information when it should, i.e. if I finish normally (C-c C-c), and ignores it if I abort (C-c C-k). In either case, the frame, named "capture", remains. Hitting my "delete-frame" button (the Windows menu key to the right of my spacebar -- had to use these keys for something) works just fine so the problem is not with the delete frame function. Any suggestions? There's no error of any form that I can see. -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1 : using Org-mode version 7.3 (release_7.3.86.gb3d6f) ___ 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] Change DOCTYPE declaration?
Hi, The DOCTYPE declaration is hardcoded inside org-html.el You may change it by defining a hook and modifying the generated HTML. Have a look at the following message, where they get rid of the declaration: http://lists.gnu.org/archive/html/emacs-orgmode/2010-06/msg00063.html you may add some 'insert' there with your own declaration. Regards, .j. On Wed, Nov 17, 2010 at 01:04:09PM -0500, Uriel Avalos wrote: > How do I change the doctype declaration? > > Is there an export option or variable I can set? I tried searching > for the variable. Perhaps I'm using a version of orgmode that's too > old? > > The only thing I could find was org-export-html-xml-declaration but > that's not the same thing. ___ 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] Clean capture from command line?
> One of the things I'd like to be able to do is capture a new TODO from a > command line. e.g. I use the following code that I got from Jack Moffit (http://www.metajack.im), that does more or less what you're looking for, I think. Add the following block to your org configs. ; (defadvice capture-finalize (after delete-capture-frame activate) "Advise capture-finalize to close the frame if it is the capture frame" (if (equal "capture" (frame-parameter nil 'name)) (delete-frame))) (defadvice capture-destroy (after delete-capture-frame activate) "Advise capture-destroy to close the frame if it is the rememeber frame" (if (equal "capture" (frame-parameter nil 'name)) (delete-frame))) (defun make-capture-frame () "Create a new frame and run org-capture." (interactive) (make-frame '((name . "capture"))) (select-frame-by-name "capture") (delete-other-windows) (org-capture) ) ; Then call emacs as follows: emacsclient -n -e '(make-capture-frame)' Even better than calling from the command line in my experience is triggering directly from your window manager, or something like quicksliver if you use OS X... I hope this is a start -- tycho(ish) @ ga...@tychoish.com http://www.tychoish.com/ http://www.cyborginstitute.com/ "don't get it right, get it written" -- james thurber pgpUZ7Fu0t5nw.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] New lines (return chracter?) in capture templates
Quick question. I'm playing with a new template and the new line characters are being inserted as string-literals (?) instead of being read as new lines. In other words, my template is , | * %U\n *%^{Note Title}* %?\n %i %a ` When called, I get the following after typing "Test" at the prompt: , | [2010-11-17 Wed 13:11]\n *Test* \n ` When the following is expected: , | [2010-11-17 Wed 13:11] | *Test* | ` The template is uses date trees. Thanks for any help. Jeff -- Jeffrey Horn Graduate Lecturer and PhD Student in Economics George Mason University (704) 271-4797 jh...@gmu.edu jrhorn...@gmail.com 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
[Orgmode] Change DOCTYPE declaration?
How do I change the doctype declaration? Is there an export option or variable I can set? I tried searching for the variable. Perhaps I'm using a version of orgmode that's too old? The only thing I could find was org-export-html-xml-declaration but that's not the same thing. ___ 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: Bastien is going to become the maintainer of Org mode in January
Just adding my voice to the chorus -- Carsten, org has made emacs work for me, finally, and also made my faster, more organized, and better-integrated with the web. I've been so inspired watching you respond with lightning speed t othe multitude of feature requests and bug reports o nthe web, I've wondered how you have time for everything else. congratulations to you, and of course to Bastien as well. I'm sure lots of other people feel as I do, that we'll be trying hard to do what litle we can to make it easier o nBastien as he steps into this even more active role. Definitely a moment to pause, reflect, and celebrate the accomplishments of hte last 7 years! great work! Matt ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] link to a file in a footnote ?
Hi, Consider the following minimal example: Text[fn:1] * Footnotes [fn:1] Note with a [[file:abecedaire.jpg][link]]. Here with orgmode 7.02, doing C-c C-o on the link moves the cursor on [fn:1] and says in the minibuffer: "Position saved mark to ring, go back with C-c &", instead of opening the linked file. Is this a bug? Thanks, -- Sébastien Mengin Édition et logiciels libres < Mise en page avec LaTeX > http://edilibre.net tél. : 06 84 88 49 17 jid. : sebastien-men...@jabber.org ___ 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: HTML export and blogging to blogger.com
John Hendy writes: > On Wed, Nov 17, 2010 at 3:09 AM, Eric S Fraga wrote: > > John Hendy writes: > > [...] > > > There was also a reference in the original post below to > > longlines-mode... > > I apologise for jumping into the middle of a conversation but your > reference to longlines-mode brings to mind visual-line-mode which was > introduced in Emacs 23 (I believe). This mode turns on =word-wrap= as > well which makes the text look like it has been filled (i.e. soft > returns in your parlance) without actually changing the underlying > text. > > I saw that as well. Haven't tried it but the question will be whether > Org exports the actual contents of the file or what it appears to be > on the screen. Longlines mode seems to do something similar in that it > is "wrapped" but the file actually contains no line breaks... however > when exporting to html, Org seems to use what the buffer looks like, > not what the actual file contains. Very strange. I don't observe this behaviour at all. With visual-line-mode enabled *and* truncate-lines disabled (so that the lines are actually wrapped on the screen; note that org sets line truncation to be on by default), the text in my display (for a short example) appears as 5 or 6 lines (depends on the window width, of course) but the exported HTML is a single line. -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1 : using Org-mode version 7.3 (release_7.3.86.gb3d6f) ___ 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: Bastien is going to become the maintainer of Org mode in January
Bastien writes: > First of all: *thanks* Carsten for Org! > > Moreover thanks for your patience while building this software and this > community over the years. There is a true spirit of mutual respect and > mutual learning in this list -- we wouldn't have grown so fast and so > far without your constant dedication to such values. > > Needless to say I'm thrilled to step up as a maintainer, so thank for > your trust. > > I don't have other plans than to keep Org as good as it is and as people > want it to be, both regarding the code and the documentation. > > Also thanks everyone for the nice words and the "good luck" :) > > PS: As a child, my hero was Bastian from the "The neverending story"... > let's hope Org will be such a neverending story! Hi Bastien, Congratulations! and *thanks* for stepping up as the new org-mode maintainer. I'm sure you'll do a great job as the new maintainer of this project. I'm looking forward to using and learning new org-mode-features ... for the rest of my life :) Somehow I don't think I'll cover everything org-mode can do in that time frame but I'll use the best parts that work for me and ignore the rest -- that seems to work well so far. Congrats again! Best 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] Re: HTML export and blogging to blogger.com
On Wed, Nov 17, 2010 at 3:09 AM, Eric S Fraga wrote: > John Hendy writes: > > [...] > > > There was also a reference in the original post below to > > longlines-mode... > > I apologise for jumping into the middle of a conversation but your > reference to longlines-mode brings to mind visual-line-mode which was > introduced in Emacs 23 (I believe). This mode turns on =word-wrap= as > well which makes the text look like it has been filled (i.e. soft > returns in your parlance) without actually changing the underlying > text. > > I saw that as well. Haven't tried it but the question will be whether Org exports the *actual contents* of the file or what it appears to be on the screen. Longlines mode seems to do something similar in that it is "wrapped" but the file actually contains no line breaks... however when exporting to html, Org seems to use what the buffer *looks* like, not what the actual file contains. John > -- > : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1 > : using Org-mode version 7.3 (release_7.3.80.g0265) > ___ 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-directory changed?
Nick Dokos writes: > Richard Riley wrote: > >> >> Has something dramatic changed with how org loads files? >> >> My org-directory setting is ~/org-files. >> >> When I start up my agenda this morning after a git pull I get >> >> insert-file-contents-literally: not a regular file: >> /home/shamrock/org-files >> >> > > I just pulled and saw no problem (but I'm not using org-directory for my > agenda files: they are explicitly enumerated in org-agenda-files). I > think the most useful way forward would be for you to get a backtrace. > > Thanks, > Nick > OK, here's the bt. So something to do with category items which rang a bell. In my custom I had a default '(org-agenda-category-icon-alist (quote (("" "" nil nil nil This caused the issue. I removed it and all was well. Possibly some bolstering of the category icon code might protect against this - not sure if it would be a common occurrence or not. , | Debugger entered--Lisp error: (file-error "not a regular file" "/home/shamrock/org-files") | insert-file-contents("" nil 0 256 nil) | insert-file-contents-literally("" nil 0 256) | image-type-from-file-header("") | image-type("" nil nil) | create-image("" nil nil nil) | apply(create-image ("" nil nil nil)) | byte-code("\305\211\203:\...@\306 @\"\2033 \211A@)<\203*\307\310 \211A@)\"\210\2023\307\310\311\312 A\"\"\210\nA\211\204*\305\207" [org-agenda-category-icon-alist entry --cl-dolist-temp-- category x nil org-string-match-p throw --cl-block-nil-- apply create-image] 6) | org-agenda-get-category-icon(#("Hamburg, Germany" 0 16 (fontified nil org-category #("Journal" 0 7 ... | org-format-agenda-item("Sched. 2x: " "recurring org items :orgmode:recurring:schedule:CANCELLED:" #("Hamburg, Germany" 0 16 (fontified nil org-category #("Journal" 0 7 ...))) (#("journal" 0 7 (inherited t)) "orgmode" "recurring" "schedule" "CANCELLED") nil nil nil nil) | byte-code("\306 \210\307\310!\311\310\224S\312\307\310!\313\f$\211Z9:\205$9\314W;9\314W\203A\3159!\235?\317\320!\205[\320 @?\20...@\204sa\204s9\314u\204x\311\202\"\321 B\322\323\311\324#\204\212C\202\"\314\225b\210\314\2...@\203\256e\203\246:\204\320F\203\320\325\326\311\"\210\202\320G\324=\204\277G\203\320;\203\320\327DH\"\211I\203\320\325\326\311\"\210\330 J\331`\332\311w\210`\"K\333\334\"\203\361\310\224\311o\335pl\202\364\336l\3379\314u\20...@\202\f\340ma@\3109Z\"KBJ9\314U\205L\311\211@& \203\2...@\2044;\2034\341\202>:\203=\342\202>\343'@\205G\344 @\345 N\346'\347?\203Z\350\202\\'\351\352\n!\353\352D!\354;\203o\355\202p\356\357;\203z \202|/\...@\203\211\361@!\202\223\362\363\3649Z\365!#\366b\...@\3708&\210 OBO)\311\207" [s txt pos d1 org-agenda-repeating-timestamp-show-all d2 org-agenda-skip match-string 1 nil org-time-string-to-absolute past 0 abs org-get-todo-state functionp org-is-habit-p org-get-category re-search-backward "^\\*+[]+" t throw :skip assoc org-get-tags-at buffer-substring-no-properties "^\n" string-match " \\([012]?[0-9]:[0-9][0-9]\\)" " " time org-format-agenda-item format org-scheduled-previously org-scheduled-today org-scheduled org-habit-parse-todo org-add-props undone-face face org-agenda-done org-marker org-agenda-new-marker org-hd-marker type "past-scheduled" "scheduled" date priority org-habit-get-priority ...] 24) | org-agenda-get-scheduled(nil) | org-agenda-get-day-entries("/home/shamrock/org-files/journal.org" (11 17 2010) :deadline :scheduled :timestamp :sexp) | apply(org-agenda-get-day-entries "/home/shamrock/org-files/journal.org" (11 17 2010) (:deadline :scheduled :timestamp :sexp)) | byte-code("\306!\210 \n\204 \307\310 \"\311=\203 \312\f\313#\2026\203/\314\312\f\315\316 \"$\2026\314\312\f $)\315\"\306\207" [file org-agenda-entry-types org-agenda-include-deadlines org-agenda-show-log date rtn org-check-agenda-file delq :deadline only org-agenda-get-day-entries :closed apply append (:closed) rtnall] 7) | org-agenda-list(nil) | call-interactively(org-agenda-list) | (let nil (call-interactively (quote org-agenda-list))) | (let nil (let nil (call-interactively ...))) | eval((let nil (let nil (call-interactively ... | org-let2(nil nil (call-interactively (quote org-agenda-list))) | org-run-agenda-series("My\n Today" (((agenda "" nil) (tags "sticky" ...)) nil nil)) | byte-code("\306\307 \232\203 \310\202 \n\311\306\312\313\"\"p\314\315 !...@\306\211ab\306\211cd\306\211efg\204x\316\317!\203c\204i\320\321\322\306#\210\306hi\306\211\223\210j\306\211\223\210\320\323\324\306#\210pkl\204t\325!\211f@lfamg\204\277m\203\277\320\321\...@c#\210m\326=\203\241\327hi\330 \306\223\210J\331 \306\223\210\202\277M\332=\203\277\212\327H\333\327!\210I`\306\223\210J\334\327!\306\223\210)\335L\"\211A\203\314\336A89\204\333\337\336A8!\203\273\336A8C\340\341A8!D\342A8E\320\323\324E#\210C\343=\203\344E\345\"\202$C\346=\203\344E\347\"\202$C\350=\203#\344E\351\"\
[Orgmode] [PATCH: RESUBMITTED] Fix broken CUSTOM_ID links
Carsten >> this looks good, However, I would like you to make a change to the >> patch more more clarity. >> >> Could you please write >> >> (or preferred target) >> >> instead of >> >> remove >> >> as the ID to be inserted? Even though these are the same, the first >> version is a lot clearer. >> >> With this change, I will accept the patch. My bad ... Ignore my previous mail. I accidentally attached the older version that was lurking in my work area. Here is the newer version. I have made the modifications requested by you. Reproducing the original report for the sake of record. Jambunathan K. # Bug Description: Note the 'H:1' option. Search for 'broken' in the # the below org file. #+OPTIONS: H:1 * Links ** Targets *** Fuzzy Target One Two Three Four Five *** Target with CUSTOMID :PROPERTIES: :CUSTOM_ID: aabbccddeeff :END: One Two Three Four Five *** Dedicated Target # <> One Two Three Four Five *** <<>> One Two Three Four Five ** References *** References to Fuzzy Target This is a link to [[Fuzzy Target]]. *** References to CUSTOMID links This link to [[#aabbccddeeff][CUSTOMID Target]] is broken. *** References to Dedicated Target There is a link to nodesc [[Dedicated Target]] here. There is a link to [[Dedicated%20Target][Jump to Dedicated Target]] here. *** References to Radioed Links This section has references to Radioed Target. One more reference to Radioed Target. Verification: bash-3.2$ diff -pub customid-before.html customid-after.html --- customid-before.html2010-11-17 20:36:20.140625000 +0530 +++ customid-after.html 2010-11-17 20:39:45.234375000 +0530 @@ -1,3 +1,4 @@ + http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> http://www.w3.org/1999/xhtml"; @@ -6,7 +7,7 @@ customid - + @@ -100,7 +101,7 @@ - Target with CUSTOMID + Target with CUSTOMID One @@ -199,7 +200,7 @@ Author: Jambunathan K mailto:kjambunat...@gmail.com";>-Date: 2010-11-17 20:35:58 +Date: 2010-11-17 20:39:11 HTML generated by org-mode 7.3 in emacs 23 Attachments: >From 7e18408ee3250ce829dba3585ac83d13dcc11bb2 Mon Sep 17 00:00:00 2001 From: Jambunathan K Date: Wed, 17 Nov 2010 20:34:17 +0530 Subject: [PATCH 2/2] Fix broken CUSTOM_ID links to outline levels exported as lists (org-html-level-start): Modified. TINYCHANGE. --- lisp/org-html.el |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lisp/org-html.el b/lisp/org-html.el index 4305af2..d1fe06d 100644 --- a/lisp/org-html.el +++ b/lisp/org-html.el @@ -2320,10 +2320,9 @@ When TITLE is nil, just close all open levels." (extra-class (and title (org-get-text-property-any 0 'html-container-class title))) (preferred (and target (cdr (assoc target org-export-preferred-target-alist - (remove (or preferred target)) (l org-level-max) snumber snu href suffix) -(setq extra-targets (remove remove extra-targets)) +(setq extra-targets (remove (or preferred target) extra-targets)) (setq extra-targets (mapconcat (lambda (x) (if (org-uuidgen-p x) (setq x (concat "ID-" x))) @@ -2362,12 +2361,13 @@ When TITLE is nil, just close all open levels." (progn (org-close-li) (if target - (insert (format "" target) extra-targets title "\n") + (insert (format "" (or preferred target)) + extra-targets title "\n") (insert "" title "\n"))) (aset org-levels-open (1- level) t) (org-close-par-maybe) (if target - (insert (format "\n" target) + (insert (format "\n" (or preferred target)) extra-targets title "\n") (insert "\n" title "\n" (aset org-levels-open (1- level) t) -- 1.7.2.3 ___ 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? - can't set effort from agenda
On 15 Nov 2010 at 7:59, Carsten Dominik wrote: > Dear George, > > unfortunately I am not able to reproduce this issue. > > Sorry about this. Thanks for trying! Maybe I (or someone) will find a less-fiddly way to reproduce these problems in the future. Meanwhile, I've been setting priorities and efforts in column mode to avoid the intermittent problems. Many thanks for all your efforts with org-mode. It is a great accomplishment, and a tremendously valuable tool. > On Nov 8, 2010, at 7:04 PM, George Pearson wrote: > > > Have these problems setting effort and priority in the agenda been > > forgotten? There's been no reply in two weeks, and these problems > > are not listed under "Open Issues ..." in Worg. > > > > On 25 Oct 2010 at 20:24, George Pearson wrote: > > > >> On 25 Oct 2010 at 17:45, Carsten Dominik wrote: > >> > >>> > >>> > >>> However, what we still need is this: > >>> > >>> Make your file as small as possible so that it still repeats the > >>> bug. > >>> > >>> > >>> > >>> Then: how do you construct the agenda view? Is it the daily agenda, > >>> or a TODO list. What does it look like? In which line is the > >>> cursor > >>> when you press "e"? Is that line linking to the first task in your > >>> org file, or the last? > >> > >> OK, here is master.org and recurring.org.: > >> > >> master.org --- > >> #+STARTUP: odd > >> #+STARTUP: hidestars > >> #+STARTUP: logdone > >> #+SEQ_TODO: TODO NEXT PENDING | DONE(d!) CANCELLED(c@) > >> #+TAGS: Rock(r) Frog(f) Schedule(s) Important(i) Urgent(u) Week(w) > >> Soon(o) > >> > >> * Org mode for emacs > >> :PROPERTIES: > >> :CATEGORY: Org mode > >> :Effort: 1:30 > >> :END: > >> *** TODO [#E] reproduce org mode effort bug > >>SCHEDULED: <2010-10-25 Mon> > >>:PROPERTIES: > >>:Effort: 0:10 > >>:END: > >>[2010-10-25 Mon] > >> *** TODO how to get list of all tags? > >>SCHEDULED: <2010-10-25 Mon> > >>:PROPERTIES: > >>:Effort: 0:10 > >>:END: > >> *** TODO mark a task done-yesterday > >>SCHEDULED: <2010-10-25 Mon> > >>:PROPERTIES: > >>:Effort: 0:10 > >>:END: > >> -- recurring.org > >> -- > >> #+STARTUP: odd > >> #+STARTUP: hidestars > >> #+SEQ_TODO: TODO NEXT PENDING | DONE(d!) CANCELLED(c@) > >> #+TAGS: Rock(r) Frog(f) > >> > >> * TODO Recurring > >> :PROPERTIES: > >> :CATEGORY: Recurring > >> :END: > >> *** TODO krebs security blog > >>SCHEDULED: <2010-10-25 Mon +1d> > >>:PROPERTIES: > >>:Effort: 0:10 > >>:END: > >> *** TODO read local paper > >>SCHEDULED: <2010-10-25 Mon ++1d> > >>:PROPERTIES: > >>:Effort: 0:10 > >>:END: > >> *** TODO booktv check > >>SCHEDULED: <2010-10-25 Mon +1w> > >>:PROPERTIES: > >>:Effort: 1:30 > >>:END: > >> --- > >> > >> Construct the agenda view by typing C-c a a while in buffer > >> master.org. > >> Then in the agenda, type d for daily. > >> > >> In the agenda, use the up/down arrow keys to move the highlight to > >> the > >> task of interest, and press e, then use a digit to select the effort. > >> > >> This example has made one thing clear to me - when I thought that > >> setting the effort was not working, it was actually CHANGING THE > >> EFFORT > >> FOR A DIFFERENT TASK. The problem is usually observable when setting > >> the effort in the last three tasks in the agenda, the ones from > >> the recurring.org file, though sometimes (I think) those have worked > >> correctly. The effort change for these last three tasks, when wrong, > >> will always be to one of the other tasks in recurring.org. > >> > >> I hope this is sufficient. > >> > >> An oddity in this example is that typing e also opens a second window > >> in the frame (like when spacebar is typed). Don't recall having seen > >> this happen before. > >> > >> The priority setting problem is also observable, but one time only! > >> On > >> my first priority setting attempt with these files, I typed the comma > >> while the first item in recurring was highlighted and got the: > >> > >> org-agenda-priority: Wrong type argument: integer-or-marker-p, nil > >> > >> All further attempts worked properly. Strange. > >> > >> ___ > >> 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/listi
[Orgmode] [PATCH: RESUBMITTED] Fix broken CUSTOM_ID links
Carsten >> this looks good, However, I would like you to make a change to the >> patch more more clarity. >> >> Could you please write >> >> (or preferred target) >> >> instead of >> >> remove >> >> as the ID to be inserted? Even though these are the same, the first >> version is a lot clearer. >> >> With this change, I will accept the patch. I have made the modifications requested by you. Reproducing the original report for the sake of record. Jambunathan K. # Bug Description: Note the 'H:1' option. Search for 'broken' in the # the below org file. #+OPTIONS: H:1 * Links ** Targets *** Fuzzy Target One Two Three Four Five *** Target with CUSTOMID :PROPERTIES: :CUSTOM_ID: aabbccddeeff :END: One Two Three Four Five *** Dedicated Target # <> One Two Three Four Five *** <<>> One Two Three Four Five ** References *** References to Fuzzy Target This is a link to [[Fuzzy Target]]. *** References to CUSTOMID links This link to [[#aabbccddeeff][CUSTOMID Target]] is broken. *** References to Dedicated Target There is a link to nodesc [[Dedicated Target]] here. There is a link to [[Dedicated%20Target][Jump to Dedicated Target]] here. *** References to Radioed Links This section has references to Radioed Target. One more reference to Radioed Target. Verification: bash-3.2$ diff -pub customid-before.html customid-after.html --- customid-before.html2010-11-17 20:36:20.140625000 +0530 +++ customid-after.html 2010-11-17 20:39:45.234375000 +0530 @@ -1,3 +1,4 @@ + http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> http://www.w3.org/1999/xhtml"; @@ -6,7 +7,7 @@ customid - + @@ -100,7 +101,7 @@ - Target with CUSTOMID + Target with CUSTOMID One @@ -199,7 +200,7 @@ Author: Jambunathan K mailto:kjambunat...@gmail.com";>-Date: 2010-11-17 20:35:58 +Date: 2010-11-17 20:39:11 HTML generated by org-mode 7.3 in emacs 23 Attachments: >From 896a97a00c28206a940bb935406c60f19db3de15 Mon Sep 17 00:00:00 2001 From: Jambunathan K Date: Mon, 8 Nov 2010 18:33:29 +0530 Subject: [PATCH 2/2] Fix broken CUSTOM_ID links to outline levels exported as lists. (org-html-level-start): Modified. TINYCHANGE. --- lisp/org-html.el |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 lisp/org-html.el diff --git a/lisp/org-html.el b/lisp/org-html.el old mode 100644 new mode 100755 index 68fee5b..2aea978 --- a/lisp/org-html.el +++ b/lisp/org-html.el @@ -2358,12 +2358,12 @@ When TITLE is nil, just close all open levels." (progn (org-close-li) (if target - (insert (format "" target) extra-targets title "\n") + (insert (format "" remove) extra-targets title "\n") (insert "" title "\n"))) (aset org-levels-open (1- level) t) (org-close-par-maybe) (if target - (insert (format "\n" target) + (insert (format "\n" remove) extra-targets title "\n") (insert "\n" title "\n" (aset org-levels-open (1- level) t) -- 1.7.2.3 ___ 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: Edit source buffer in same frame
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/17/2010 03:42 PM, Sébastien Vauban wrote: > #+begin_src emacs-lisp Thanks - exactly that. Rainer - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Tel:+33 - (0)9 53 10 27 44 Cell: +27 - (0)8 39 47 90 42 Fax (SA): +27 - (0)8 65 16 27 82 Fax (D) : +49 - (0)3 21 21 25 22 44 Fax (FR): +33 - (0)9 58 10 27 44 email: rai...@krugs.de Skype: RMkrug -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkzj73kACgkQoYgNqgF2egqhQACcDO2D98Yhcq/pP07uNuoVq7Fa hLoAn25g1BivCHrrzq92q1ZfGrMBTk1s =vrlZ -END PGP SIGNATURE- ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Edit source buffer in same frame
Hi Rainer, Rainer M Krug wrote: > I know that it was discussed here, but I can't find it anymore - sorry: > > I am looking for the option, that, when C-c ' in a source block, the > source edit buffer does not open in a new frame, but uses the one from > which C-c ' was called. You mean windows? #+begin_src emacs-lisp ;; display the source code edit buffer in the current window, keeping ;; all other windows (setq org-src-window-setup 'current-window) (setq org-src-window-setup 'reorganize-frame) #+end_src Best regards, Seb -- Sébastien Vauban ___ 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-directory changed?
Richard Riley wrote: > > Has something dramatic changed with how org loads files? > > My org-directory setting is ~/org-files. > > When I start up my agenda this morning after a git pull I get > > insert-file-contents-literally: not a regular file: > /home/shamrock/org-files > > I just pulled and saw no problem (but I'm not using org-directory for my agenda files: they are explicitly enumerated in org-agenda-files). I think the most useful way forward would be for you to get a backtrace. Thanks, Nick ___ 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] Bastien is going to become the maintainer of Org mode in January
Dear all, First of all: *thanks* Carsten for Org! Moreover thanks for your patience while building this software and this community over the years. There is a true spirit of mutual respect and mutual learning in this list -- we wouldn't have grown so fast and so far without your constant dedication to such values. Needless to say I'm thrilled to step up as a maintainer, so thank for your trust. I don't have other plans than to keep Org as good as it is and as people want it to be, both regarding the code and the documentation. Also thanks everyone for the nice words and the "good luck" :) PS: As a child, my hero was Bastian from the "The neverending story"... let's hope Org will be such a neverending story! -- 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: Store link in message mode
Łukasz Stelmach writes: Hi Łukasz, >>> If you think --despite of those issues-- it's worth adding the >>> creation of gnus links while in message mode I could provide a >>> patch. >> >> I'm curious how you are able to determine where a message will be >> filed after sending it off. I mean, you neither have the Message-Id >> at that point (unless that's added to >> `message-generate-headers-first'), nor do you know the correct group, >> at least if there are more than one in the Gcc header. > > There is a facility in Gnus called > which I havn't investigated yet but it looks promising. From what I've > browsed the info it looks like it registers all the message ids and > remembers the folders. So it would be enough to remember the MID and > then make Gnus find it. But I think a user needs to enable that explicitly, so one cannot rely on this feature being available... And the user has to setup `gnus-refer-article-method' properly... ,[ (info "(gnus)Registry Article Refer Method") ] |The `nnregistry' refer method does exactly that. It has the | advantage that an article may be found regardless of the group it's | in--provided its `Message-ID' is known to the registry. It can be | enabled by augmenting the start-up file with something along these | lines: | | ;; Keep enough entries to have a good hit rate when referring to an | ;; article using the registry. Use long group names so that Gnus | ;; knows where the article is. | (setq gnus-registry-max-entries 2500 |gnus-registry-use-long-group-names t) | | (gnus-registry-initialize) | | (setq gnus-refer-article-method |'(current | (nnregistry) | (nnweb "gmane" (nnweb-type gmane ` Bye, Tassilo ___ 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: little problem with installing org with el-get
>>> I am trying to follow the Org-mode from the git head using el-get. how >>> ever its not working as intended. even after el-get-update and >>> el-get-init , i see org-version is set to 7.1 (I am using emacs from >>> git repo few days ago built) instead of 7.3 release_7.3xxx dirty. >>> >>> I think this is nothing to do with my /init.el/. As a work around I >>> removed org folder from the emacs installation. After doing so it is >>> showing the correct version which is installed. >>> >>> I dont know this is a problem with el-get. is anybody using el-get to >>> maintain your org and other elisp code. > > As I said, i could solve my problem with deleting the org directory > (bad idea indeed , loosing the fallback option) in my emacs > installation. > My question was why el-get is not able to init the Org > while it is doing good with other packages. > I haven't used el-get so I cannot comment on it. But, from the nature of the description it looks like it could be an issue with load-path. Have you done C-h v load-path and verified that it is OK? Jambunathan K. ___ 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: little problem with installing org with el-get
Dear Jambunathan, Thanks for the reply., Jambunathan K writes: > Unless you specifically want to use el-get there are various options > available. > > See 'Keeping Current' section of http://orgmode.org/worg/org-faq.php for > various options. > > Since you say you are a noob I suggest that you use the Package > Manager - ELPA. previously I used ELPA to maintain few of my plugins. but i found (may be a wrong estimation) that el-get will be more elegant to follow the plugins using not only as a wrapper to ELPA and other plugins with additional protocols like git, http ,svn and more. Problems with ELPA are I had to put ELPA directory into my .emacs.d repo to exchange the my configurations between different computers. so when ever I add/delete a plugin by ELPA, I will have big changes in my .emacs.d repo. Other thing is manual checking for the plugin updates. that's why i chose to use el-get. Again, may be experienced git&elisp users can overcome these problems quite easily. > > Jambunathan K. > > yagnesh raghava yakkala writes: > >> Dear list, >> >> I recently dove into emacs world because of org. This is my first mail >> to list so let me thank to Org-mode , Carsten and all contributors. >> >> Now to the problem, >> >> I am trying to follow the Org-mode from the git head using el-get. how >> ever its not working as intended. even after el-get-update and >> el-get-init , i see org-version is set to 7.1 (I am using emacs from >> git repo few days ago built) instead of 7.3 release_7.3xxx dirty. >> >> I think this is nothing to do with my /init.el/. As a work around I >> removed org folder from the emacs installation. After doing so it is >> showing the correct version which is installed. >> >> I dont know this is a problem with el-get. is anybody using el-get to >> maintain your org and other elisp code. As I said, i could solve my problem with deleting the org directory (bad idea indeed , loosing the fallback option) in my emacs installation. My question was why el-get is not able to init the Org while it is doing good with other packages. if this is not so interesting/important, please ignore this thread as closed Since I am having a working git head org installation. Thanks & Regards, Yagnesh [deleted the tail] ___ 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: [PATCH 2/2] Fix broken CUSTOM_ID links
Hi Jambunathan, did you already react on this message? I cannot seem to find your reply. Thanks! - Carsten On Nov 12, 2010, at 4:50 PM, Carsten Dominik wrote: Hi Jambunata, this looks good, However, I would like you to make a change to the patch more more clarity. Could you please write (or preferred target) instead of remove as the ID to be inserted? Even though these are the same, the first version is a lot clearer. With this change, I will accept the patch. Thanks! - Carsten On Nov 8, 2010, at 7:39 AM, Jambunathan K wrote: Carsten On Nov 5, 2010, at 6:53 PM, Jambunathan K wrote: Note the 'H:1' in options line. Export this to HTML. Note that CUSTOMID link is broken. A snippet of relevant HTML section is attached below. Change 'H:1' to 'H:3' note that there is no more brokenness. Possible root cause: When headlines are turned to list 'extra- targets' are not identified correctly. That is correct - Org does not assign IDs or names to list items, so it has no place to link to. This could probably be fixed - anyone would like to fix this? I am attaching a patch. Hope it does the right thing. --- before.html 2010-11-08 19:01:13.796875000 +0530 +++ after.html 2010-11-08 19:00:57.859375000 +0530 @@ -7,7 +7,7 @@ tmp - + @@ -101,7 +101,7 @@ - a>Target with CUSTOMID + a>Target with CUSTOMID One @@ -200,7 +200,7 @@ Author: Jambunathan K href ="mailto:kjambunat...@gmail.com";>-Date: 2010-11-08 18:57:46 +Date: 2010-11-08 18:56:05 HTML generated by org-mode 7.3 in emacs 23 <0002-Fix-broken-CUSTOM_ID-links-to-outline-levels-exporte.patch> - Carsten (This bug is unrelated to any of the previous internal link bugs that I have reported) # Input file #+OPTIONS: H:1 * Links ** Targets *** Fuzzy Target *** Target with CUSTOMID :PROPERTIES: :CUSTOM_ID: aabbccddeeff :END: *** Dedicated Target # <> *** <<>> ** References *** References to Fuzzy Target This is a link to [[Fuzzy Target]]. *** References to CUSTOMID links This link to [[#aabbccddeeff][CUSTOMID Target]] is broken. *** References to Dedicated Target There is a link to nodesc [[Dedicated Target]] here. There is a link to [[Dedicated%20Target][Jump to Dedicated Target]] here. *** References to Radioed Links This section has references to Radioed Target. One more reference to Radioed Target. #+begin_src html Target with CUSTOMID References to CUSTOMID links This link to CUSTOMID Target is broken. #+end_src Jambunathan K. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Edit source buffer in same frame
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi I know that it was discussed here, but I can't find it anymore - sorry: I am looking for the option, that, when C-c ' in a source block, the source edit buffer does not open in a new frame, but uses the one from which C-c ' was called. Thanks, Rainer - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Tel:+33 - (0)9 53 10 27 44 Cell: +27 - (0)8 39 47 90 42 Fax (SA): +27 - (0)8 65 16 27 82 Fax (D) : +49 - (0)3 21 21 25 22 44 Fax (FR): +33 - (0)9 58 10 27 44 email: rai...@krugs.de Skype: RMkrug -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkzj11sACgkQoYgNqgF2egpwzQCfdR+bj2AONO9zeNbRKcay6SxH POEAnRqjdxJp/VI3z285tNMvS/VfhnSh =Y3Qx -END 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] proposal for enhanced org-get-priority function
On 11/17/2010 3:16 AM, Carsten Dominik wrote: Hi I.S. I have not added you patch as it is, because in some ways the syntax it adds is questionable, and, as others have pointed out, sorting can be done in different ways, too. However, instead, I have introduced a variable that can be set to a user-defined function to compute the base priority of a node. So you can simply put your function into that variable and continue to use your special syntax, with us making it an official Org syntax. The name of the variable is org-get-priority-function. I hope this helps. - Carsten Thank you. That is a fine solution for me. -- 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] Re: [REQUEST] orgtbl-ctrl-c-ctrl-c-hook
If you plan to submit more patches, you need to sign the FSF papers, please. Cheers. - Carsten On Nov 17, 2010, at 2:06 PM, Seweryn Kokot wrote: Carsten Dominik gmail.com> writes: this is good, I have applied the patch. The only change I made was to return the number of sent tables instead of t. Thanks for the patch, and thanks for going through iterations to get this right. Hi Carsten, My pleasure :-) This was my first patch, so next time it should go smoother. Thanks for guidance. Seweryn ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: [REQUEST] orgtbl-ctrl-c-ctrl-c-hook
Carsten Dominik gmail.com> writes: > > this is good, I have applied the patch. The only change I made was to > return the number of sent tables instead of t. > > Thanks for the patch, and thanks for going through iterations to > get this right. > Hi Carsten, My pleasure :-) This was my first patch, so next time it should go smoother. Thanks for guidance. Seweryn ___ 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: [REQUEST] orgtbl-ctrl-c-ctrl-c-hook
Hi Seweryn this is good, I have applied the patch. The only change I made was to return the number of sent tables instead of t. Thanks for the patch, and thanks for going through iterations to get this right. - Carsten On Nov 17, 2010, at 1:41 PM, Seweryn Kokot wrote: Carsten Dominik gmail.com> writes: Should the be run only if the sending was successful? Or also for tables where have no ORGTBD SEND statement? We could make orgtbl-send-table return a value indicating if sending has taken place. We might want to call the hook orgtbl-after-send-table-hook... What about this patch? --- h:/org-mode/lisp/org-table.el 2010-11-16 11:17:36.0 +0100 +++ h:/org-mode/lisp/org-table-new.el 2010-11-17 13:35:58.0 +0100 @@ -48,6 +48,12 @@ (defvar org-export-html-table-tag) ; defined in org-exp.el (defvar constants-unit-system) +(defvar orgtbl-after-send-table-hook nil + "Hook for functions attaching to `C-c C-c', if the table is sent. +This can be used to add additional functionality after the table is sent +to the receiver position, othewise, if table is not sent, the functions +are not run.") + (defcustom orgtbl-optimized (eq org-enable-table-editor 'optimized) "Non-nil means use the optimized table editor version for `orgtbl- mode'. In the optimized version, the table editor takes over all simple keys that @@ -3726,10 +3732,11 @@ (goto-char action) (org-table-maybe-eval-formula) (if arg - (call-interactively 'org-table-recalculate) - (org-table-maybe-recalculate-line)) + (call-interactively 'org-table-recalculate) + (org-table-maybe-recalculate-line)) (call-interactively 'org-table-align) - (orgtbl-send-table 'maybe)) + (when (orgtbl-send-table 'maybe) + (run-hooks 'orgtbl-after-send-table-hook))) ((eq action 'recalc) (save-excursion (beginning-of-line 1) @@ -3943,7 +3950,10 @@ (orgtbl-send-replace-tbl name txt)) (setq ntbl (1+ ntbl))) (message "Table converted and installed at %d receiver location %s" - ntbl (if (> ntbl 1) "s" "") + ntbl (if (> ntbl 1) "s" "")) + (if (> ntbl 0) + t + nil (defun org-remove-by-index (list indices &optional i0) "Remove the elements in LIST with indices in INDICES. Diff finished. Wed Nov 17 13:38:17 2010 ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: [Babel] Executing sh code within sessions
Hi Eric, > "Eric Schulte" wrote: >> Yes, I've noticed the shell session evaluation problems as well. I think >> one possible solution is for us to move from the current schema of echoing >> a babel-specific marker to indicate that evaluation has completed (which >> isn't working very well and is fairly ugly to boot) and move towards >> something more like what Dan has done with R, where the output is written >> to a file, and we check for that file to be created to signal the end of >> session based evaluation. > > Will that handle ssh remote execution? I still have no clue to do that via > the sh code blocks, but that's what I'm targetting to. Therefore, the need > for a session.: > > 1. code block to open the ssh connection > 2. code block with some code > 3. code block with other code > 4. code block with logout > > >> This is certainly something that needs to be addressed, however I for one >> won't have any time over the next week (I'm attending a conference). >> >> Rest assured this issue is in our inbox. :) > > Thanks a lot for your continuous support. Just for your information... After having chased a problem for making Tramp work -- that was caused by an overriden PS1 setting --, here is how Tramp does: Tramp needs a special prompt, in order to distinguish command output and, hmm, the prompt. It does set PS1 to '$ ' (and $TERM to 'dumb'). Don't know if this could be a solution here: set the prompt (instead of letting it customizable)? Best regards, Seb -- Sébastien Vauban ___ 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: [REQUEST] orgtbl-ctrl-c-ctrl-c-hook
Carsten Dominik gmail.com> writes: > > Should the be run only if the sending was successful? Or also for > tables > where have no ORGTBD SEND statement? We could make orgtbl-send-table > return a value indicating if sending has taken place. > > We might want to call the hook orgtbl-after-send-table-hook... What about this patch? --- h:/org-mode/lisp/org-table.el 2010-11-16 11:17:36.0 +0100 +++ h:/org-mode/lisp/org-table-new.el 2010-11-17 13:35:58.0 +0100 @@ -48,6 +48,12 @@ (defvar org-export-html-table-tag) ; defined in org-exp.el (defvar constants-unit-system) +(defvar orgtbl-after-send-table-hook nil + "Hook for functions attaching to `C-c C-c', if the table is sent. +This can be used to add additional functionality after the table is sent +to the receiver position, othewise, if table is not sent, the functions +are not run.") + (defcustom orgtbl-optimized (eq org-enable-table-editor 'optimized) "Non-nil means use the optimized table editor version for `orgtbl-mode'. In the optimized version, the table editor takes over all simple keys that @@ -3726,10 +3732,11 @@ (goto-char action) (org-table-maybe-eval-formula) (if arg - (call-interactively 'org-table-recalculate) - (org-table-maybe-recalculate-line)) + (call-interactively 'org-table-recalculate) + (org-table-maybe-recalculate-line)) (call-interactively 'org-table-align) - (orgtbl-send-table 'maybe)) + (when (orgtbl-send-table 'maybe) + (run-hooks 'orgtbl-after-send-table-hook))) ((eq action 'recalc) (save-excursion (beginning-of-line 1) @@ -3943,7 +3950,10 @@ (orgtbl-send-replace-tbl name txt)) (setq ntbl (1+ ntbl))) (message "Table converted and installed at %d receiver location%s" - ntbl (if (> ntbl 1) "s" "") + ntbl (if (> ntbl 1) "s" "")) + (if (> ntbl 0) + t + nil (defun org-remove-by-index (list indices &optional i0) "Remove the elements in LIST with indices in INDICES. Diff finished. Wed Nov 17 13:38:17 2010 ___ 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] Add a hook with #+BIND?
Hi, Can I use #+BIND to add an exporter hook for the current document? For instance, I have a function to postprocess HTML exports for blog posts. I could turn it on for all HTML exports with : (org-add-hook 'org-export-html-final-hook 'my-org-postprocess-blog-post) But that's not what I want, I want to turn it on for certain documents only. Can I do that with the #+BIND option, and how do I write it? For reference, I've tried the following without success. #+BIND: org-export-html-final-hook (my-org-postprocess-blog-post) #+BIND: org-export-html-final-hook '(my-org-postprocess-blog-post) Yours, Christian ___ 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: HTML export and blogging to blogger.com
Hi, Samuel Wales wrote: So I guess I'd like to know if: 1) anybody has a /hook in the exporter/ to unfill paragraphs, or This is what I've come up with for posting comments on WordPress blogs, without tags and linebreaks. It can probably be written more elegantly, but it does what I need. Haven't tried Blogger but possibly it works for you as well. (defun my-org-postprocess-blog-post () "Adapt exported HTML to blogs that get confused by and newlines." (let ((fill-column (point-max))) ; h/t Chris Lowry ;; p tags (goto-char (point-min)) (while (re-search-forward "" nil t) (replace-match "")) ;; unfill (fill-region start end nil) ; with fill-column set really huge ;; delete superfluous blank lines (is there a better way?) (goto-char (point-min)) (while (re-search-forward "\n\n+" nil t) (previous-line) (delete-blank-lines (org-add-hook 'org-export-html-final-hook 'my-org-postprocess-blog-post) 2) anybody has a way for the HTML to instruct the browser to /ignore newlines/ I don't think that's a viable option across platforms. Yours, Christian ___ 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: little problem with installing org with el-get
Unless you specifically want to use el-get there are various options available. See 'Keeping Current' section of http://orgmode.org/worg/org-faq.php for various options. Since you say you are a noob I suggest that you use the Package Manager - ELPA. Jambunathan K. yagnesh raghava yakkala writes: > Dear list, > > I recently dove into emacs world because of org. This is my first mail > to list so let me thank to Org-mode , Carsten and all contributors. > > Now to the problem, > > I am trying to follow the Org-mode from the git head using el-get. how > ever its not working as intended. even after el-get-update and > el-get-init , i see org-version is set to 7.1 (I am using emacs from > git repo few days ago built) instead of 7.3 release_7.3xxx dirty. > > I think this is nothing to do with my /init.el/. As a work around I > removed org folder from the emacs installation. After doing so it is > showing the correct version which is installed. > > I dont know this is a problem with el-get. is anybody using el-get to > maintain your org and other elisp code. > > in my init.el I have el-get-sources setup as the following. > > -- > (setq el-get-sources > '( > (:name magit >:after (lambda () (global-set-key (kbd "C-x C-z") > 'magit-status))) > > (:name org-mode > :type git > :url "git://repo.or.cz/org-mode.git" > :info "doc" > :build ("make clean" "make" "make doc") > :load-path ("lisp" "contrib/lisp") > :features org-install) > (:name smex > :type git > :url "http://github.com/nonsequitur/smex.git";) > > (:name el-get > :type git > :url "git://github.com/dimitri/el-get.git" > :features el-get > :load"el-get.el") > )) > --- > > Apologies if my terminology and language confuses you. > > Regards., > Yagnesh > > PS: I am almost a noob to elisp and even to programming. so please > bear with me. I am sending this from /gnus/ for the first time hoping to > reach the list. > > > ___ > 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] little problem with installing org with el-get
Dear list, I recently dove into emacs world because of org. This is my first mail to list so let me thank to Org-mode , Carsten and all contributors. Now to the problem, I am trying to follow the Org-mode from the git head using el-get. how ever its not working as intended. even after el-get-update and el-get-init , i see org-version is set to 7.1 (I am using emacs from git repo few days ago built) instead of 7.3 release_7.3xxx dirty. I think this is nothing to do with my /init.el/. As a work around I removed org folder from the emacs installation. After doing so it is showing the correct version which is installed. I dont know this is a problem with el-get. is anybody using el-get to maintain your org and other elisp code. in my init.el I have el-get-sources setup as the following. -- (setq el-get-sources '( (:name magit :after (lambda () (global-set-key (kbd "C-x C-z") 'magit-status))) (:name org-mode :type git :url "git://repo.or.cz/org-mode.git" :info "doc" :build ("make clean" "make" "make doc") :load-path ("lisp" "contrib/lisp") :features org-install) (:name smex :type git :url "http://github.com/nonsequitur/smex.git";) (:name el-get :type git :url "git://github.com/dimitri/el-get.git" :features el-get :load"el-get.el") )) --- Apologies if my terminology and language confuses you. Regards., Yagnesh PS: I am almost a noob to elisp and even to programming. so please bear with me. I am sending this from /gnus/ for the first time hoping to reach the list. ___ 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: HTML export and blogging to blogger.com
Samuel Wales writes: > Hi Nick, > > That is a great idea. > > Unfortunately, that option is simply not there for me. > > In Firefox and emacs-w3m, I only get: > > Reader Comments > (*) Allow > ( ) Don't allow > Backlinks > ( ) Allow > (*) Don't allow > > And strangely do not get what you get. I tried reducing fonts in > Firefox also; the same thing showed up. > > I wonder if we are using different versions of Blogger? This might be true. At the bottom of the Settings | Basic tab is the entry "Select post editor". The "Updated editor" has features that might be apropos to these line break problems. http://www.google.com/support/blogger/bin/answer.py?answer=156829 > > Then I went to Settings -> Formatting and found this: > > - > > Convert line breaks > > If Yes is selected, single hard-returns entered in the Post Editor > will be replaced with single tags in your blog, and two > hard-returns will be replaced with two tags (). > > - > > But I set it to No and there was no difference; the paragraphs did not > get filled. > > So I guess we are back to my 3 questions: unfill hook, HTML unfill, or > better unfill-region. > > > Samuel > > ___ > 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: [REQUEST] orgtbl-ctrl-c-ctrl-c-hook
Carsten Dominik gmail.com> writes: > Should the be run only if the sending was successful? Or also for > tables > where have no ORGTBD SEND statement? We could make orgtbl-send-table > return a value indicating if sending has taken place. > > We might want to call the hook orgtbl-after-send-table-hook... Yes, in my case I need to modify the exported table only if sending has taken place. And agree that the "orgtbl-after-send-table-hook" name is better. Seweryn ___ 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: [REQUEST] orgtbl-ctrl-c-ctrl-c-hook
Hi Seweryn, this is much better. However, I still want to clarify: On Nov 17, 2010, at 10:58 AM, Seweryn Kokot wrote: Carsten Dominik gmail.com> writes: I am a bit confused by this patch. You do call the hook after C-c C-c has done its thing. Which is OK, but this is not what the documentation in your hook variable says. That documentation seems to have been copied from the normal ctrl-c-ctrl-c hook, and these hooks are used in a different way: They establish *alternative* functionality to the normal C-c C-c actions. So if any of the hook functions returns a non-nil value, the normal C-c C-c functionality will *not* be executed. So what are your true intentions, and can you make code and documentation macht up? Thank for you help. Indeed, the previous patch was confusing. I've done a new patch below. Is it correct now? regards, Seweryn --- h:/org-mode/lisp/org-table.el 2010-11-16 11:17:36.0 +0100 +++ h:/org-mode/lisp/org-table-new.el 2010-11-17 10:54:22.0 +0100 @@ -48,6 +48,11 @@ (defvar org-export-html-table-tag) ; defined in org-exp.el (defvar constants-unit-system) +(defvar orgtbl-ctrl-c-ctrl-c-hook nil + "Hook for functions attaching themselves to `C-c C-c'. +This can be used to add additional functionality after the table is sent +to the receiver position.") Should the be run only if the sending was successful? Or also for tables where have no ORGTBD SEND statement? We could make orgtbl-send-table return a value indicating if sending has taken place. We might want to call the hook orgtbl-after-send-table-hook... - Carsten + (defcustom orgtbl-optimized (eq org-enable-table-editor 'optimized) "Non-nil means use the optimized table editor version for `orgtbl- mode'. In the optimized version, the table editor takes over all simple keys that @@ -3729,7 +3734,8 @@ (call-interactively 'org-table-recalculate) (org-table-maybe-recalculate-line)) (call-interactively 'org-table-align) - (orgtbl-send-table 'maybe)) + (orgtbl-send-table 'maybe) + (run-hooks 'orgtbl-ctrl-c-ctrl-c-hook)) ((eq action 'recalc) (save-excursion (beginning-of-line 1) Diff finished. Wed Nov 17 10:54:46 2010 ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: [REQUEST] orgtbl-ctrl-c-ctrl-c-hook
Carsten Dominik gmail.com> writes: > I am a bit confused by this patch. You do call the hook after C-c C-c > has done its thing. Which is OK, but this is not what the > documentation in your hook variable says. That documentation seems to > have been copied from the normal ctrl-c-ctrl-c hook, and these hooks > are used in a different way: They establish *alternative* > functionality to the normal C-c C-c actions. So if any of the hook > functions returns a non-nil value, the normal C-c C-c functionality > will *not* be executed. > > So what are your true intentions, and can you make code and > documentation macht up? Thank for you help. Indeed, the previous patch was confusing. I've done a new patch below. Is it correct now? regards, Seweryn --- h:/org-mode/lisp/org-table.el 2010-11-16 11:17:36.0 +0100 +++ h:/org-mode/lisp/org-table-new.el 2010-11-17 10:54:22.0 +0100 @@ -48,6 +48,11 @@ (defvar org-export-html-table-tag) ; defined in org-exp.el (defvar constants-unit-system) +(defvar orgtbl-ctrl-c-ctrl-c-hook nil + "Hook for functions attaching themselves to `C-c C-c'. +This can be used to add additional functionality after the table is sent +to the receiver position.") + (defcustom orgtbl-optimized (eq org-enable-table-editor 'optimized) "Non-nil means use the optimized table editor version for `orgtbl-mode'. In the optimized version, the table editor takes over all simple keys that @@ -3729,7 +3734,8 @@ (call-interactively 'org-table-recalculate) (org-table-maybe-recalculate-line)) (call-interactively 'org-table-align) - (orgtbl-send-table 'maybe)) + (orgtbl-send-table 'maybe) + (run-hooks 'orgtbl-ctrl-c-ctrl-c-hook)) ((eq action 'recalc) (save-excursion (beginning-of-line 1) Diff finished. Wed Nov 17 10:54:46 2010 ___ 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: [REQUEST] orgtbl-ctrl-c-ctrl-c-hook
Hi Seweryn, On Nov 17, 2010, at 10:10 AM, Seweryn Kokot wrote: Carsten Dominik gmail.com> writes: On Nov 17, 2010, at 9:19 AM, Seweryn Kokot wrote: Hi, It need to attach a function to C-c C-c keybinding when exporting a table in orgtbl-mode so would be nice to have orgtbl-ctrl-c-ctrl-c-hook similar to org-ctrl-c-ctrl-c-hook. This is a reasonable request - please make me a patch. See the following patch. It seems to work in my case, but please correct it if necessary because I don't know if (run-hook-with-args-until-success 'orgtbl- ctrl-c-ctrl-c-hook) line is in the right place. Regards, Seweryn --- h:/org-mode/lisp/org-table.el 2010-11-16 11:17:36.0 +0100 +++ h:/org-mode/lisp/org-table-new.el 2010-11-17 10:07:34.0 +0100 @@ -48,6 +48,15 @@ (defvar org-export-html-table-tag) ; defined in org-exp.el (defvar constants-unit-system) +(defvar orgtbl-ctrl-c-ctrl-c-hook nil + "Hook for functions attaching themselves to `C-c C-c'. +This can be used to add additional functionality to the C-c C-c key which +executes context-dependent commands. +Each function will be called with no arguments. The function must check +if the context is appropriate for it to act. If yes, it should do its +thing and then return a non-nil value. If the context is wrong, +just do nothing and return nil.") + (defcustom orgtbl-optimized (eq org-enable-table-editor 'optimized) "Non-nil means use the optimized table editor version for `orgtbl- mode'. In the optimized version, the table editor takes over all simple keys that @@ -3729,7 +3738,8 @@ (call-interactively 'org-table-recalculate) (org-table-maybe-recalculate-line)) (call-interactively 'org-table-align) - (orgtbl-send-table 'maybe)) + (orgtbl-send-table 'maybe) + (run-hook-with-args-until-success 'orgtbl-ctrl-c-ctrl-c-hook)) ((eq action 'recalc) (save-excursion (beginning-of-line 1) I am a bit confused by this patch. You do call the hook after C-c C-c has done its thing. Which is OK, but this is not what the documentation in your hook variable says. That documentation seems to have been copied from the normal ctrl-c-ctrl-c hook, and these hooks are used in a different way: They establish *alternative* functionality to the normal C-c C-c actions. So if any of the hook functions returns a non-nil value, the normal C-c C-c functionality will *not* be executed. So what are your true intentions, and can you make code and documentation macht up? Thanks - Carsten , and finished. Wed Nov 17 10:08:00 2010 ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Bastien is going to become the maintainer of Org mode in January
Carsten Dominik writes: > after 7 years of responsibility for Org-mode, it is time for > me to let go and step down as the maintainer of Org-mode. Thanks for everything and "may the text be with you"! :-) I've always been impressed by how fast, yet smooth org-mode has developed in the past two or so years. > I am very excited that I have found Bastien Guerry willing > to take over. Congratualations, Bastien. While I'm at it, thank you (and all the contributors) for worg, that was what finally made me chose org-mode. Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Factory and User Sound Singles for Waldorf Blofeld: http://Synth.Stromeko.net/Downloads.html#WaldorfSounds ___ 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: [REQUEST] orgtbl-ctrl-c-ctrl-c-hook
Carsten Dominik gmail.com> writes: > > > On Nov 17, 2010, at 9:19 AM, Seweryn Kokot wrote: > > > Hi, > > > > It need to attach a function to C-c C-c keybinding when exporting a > > table in > > orgtbl-mode so would be nice to have orgtbl-ctrl-c-ctrl-c-hook > > similar to > > org-ctrl-c-ctrl-c-hook. > > This is a reasonable request - please make me a patch. See the following patch. It seems to work in my case, but please correct it if necessary because I don't know if (run-hook-with-args-until-success 'orgtbl- ctrl-c-ctrl-c-hook) line is in the right place. Regards, Seweryn --- h:/org-mode/lisp/org-table.el 2010-11-16 11:17:36.0 +0100 +++ h:/org-mode/lisp/org-table-new.el 2010-11-17 10:07:34.0 +0100 @@ -48,6 +48,15 @@ (defvar org-export-html-table-tag) ; defined in org-exp.el (defvar constants-unit-system) +(defvar orgtbl-ctrl-c-ctrl-c-hook nil + "Hook for functions attaching themselves to `C-c C-c'. +This can be used to add additional functionality to the C-c C-c key which +executes context-dependent commands. +Each function will be called with no arguments. The function must check +if the context is appropriate for it to act. If yes, it should do its +thing and then return a non-nil value. If the context is wrong, +just do nothing and return nil.") + (defcustom orgtbl-optimized (eq org-enable-table-editor 'optimized) "Non-nil means use the optimized table editor version for `orgtbl-mode'. In the optimized version, the table editor takes over all simple keys that @@ -3729,7 +3738,8 @@ (call-interactively 'org-table-recalculate) (org-table-maybe-recalculate-line)) (call-interactively 'org-table-align) - (orgtbl-send-table 'maybe)) + (orgtbl-send-table 'maybe) + (run-hook-with-args-until-success 'orgtbl-ctrl-c-ctrl-c-hook)) ((eq action 'recalc) (save-excursion (beginning-of-line 1) Diff finished. Wed Nov 17 10:08:00 2010 ___ 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: HTML export and blogging to blogger.com
John Hendy writes: [...] > There was also a reference in the original post below to > longlines-mode which (from my quick skim) seems to do what fill mode > does but with "soft" returns; it only appears to be filled but in > reality is not altering actual file line breaks. I tried this and can > verify that when I save from longlines mode it is not inserting actual > line breaks (if I use "cat file.org" there are no line breaks) whereas > with fill the line breaks are definitely inserted into the > file... however it seems that org exports to html how the file appears > in the buffer, not what's in the file. I did want to toss it out there > in case someone knows how to integrate it somehow. I apologise for jumping into the middle of a conversation but your reference to longlines-mode brings to mind visual-line-mode which was introduced in Emacs 23 (I believe). This mode turns on =word-wrap= as well which makes the text look like it has been filled (i.e. soft returns in your parlance) without actually changing the underlying text. -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1 : using Org-mode version 7.3 (release_7.3.80.g0265) ___ 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] [REQUEST] orgtbl-ctrl-c-ctrl-c-hook
On Nov 17, 2010, at 9:19 AM, Seweryn Kokot wrote: Hi, It need to attach a function to C-c C-c keybinding when exporting a table in orgtbl-mode so would be nice to have orgtbl-ctrl-c-ctrl-c-hook similar to org-ctrl-c-ctrl-c-hook. This is a reasonable request - please make me a patch. - Carsten Or are there any other ways to do it? Thanks, Seweryn ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [REQUEST] orgtbl-ctrl-c-ctrl-c-hook
Hi, It need to attach a function to C-c C-c keybinding when exporting a table in orgtbl-mode so would be nice to have orgtbl-ctrl-c-ctrl-c-hook similar to org-ctrl-c-ctrl-c-hook. Or are there any other ways to do it? Thanks, Seweryn ___ 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] proposal for enhanced org-get-priority function
Hi I.S. I have not added you patch as it is, because in some ways the syntax it adds is questionable, and, as others have pointed out, sorting can be done in different ways, too. However, instead, I have introduced a variable that can be set to a user-defined function to compute the base priority of a node. So you can simply put your function into that variable and continue to use your special syntax, with us making it an official Org syntax. The name of the variable is org-get-priority-function. I hope this helps. - Carsten On Nov 15, 2010, at 7:05 PM, I.S. wrote: On 11/15/2010 7:07 AM, Juan Pechiar wrote: I'm against feature-itis. Orgmode has been losing some of its elegance to feature requests. And by 'elegance' I mean ease of learning and using and maintaining, and not having to decide between N different ways of achieving something just because so many border-case features exist. The agenda is for things you have to do today. Just do them. If you need ordering, you have outlines and lists, properties, LISP, hooks, column view, custom agenda views, etc. Regards, .j. On Mon, Nov 15, 2010 at 11:25:30AM +0100, Carsten Dominik wrote: I would like to have a show of hands who is interested in this treatment of finer priorities. That may be a fair point (although I tend to think that most of the features in orgmode are really useful). I'd like to point out, however, that the proposed change is completely backward compatible. If you don't want finer grained priorities, just don't add -. Personally, I vote yes because I find the priorities in TODO lists very useful. In addition, I often find that I want to insert a new item between two existing ones and therefore having fine-grained priorities makes this easy to do. -- Thanks, -I.S. - 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