Re: [Orgmode] Error when running org-babel-execute-buffer -- Wrong type argument: consp, nil
Eric Schulte wrote: > 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. > > ... > > Footnotes: > [1] > http://www.gnu.org/s/emacs/manual/html_node/elisp/Problems-with-Macros.html > After Konrad reported that this doesn't fix it, I tried it too with his simple org file and got the same error [fn:1]. So after trying the usual debugging tricks and coming up empty, I took a look at the ob.elc file and the problem was obvious: the macro was not expanded during compilation. I'm not sure how exactly we get to the ``consp nil'' error that way, but I'm pretty sure that the solution is to change the order of the macro and the function that uses it in ob.el, so the definition precedes the use. Cheers, Nick PS. I can now go to bed in peace... Footnotes: [fn:1] OT to the above: I had to name the session , otherwise python would report , | Traceback (most recent call last): | File "", line 5, in | File "", line 3, in main | NameError: global name 'days' is not defined ` Here for reference is my modification to Konrad's original example: --8<---cut here---start->8--- * Vacation days #+begin_src python :session foo :results silent days = 32+2+9 #+end_src ** Vacation <2010-10-28 Thu>-<2010-10-29 Fri> #+begin_src python :session foo :results silent days -= 2 #+end_src ** Remaining days #+begin_src python :session foo :results value days #+end_src #+results: : 41 --8<---cut here---end--->8--- ___ 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
On Thu, Nov 18, 2010 at 5:21 PM, Alan E. Davis wrote: > I am a keen user of org-mode, whose uses for which seem never to > become well defined: as soon as I think I understand it, it > morphs, or the horizons of my understanding recede from view. No > amount of praise can adequately pay tribute to the massively > ingenious organic entity that is org-mode. This has been the work > conceived of a rare intellect with unusually broad and creative > vision, and well executed. One such as myself, who dabbles > unafraid in the world of minds far better schooled and far more > brilliant than my own, finds the use for such tools as this an > expedient, towards his own purposes, as he tries almost hopelessly > to fathom its mysteries--and Carsten Dominick, seemingly a man of > uncommon intellectual clarity and humanity, the renaissance man, > perhaps has from time to time led me both willingly and patiently > through it's brambles and tangles and lighted the way. How you > have done this remains a humbling mystery. > > For both the personal advice and assistance, and the broad vision > that has nurtured this system, I would offer my humble thanks. I > for one felt relieved that you intend to stay involved. > You expressed pretty much all I wanted to say, Alan. I tried learning Emacs for over a decade but always dropped it due to its zillion of commands and crazy key combination. And when I found and started using Org, courtesy John Wiegley's tutorial (a planner refugee in 2008) those key chords started sinking into my muscle memory; and Org became a doorway to a richer and broader Emacs world. Carsten, you have been an inspiration to me personally with your extraordinary competence, dedication and human understanding. I wish I could emulate even a fraction of that. Org has been a mirror which showed me how truly messy and procrastinating I was. Sometimes I avoid it for the bitter truth it tells; but the alternatives are mediocre and mediocrity. So I keep coming back improving a little every time in this love-hate relationship. I couldn't be more thankful for your gift and I am proud to be (a little) part of this great community you have built. > And to Bastien, who has also on a number of occasions patiently > offered his insights, I also offer a "thank you," and a kind hope > for your stewardship of this project. > > Would that I could offer some more substantial to org-mode that > mostly a spectator's praise and appreciation. Perhaps in time. Bastien, thanks for creating Worg and stepping up to this large role. I feel safe having my life management system in your hands. -- Manish ___ 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] Mobile.org & UTF-8
I am running the latest git org-mode on Emacs 24 in Ubuntu. I also have an iPod with the latest version of MobileOrg, 1.5.1. I also use Dropbox. Just today I reinstalled everything on my iPod because I had problems synchronizing. For some reason Dropbox stopped the synchronization. I unlinked and then linked again to make it all work. Now I obtain the error: "Unable to detect file encoding, please re-save this file using UTF-8." I did some Googling and it appears that the problem was solved in the latest version of MobileOrg. I have not changed anything in my .emacs file and have never specified any encoding and before this evening I did not have any problems with MobileOrg. Thanks, Henri-Paul -- Henri-Paul Indiogine Email: hindiog...@gmail.com ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Inserting text into the part of an HTML document?
Erik Iverson wrote: > Stephen, > > There may be a better answer, but I see in the > doc-string for org-export-html-style, that: > > As the value of this option simply gets inserted into the HTML > header, you can \"misuse\" it to add arbitrary text to the header. > See also the variable `org-export-html-style-extra'. > > However, I doubt you want to use the 'org-export-html-style' variable, > since it looks like you have to specify the entire header, but > perhaps the 'style-extra' version will do what you want? > I don't know of a better answer, but it's OK to use org-export-html-style if you want. You don't need to specify the entire header: the default style header comes from org-export-html-style-default. However, the style-extra version *is* more convenient because it can be set per-file with #+STYLE: whatever you want 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] RFC: Consistent Latex (& html) publishing environment
On Thu, Nov 18, 2010 at 10:51:49PM -0500, Nick Dokos wrote: > [This doesn't seem to have made it out to the list for some reason, > so trying again.] > > Russell Adams wrote: > > > ... > > This is great, but pops up an emacs session. If I run emacs in --batch > > mode, it won't load my init file and so loses some of my export > > customizations... > > > > You can load your init file explicitly: > >emacs --batch --load ... Certainly! And yet, should I be depending on my init file while trying to provide a consistent environment across documents? That's the crux of the matter. Put everything into init files and use it for everything when it seems to need customization, or make a document completely selfcontained and somehow sync settings across docs? That's why I was asking how other folks accomplish similar tasks. Thanks. -- Russell Adamsrlad...@adamsinfoserv.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint:1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3 ___ 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] RFC: Consistent Latex (& html) publishing environment
[This doesn't seem to have made it out to the list for some reason, so trying again.] Russell Adams wrote: > ... > This is great, but pops up an emacs session. If I run emacs in --batch > mode, it won't load my init file and so loses some of my export > customizations... > You can load your init file explicitly: emacs --batch --load ... 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
[Orgmode] Backslash in a table breaks export to Docbook
I have a variety of org docs that tend to get infected with latex over time. Occasionally I'll export them to other formats, with different kinds of cleanup. Along the way I noticed this... Create the following doc: * Change History | \rowcolor[gray]{.8}Updated By | Date | Changes Made | |---+--+--| | / | <> | <> | | Check | Nov 18, 2010 | Test | Export to docbook via C-c C-e D Get "Invalid use of '\' in replacement text" The above is the minimum set to reproduce it - obviously the first doc had all the relevant latex includes to make rowcolor[gray] actually work ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: org-indent, org-inlinetask: patches on github
Hello, > Sébastien Vauban writes: > I tested the look and feel of the export to HTML and PDF. Works > fine. Good. > Works even better (IMHO) with the suggested template: [...] > The advantage is to get a real different look for the inlined task, > so that it gets your attention as it deserves it. Ok, I do not mind, as I do not use inline tasks. I trust you here. I have applied it on github (and corrected the misplaced ). If it is a sane default template for HTML, perhaps someone could tell me what its equivalent is for DocBook? > - Regarding LaTeX, my suggestion requires the =todonotes= LaTeX > package to be loaded in the header. For that one I'm not sure adding one more package to those already inserted by default is a good idea. Is =todonotes= standard in every LaTeX distribution? I think default templates should be clean and very low on requirements. This is not too hard for an user of this (undocumented) feature of Org to configure it to its needs after all. What do users (and maintainers) think about it? Regards, -- Nicolas ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] RFC: Consistent Latex (& html) publishing environment
I've had difficulties creating a consistent publishing environment, specifically for latex. I was curious how others did their workflow, or any recommendations the group may have. My latex documents are only of minor complexity, including images and the occasional multiple column area, a header and footer. I'm not a Latex expert, but I know enough to tweak my documents to match my expectations. I have tried using the customizable article types (org-export-latex-classes) to provide consistent pre-document latex header segments. Unfortunately I found I need to customize those frequently. Recently I have started using an article type of "none", which is an empty definition. Then I have manually specified each line in a #+LATEX_HEADER line at the beginning of the file. This works great for a single document, but then multiple documents begin to diverge. Then I have to go find the latest document I've created to use as a template, a non-optimal situation. One technique I have used successfully is to use a Makefile to cause my org documents to be compiled to latex, calling out to emacs and then pdflatex (twice for proper TOC) from there. -- .PHONY: all clean #OBJS := $(patsubst %.org, %.pdf, $(wildcard *.org)) OBJS := Target.pdf CRAP := $(patsubst %.org, %.pdf, $(wildcard *.org)) CRAP += $(patsubst %.org, %.aux, $(wildcard *.org)) CRAP += $(patsubst %.org, %.log, $(wildcard *.org)) CRAP += $(patsubst %.org, %.out, $(wildcard *.org)) CRAP += $(patsubst %.org, %.toc, $(wildcard *.org)) all: clean $(OBJS) clean: rm -f $(CRAP) $(OBJS) %.tex: %.org /usr/bin/emacs -nw \ --eval '(setq enable-local-variables :all)' \ $< \ -f org-export-as-latex \ -f save-buffers-kill-emacs %.pdf: %.tex pdflatex $< pdflatex $< -- This is great, but pops up an emacs session. If I run emacs in --batch mode, it won't load my init file and so loses some of my export customizations... So, what are other folks using? Any comments or suggestions? Thanks. -- Russell Adamsrlad...@adamsinfoserv.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint:1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3 ___ 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] Configuration query
Aloha Nicolas, On Nov 18, 2010, at 12:07 PM, Nicolas Goaziou wrote: Hello, Thomas S Dye writes: 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? What about making configuration variables buffer-local in the block you execute? Once the buffer is killed, you should be back to your previous configuration. For example: #+BEGIN_SRC emacs-lisp (make-local-variable 'sentence-end-double-space) (setq sentence-end-double-space t) #+END_SRC This looks like an excellent idea. Thanks! Tom ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Couple more videos of Org-mode clone in Vim
Hi Herbert, Herbert Sitz wrote: > For anybody interested I've posted a couple more videos of features in the > would-be Org-mode clone. First is showing basics of sparse-tree-search: > http://vimeo.com/16646716 > > And second is on tags: > http://vimeo.com/16650450 > > I'll try to put something together showing the agenda date views and custom > searches, which is what I've spent vast majority of time on. . . . Go on with your Org clone work. It really will ease my job of trying to impose it to my (Vim/Emacs) colleagues... Plus, you bring new nice ideas on the scene, such as: - number of lines instead of `...' - tags on the next line, in physically saved file (no change, presentation-wise) Excellent work, really!!! 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: org-indent, org-inlinetask: patches on github
Hi Nicolas, > Nicolas Goaziou wrote: >> To maintainers: >> - to sum it up, if you don't like the idea of templates, or how it is >> implemented, all commits but the last one are only fixes. >> - could you delete submissions from 11-04 and 11-06 (but _not_ from >> 10-26) on the patchwork server, as they are now included in the >> repo? >> >> I'm now waiting for comments from the 3-3.5 persons in the world using >> inline tasks! > > I guess I'm the last 0.5 user of inline tasks ;-) > > I really have no time just now, but I promise trying your patch in the next > coming 2 days. Promised. OK; this has been DEFERRED a bit, but DONE nonetheless... I tested the look and feel of the export to HTML and PDF. Works fine. Works even better (IMHO) with the suggested template: #+begin_src emacs-lisp ;; templates for inline tasks in various exporters (setq org-inlinetask-export-templates '((html "%s%s%s" '((unless (eq todo "") (format "%s%s " class todo todo priority)) heading content)) (latex "\\todo[inline]{\\textbf{\\textsf{%s %s}}\\linebreak{} %s}" '((unless (eq todo "") (format "\\textsc{%s%s}" todo priority)) heading content)) ;; [...] )) #+end_src The advantage is to get a real different look for the inlined task, so that it gets your attention as it deserves it. - Regarding HTML, if you don't replace your list environment by my proposition, I would at least exchange the position of the blank space. Better is: #+begin_src emacs-lisp (format "%s%s " ;; ^ ^ #+end_src Otherwise, when TODO keywords have background colors, you see the keyword with one space too much... - Regarding LaTeX, my suggestion requires the =todonotes= LaTeX package to be loaded in the header. Thanks for your work! 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] Inserting text into the part of an HTML document?
Stephen, There may be a better answer, but I see in the doc-string for org-export-html-style, that: As the value of this option simply gets inserted into the HTML header, you can \"misuse\" it to add arbitrary text to the header. See also the variable `org-export-html-style-extra'. However, I doubt you want to use the 'org-export-html-style' variable, since it looks like you have to specify the entire header, but perhaps the 'style-extra' version will do what you want? --Erik Stephen Eglen wrote: I'm using org-mode to export an html file of my org file. I'd like to add the following line to the ... section of the document: #+HTML: [This line tells search indexes not to index the file. http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=93710 ] but the HTML directive puts it in the body, rather than the head. Any ideas how I'd get it into the head? I tried +HTML_HEADER as an analogy to LATEX_HEADER, but that doesn't seem to be defined. Thanks, Stephen org-version "7.02trans" ___ 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] Configuration query
Hello, > Thomas S Dye writes: > 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? What about making configuration variables buffer-local in the block you execute? Once the buffer is killed, you should be back to your previous configuration. For example: #+BEGIN_SRC emacs-lisp (make-local-variable 'sentence-end-double-space) (setq sentence-end-double-space t) #+END_SRC Regards, -- Nicolas ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Inserting text into the part of an HTML document?
I'm using org-mode to export an html file of my org file. I'd like to add the following line to the ... section of the document: #+HTML: [This line tells search indexes not to index the file. http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=93710 ] but the HTML directive puts it in the body, rather than the head. Any ideas how I'd get it into the head? I tried +HTML_HEADER as an analogy to LATEX_HEADER, but that doesn't seem to be defined. Thanks, Stephen org-version "7.02trans" ___ 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: Beeminder/Kibotzer
Richard Lawrence berkeley.edu> writes: > > Hi all, > > I just came across this site, which looks really interesting: > > http://beeminder.com/about > > They provide a service for tracking progress toward (quanitifiable) > goals, and they show you a graph that includes: > > - your actual data > - a trend line/zone for your actual data > - an ideal trend line for progress toward your goal > - an ideal trend zone (the "Yellow brick road") > > Seems like a pretty neat tool for dealing with procrastination. > > Does anyone use Org to do anything like this? Between Org tables and > calling out to R or Gnuplot (both features I haven't used) it seems like > it shouldn't be too hard to do something similar. I'm curious if others > think this would be a valuable add-on to have around. > > Best, > Richard > > ___ > 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 > > Hi Richard, thank you for this idea - I have been thinking about doing something similar in Orgmode for some time. (I made a simple word count table that I fed into gnuplot to get a nice graph). But Beeminder indeed seems to be more than just a neat visualization. Apparently, it can make some guesses about your progress based on very few data entries. The idea of the "yellow brick road" is great: a simple visual feedback that tells you whether you are doing fine or should be worried. The Beeminder/Kibotzer folks have a short demo video online: http://quantifiedself.com/2010/10/bethany-soule-and-daniel-reeve.php In this video they talk about an Android app called Timepie (http://www.androlib.com/android.application.bsoule-timepie-pqxm.aspx) which they used to collect statistical data at random moments. This should be very easy to reproduce in Org. I am thinking of a specific capture template which pops up at a few times per day and stores your input in a separate table. Timepie would be even easier to use with MobileOrg. Imagemagick and Gnuplot could plot some graphs based on the table. However, the stochastic algorithm that Beeminder uses seems to do more than that. Since I am not a programmer, I cannot really help but simply express my support for the idea and would like to see more productivity features like that in Org (which has tremendously increased my productivity already). - Thomas ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [PATCH] byte compile warnings...
Current master produces the following warnings during byte-compile with Emacs 23.1 (some of those had already been introduced in 7.01trans): In end of data: org.el:19709:1:Warning: the function `orgtbl-send-table' is not known to be defined. ==> forward declaration for this function is missing In org-agenda-time-of-day-to-ampm: org-agenda.el:936:10:Warning: reference to free variable `org-agenda-time-leading-zero' ==> used before declaration, which can be moved up a bit In org-freemind-from-org-mode-node: org-freemind.el:924:42:Warning: called-interactively-p called with 1 argument, but accepts only 0 org-freemind.el:927:10:Warning: called-interactively-p called with 1 argument, but accepts only 0 In org-freemind-from-org-mode: org-freemind.el:955:10:Warning: called-interactively-p called with 1 argument, but accepts only 0 org-freemind.el:960:10:Warning: called-interactively-p called with 1 argument, but accepts only 0 In org-freemind-from-org-sparse-tree: org-freemind.el:980:42:Warning: called-interactively-p called with 1 argument, but accepts only 0 org-freemind.el:986:10:Warning: called-interactively-p called with 1 argument, but accepts only 0 In org-freemind-to-org-mode: org-freemind.el:1217:10:Warning: called-interactively-p called with 1 argument, but accepts only 0 ==> that is actually a missing "with-no-warnings" in a defmacro in org-macs In end of data: org-indent.el:301:1:Warning: the function `with-silent-modifications' is not known to be defined. ==> macro does not exist in Emacs 23.1 (and earlier). There's been an earlier thread on that commit: it should probably be aliased to org-unmodified for <23.2. In end of data: ob.el:1921:1:Warning: the following functions are not known to be defined: org-in-item-p, org-list-parse-list, org-list-to-generic, org-list-bottom-point In end of data: ob-ref.el:228:1:Warning: the function `org-in-item-p' is not known to be defined. ==> require org-list during compile The attached patch takes care of the warnings, but please check carefully - I don't really know if that macro definition does what I think it should do... >From 23fa9dab05cfb34a1aa676273435188807d7c0aa Mon Sep 17 00:00:00 2001 From: Achim Gratz Date: Thu, 18 Nov 2010 21:19:36 +0100 Subject: [PATCH] Keep byte compiler happy --- lisp/ob-ref.el |1 + lisp/ob.el |1 + lisp/org-agenda.el | 12 ++-- lisp/org-macs.el |8 +++- lisp/org.el|4 +++- 5 files changed, 18 insertions(+), 8 deletions(-) diff --git a/lisp/ob-ref.el b/lisp/ob-ref.el index e482cb8..83a4a75 100644 --- a/lisp/ob-ref.el +++ b/lisp/ob-ref.el @@ -51,6 +51,7 @@ ;;; Code: (require 'ob) (eval-when-compile + (require 'org-list) (require 'cl)) (declare-function org-remove-if-not "org" (predicate seq)) diff --git a/lisp/ob.el b/lisp/ob.el index 96c2744..0beed86 100644 --- a/lisp/ob.el +++ b/lisp/ob.el @@ -30,6 +30,7 @@ ;;; Code: (eval-when-compile + (require 'org-list) (require 'cl)) (require 'org-macs) diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index b7de45a..dfc70ca 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -921,6 +921,12 @@ This function makes sure that dates are aligned for easy reading." :group 'org-agenda :type 'boolean) +(defcustom org-agenda-time-leading-zero nil + "Non-nil means use leading zero for military times in agenda. +For example, 9:30am would become 09:30 rather than 9:30." + :group 'org-agenda-daily/weekly + :type 'boolean) + (defun org-agenda-time-of-day-to-ampm (time) "Convert TIME of a string like '13:45' to an AM/PM style time string." (let* ((hour-number (string-to-number (substring time 0 -3))) @@ -945,12 +951,6 @@ based on `org-agenda-timegrid-use-ampm'" (org-agenda-time-of-day-to-ampm time) time)) -(defcustom org-agenda-time-leading-zero nil - "Non-nil means use leading zero for military times in agenda. -For example, 9:30am would become 09:30 rather than 9:30." - :group 'org-agenda-daily/weekly - :type 'boolean) - (defcustom org-agenda-weekend-days '(6 0) "Which days are weekend? These days get the special face `org-agenda-date-weekend' in the agenda diff --git a/lisp/org-macs.el b/lisp/org-macs.el index 5a56123..c63b1b0 100644 --- a/lisp/org-macs.el +++ b/lisp/org-macs.el @@ -46,9 +46,15 @@ (if (or (> emacs-major-version 23) (and (>= emacs-major-version 23) (>= emacs-minor-version 2))) - (called-interactively-p ,kind) + (with-no-warnings (called-interactively-p ,kind)) ;; defined with no argument in <=23.1 (interactive-p +(if (or (<= emacs-major-version 23) + (and (<= emacs-major-version 23) + (< emacs-minor-version 2))) +(defmacro with-silent-modifications + (org-unmodified))) + (defmacro org-bound-and-true-p (var) "Return the value of symbol VAR if it is bound, else nil." `(and (boundp (quote ,var)) ,var)) diff --git a/lisp/org.el b/lisp/org.el index 02
Re: [Orgmode] Error when running org-babel-execute-buffer -- Wrong type argument: consp, nil
On 18 Nov 2010, at 01:07, Eric Schulte wrote: 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. Yes, nothing has changed: it works fine when I run from source code, it breaks (same error message as before) if I do a "make" in my org directory before starting emacs. Sorry, Konrad. ___ 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: Automatic screenshot insertion
Hi Jonathan, Jonathan BISSON wrote: > Here is a little function that allows a user to insert a screenshot easily. > Only works on unix-like systems where ImageMagick is installed (adapt "import" > to your screenshot program if needed). > > (defun my-screenshot () > "Take a screenshot into a unique-named file in the current buffer file > directory and insert a link to this file." > > (interactive) > (setq filename > (concat >(make-temp-name > (file-name-directory (buffer-file-name)) >) >".jpg" > ) > ) > > (call-process "import" nil nil nil filename) > (insert (concat "[[" filename "]]")) > (org-display-inline-images) > ) I find this to be a very smart idea. Maybe I'll never need it, but well thought! BTW, ImageMagick exists for Windows as well, so it just needs =import= to be in the path of executables... 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: Configuration query
Hi Thomas, "Thomas S. Dye" wrote: > Aloha Séb and Jörg, > > Thanks for these suggestions. I was hoping for something a bit more > fine-grained, so that only the settings that were changed in the file were > reset, and the values they were reset to were the ones they had, rather than > the ones in .emacs. It appears there is no standard way to do this, which > helps me on my way. Just the necessary values? Waouwww... Not easy, I guess. What you want, then, is some sort of rollback to a previous state of multiple different values. Just another idea launched in the air (never used that): wouldn't there be something to look at in the direction of Emacs sessions? Can we save sessions, and come back to a previously saved one? If yes, that could be the way to go... 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: Clean capture from command line?
Friedrich Delgado writes: > I use zsh and I already use this: > > ,[ ~/bin/uriescapepwd.pl ] > #!/usr/bin/perl -w > use URI::Escape qw/ uri_escape uri_escape_utf8 /; > use Cwd qw/getcwd abs_path/; > $pwd = abs_path(getcwd); > print uri_escape_utf8($pwd); > ` Woot, one step. Then I also did a quick filter. --- use URI::Escape qw/ uri_escape uri_escape_utf8 /; use Cwd qw/getcwd abs_path/; print uri_escape_utf8(<>); --- At that point, I could do: --- emacsclient -c org-protocol://capture:/I/file:`~/bin/uriescapepwd`/`~/bin/uriescapepwd`/`/usr/bin/zenity --entry --text="New TODO" |~/bin/uriescape` The 'I' selects template, in which I'm using :immediate-finish. That's one. For the 'Close the client frame' purpose, I applied the attached patch, and then I could, in my own myorg.el file: - ( defun asr-org-capture-finalize () "If we set the correct property in the capture template, then delete frame." ( if (org-capture-get :asr-delete-frame-on-finalize) (delete-frame) ) ) (add-hook 'org-capture-after-finalize-hook 'asr-org-capture-finalize ) - which lets me define a capture template with property :asr-delete-frame-on-finalize 1 and then use that template. Thanks, Eric and Friedrich... - Allen S. Rout >From 2086fe4be30d5383b9db4d5db91da6b03357c128 Mon Sep 17 00:00:00 2001 From: Allen S. Rout Date: Wed, 17 Nov 2010 12:52:02 -0500 Subject: [PATCH 3/3] Add post-finalize hook --- lisp/org-capture.el |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/lisp/org-capture.el b/lisp/org-capture.el index 2abe5c7..5d2f8d3 100644 --- a/lisp/org-capture.el +++ b/lisp/org-capture.el @@ -313,6 +313,12 @@ The remember buffer is still current when this hook runs." :group 'org-capture :type 'hook) +(defcustom org-capture-after-finalize-hook nil + "Hook that is run right after a capture process is finalized. + Suitable for window cleanup" + :group 'org-capture + :type 'hook) + ;;; The property list for keeping information about the capture process (defvar org-capture-plist nil @@ -548,6 +554,8 @@ bypassed." ;; Restore the window configuration before capture (set-window-configuration return-wconf)) + +(run-hooks 'org-capture-after-finalize-hook) (when abort-note (cond ((equal abort-note 'clean) -- 1.7.0.4 ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Automatic screenshot insertion
Here is a little function that allows a user to insert a screenshot easily. Only works on unix-like systems where ImageMagick is installed (adapt "import" to your screenshot program if needed). (defun my-screenshot () "Take a screenshot into a unique-named file in the current buffer file directory and insert a link to this file." (interactive) (setq filename (concat (make-temp-name (file-name-directory (buffer-file-name)) ) ".jpg" ) ) (call-process "import" nil nil nil filename) (insert (concat "[[" filename "]]")) (org-display-inline-images) ) Cheers, ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] How to use variable in org publish function
Hi Nick, It works perfectly, thanks a lot~ Chao On Thu, Nov 18, 2010 at 9:50 AM, Nick Dokos wrote: > Chao LU wrote: > > > 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? > > > > You need backquote (similar to quote, but allows selective evaluation > of internal structure) and the , (selective evaluation) mechanism: > > (setq org-publish-project-alist > `(("org-notes" > :base-directory ,org-source-dir) >)) > > See section 13.5 of the Emacs Lisp Reference manual for more details. > > HTH, > 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] including images for tex export, how?
Aloha wzzl, What did your link look like? Org-mode will export links with descriptions as links, but links without descriptions wrapped in an includegraphics environment: http://orgmode.org/manual/Images-in-LaTeX-export.html#Images-in-LaTeX-export All the best, Tom On Nov 17, 2010, at 11:54 AM, Stinky Wizzleteet wrote: Hi, I've tried adding a link to a picture so it would show up in the tex export. It doesn't get exported as an "\includegraphics" sort of deal, but as a hyperlink. Where, how can I fix this ? thanks, wzzl -- Stinky Wizzleteet thinks: Do not sleep in a eucalyptus tree tonight. ___ 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] including images for tex export, how?
Hi, I've tried adding a link to a picture so it would show up in the tex export. It doesn't get exported as an "\includegraphics" sort of deal, but as a hyperlink. Where, how can I fix this ? thanks, wzzl -- Stinky Wizzleteet thinks: Do not sleep in a eucalyptus tree tonight. ___ 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] Configuration query
Aloha Séb and Jörg, Thanks for these suggestions. I was hoping for something a bit more fine-grained, so that only the settings that were changed in the file were reset, and the values they were reset to were the ones they had, rather than the ones in .emacs. It appears there is no standard way to do this, which helps me on my way. Tom On Nov 18, 2010, at 4:03 AM, Jörg Hagmann wrote: M-x load-file RET .emacs ? On 11/17/10 10:19 PM, Thomas S. Dye wrote: 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 ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [Babel] now understands org-mode lists
Changed, Thanks -- Eric Nicolas Goaziou writes: > Hello, > >> Eric Schulte writes: > >> I've just pushed up a small commit (including minimal documentation) >> which teaches code blocks how to read and write Org-mode lists. > > Quickly looking at your commit, may I suggest that you do not make use > of `org-list-in-item-p-with-indent'? > > This is a low-level function, and it might be modified or even deleted > in a few weeks, as I'm planning to dig into lists again. On the other > hand, `org-in-item-p' won't. > > Moreover, the latter checks `org-list-ending-method' whereas the > former doesn't. > > Regards, > > -- Nicolas ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [Babel] now understands org-mode lists
Hello, > Eric Schulte writes: > I've just pushed up a small commit (including minimal documentation) > which teaches code blocks how to read and write Org-mode lists. Quickly looking at your commit, may I suggest that you do not make use of `org-list-in-item-p-with-indent'? This is a low-level function, and it might be modified or even deleted in a few weeks, as I'm planning to dig into lists again. On the other hand, `org-in-item-p' won't. Moreover, the latter checks `org-list-ending-method' whereas the former doesn't. Regards, -- Nicolas ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Change DOCTYPE declaration?
On Thu, Nov 18, 2010 at 10:35:50AM -0500, Uriel Avalos wrote: > The only problem is that #+BIND is not working. I tried setting > org-export-allow-BIND to t and it still does not work. Ideas? Did you C-c C-c over (any of the) option headers? This is required for org-mode to re-parse all options in the file. http://orgmode.org/manual/The-very-busy-C_002dc-C_002dc-key.html#The-very-busy-C_002dc-C_002dc-key .j. ___ 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?
On Thu, 18 Nov 2010 10:35:50 -0500 Uriel Avalos wrote: > On Wed, 17 Nov 2010 19:45:06 -0200 > Juan Pechiar wrote: > > > 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? > > Great. It's working like a charm. If uriel-change-doctype is not defined, it > leaves the doctype alone. Otherwise, it changes it. (Note that there's a > small typo in the code, an extra parentheses before var but it otherwise > works very well.) Thanks! > > The only problem is that #+BIND is not working. I tried setting > org-export-allow-BIND to t and it still does not work. Ideas? > > ___ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode Nevermind, I forgot the : in #+BIND. DOH! It's working fine now. For the reference, here's what works: In .emacs: (add-hook 'org-export-html-final-hook (lambda () (if (boundp 'uriel-mathml-doctype) (let ((kill-whole-line t)) (goto-char (point-min)) (next-line) (kill-line 2) (insert "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd\";>\n") ) ) ) ) Then in the file: #+BIND: uriel-mathml-doctype t ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Change DOCTYPE declaration?
On Wed, 17 Nov 2010 19:45:06 -0200 Juan Pechiar wrote: > 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? Great. It's working like a charm. If uriel-change-doctype is not defined, it leaves the doctype alone. Otherwise, it changes it. (Note that there's a small typo in the code, an extra parentheses before var but it otherwise works very well.) Thanks! The only problem is that #+BIND is not working. I tried setting org-export-allow-BIND to t and it still does not work. Ideas? ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: [Babel] now understands org-mode lists
Jambunathan K writes: [...] > > 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. > I think that this may be better implemented directly as an emacs-lisp function rather than through a Babel code block. Best -- Eric > > 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
Hi Jambunathan, Jambunathan K writes: [...] > > 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. > Interesting, a couple of thoughts... - I think that your idea of a quick access menu for library of babel calls which converts the objects (table, list, etc...) under the point into an implicit argument to the code block could make lob functions much more accessible and easily usable. - I'm not so sure about the use of `replace-region' in (3) as I can imagine that there would be cases where you would rather perform some operation on the input data for pasting elsewhere in the document. - I can see how this would quickly lead to a desire for type hinting on library of babel code blocks, e.g. if my point in on a table I don't want to see all of this LOB functions which operate on lists. such type hinting could easily be implemented as another header argument - This would certainly be helped by the ability to pass un-named arguments to code blocks (something I've been meaning to implement anyways) I agree this is an interesting way to use Babel. Unfortunately I simply don't have the time to develop this myself, however if you want to start developing in this direction I'm happy to help in terms of answering questions and adding features on the babel side of the fence. 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] How to use variable in org publish function
Chao LU wrote: > 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? > You need backquote (similar to quote, but allows selective evaluation of internal structure) and the , (selective evaluation) mechanism: (setq org-publish-project-alist `(("org-notes" :base-directory ,org-source-dir) )) See section 13.5 of the Emacs Lisp Reference manual for more details. HTH, 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] [Babel] Coding system of tangled files?
Hi Seb, I think this should be possible using the `org-babel-post-tangle-hook' to re-save the file with a specified encoding. After looking into this a little bit it appears that you should be able to add a function to this hook which will update the `save-buffer-coding-system' variable and then re-save the buffer. This should allow you to save tangled files in arbitrary code systems. For information on coding systems following this Org-mode link into the elisp documentation by calling M-x org-open-at-point on the following line. [[info:elisp:Coding%20Systems][info:elisp:Coding Systems]] Best -- Eric Sébastien Vauban writes: > #+TITLE: Format for tangling files > #+DATE: 2010-11-18 > > #+BABEL: :comments yes > > * Script > > #+begin_src sh :tangle doit.sh > #!/bin/bash > # Example > > ls > date > #+end_src > > * Execute it in a Bash shell > > The tangled file, when launched from withing a Bash shell, returns errors: > > #+begin_src sh > s...@mediacenter:.../Accounting/dev 127$ ./doit.sh > ./doit.sh: line 4: $'\r': command not found > ./doit.sh: line 5: $'ls\r': command not found > ./doit.sh: line 6: $'date\r': command not found > #+end_src > > The reason is that the tangled file is saved as UTF-8-dos (being under > Windows). It should be saved in unix format. Is there a way to impose this? > > Best regards, > Seb ___ 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] Configuration query
M-x load-file RET .emacs ? On 11/17/10 10:19 PM, Thomas S. Dye wrote: 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 ___ 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
Org-mode is just a cool way to organize, to write, to collect and keep data. Many thanks to you, Carsten, for your imagination and hard work, and to you Bastien, for your willingness to carry this torch further. Scot ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: [Babel] now understands org-mode lists
Hello, >> 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. Sure it is ! 2. [...@2] This is 3. [...@3] a prime-numbered 5. [...@5] list. 57. [...@57] Even Grothendiek's prime number is allowed! The advantage of this, is that it still applies when exporting. Regards, -- Nicolas ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [Babel] Coding system of tangled files?
#+TITLE: Format for tangling files #+DATE: 2010-11-18 #+BABEL: :comments yes * Script #+begin_src sh :tangle doit.sh #!/bin/bash # Example ls date #+end_src * Execute it in a Bash shell The tangled file, when launched from withing a Bash shell, returns errors: #+begin_src sh s...@mediacenter:.../Accounting/dev 127$ ./doit.sh ./doit.sh: line 4: $'\r': command not found ./doit.sh: line 5: $'ls\r': command not found ./doit.sh: line 6: $'date\r': command not found #+end_src The reason is that the tangled file is saved as UTF-8-dos (being under Windows). It should be saved in unix format. Is there a way to impose this? 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] Re: Bastien is going to become the maintainer of Org mode in January
I am a keen user of org-mode, whose uses for which seem never to become well defined: as soon as I think I understand it, it morphs, or the horizons of my understanding recede from view. No amount of praise can adequately pay tribute to the massively ingenious organic entity that is org-mode. This has been the work conceived of a rare intellect with unusually broad and creative vision, and well executed. One such as myself, who dabbles unafraid in the world of minds far better schooled and far more brilliant than my own, finds the use for such tools as this an expedient, towards his own purposes, as he tries almost hopelessly to fathom its mysteries--and Carsten Dominick, seemingly a man of uncommon intellectual clarity and humanity, the renaissance man, perhaps has from time to time led me both willingly and patiently through it's brambles and tangles and lighted the way. How you have done this remains a humbling mystery. For both the personal advice and assistance, and the broad vision that has nurtured this system, I would offer my humble thanks. I for one felt relieved that you intend to stay involved. And to Bastien, who has also on a number of occasions patiently offered his insights, I also offer a "thank you," and a kind hope for your stewardship of this project. Would that I could offer some more substantial to org-mode that mostly a spectator's praise and appreciation. Perhaps in time. Alan Davis ___ 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: 2 active dates on the same day
Sergey Konoplev writes: Hi Sergey, > I have the task containing 2 active dates on the same day. > > ** TODO Some task ><2010-11-18 Thu 10:00> ><2010-11-18 Thu 11:00> > > I expect it to be mentioned 2 times in the agenda but it is not. I see > only the first one, does not meter if it is later or earlier date. > > Day-agenda (W46): > Thursday 18 November 2010 >8:00.. > 10:00.. TODO Some task > 10:00.. > 12:00.. > 14:00.. > 16:00.. > 18:00.. > 20:00.. > > What should I do to make the second date appear? Set this variable to nil. ,[ C-h v org-agenda-skip-additional-timestamps-same-entry RET ] | org-agenda-skip-additional-timestamps-same-entry is a variable defined in `org-agenda.el'. | Its value is nil | Original value was t | | Documentation: | When nil, multiple same-day timestamps in entry make multiple agenda lines. | When non-nil, after the search for timestamps has matched once in an | entry, the rest of the entry will not be searched. | | You can customize this variable. ` 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
dpom writes: > I use el-get to obtain the last org-mode version and it's ok. > My working configuration is: > > (setq el-get-sources > '( > ... >(:name org-mode > :build ("make clean" "make" "make doc" > "make INSTALL_INFO=ginstall-info infodir=~/.emacs.d/info/org > install-info") > :after (lambda () > (setq load-path (remove "/usr/share/emacs/23.2/lisp/org/" > load-path)) > (add-to-list 'Info-default-directory-list (expand-dir-name "org" > info-dir > )) > > You should replace "/usr/share/23.2/lisp/org/" with your emacs > repository. Thanks Dan Pomohaci. This is working., I understood whats going on. Regards, Yagnesh ___ 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: Configuration query
Hi Thomas, "Thomas S. Dye" wrote: > 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? This may be a naive answer, but let's try: why wouldn't you have another emacs-lisp block containing your standard configuration. In that way, you would simply to have to C-c C-c' it. #+begin_src dream? Maybe one could imagine having a hook searching for such a specifically named block and try to execute it, when switching to that buffer? #+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
[Orgmode] 2 active dates on the same day
Hello, I have the task containing 2 active dates on the same day. ** TODO Some task <2010-11-18 Thu 10:00> <2010-11-18 Thu 11:00> I expect it to be mentioned 2 times in the agenda but it is not. I see only the first one, does not meter if it is later or earlier date. Day-agenda (W46): Thursday 18 November 2010 8:00.. 10:00.. TODO Some task 10:00.. 12:00.. 14:00.. 16:00.. 18:00.. 20:00.. What should I do to make the second date appear? If I have wrong understanding of the tool I would be grateful if somebody explain it to me. -- Sergey Konoplev Blog: http://gray-hemp.blogspot.com / Linkedin: http://ru.linkedin.com/in/grayhemp / JID/GTalk: gray...@gmail.com / Skype: gray-hemp ___ 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 use el-get to obtain the last org-mode version and it's ok. My working configuration is: (setq el-get-sources '( ... (:name org-mode :build ("make clean" "make" "make doc" "make INSTALL_INFO=ginstall-info infodir=~/.emacs.d/info/org install-info") :after (lambda () (setq load-path (remove "/usr/share/emacs/23.2/lisp/org/" load-path)) (add-to-list 'Info-default-directory-list (expand-dir-name "org" info-dir )) You should replace "/usr/share/23.2/lisp/org/" with your emacs repository. Best regards, Dan Pomohaci 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] Re: Clean capture from command line?
Matt Lundin writes: [...] > 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: > > (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))) > > Best, > Matt Ah ha! Yes, this works perfectly fine. Thanks! -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1 : using Org-mode version 7.3 (release_7.3.89.g97f4c) ___ 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