Re: [Orgmode] Are raw org files available on Worg website?
Curious - is there a custom css that these org-files use? For example, I'd like to get the look of the contents-section and the fonts on the worg sites. Livin Stephen Sharma On Apr 14, 2010, at 04:57:26 , Dan Davison wrote: Bastien bastien.gue...@wikimedia.fr writes: Hi Dan, Dan Davison davi...@stats.ox.ac.uk writes: Could someone tell me if the plain-text org versions of Worg pages are published by default on the Worg website, or if there is a way to make the org file available on Worg for a particular Worg page? Here it is: http://orgmode.org/worg/sources/ Thanks Bastien. I added a link to this in the Pages About Worg section of the index. Dan HTH ___ Emacs-orgmode 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] [org-babel] suggestions for using tikz() graphic device with org-babel-R
Hi all-- I'm very excited about a relatively new R package, tikzDevice. This takes R graphics and generates LaTeX code inside a tikzpicture environment that reproduces the desired graphic. This allows, among other things, for all text in a figure to use the same fonts as the rest of your document, and for graph annotations to use latex math markup. I have attached an example org file that has embedded R code that generates figures using the tikz() device.[fn:1] The output from a call to tikz() is a .tex file, which is intended to be included in a larger LaTeX file using the \input{} command. How would the org-babel gurus suggest that I automate the process of embedding these TeX-based graphics in an org file? What is the right combination of :file, :exports, and :results arguments to have the generated file automatically included by a LaTeX \input{} command? Thanks for any advice! /au Footnotes: [fn:1] If requested, I can send the generated tex and pdf files as well #+TITLE: Generating PGF graphics from R in org-babel #+AUTHOR:Austin F. Frank #+EMAIL: austin.fr...@gmail.com #+DATE: 2009-12-11 Fri #+LANGUAGE: en #+OPTIONS: H:3 num:nil toc:nil \n:nil @:t ::t |:t ^:t -:t f:t *:t :t #+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc #+LATEX_HEADER: \usepackage{tikz} Recently a new =R= package, =pgfSweave=, was announced.[fn:1] This package boasts a fascinating capability: generating all R graphics as \{LaTeX} code that will be typeset using the tikz package and included as PGF graphics.[fn:2] This is an appealing option for several reasons: 1. Scaling of size and adjustments of position should be handled seamlessly and without loss of resolution 2. Colors can be specified identically for graphics and any other markup in the $\LaTeX$ document 3. Since they're just more $\LaTeX$ code, graphics can be manually edited in emacs 4. Same fonts will be used for text in figures as are used in the text of the document 5. $\LaTeX$ markup can be used in figure text 6. tikz integrates nicely with Beamer Given this list of features, I decided to see whether I could get similar functionality in org-babel. * R code ** Load =tikzDevice= First, we need to load the packages required for producing tikz output in =R=. If all goes well, you should get a message about the paths to the various programs required to generate $\LaTeX$ markup from within =R=. #+source: load_tikzDevice #+BEGIN_SRC R :results output :exports both :cache ## I want to show the messages that are generated when the package is ## loaded. These are printed to the equivalent of stderr, so I have ## to rewrite the `message' function to produce output that I can ## print back later. tikz.message - capture.output(withCallingHandlers(library(tikzDevice), message = function (m) cat(m$message))) cat(tikz.message, sep=\n) #+END_SRC ** R example #+source: lmer_example #+BEGIN_SRC R :results output :exports both :cache :session ## I use this library all the time library(lme4) ## here's the standard example m - lmer(Reaction ~ Days + (1 | Subject), sleepstudy) print(m) #+END_SRC ** Graphics creation #+source: tikz_example #+BEGIN_SRC R :results file :exports code :cache :session library(tikzDevice) ranef.m - ranef(m, postVar = TRUE) tikz(file = ranef.tex, width=4, height=4) print(qqmath(ranef.m)) dev.off() #+END_SRC #+BEGIN_CENTER #+CAPTION: sample graphics \input{ranef} #+END_CENTER * Footnotes [fn:1] http://thread.gmane.org/gmane.comp.lang.r.packages/351 [fn:2] http://sourceforge.net/projects/pgf/ -- Austin Frank http://aufrank.net GPG Public Key (D7398C2F): http://aufrank.net/personal.asc pgpdnIg73bmpu.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] Are raw org files available on Worg website?
Curious - is there a custom css that these org-files use? For example, I'd like to get the look of the contents-section and the fonts on the worg sites. Livin Stephen Sharma You can almost always find out what stylesheet a page uses by doing View Source in your browser. In this case it's http://orgmode.org/org.css . If you paste the link into your browser it will display the stylesheet, which you can then save to disk. Ian. ___ Emacs-orgmode 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] Plans for synching with Emacs dev sources?
On 13/04/10 22:57, Jan Böcker wrote: On 13.04.2010 22:15, Óscar Fuentes wrote: Currently I'm using 6.33x, which is the version that comes with Emacs dev source code. I'll like to use a more recent version of org-mode, and so I ask if there are plans for upgrading Emacs' org-mode sources with the current release. If not, I'll use org-mode git sources, although this would complicate a bit the deployment across several machines. AFAIK that happens whenever a new major version of emacs is released, which is very infrequently. Even if the next version of emacs would be just around the corner, you'd just find yourself in the situation of using a very outdated version again within a few weeks. However, deployment across several machines can be easy with git. My ~/.emacs.d is a git repository which contains all my emacs configuration and elisp library files. I have added org-mode as a submodule here, so after running git pull git submodule update on another machine, everything is in sync again. I use the org-babel approach to emacs configuration. In my startup.org, the first toplevel subtree contains code that finds out what machine it is running on by looking at the hostname and sets the variable jb/system. I have one toplevel subtree for common configuration and two for settings specific to one of my two machines. If you dont need machine specific configuration, you can use Dropbox. Like Jan I use org-babel and put all my configuration in .emacs.d in my Dropbox folder. I create a symink from ~/.emacs.d to ~/Dropbox/.emacs.d and my org setup is maintained all the computers where I have Dropbox installed. YoU can do the same thing with Ubuntu One. Ian. ___ Emacs-orgmode 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-babel python/shell or gantt charts with gnuplot from within org-mode
Hi! May be it's of interest. There's an R package 'plotrix' which seems to be able to create gantt charts. Example picture: http://addictedtor.free.fr/graphiques/RGraphGallery.php?graph=74 Disclaimer: I don't know anything about gantt charts or that particular package. Hth Detlef On Tue, 13 Apr 2010 20:24:11 -0400 Dan Davison davi...@stats.ox.ac.uk wrote: Erik Butz erik.b...@googlemail.com writes: Hi Eric, thanks for this information, this already brings me one step further. There is now another issue which I run into, trying to get this to work: python lists seem to be a potential problem. In the code there are several lists which are constructed by a # Generate gnuplot lines plot_lines = ['plot ' + ', \\\n\t'.join((' '.join(['-1', 'title %s' % t, 'with lines', 'linecolor %s %s ' % (colorprefix, colors[t]), 'linewidth 6']) for t in tasks))] which cause the program to fail and not to produce any output when accessed. I can create lists with append('a') however and use them mostly w/o problems. Is there any know limitation somewhere in org-babel or am I running into some other problem here? (in principle this should just be run like in any normal shell, right?) Hi Erik, So have I understood this right that you're following Eric's model and passing an org table into a shell block whch calls python? I.e. something like #+begin_src sh :var tasks=tasks echo $tasks | python gantt.py #+end_src In that case it should be exactly the same as running the python code in a shell outside emacs. To debug this, how about capturing the data that's going into python with #+begin_src sh :var tasks=tasks echo $tasks input-data-for-python #+end_src and then outside emacs doing the equivalent of python gantt.py input-data-for-python Does that reveal the same problem? Dan Again any hints appreciated Erik P.S. let me stress that the code works w/o problems from a normal shell, since otherwise this sounds more like a python question On Tue, Apr 13, 2010 at 8:51 PM, Eric Schulte schulte.e...@gmail.com wrote: Erik Butz erik.b...@googlemail.com writes: Hi all, I have been playing around with org-mode and have been thinking about the possibility to create gantt charts with org-mode. I did not find anything in the archives, and todays thread about taskjuggler brought me back to the subject. This is a python script hovering around the web (gantt.py) which enables gant charts with gnuplot. I played around with this a bit so as to have it accept ISO timestamps (%Y-%m-%dT%H:%M:%S) and or durations. Now I am looking for a way to execute this from within org-mode probably using org-babel The (bash) syntax would be something like python gantt.py -t Title -i input.txt | gnuplot -persist I would like to pass an org table to the script instead of the input file so the equivalent of doing cat input | python gantt.py -t Title | gnuplot -persist The input structure is (e.g.) Task 1 2010-4-2T12:00:00 1 validate Task 2 2010-4-5T12:00:00 5.25 something Task 3 2010-4-5T12:00:00 2010-4-10T0:00:00 otherthing Task 4 5.5 yet another thing which could well be the column mode representation of a file probably. something like the following in will allow you to pass a table to a series of shell commands #+tblname: tasks | Task 1 | 2010-4-2T12:00:00 | 1 | validate | | Task 2 | 2010-4-5T12:00:00 | 5.25 | something | | Task 3 | 2010-4-5T12:00:00 | 2010-4-10T0:00:00 | otherthing | #+begin_src sh :var tasks=tasks echo $tasks |wc #+end_src #+results: : 3 15 130 you can also use a gnuplot block to accept the output of gantt.py, and once everything is working it can be packaged up into a library of babel [1] function which could then be called with a short line like. #+call: gantt(tasks=my-task-table) Hope that helps, let me know if you have any more questions. -- Eric I am sorry should this be a bit vague. Please let me know if I can provide any more information to clarify the problem Cheers and thanks, Erik ___ Emacs-orgmode 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://orgmode.org/worg/org-contrib/babel/library-of-babel.php ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org
Re: [Orgmode] bug in org-crypt?
Hi Xiao, I have just checked in a patch by Peter Jones, which should fix this bug. Please check if this is indeed the case and let me know. Thanks. - Carsten On Mar 28, 2010, at 3:57 AM, Xiao-Yong Jin wrote: Hi, If you have the follow org file * test crypt :crypt: ** subheading 1 text 1 ** subheading 2 text 2 with setup as (require 'org-crypt) (setq org-tags-exclude-from-inheritance '(crypt)) (setq org-crypt-key CBC0714E) ; my key On calling org-encrypt-entry on the first head line, only subheading 1 get encrypted, subheading 2 remains plain text. But, if you add an empty line or some text under the first heading, both subheading 1 and 2 are encrypted. Testing on recent git checkout results the same. Is it a bug? -- Jc/*__o/* X\ * (__ Y*/\ ___ Emacs-orgmode 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] Support (or not) for Emacs 21, and XEmacs
Hi everyone, I am, once again, reconsidering support for Emacs 21 and XEmacs in Org-mode. Supporting older versions of Emacsen does make the code in Org-mode more complex, needs time to rewrite or copy features that do exist in newer versions of Emacs. Also, it slows down the process of updating the version of Org-mode distributed with Emacs, because the compatibility code makes it often hard to comply with Emacs rules and practices. What I would like to do is the following. We are now working toward release 7.0 of Org-mode, which will hopefully see full integration of org-babel. I am considering to make Org-mode version 6.35 the last version of Org-mode supporting XEmacs and Emacs 21. That would mean that I would still fix critical bugs in 6.35 and keep that package on the website indefinitely. So people stuck with Emacs 21 and XEmacs do have an excellent version of Org-mode available. Git users will be able indefinitely to select this version of Org-mode to support and Emacs 21 or XEmacs installation. For version 7.0 I would then not only stop actively supporting these older Emacsen, but I would actually remove some of the twisted code that has accumulated over the years in order to support older versions. Important examples are all the stuff in org-compat, but also key bindings and other stuff. There are about 100 cases of (featurep 'xemacs) in the sources, and many other places where I have to check for the availablility of a specific feature or function. If you object to such a development, please step into this discussion. - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: xemacs21 support broke from 35f to 35g
On Apr 13, 2010, at 1:15 PM, Sebastien Delafond wrote: org-freemind needs the rx library. I am now explicitly requireing rx, so people will know what is missing. Is there any easy way we could by default disable org-freemind for the xemacs family, as they do not include rx.el ? If you are talking about package creation, this is another matter. All you need to do is to remove org-freemind.el and the ines that refer to it in the makefile. A simple script can do this. - 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: xemacs21 support broke from 35f to 35g
On 2010-04-14, Carsten Dominik carsten.domi...@gmail.com wrote: If you are talking about package creation, this is another matter. All you need to do is to remove org-freemind.el and the ines that refer to it in the makefile. A simple script can do this. actually, I build packages for both emacs* and xemacs* from the same source package, so that was not an option; I ended up introducing, for each flavor, a list of blacklisted files that are taken out at install time. Still, removing support for emacs21 and xemacs21 in org 7.0 makes a lot of sense to me :) Cheers, --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
[Orgmode] Re: Implementing Kanban in Org-mode
Rick Moynihan rick.moyni...@gmail.com writes: I've recently taken an interest in Kanban, as a means of organising tasks in a team. I was wondering if anyone here has tried doing this with org-mode, and if they have any tips. I can imagine org's TODO_SEQ's map nicely onto the columns in a Kanban task board. They do, yes. Very interesting idea. It might even be possible to integrate org-mode with something like this html simple kanban board: http://www.simple-kanban.com/ I could envision a simple solution where you export your tasks via an dynamic block and insert that into the text area of the simple kanban board. But that is a one way solution and fails if people start dragging the tasks around. How does this information get back into the org file? Maybe something simpler that is not editable as a view of the tasks and their state, i.e. a simple static html kanban board. This could be done again with some hacking based on a dynamic block and exporting this as csv or you could hack up some elisp creating the html based on the mapping API[1]. Also how might Emacs org-mode be able to render a kanban board view? Would it be possible to use something like the agenda to do this and shuffle the tasks about? Could you not just use the the global TODO list[2] and sort the tasks by TODO state? HTH Christian Footnotes: [1] http://orgmode.org/manual/Using-the-mapping-API.html#Using-the-mapping-API [2] http://orgmode.org/manual/Global-TODO-list.html#Global-TODO-list -- Christian Egli Swiss Library for the Blind, Visually Impaired and Print Disabled Grubenstrasse 12, CH-8045 Zürich, Switzerland ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Plans for synching with Emacs dev sources?
On Apr 14, 2010, at 12:37 AM, Eric Schulte wrote: Jan Böcker jan.boec...@jboecker.de writes: On 13.04.2010 22:15, Óscar Fuentes wrote: Currently I'm using 6.33x, which is the version that comes with Emacs dev source code. I'll like to use a more recent version of org- mode, and so I ask if there are plans for upgrading Emacs' org-mode sources with the current release. If not, I'll use org-mode git sources, although this would complicate a bit the deployment across several machines. AFAIK that happens whenever a new major version of emacs is released, which is very infrequently. If this is the case, then should we start pushing new versions of Org-mode to the Emacs development repository at every *Org-mode* version bumb, rather than at every Emacs version bump? In principle, this is the idea. Before 6.33 I pretty much pushed every Org-mode release to Emacs. At that point, Emacs went into feature freeze for another release (23.2, I believe), and therefore I had to stop updating. Now it is time to get back into this - but I have not done it due to time constraints. It is not trival to push our changes to Emacs. - Emacs now uses bzr, which I am not familar with. I have installed bzr and pulled the Emacs trunk onto my machine - but I still need to test if I can actually commit using that setup. I wish Emacs had chosen git, because this is what I know reasonably well now, and because git is, from what I can tell, better. - There are a lot of issues that need to be taken care of. 1. The Emacs developers regularly make global changes o all code in Emacs, to make use of new features or to implement new conventions. I try to merge all these changes into my development version. Sometimes this is not possible, because the changes the Emacs developers introduce will not work for older versions of Emacs (like Emacs 21 or 22). Example: interactive-p and called-interactively. 2. Because I am not as good with version control as I would like to be handwork has to be done, and I have been burned in the past several times because my changes reverted some changes made inside Emacs. This is a psychological barrier for me to go ahead and make the next update. Nevertheless, I am planning to update Emacs again - but I am not sure exactly when I will find the time. If there is a volunteer who is willing to take charge of the synchronization with Emacs, this would be absolutely great. But it would have to be a dedicated and careful person, who is willing to patiently work through the issues. - Carsten -- 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 - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [ANN] org-mime -- using orgmode to send html mail?
On Tue, 13 Apr 2010 18:57:07 -0600, Eric Schulte schulte.e...@gmail.com wrote: So, for some reason the `org-mime-org-export' helper function is returning nil on your (and Eric's) machines. Could you try evaluating (C-M-x) the following in your *scratch* buffer? (insert (org-mime-org-export html - first - second - third (make-temp-file quick-test))) I get exactly the same as you do. to export a non-html buffer to html, or you could also try starting up Emacs with the -Q option, then loading org-mime.el, opening an org-mode file, and calling org-mime-org-buffer-htmlize, and sending an email to yourself. Interesting. This fails for me: 1. emacs -Q 2. in *scratch*: set load path appropriately, (require 'org-install), (require 'org-mime) 3. visit org test buffer 4. invoke org-mime-org-buffer-htmlize which fails with org-mime-file: Symbol's function definition is void: case although the HTML has been created and pushed to the kill ring according to the *Messages* buffer. 5. so try (require 'cl) 6. try org-mime-org-buffer-htmlize again and now there is no error but the output is: , |#multipart type=alternative#part type=text/plain | * Testing mime in org | | This file will provide a simple test for the new mime encoding and | exporting features in org-mode. | | The most interesting aspect may be the use of \(y = \sum_i^n x_i^2\) | and, please, see the figure: | | [[./mip.png]] | #part type=text/htmlnil#/multipart | #part type=image/png filename=/home/ucecesf/s/test/mip.png id=_home_ucecesf_s_test_mip.png | #/part ` I hope some of this might help identify where the problem may lie? I can obviously send you my full org environment if you wish. I'm also happy to debug the org-mime code directly if you give me some idea of where to look! Thanks, 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] Embedding org-syntax in program source
Hi Dan Right. Given the present forum I presume you are using emacs, so that shouldn't be a problem per se? Well, don't you think that telling other people that changing the _source_-code requires emacs might be a problem? I think you may have formed an inaccurate idea of how people are working with source code in org-mode. maybe... and I have to admit my knowledge of LP is theoretical (but at least I investigated the sources of TeX long ago! :) my idea for the beginning was to extend my codes with org-modes folding, linking and some TODO features in perl comments. Maybe automatically switching the mode when the cursor is entering/leaving comments. Multiline wouldn't be a problem since I can include them in POD (perl's simplified approach to LP) or I could embrace them in heredocs, for instance the following is legal perlcode as long as the last line is empty (no whitespaces allowed). ; * block1 ** [test] bla And relying on an extra step for code generation is dangerous... You would have to explain that assertion. Sorry, no offence intended, this is the common sense of perlmonks when talking about run time code generation and adding extra dependencies. (Maybe not the appropriate slang here...) I wouldn't find many to join my projects when relying on extra make files and I suppose running emacs in batch mode to tangle the code is not that stable. This is for sure acceptable with elisp or multilanguage projects. I didn't understand this. emacs is a natural habitat of elisp , like unix is one for C. And multilanguage projects would naturally rely on some make mechanisms. PS: I forgot to mention that when switching to other modes the highlighting will also get confused and fly-make will report plenty of syntax problems. I'm not sure what you mean here. When working with code in org-mode, one uses C-c ' to switch to a language major-mode buffer containing the body of the source code block. Is that working OK for you? hm, yes ...but if I do this I could equally embrace all org-mode-stuff in between =pod-lines or prepend a # to each line when switching to cperl-mode. Hooking this to save would guaranty to always have legal perlcode... bye Rolf ___ Emacs-orgmode 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] Newbie elisp programmer requests a pointer to backtics...
Hi there, Many thanks for org-mode and all of its amazing capabilities. This elisp newbie (but fluent in many other languages) has a concrete and simple request: Where do I find good-enough documentation for the backtics prefixing the parenthesis and the commas prefixing the associative list values in the following code (lines of interest prefixed by here-, uninteresting lines elided): (setq observer-base-dir ~/projects/blogs/observer) (setq observer-blog-dir (concat observer-base-dir /jekyll/_posts)) (add-to-list 'org-publish-project-alist here- `(observer-blog here- :base-directory ,observer-base-dir here- :publishing-directory ,observer-blog-dir . . . here-`(observer :components (observer-blog))) I greatly prefer a pointer to the fundamental docs in lieu of an explanation here. I figured these out by mimicking working code, and they work for me. But what are these operators|delimiters actually doing? I have both the latest versions of the GNU Emacs Lisp Reference Manual and the Introduction to Programming in Emacs Lisp, sitting before me and they have been extensively interrogated, as has google. Yet still I have to bother the list. I'm sorry! Many thanks, Russell ___ Emacs-orgmode 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: Loosing tasks with remember
Thanks, Bernt, ok, invoking remember a couple of times in sequence is what I wanted to avoid in the first place, but refiling a complete tree is a good idea and might work for my purposes. Cheers, Christian Am 14.04.2010 um 03:55 schrieb Bernt Hansen: Christian Zang christian.z...@fh-weihenstephan.de writes: Dear org-enthusiasts, I have a remember template to file away quick notes and todos that looks like (setq org-remember-templates '((Todo ?t *** TODO %?\n %i\n ~/Org/inbox.org Inbox))) When a invoke a remember buffer and write something like *** TODO Task 1 *** TODO Task 2 and file it away in my inbox.org file using C-c C-c everything is fine, but when I choose a different headline (level 2) via C-1 C-c C-c, only the first of the two tasks will get filed under the chosen headline, the other one disappears. Is this the intended behaviour? Or am I overlooking an important variable, or lies the problem in my template? If so, what can I do to change my setup, so that every task will get filed under the chosen headline? I am using the latest org-mode (pulled from git 10 min ago) with emacs 23.1 on Mac OS X 10.6. Thanks! Hi Christian, Yes this is intended behaviour (sort of). Remember mode is designed for one task three per filing operation. I think it files multiple tasks in the default save configuration but if you file to a target only the first task is filed. To work around this I would either invoke remember multiple times, one for each task or provide a parent task to hold your multiple TODO entries like this * TODO refile task ** TODO Task 1 ** TODO Task 2 then you refile the entire tree to the target destination. HTH, Bernt ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode 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] Horizontal rule after list
I cannot reproduce it. OK, I have taken the latest on CVS, and the pb is disapeared, sorry for the disturbance. Vincent. ___ Emacs-orgmode 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] Templates for drawer export
Hello all, Are there any way to make a template for drawer export, ie to define how the layout how a drawer would be exported to some format. Vincent. ___ Emacs-orgmode 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] Column width in export
Hello all, Here is an example Org document: ### * Example | salut | dsdd | | 30 | | | gvrag f gfegegergrgh rghrghr ghrh erh ghrhr hr htrhtr htrh trh trh trh trh | gerg | ** Next # When exported to HTML there is one table row with `30' in it. Is there anyway to make this row not exported as a row (but possibly exploited in other ways) ? Vincent. ___ Emacs-orgmode 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] Newbie elisp programmer requests a pointer to backtics...
Russell L. Carter wrote: I greatly prefer a pointer to the fundamental docs in lieu of an explanation here. I figured these out by mimicking working code, and they work for me. But what are these operators|delimiters actually doing? I have both the latest versions of the GNU Emacs Lisp Reference Manual and the Introduction to Programming in Emacs Lisp, sitting before me and they have been extensively interrogated, as has google. Yet still I have to bother the list. I'm sorry! These things are called backquotes, discussed in GNU Emacs Lisp Reference Manual Section 13.5. HTH -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de pgp7BImnRX9Ez.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] Newbie elisp programmer requests a pointer to backtics...
On Tue, 13 Apr 2010 17:19:46 -0700, Russell L. Carter rcar...@pinyon.org wrote: Where do I find good-enough documentation for the backtics prefixing the parenthesis and the commas prefixing the associative list values in the following code (lines of interest prefixed by here-, uninteresting lines elided): Hello, I had the same question a few months ago. I googled something like lisp backquote comma and found these links: - http://www.psg.com/~dlamkins/sl/chapter20.html - http://cl-cookbook.sourceforge.net/macros.html Hope this helps :) Regards, -- Thomas/Schnouki pgpCv6oPPyM4A.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: [Bulk] [Orgmode] Column width in export
Vincent Belaïche vincent@hotmail.fr writes: | salut | dsdd | | 30 | | | gvrag f gfegegergrgh rghrghr ghrh =| gerg | When exported to HTML there is one table row with `30' in it. Is there anyway to make this row not exported as a row (but possibly exploited in other ways) ? In the manual, in the table section, subsection Column groups it is written: In order to specify column groups, you can use a special row where the first field contains only `/'. The further fields can either contain Before posting, please, read, or, at least, search, skim the manual to find a possible solution. Giovanni ___ Emacs-orgmode 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] confused about logging
On Apr 13, 2010, at 2:10 AM, Dan Griswold wrote: Hi all, I have a repeating task, like so: *** TODO Print copies:@PRINT: SCHEDULED: 2010-03-09 Tue ++1w I would like to have things set so that when I change the todo state, and the schedule advances, then there will not be any logging done. However, with org-log-repeat, org-log-done, and org-log-done-with-time all set to nil (indeed, it appears all org-log-X vars are set to nil), I get a timestamp in a property drawer when I advance the schedule, like so: *** TODO Print copies:@PRINT: SCHEDULED: 2010-04-13 Tue ++1w :PROPERTIES: :LAST_REPEAT: [2010-04-12 Mon 20:06] :END: This happens with an emacs environment started with emacs -q, and a file that contains only the above entry. I don't need or want such information recorded. But I don't know how to stop it, and I don't know where else to look for the responsible variable. Any hints? If you pull the newest version, this information is only recorded if either org-log-repeat is non-nil, or if the entry is collecting clocking data. Hope this solves the problem for you. - Carsten Thanks, Dan -- Dan Griswold Rochester, NY ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Embedding org-syntax in program source
Hi, I think there's no need for Org-mode in programming modes. I see Org-mode as emacs' programming mode for plain text. LanX lanx.p...@googlemail.com writes: my idea for the beginning was to extend my codes with org-modes folding, linking and some TODO features in perl comments. Maybe automatically switching the mode when the cursor is entering/leaving comments. It's all there! For folding I use hs-minor-mode, for linking I still stick with some old keyboard shortcuts here: * `H-o o' = 'org-open-at-point-global * `H-o l' = 'org-insert-link-global * `C-c l' = 'org-store-link * `F3' = 'find-file-at-point When in emacs-lisp mode, it will open the appropriate *.el file when on the symbol, no matter where I store htmlize.el on my system: (require 'htmlize) In c-mode, place point on unistd.h and press F3 to open /usr/include/unistd.h: #include unistd.h But it will find relative paths, too. * `M-up' = 'backward-page * `M-down' = 'forward-page `C-q C-l' inserts the formfeed. I tend to divide source files into pages and group functions, classes, methods that way. Does not work in PHP, :-/ PHP does not consider ^L a whitespace character...but those guys don't even consider it a bug :-D * `M-+' = 'hs-toggle-hiding Finally, here's your fast and simple folding. All these shortcuts work in comments, too. And relying on an extra step for code generation is dangerous... I'm a control freak myself - that's why I use emacs in the end :-) Best wishes Sebastian ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Newbie elisp programmer requests a pointer to backtics...
A back-quoted form is just like a quoted form, except every ,foo is substituted by the evaluation of foo. (defvar foo 123) `(foo ,foo) = '(foo 123) They can be nested: `(foo `(foo ,,foo)) And lists can be directly interpolated: (defvar foo '(123 456)) `(foo ,foo) = '(foo (123 456)) `(foo ,@foo) = '(foo 123 456) You can do this to see how any form will expand: M-: (pp-to-string (macroexpand `(foo ,foo))) John ___ Emacs-orgmode 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-babel] suggestions for using tikz() graphic device with org-babel-R
Austin Frank austin.fr...@gmail.com writes: Hi all-- I'm very excited about a relatively new R package, tikzDevice. This takes R graphics and generates LaTeX code inside a tikzpicture environment that reproduces the desired graphic. This allows, among other things, for all text in a figure to use the same fonts as the rest of your document, and for graph annotations to use latex math markup. I have attached an example org file that has embedded R code that generates figures using the tikz() device.[fn:1] The output from a call to tikz() is a .tex file, which is intended to be included in a larger LaTeX file using the \input{} command. How would the org-babel gurus suggest that I automate the process of embedding these TeX-based graphics in an org file? What is the right combination of :file, :exports, and :results arguments to have the generated file automatically included by a LaTeX \input{} command? Hi Austin, Yes, I agree, tikz is awesome. I've recently started using it as my favorite output terminal for gnuplot. It allows graphs to scale perfectly from papers to posters. It's largely responsible for the implementation of org-babel-latex, which allows for playing with tikz through evaluation of latex source code blocks. But, back to your question. What does the R block return? - if it returns the path to a file, then you can use :results file to insert a link to that file in your org-mode buffer, or you can wrap the path to that file in an include with something like the following #+source: graph-generator #+begin_src R :results file ... #+end_src #+begin_src emacs-lisp :var path=graph-generator :results latex (format input{%s} path) #+end_src - if it returns raw LaTeX then you can use the :results latex header as used in the elisp block above Hope that helps, if not then let me know. Best -- Eric Thanks for any advice! /au Footnotes: [fn:1] If requested, I can send the generated tex and pdf files as well #+TITLE: Generating PGF graphics from R in org-babel #+AUTHOR:Austin F. Frank #+EMAIL: austin.fr...@gmail.com #+DATE: 2009-12-11 Fri #+LANGUAGE: en #+OPTIONS: H:3 num:nil toc:nil \n:nil @:t ::t |:t ^:t -:t f:t *:t :t #+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc #+LATEX_HEADER: \usepackage{tikz} Recently a new =R= package, =pgfSweave=, was announced.[fn:1] This package boasts a fascinating capability: generating all R graphics as \{LaTeX} code that will be typeset using the tikz package and included as PGF graphics.[fn:2] This is an appealing option for several reasons: 1. Scaling of size and adjustments of position should be handled seamlessly and without loss of resolution 2. Colors can be specified identically for graphics and any other markup in the $\LaTeX$ document 3. Since they're just more $\LaTeX$ code, graphics can be manually edited in emacs 4. Same fonts will be used for text in figures as are used in the text of the document 5. $\LaTeX$ markup can be used in figure text 6. tikz integrates nicely with Beamer Given this list of features, I decided to see whether I could get similar functionality in org-babel. * R code ** Load =tikzDevice= First, we need to load the packages required for producing tikz output in =R=. If all goes well, you should get a message about the paths to the various programs required to generate $\LaTeX$ markup from within =R=. #+source: load_tikzDevice #+BEGIN_SRC R :results output :exports both :cache ## I want to show the messages that are generated when the package is ## loaded. These are printed to the equivalent of stderr, so I have ## to rewrite the `message' function to produce output that I can ## print back later. tikz.message - capture.output(withCallingHandlers(library(tikzDevice), message = function (m) cat(m$message))) cat(tikz.message, sep=\n) #+END_SRC ** R example #+source: lmer_example #+BEGIN_SRC R :results output :exports both :cache :session ## I use this library all the time library(lme4) ## here's the standard example m - lmer(Reaction ~ Days + (1 | Subject), sleepstudy) print(m) #+END_SRC ** Graphics creation #+source: tikz_example #+BEGIN_SRC R :results file :exports code :cache :session library(tikzDevice) ranef.m - ranef(m, postVar = TRUE) tikz(file = ranef.tex, width=4, height=4) print(qqmath(ranef.m)) dev.off() #+END_SRC #+BEGIN_CENTER #+CAPTION: sample graphics \input{ranef} #+END_CENTER * Footnotes [fn:1] http://thread.gmane.org/gmane.comp.lang.r.packages/351 [fn:2] http://sourceforge.net/projects/pgf/ ___ Emacs-orgmode 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 in org-crypt?
On Wed, 14 Apr 2010 09:43:43 +0200, Carsten Dominik wrote: Hi Xiao, I have just checked in a patch by Peter Jones, which should fix this bug. Please check if this is indeed the case and let me know. Thanks. - Carsten Tested and it is indeed fixed. Thanks. - jxy -- Jc/*__o/* X\ * (__ Y*/\ ___ Emacs-orgmode 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-babel] suggestions for using tikz() graphic device with org-babel-R
But, back to your question. What does the R block return? - if it returns the path to a file, then you can use :results file to insert a link to that file in your org-mode buffer, or you can wrap the path to that file in an include with something like the following #+source: graph-generator #+begin_src R :results file ... #+end_src #+begin_src emacs-lisp :var path=graph-generator :results latex (format input{%s} path) #+end_src - if it returns raw LaTeX then you can use the :results latex header as used in the elisp block above I just started looking at tikzDevice in R about two days ago. It is indeed a graphical device, just like X11, pdf, or postscript, so it doesn't return anything. It writes out a .tex file though, so you should be able to write a wrapper function that does return something useful for you. --Erik ___ Emacs-orgmode 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] [ANN] org-mime -- using orgmode to send html mail?
Hi Andrew, I started my emacs with the -Q option, and to my surprise I got the same error that you have described. I've been able to hunt down the source of this problem, and it is an old version of org-export-as-org, which means that you are not loading the latest version of the core org-mode, but rather the version distributed with Emacs. This is what happened to me when I started with the -Q option and simple required org-install without first adding the path to the newer version of org-mode to my load path. An easy way to verify that this is the case is to call describe-function with C-h f org-export-as-org, then jump to the source-code of the function by pressing enter on the linked function name, and jumping down to the last 5 lines of the function definition. If they don't look like #+begin_src emacs-lisp (if (equal to-buffer 'string) (progn (setq str-ret (buffer-string)) (kill-buffer (current-buffer)) str-ret) (kill-buffer (current-buffer))) #+end_src then you are still using an old version of Org-mode. Hopefully once you are sync'd to the head of the org-mode repository this error will be fixed. Hope this helps, Best -- Eric Andrew Hyatt ahy...@gmail.com writes: I do get the same result you do. Hopefully, I'll have some time tomorrow to look into the issue. RIght now, though, my problem is not the nil, but the error I reported in my previous email. On Tue, Apr 13, 2010 at 8:57 PM, Eric Schulte schulte.e...@gmail.comwrote: So, for some reason the `org-mime-org-export' helper function is returning nil on your (and Eric's) machines. Could you try evaluating (C-M-x) the following in your *scratch* buffer? (insert (org-mime-org-export html - first - second - third (make-temp-file quick-test))) When I execute the above it inserts the following into the scratch buffer ul li first /li li second /li li third /li /ul If instead you get an error, or it inserts nil, then it means that our systems are somehow different with respect to that function, which is a slight alteration of `org-run-like-in-org-mode'. At that point you could try using something like (org-run-like-in-org-mode 'org-export-as-html) to export a non-html buffer to html, or you could also try starting up Emacs with the -Q option, then loading org-mime.el, opening an org-mode file, and calling org-mime-org-buffer-htmlize, and sending an email to yourself. Sorry I can't be of more help, I'm really mystified as to how this function could be returning nil. Best -- Eric Andrew Hyatt ahy...@gmail.com writes: Thanks for the response. I upgraded, now I get a Debugger entered--Lisp error: (wrong-type-argument arrayp t) substring(t 33) (progn (insert org-mime-default-header) (insert body) (write-file tmp-file) (org-load-modules-maybe) (unless org-local-vars (setq org-local-vars ...)) (substring (eval ...) (if ... ... 0))) (unwind-protect (progn (insert org-mime-default-header) (insert body) (write-file tmp-file) (org-load-modules-maybe) (unless org-local-vars ...) (substring ... ...)) (and (buffer-name temp-buffer) (kill-buffer temp-buffer))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn ... ... ... ... ... ...) (and ... ...))) (with-current-buffer temp-buffer (unwind-protect (progn ... ... ... ... ... ...) (and ... ...))) (let ((temp-buffer ...)) (with-current-buffer temp-buffer (unwind-protect ... ...))) (with-temp-buffer (insert org-mime-default-header) (insert body) (write-file tmp-file) (org-load-modules-maybe) (unless org-local-vars (setq org-local-vars ...)) (substring (eval ...) (if ... ... 0))) (save-excursion (with-temp-buffer (insert org-mime-default-header) (insert body) (write-file tmp-file) (org-load-modules-maybe) (unless org-local-vars ...) (substring ... ...))) org-mime-org-export(org #(\nHTML test\n\n~foo~\n=bar=\n_baz_\n\n| 1 | 2 |\n| a | b |\n 0 1 (fontified t) 1 11 (fontified t) 11 12 (fontified t) 12 18 (fontified t) 18 24 (fontified t) 24 30 (fontified t) 30 31 (fontified t) 31 40 (fontified t face (gnus-cite-1 message-cited-text)) 40 41 (fontified t) 41 50 (fontified t face (gnus-cite-1 message-cited-text)) 50 51 (fontified t)) /tmp/mail2522ZvL) (let* ((region-p ...) (html-start ...) (html-end ...) (raw-body ...) (tmp-file ...) (body ...) (org-export-skip-text-before-1st-heading nil) (org-export-htmlize-output-type ...) (org-export-preserve-breaks org-mime-preserve-breaks) (html-and-images ...) (html-images ...) (html ...)) (delete-region html-start html-end) (save-excursion (goto-char html-start) (insert ... ...))) org-mime-htmlize(nil) call-interactively(org-mime-htmlize record nil) I tried this with orgstruct-mode off and on, but it was the same error either way. Earlier, before I got the latest version, I tried with orgstruct-mode on, and it successfull htmlized my mail.
Re: [Orgmode] Newbie elisp programmer requests a pointer to backtics...
Thomas Jost schno...@schnouki.net writes: On Tue, 13 Apr 2010 17:19:46 -0700, Russell L. Carter rcar...@pinyon.org wrote: Where do I find good-enough documentation for the backtics prefixing the parenthesis and the commas prefixing the associative list values in the following code (lines of interest prefixed by here-, uninteresting lines elided): Hello, I had the same question a few months ago. I googled something like lisp backquote comma and found these links: - http://www.psg.com/~dlamkins/sl/chapter20.html - http://cl-cookbook.sourceforge.net/macros.html And for a scarily in-depth tutorial on lisp evaluation and macros (most of which afaIaw translates fairly directly to elisp) http://www.paulgraham.com/onlisptext.html (I have a long way to go with that one...) Dan Hope this helps :) Regards, ___ Emacs-orgmode 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] [ANN] org-mime -- using orgmode to send html mail?
Hi Eric, Thanks for the explicit feedback, it's very helpful. Eric S Fraga ucec...@ucl.ac.uk writes: [...] Interesting. This fails for me: 1. emacs -Q 2. in *scratch*: set load path appropriately, (require 'org-install), (require 'org-mime) 3. visit org test buffer 4. invoke org-mime-org-buffer-htmlize which fails with org-mime-file: Symbol's function definition is void: case although the HTML has been created and pushed to the kill ring according to the *Messages* buffer. 5. so try (require 'cl) Ah, thanks, I've added (require 'cl) to org-mime.el 6. try org-mime-org-buffer-htmlize again and now there is no error but the output is: I see the problem here, I've just pushed up a change to org-mime.el which will ensure that your html mime alternative will no longer be nil. However, you will continue to have t as your text alternative until you ensure that you are loading the latest version of the core of org-mode, as described in my recent email to Andrew. Please let me know how this goes. Best -- Eric , |#multipart type=alternative#part type=text/plain | * Testing mime in org | | This file will provide a simple test for the new mime encoding and | exporting features in org-mode. | | The most interesting aspect may be the use of \(y = \sum_i^n x_i^2\) | and, please, see the figure: | | [[./mip.png]] | #part type=text/htmlnil#/multipart | #part type=image/png filename=/home/ucecesf/s/test/mip.png id=_home_ucecesf_s_test_mip.png | #/part ` I hope some of this might help identify where the problem may lie? I can obviously send you my full org environment if you wish. I'm also happy to debug the org-mime code directly if you give me some idea of where to look! Thanks, 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] Embedding org-syntax in program source
LanX lanx.p...@googlemail.com writes: Hi Dan Right. Given the present forum I presume you are using emacs, so that shouldn't be a problem per se? Well, don't you think that telling other people that changing the _source_-code requires emacs might be a problem? Hi Rolf, Yes I agree that this is something to think about. I mean, obviously *they* can change it easily, but incorporating their edits to tangled output back into your (version-controlled) source org file isn't so easy. Best wishes, Dan I think you may have formed an inaccurate idea of how people are working with source code in org-mode. maybe... and I have to admit my knowledge of LP is theoretical (but at least I investigated the sources of TeX long ago! :) my idea for the beginning was to extend my codes with org-modes folding, linking and some TODO features in perl comments. Maybe automatically switching the mode when the cursor is entering/leaving comments. Multiline wouldn't be a problem since I can include them in POD (perl's simplified approach to LP) or I could embrace them in heredocs, for instance the following is legal perlcode as long as the last line is empty (no whitespaces allowed). ; * block1 ** [test] bla And relying on an extra step for code generation is dangerous... You would have to explain that assertion. Sorry, no offence intended, this is the common sense of perlmonks when talking about run time code generation and adding extra dependencies. (Maybe not the appropriate slang here...) I wouldn't find many to join my projects when relying on extra make files and I suppose running emacs in batch mode to tangle the code is not that stable. This is for sure acceptable with elisp or multilanguage projects. I didn't understand this. emacs is a natural habitat of elisp , like unix is one for C. And multilanguage projects would naturally rely on some make mechanisms. PS: I forgot to mention that when switching to other modes the highlighting will also get confused and fly-make will report plenty of syntax problems. I'm not sure what you mean here. When working with code in org-mode, one uses C-c ' to switch to a language major-mode buffer containing the body of the source code block. Is that working OK for you? hm, yes ...but if I do this I could equally embrace all org-mode-stuff in between =pod-lines or prepend a # to each line when switching to cperl-mode. Hooking this to save would guaranty to always have legal perlcode... bye Rolf ___ Emacs-orgmode 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] footnote bugs
Hi Samuel, On Apr 7, 2010, at 4:39 AM, Samuel Wales wrote: (setf org-footnote-auto-label 'confirm) (setf org-footnote-section nil) * top *** an article sadfkaj sdnfklaj nsfklandsf asd flkajnd sfa *** an article. exporting this to ascii does not export anonymous footnotes I sometimes[fn:3] mix regular[fn:1] footnotes and inline [fn:: There are issues here. For example, I have to type them in manually. You cannot leave empty; it won't accept it. Maybe it has to do with my ido setup. Exporting this to ASCII seems to silent fail. I tried fn:: text and fn::text.] ones[fn:2]. ASCII export of anonymous footnotes works fine for me. here is an example for your text above: The following text Some text[fn::text] with note is exported like this: Some text[1] with note [1] text Also, when inserting a footnote, I can eave the label empty - the fact that this is not working for you must mean that you have some completion setup that takes over the generic function `completing-read'. === [fn:1] ordinary. note that if you put point here and do c-c c-c, you will get sent to the next article, which is disconcerting. i expected it to go up to the thing that points to it. this situation, where you have duplicate footnote numbers in the same file, but different org entries, is very common when you refile an article. \par don't know how to separate paragraphs in a footnote in a way that fill-paragraph with filladapt will understand. would be nice if a way were possible, imo. I guess you can hack the paragraph... regexps to make \par a separator. [fn:2] another [fn:3] a third # a comment *** another article ordinary [fn:1], inline[fn:This is a test.], and regular[fn:2] footnotes. It is very difficult for org to find footnotes if there are several definitions in a buffer for the same footnote label. But I can follow you argument, so the definition is now search up in the buffer, before looking down. === [fn:1] regular [fn:2] usual *** another article asdfj alkdfn akljdn fklajdf askdfn al;ksjnf lajdnf klajdnf skjdhflakjdnf klajnf [fn:1] [fn:1] test *** another article asdknf lakjdnf ak asdkjfn aldjf Thanks. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Announcing org-ruby
Hi, has anybody tried or used this? Should we link to it on WOrg, or include it in the contrib directory? Thanks. - Carsten On Dec 27, 2009, at 10:19 PM, Brian Dewey wrote: I want to use org-mode files in one of the many Ruby static website generation tools (Webby, Webgen, Jekyll, etc.). Thus, I needed a way to extract simple HTML from an org-mode file without relying on emacs. Thus, org-ruby was born. It's not nearly as full featured as the emacs-based HTML export, but at the moment I am successfully using org-mode files as content for Webby static websites. Full source is here: http://github.com/bdewey/org-ruby Or you can just grab the gem and go: sudo gem install org-ruby ___ Emacs-orgmode 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] Custom agenda - wrong type argument
I'm trying to build a custom agenda that works with the current buffer. I've succeeded in getting the agenda to display with the current buffer like this: (setq org-agenda-custom-commands (quote ( (c Current Buffer agenda ((org-agenda-files (list (buffer-file-name) (f Home Buffer agenda ((org-agenda-files '(~/Documents/personal/nate.org ) ) ) However, when I view the agenda for the current buffer (by pressing c, every key I press gives me Wrong type argument: stringp, nil. The Home Buffer custom command above works fine. I know that you can easily restrict the agenda to the current file by pressing in the dispatcher, but I'm just hacking around and seeing how org-mode and lisp works. I'm using a bare-bones org-configuration: Emacs : GNU Emacs 23.1.93.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54) of 2010-03-09 on braeburn.aquamacs.org - Aquamacs Distribution 2.0preview5 Package: Org-mode version 6.35 (release_6.35g.25.g609e.dirty) current state: == (setq org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars) org-agenda-custom-commands '((c Current Buffer agenda ((org-agenda-files (list (buffer-file-name) (f Home Buffer agenda ((org-agenda-files (quote (~/Documents/personal/nate.org ) ) org-after-todo-state-change-hook '(org-clock-out-if-current) org-export-latex-format-toc-function 'org-export-latex-format-toc-default org-support-shift-select t org-export-preprocess-hook '(org-export-blocks-preprocess) org-tab-first-hook '(org-hide-block-toggle-maybe) org-src-mode-hook '(org-src-mode-configure-edit-buffer) org-confirm-shell-link-function 'yes-or-no-p org-export-first-hook '(org-beamer-initialize-open-trackers) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-export-preprocess-before-normalizing-links-hook '(org-remove-file-link-modifiers) org-mode-hook '(#[nil \300\301\302\303\304$\207 [org-add-hook change-major-mode-hook org-show-block-all append local] 5] ) org-confirm-elisp-link-function 'yes-or-no-p org-occur-hook '(org-first-headline-recenter) org-export-preprocess-before-selecting-backend-code-hook '(org-beamer-select-beamer-code) org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc org-beamer-auto-fragile-frames org-beamer-place-default-actions-for-lists) ) Thanks, --Nate ___ Emacs-orgmode 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: orgcard.txt in Makefile
On Tue, Apr 13, 2010 at 2:33 AM, Christian Egli christian.e...@sbszh.chwrote: Hi Nathan Neff nathan.n...@gmail.com writes: I'd like to use the orgcard.txt file that's included in the org-mode source. I like being able to search through a text file for relevant keyboard shortcuts. It doesn't seem like it's been updated since org version 6.10. I tried running make doc, but I don't think that orgcard.txt is generated in the make doc task. AFAIK It is not. Is orgcard.txt generated from orgcard.tex? If so, can anyone tell me how to do it? I presume that it is converted by hand. I tried a few automated tools (pdftotext, latex2html + w3m) but they all give very bad results. I would recommend to either a) compare the existing orgcard.pdf and orgcard.txt and update the existing orgcard.txt accordingly or b) cut'n'paste the text from a pdf viewer into emacs and do some magic with rectangles (as the text is in three columns) to achieve the desired result. Then submit the newest orgcard.txt as a patch so you will not have to keep it locally. Thanks Christian Very cool. I want to contribute back to org-mode, but I don't want to manually modify orgcard.txt :-) I will write a script that can parse the orgcard.tex file and pull out the goodies that we want in the orgcard.txt file. Regardless of whether that script is accepted into the org-mode base, I can run the script when there's an update to orgcard.tex, then submit the updated orgcard.txt. I should have a quick dirty script (Perl) done by next week. Thanks, --Nate -- Christian Egli Swiss Library for the Blind, Visually Impaired and Print Disabled Grubenstrasse 12, CH-8045 Zürich, Switzerland ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode 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] modeline clock string
On Mon, 12 Apr 2010 09:38:15 +0400, Yuri Goncharov g...@hl.ru wrote: Yuri Goncharov schrieb: I use xmonad with xmobar at my desktop. I'd like to add clock string from mode line to xmobar. Is there way to save it to file every time when update mode line? ---Zitatende--- You can find information on various subjects with M-x apropos but it's sometimes hard to find the right keyword. I emacs, certain functions are called when certain events occur, those functions are called hooks. I found display-time-hook by doing M-x aproposrethookret and then searching for status (no result) and update (which yielded display-time-hook). See documentation of variable display-time-hook Thanks to answer! I need some more help, because my knowledge of lisp too poor. I found two hooks like I need org-clock-in-hook and org-clock-out-hook. Function org-clock-get-clock-string returns string that is showing in mode line. I cant figure how to write it in file. Apologies to my english. -- Yuri Goncharov Maybe this will help: --8---cut here---start-8--- ;; DISPLAY-TIME (display-time) (defun esf/org-clocking-info-to-file () (with-temp-file ~/tmp/clocking ;; (message (org-clock-get-clock-string)) (if (org-clock-is-active) (insert (format org: %d/%d min (- (org-clock-get-clocked-time) org-clock-total-time) (org-clock-get-clocked-time)) ) ) ;;(org-clock-get-clock-string) ) ) (add-hook 'display-time-hook 'esf/org-clocking-info-to-file) --8---cut here---end---8--- I use this to place information on clocking at the top of my display (using dzen2 with ratpoison). I have minimal space so only include the time information, not the full information which typically includes the org-heading being clocked. This doesn't work properly if you have two emacs instances but I can't be bothered to improve it as I *never* have two or more emacs running... that's what emacsclient is for, after all... ;-) HTH, 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] footnote bugs
Hi Carsten, Thanks for reply. By the way, for quite some time now for health reasons I have not been able to deal with email much or contribute to org or polish my large backlog of ideas or be detailed or do anything else. Apologies if I have neglected anything important. Here is a brief response. On 2010-04-14, Carsten Dominik carsten.domi...@gmail.com wrote: ASCII export of anonymous footnotes works fine for me. here is an example for your text above: Works for me now. I have to leave a space before the text, which is fine. Also, when inserting a footnote, I can eave the label empty - the fact that this is not working for you must mean that you have some completion setup that takes over the generic function `completing-read'. Works for me now. I just c-j to select emptiness. A minor suggestion. It offers me a bunch of numbers for completion of existing footnotes. However, typing a number is easier than choosing it with ido, and return to select emptiness is therefore more useful. Maybe (maybe not) it would be possible to not have completion for footnotes, optionally. I realize some people use text labels. I guess you can hack the paragraph... regexps to make \par a separator. Far beyond my ability now. But would be nice, I agree. But I can follow you argument, so the definition is now search up in the buffer, before looking down. My guess is that that will work just fine. On a tilting at windmills sort of note (maybe too much effort since footnotes seem to work now, at least in these ways), I still think that it might possibly allow for parsimonous code to replace all of the footnote code with ID markers. :) If the idea is sound, then this would allow one codebase for multiple functionalities for less maintenance. The syntax would look the same to the user because of overlays. It also would allow future features without introducing or modifying syntax. I have followups from long ago on this topic that I haven't polished yet that explains further, but I think I mentioned it before. No reply necessary, just pointing out another windmill. Not a feature request! I can't defend it now. Thanks. Samuel -- Q: How many CDC scientists does it take to change a lightbulb? A: You only think it's dark. [CDC has denied a deadly disease for 25 years] == Retrovirus: http://www.wpinstitute.org/xmrv/index.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
Re: [Orgmode] Plans for synching with Emacs dev sources?
Carsten Dominik carsten.domi...@gmail.com writes: On Apr 14, 2010, at 12:37 AM, Eric Schulte wrote: [...] If this is the case, then should we start pushing new versions of Org-mode to the Emacs development repository at every *Org-mode* version bumb, rather than at every Emacs version bump? In principle, this is the idea. Before 6.33 I pretty much pushed every Org-mode release to Emacs. At that point, Emacs went into feature freeze for another release (23.2, I believe), and therefore I had to stop updating. Now it is time to get back into this - but I have not done it due to time constraints. It is not trival to push our changes to Emacs. - Emacs now uses bzr, which I am not familar with. I have installed bzr and pulled the Emacs trunk onto my machine - but I still need to test if I can actually commit using that setup. I wish Emacs had chosen git, because this is what I know reasonably well now, and because git is, from what I can tell, better. I think it's safe to say that git is better than bzr (significantly faster and more mature). From what I could glean panning through the emacs-dev mailing archives, the *only* reason that Emacs now uses bzr over git is because bzr is officially part of the GNU ecosystem. - There are a lot of issues that need to be taken care of. 1. The Emacs developers regularly make global changes o all code in Emacs, to make use of new features or to implement new conventions. I try to merge all these changes into my development version. Sometimes this is not possible, because the changes the Emacs developers introduce will not work for older versions of Emacs (like Emacs 21 or 22). Example: interactive-p and called-interactively. for what it's worth, I've been tracking the Emacs development version (updating ~1/week) and I haven't noticed incompatibilities or problems. 2. Because I am not as good with version control as I would like to be handwork has to be done, and I have been burned in the past several times because my changes reverted some changes made inside Emacs. This is a psychological barrier for me to go ahead and make the next update. Nevertheless, I am planning to update Emacs again - but I am not sure exactly when I will find the time. I think one approach may be to perform all of the merging against the git mirror of the Emacs repo (git://repo.or.cz/emacs.git), and then there should be an easy way to /git fast export/ /bzr fast import/ the changes over from the git mirror to the bar repo. If there is a volunteer who is willing to take charge of the synchronization with Emacs, this would be absolutely great. But it would have to be a dedicated and careful person, who is willing to patiently work through the issues. I wish I could help, but I honestly don't have the time such a commitment would require. Best -- Eric - Carsten -- 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 - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Newbie elisp programmer requests a pointer to backtics...
David Maus wrote: Russell L. Carter wrote: These things are called backquotes, discussed in GNU Emacs Lisp Reference Manual Section 13.5. Ah. Looking at that section, backquote instead of backtic, and the comma is a special marker. Exactly what I needed. Much obliged, Russell HTH -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Newbie elisp programmer requests a pointer to backtics...
Dan Davison wrote: Thomas Jost schno...@schnouki.net writes: I had the same question a few months ago. I googled something like lisp backquote comma and found these links: - http://www.psg.com/~dlamkins/sl/chapter20.html - http://cl-cookbook.sourceforge.net/macros.html And for a scarily in-depth tutorial on lisp evaluation and macros (most of which afaIaw translates fairly directly to elisp) http://www.paulgraham.com/onlisptext.html Thanks all. Scanning through these they look most excellent. I have been putting off this day for 20 years, but because of org-mode I'm now learning elisp. Best, Russell (I have a long way to go with that one...) Dan Hope this helps :) Regards, ___ Emacs-orgmode 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] [ANN] org-mime -- using orgmode to send html mail?
Thanks! I finally got it to work. I actually did have the latest code, but my issue was that when I upgraded to the new org, I forgot to byte-compile before I did M-x org-reload. After I got your latest code, it all works now. I'm looking forward to using it! On Wed, Apr 14, 2010 at 10:59 AM, Eric Schulte schulte.e...@gmail.comwrote: Hi Andrew, I started my emacs with the -Q option, and to my surprise I got the same error that you have described. I've been able to hunt down the source of this problem, and it is an old version of org-export-as-org, which means that you are not loading the latest version of the core org-mode, but rather the version distributed with Emacs. This is what happened to me when I started with the -Q option and simple required org-install without first adding the path to the newer version of org-mode to my load path. An easy way to verify that this is the case is to call describe-function with C-h f org-export-as-org, then jump to the source-code of the function by pressing enter on the linked function name, and jumping down to the last 5 lines of the function definition. If they don't look like (if (equal to-buffer 'string) (progn (setq str-ret (buffer-string)) (kill-buffer (current-buffer)) str-ret) (kill-buffer (current-buffer))) then you are still using an old version of Org-mode. Hopefully once you are sync'd to the head of the org-mode repository this error will be fixed. Hope this helps, Best -- Eric Andrew Hyatt ahy...@gmail.com writes: I do get the same result you do. Hopefully, I'll have some time tomorrow to look into the issue. RIght now, though, my problem is not the nil, but the error I reported in my previous email. On Tue, Apr 13, 2010 at 8:57 PM, Eric Schulte schulte.e...@gmail.com wrote: So, for some reason the `org-mime-org-export' helper function is returning nil on your (and Eric's) machines. Could you try evaluating (C-M-x) the following in your *scratch* buffer? (insert (org-mime-org-export html - first - second - third (make-temp-file quick-test))) When I execute the above it inserts the following into the scratch buffer ul li first /li li second /li li third /li /ul If instead you get an error, or it inserts nil, then it means that our systems are somehow different with respect to that function, which is a slight alteration of `org-run-like-in-org-mode'. At that point you could try using something like (org-run-like-in-org-mode 'org-export-as-html) to export a non-html buffer to html, or you could also try starting up Emacs with the -Q option, then loading org-mime.el, opening an org-mode file, and calling org-mime-org-buffer-htmlize, and sending an email to yourself. Sorry I can't be of more help, I'm really mystified as to how this function could be returning nil. Best -- Eric Andrew Hyatt ahy...@gmail.com writes: Thanks for the response. I upgraded, now I get a Debugger entered--Lisp error: (wrong-type-argument arrayp t) substring(t 33) (progn (insert org-mime-default-header) (insert body) (write-file tmp-file) (org-load-modules-maybe) (unless org-local-vars (setq org-local-vars ...)) (substring (eval ...) (if ... ... 0))) (unwind-protect (progn (insert org-mime-default-header) (insert body) (write-file tmp-file) (org-load-modules-maybe) (unless org-local-vars ...) (substring ... ...)) (and (buffer-name temp-buffer) (kill-buffer temp-buffer))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn ... ... ... ... ... ...) (and ... ...))) (with-current-buffer temp-buffer (unwind-protect (progn ... ... ... ... ... ...) (and ... ...))) (let ((temp-buffer ...)) (with-current-buffer temp-buffer (unwind-protect ... ...))) (with-temp-buffer (insert org-mime-default-header) (insert body) (write-file tmp-file) (org-load-modules-maybe) (unless org-local-vars (setq org-local-vars ...)) (substring (eval ...) (if ... ... 0))) (save-excursion (with-temp-buffer (insert org-mime-default-header) (insert body) (write-file tmp-file) (org-load-modules-maybe) (unless org-local-vars ...) (substring ... ...))) org-mime-org-export(org #(\nHTML test\n\n~foo~\n=bar=\n_baz_\n\n| 1 | 2 |\n| a | b |\n 0 1 (fontified t) 1 11 (fontified t) 11 12 (fontified t) 12 18 (fontified t) 18 24 (fontified t) 24 30 (fontified t) 30 31 (fontified t) 31 40 (fontified t face (gnus-cite-1 message-cited-text)) 40 41 (fontified t) 41 50 (fontified t face (gnus-cite-1 message-cited-text)) 50 51 (fontified t)) /tmp/mail2522ZvL) (let* ((region-p ...) (html-start ...) (html-end ...) (raw-body ...) (tmp-file ...) (body ...) (org-export-skip-text-before-1st-heading nil) (org-export-htmlize-output-type ...) (org-export-preserve-breaks org-mime-preserve-breaks)
[Orgmode] Re: [ANN] org-mime -- using orgmode to send html mail?
Andrew Hyatt ahy...@gmail.com writes: Thanks! I finally got it to work. I actually did have the latest code, but my issue was that when I upgraded to the new org, I forgot to byte-compile before I did M-x org-reload. After I got your latest code, it all works now. I'm looking forward to using it! This is one reason I have stopped byte-compiling mine. I haven't noticed a speed degradation and it's one less step each time I upgrade org-mode. Just check out the version of org I want to play with and M-x org-reload and I'm done. Other reasons (I can think of immediately): - No more issues with compiled version being different than the sources -- since there is no compiled version - Stack dumps are more readable - Hacking on the code is easier - Tracking down source commits for bugs with git bisect doesn't need extra compilation steps (or time) 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] [ANN] org-mime -- using orgmode to send html mail?
On Wed, 14 Apr 2010 09:12:59 -0600, Eric Schulte schulte.e...@gmail.com wrote: Hi Eric, Thanks for the explicit feedback, it's very helpful. You're very welcome! It's the least I can do. 6. try org-mime-org-buffer-htmlize again and now there is no error but the output is: I see the problem here, I've just pushed up a change to org-mime.el which will ensure that your html mime alternative will no longer be nil. Thanks. I've pulled and it now works better, in that the HTML element is now not-nil. However, it's not quite right and other aspects are still not working. I'm attaching three files: the original org file I'm using to test the mime encoding, a small image used for the test, and the resulting message I receive when I've sent the result of mime exporting. There are definitely problems in encoding images, whether one explicitly linked to in the org file or one created for latex equations. Some (maybe all?) of the problems may be due to Wanderlust. I imagine you don't use WL so if there's any help I can provide in debugging this combination, please let me know! I do note that the text contents for the email created in the buffer do differ from what I get when I explicitly insert attachments. However, you will continue to have t as your text alternative until you ensure that you are loading the latest version of the core of org-mode, as described in my recent email to Andrew. I am most definitely *always* using the latest version! Currently, I have Org-mode version 6.35g (release_6.35g.48.g3102). Thanks, eric * Testing mime in org This file will provide a simple test for the new mime encoding and exporting features in org-mode. The most interesting aspect may be the use of \(\displaystyle y = \sum_i^n x_i^2\) and, please, see the figure: [[./mip.png]] inline: mip.png 6128.eml Description: Binary data ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Announcing org-ruby
Actually Github is using it now to show org files for project readme's. On Wed, Apr 14, 2010 at 10:59 AM, Carsten Dominik carsten.domi...@gmail.com wrote: Hi, has anybody tried or used this? Should we link to it on WOrg, or include it in the contrib directory? Thanks. - Carsten On Dec 27, 2009, at 10:19 PM, Brian Dewey wrote: I want to use org-mode files in one of the many Ruby static website generation tools (Webby, Webgen, Jekyll, etc.). Thus, I needed a way to extract simple HTML from an org-mode file without relying on emacs. Thus, org-ruby was born. It's not nearly as full featured as the emacs-based HTML export, but at the moment I am successfully using org-mode files as content for Webby static websites. Full source is here: http://github.com/bdewey/org-ruby Or you can just grab the gem and go: sudo gem install org-ruby ___ Emacs-orgmode 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 ___ Emacs-orgmode 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] Using Org for browsing and managing buffers
On Thu, 08 Apr 2010 21:17:20 -0400, Dan Davison davi...@stats.ox.ac.uk wrote: I've been working on an Org tool to browse Emacs buffers. Emacs has the function list-buffers (C-x C-b), where you can view a list of buffers, delete buffers, etc. This is intended to be a replacement for list-buffers, implemented in Org-mode. Excellent! I really like this. I currently use both bs-show and ido for buffer selection but I could easily be convinced to use this instead of bs-show. Some comments: The buffer has some special key-bindings: I have a problem with the current bindings: you are (I guess) trying to emulate dired to some degree (cf. bindings for RET, 'd', 'o' [1] and 'x'). It would be nice therefore to have movement bindings as well ('n' and 'p'). I can obviously bind these myself but 'p' is already taken and it would be nice to be as consistent with the defaults as possible. Maybe 'P' for properties on/off? When I tried column view, the default widths are much too wide for my netbook. Can these be changed? More importantly, when I left column view, the buffer view was now different than the original view. Originally, I had two levels (mode + buffer) and now it was a single level (buffer). How do I get back to mode+buffer two level view? Thanks again! eric Footnotes: [1] I found 'o' initially annoying as knowing that I was in org, I expected it to behave like 'o' in agenda (hide other window)... ___ Emacs-orgmode 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] My reference data management approach with org and emacs
I have published a more detailed description of my setup, including the source code, here: http://www.jboecker.de/2010/04/14/general-reference-filing-with-org-mode.html Thanks to Claus and Marcelo for the (off-list) nudge to do this. (It's getting late, so I finally stopped fiddling with the layout and changing phrases.) - Jan ___ Emacs-orgmode 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: emacs/org-mode on Droid?
Matthew Jones m...@matburt.net writes: There are plenty of free webdav services out there, a quick google search came up with a few... I haven't used any of them as I run my own on my VPS, but check out http://www.box.net or http://mydisk.se Any of these should work fine with MobileOrg I use mydisk.se with MobileOrg for Android. It's definitely working. But it's only free for some weeks, but not very expensive after that. Greetings, Sven ___ Emacs-orgmode 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] Using org-agenda opens all my .org files.
Hi, Another impressed newbie here. When I run org-agenda to look at all my TODO's - every single .org file is opened into buffers. Is this simply the way it works or is my setup incorrect? It's a pain to have to kill all those buffers each time. Setup is: ;; Org-mode settings (require 'org-install) (add-to-list 'auto-mode-alist '(\\.org\\' . org-mode)) (global-set-key \C-cl 'org-store-link) (global-set-key \C-ca 'org-agenda) (global-set-key \C-cb 'org-iswitchb) (setq org-log-done t) (setq org-return-follows-link t) (setq org-agenda-files (file-expand-wildcards ~/org/*.org)) ;remember (require 'remember) ;(org-remember-insinuate) (setq org-directory ~/org/) (setq org-default-notes-file (concat org-directory /notes.org)) (setq remember-annotation-functions '(org-remember-annotation)) (setq remember-handler-functions '(org-remember-handler)) (add-hook 'remember-mode-hook 'org-remember-apply-template) (define-key global-map \C-cr 'org-remember) Thanks, ||Rich Wellum ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Using org-agenda opens all my .org files.
Rich Wellum richwel...@gmail.com writes: When I run org-agenda to look at all my TODO's - every single .org file is opened into buffers. Is this simply the way it works or is my setup incorrect? It's a pain to have to kill all those buffers each time. This is the way that org-mode works. If you'd like to release/kill your org-mode buffers, simply type x in the agenda. Might I ask why you want to kill the org buffers once they have been opened? It is a relatively expensive operation to open and parse all the org files the first time the agenda is generated. However, once the org files (and all the properties added by org-mode) are loaded into memory, agenda creation is much quicker. 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] Make a time-stamp non-interactively
Hi all, I'm still new to elisp, so forgive me if I am missing something obvious... I would like to make an orgmode active time-stamp from within a custom function I am writing. I have looked at `org-time-stamp' but do not see a way to call this in a *non-interactive* fashion from my code. Inside `org-time-stamp' I was looking for a core time-stamp function that the interactive functions would call... but could not make one out. Is there a function already defined that when called will make a time-stamp with default values? If not, can someone point out the lines of code inside `org-time-stamp' that I can duplicate in my own code? I would prefer not to have to make a macro. Thank you, Zachary ___ Emacs-orgmode 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: Make a time-stamp non-interactively
Hi all, Sorry, I did some more digging right after I sent this, and found the following in org-remember.el: (ct (or org-overriding-default-time (org-current-time))) (format-time-string (car org-time-stamp-formats) ct) So, there it is. Thank you, Zachary On Wed, Apr 14, 2010 at 6:56 PM, Zachary Young zacharysyo...@gmail.comwrote: Hi all, I'm still new to elisp, so forgive me if I am missing something obvious... I would like to make an orgmode active time-stamp from within a custom function I am writing. I have looked at `org-time-stamp' but do not see a way to call this in a *non-interactive* fashion from my code. Inside `org-time-stamp' I was looking for a core time-stamp function that the interactive functions would call... but could not make one out. Is there a function already defined that when called will make a time-stamp with default values? If not, can someone point out the lines of code inside `org-time-stamp' that I can duplicate in my own code? I would prefer not to have to make a macro. Thank you, Zachary ___ Emacs-orgmode 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: Make a time-stamp non-interactively
Zachary Young zacharysyo...@gmail.com writes: Hi all, I'm still new to elisp, so forgive me if I am missing something obvious... I would like to make an orgmode active time-stamp from within a custom function I am writing. I have looked at `org-time-stamp' but do not see a way to call this in a *non-interactive* fashion from my code. Inside `org-time-stamp' I was looking for a core time-stamp function that the interactive functions would call... but could not make one out. Is there a function already defined that when called will make a time-stamp with default values? If not, can someone point out the lines of code inside `org-time-stamp' that I can duplicate in my own code? I would prefer not to have to make a macro. Thank you, Zachary Hi Zachary, You probably want something like org-insert-time-stamp. I use this to insert inactive timestamps in buffers like this: (defun bh/insert-inactive-timestamp () (interactive) (org-insert-time-stamp nil t t nil nil nil)) If you change the third parameter from t to nil it gives you active timestamps. See the docstring for more details. HTH, Bernt ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [ANN] org-mime -- using orgmode to send html mail?
Eric S Fraga ucec...@ucl.ac.uk writes: [...] Thanks. I've pulled and it now works better, in that the HTML element is now not-nil. However, it's not quite right and other aspects are still not working. I'm attaching three files: the original org file I'm using to test the mime encoding, a small image used for the test, and the resulting message I receive when I've sent the result of mime exporting. There are definitely problems in encoding images, whether one explicitly linked to in the org file or one created for latex equations. Some (maybe all?) of the problems may be due to Wanderlust. I imagine you don't use WL so if there's any help I can provide in debugging this combination, please let me know! Yes, there absolutely is something you can do to help. I think you're right that my poor WL syntax is most likely the problem. All of the WL specific syntax is in the `org-mime-file' and `org-mime-multipart' functions. To start could you try replace the 'semi portion of the case statement in `org-mime-multipart' with the following (I'd paste the whole function but it'd break my outgoing gnus email) the syntax here is updated based on a function from http://www.emacswiki.org/emacs/WlFaq#toc10. --8---cut here---start-8--- ('semi (concat -- alternative-{\n -- [[text/plain]]\n plain -- [[text/html]]\n html -- }-alternative\n)) --8---cut here---end---8--- That *should* fix the exportation of html portions w/o pictures, the WL syntax in `org-mime-file' will need to be fixed for image attachments. I do note that the text contents for the email created in the buffer do differ from what I get when I explicitly insert attachments. yes, hopefully once these are brought into line then org-mime will work for WL as well as gnus. Thanks -- Eric ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: emacs/org-mode on Droid?
Sven, On 4/14/2010 2:36 PM, Sven Bretfeld wrote: Matthew Jonesm...@matburt.net writes: There are plenty of free webdav services out there, a quick google search came up with a few... I haven't used any of them as I run my own on my VPS, but check out http://www.box.net or http://mydisk.se Any of these should work fine with MobileOrg I use mydisk.se with MobileOrg for Android. It's definitely working. But it's only free for some weeks, but not very expensive after that. Greetings, Sven I am having trouble getting a command-line connection to *any* of these services. I have tried mydrive.ch and box.net both and can get a web-based connection but cannot get scp or any other mechanism to work. I have Windows Vista and the latest Cygwin tools installed. Until I can figure out how to make this work I'm afraid that MobileOrg is not going to work for me. Mark ___ Emacs-orgmode 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: emacs/org-mode on Droid?
Could you just map the drive and treat it like a local disk? There was a post about it a little while ago: http://www.mail-archive.com/emacs-orgmode@gnu.org/msg21513.html 73, Matthew W. Jones (KI4ZIB) http://matburt.net On Wed, Apr 14, 2010 at 11:21 PM, Mark Elston m_els...@comcast.net wrote: Sven, On 4/14/2010 2:36 PM, Sven Bretfeld wrote: Matthew Jonesm...@matburt.net writes: There are plenty of free webdav services out there, a quick google search came up with a few... I haven't used any of them as I run my own on my VPS, but check out http://www.box.net or http://mydisk.se Any of these should work fine with MobileOrg I use mydisk.se with MobileOrg for Android. It's definitely working. But it's only free for some weeks, but not very expensive after that. Greetings, Sven I am having trouble getting a command-line connection to *any* of these services. I have tried mydrive.ch and box.net both and can get a web-based connection but cannot get scp or any other mechanism to work. I have Windows Vista and the latest Cygwin tools installed. Until I can figure out how to make this work I'm afraid that MobileOrg is not going to work for me. Mark ___ Emacs-orgmode 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: emacs/org-mode on Droid?
Mark Elston m_els...@comcast.net wrote: I am having trouble getting a command-line connection to *any* of these services. I have tried mydrive.ch and box.net both and can get a web-based connection but cannot get scp or any other mechanism to work. I have Windows Vista and the latest Cygwin tools installed. Until I can figure out how to make this work I'm afraid that MobileOrg is not going to work for me. There is a command-line webdav client for Unix called ``cadaver''. The web page http://webdav.org/cadaver/ indicates that there is a Cygwin port. 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] Using Org for browsing and managing buffers
Eric S Fraga ucec...@ucl.ac.uk writes: On Thu, 08 Apr 2010 21:17:20 -0400, Dan Davison davi...@stats.ox.ac.uk wrote: I've been working on an Org tool to browse Emacs buffers. Emacs has the function list-buffers (C-x C-b), where you can view a list of buffers, delete buffers, etc. This is intended to be a replacement for list-buffers, implemented in Org-mode. Excellent! I really like this. I currently use both bs-show and ido for buffer selection but I could easily be convinced to use this instead of bs-show. Hi Eric, Some comments: The buffer has some special key-bindings: I have a problem with the current bindings: you are (I guess) trying to emulate dired to some degree (cf. bindings for RET, 'd', 'o' [1] and 'x'). It would be nice therefore to have movement bindings as well ('n' and 'p'). I can obviously bind these myself but 'p' is already taken and it would be nice to be as consistent with the defaults as possible. Yes, I think I'm trying to emulate dired while still staying true to Org. But I hadn't thought carefully about the keybindings yet and your comments are very helpful. As an experiment at least, I've now changed things so that Org speed commands are turned on everywhere in the buffer. That means that we gain all the commands listed in `org-speed-commands-default', including n, p, f, b, u for movement. Another one I notice is useful is '.' for outline-mark-subtree, so that '. d x' deletes a group of buffers This does also mean that various inappropriate speed commands become exposed (but then pressing random keys is a strategy that should be confined to gnus). Maybe 'P' for properties on/off? Done. When I tried column view, the default widths are much too wide for my netbook. Can these be changed? I've made them narrower by default, and introduced a customizable variable org-buffers-columns-format. More importantly, when I left column view, the buffer view was now different than the original view. Thanks. I've fixed that. Originally, I had two levels (mode + buffer) and now it was a single level (buffer). How do I get back to mode+buffer two level view? org-buffers-list:by, which is now bound to B (used to be b). It brings up minibuffer completion for the property you want to group by, so B maj RET would be enough to regroup by major-mode (should you need to). Thanks again! eric Footnotes: [1] I found 'o' initially annoying as knowing that I was in org, I expected it to behave like 'o' in agenda (hide other window)... Noted. On the other hand o in Org speed commands is bound to org-open-at-point. I've got rid of my binding and am allowing it to fall through to the speed command default but I'd welcome any further suggestions. Note that the variable org-buffers-follow-link-method can be used so specify the behaviour of RET on a line with a buffer link. Thanks a lot for the comments. The columns view thing is a bit experimental still; I'm not sure what to do about the key bindings, or indeed quite what the purpose of it is in this context, but it did seem like a natural buffer to allow it in. I haven't used bs-show. It might be interesting to try to get some of the power of ibuffer in this mode. But Org is better than the alternatives at hierarchical grouping and tree navigation. And also, the alternatives are very ugly. Current code below and at http://github.com/dandavison/org-buffers. Dan ;;; org-buffers.el --- An Org-mode tool for buffer management ;; Copyright (C) 2010 Dan Davison ;; Author: Dan Davison dandavison0 at gmail dot com ;; Keywords: outlines, hypermedia, calendar, wp ;; Homepage: http://orgmode.org ;;; License: ;; This program is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by ;; the Free Software Foundation; either version 3, or (at your option) ;; any later version. ;; ;; This program is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;; GNU General Public License for more details. ;; ;; You should have received a copy of the GNU General Public License ;; along with GNU Emacs; see the file COPYING. If not, write to the ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, ;; Boston, MA 02110-1301, USA. ;;; Commentary: ;;; Code: (require 'org) (require 'cl) ;;; Variables (defvar org-buffers-buffer-name *Buffers* Name of buffer in which buffer list is displayed) (defvar org-buffers-state '((:by . major-mode) (:atom . heading) (:properties . nil)) Association list specifying the current state of org-buffers.) (defvar org-buffers-follow-link-method 'org-open-at-point Method used to follow link with RET. Must be one of 'org-open-at-point :: use `org-open-at-point' to follow link. 'current-window:: use switch-to-buffer 'other-window :: use
[Orgmode] How you ORGanize yourself? (aka: Why not one file to rule'em all?)
Hello list, This is a thread to share your org dir (you have one right) file structure. The title is because I see many of org users prefer having big monolithic files, and I have a slightly different line of thought. Well, I'm a GTD proponent. GTD, excluding the hype behind it, is pretty simple. If you take into account only the mastering workflow (low level next actions), then it's just a matter of capturing, procesing, organizing, reviewing and doing. The Weekly review is also a very important component. So I have: * org/ ** gtd/ *** GTD.org - main projects and next actions lists *** GTDInbox.org - unprocessed captured stuff *** GTDHorizonsOfFocus.org - horizons of focus, goals and visions *** GTDSomedayMaybe.org - projects an actions I'd like to do someday (big) *** ReferenceNotes.org - quick notes that I'd like to keep as reference *** BlogPostIdeas.org - Ideas for blogposts and pseudo-projects for blog posts write-ups and drafts) *** CodingExperiments.org - List of open source projects and other sandbox-like stuff I'm acting or would like to act on ** wiki/ *** Lots of files. Mostly stuff I update regularly. Also considered reference. ** diary/ *** Lots of files. One for each day I write on my journal. All have .org extension too, of course. ** attachments/ - any binary attachments. That I'd like to keep. The only file in the agenda list is GTD.org. This is the front-end of the system. I know many of you will tell me I'm not using agenda the way it's supposed to be used, and probably I'm not. I'm willing to learn more efficient ways though; what I could probably do is setup more agenda filters and tag wisely, but my knowledge of elisp and org's internals don't allow me to do that yet. I have a pretty simple trick though. I have a custom rgrep function that searches across all these files. So, except the gtd stuff, mainly the GTD.org (which should have only actionable tasks and respective projects), all the rest is a big network of information, really -- I keep inputting information (in the form of a entry on ReferenceNotes.org or a new wiki page) and try to tag (just by creating a * tag headline item and tagging each file in the case of a wiki page or just tagging the item on ReferenceNotes.org) properly, then forget about it. I'd say I don't put other files on the agenda in order not to pollute the front-end. You see, I wouldn't like to see Inbox items (from GTDInbox.org) on the agenda for example, as they are not actionable. If I want to see them, I just open the file (and I have a shortcut for that, C-x r j i (a register)), but in the case of GTD.org, the agenda really makes the difference, because I have items tagged as context (@home, @call), projects, categories, etc, as well as my calendar. The big question here is: Why not using only one file (Maybe stick to only ReferenceNotes.org) ? Well, to be honest, it still seems awkward for me. For quick reference data (like I used to use tomboy for) the ReferenceNotes.org feels great -- I'm it as a big file for static reference data, data that doesn't change often or doesn't evolve (which I'm going to improve by implementing Jan's system, thanks for the post, Jan!) and also one for GTD (GTD.org), but the rest is spread around many files. I know org can manage a big blog of text in a way multiple files wouldn't be needed (you can narrow, etc), but I still think that keeping the diary and the wiki in mutiple files is a batter approach. Also, swithing files and searching for files in emacs is very fast, and I'm still not that fast on org commands ;) On top of this, I've installed howm-mode, and it's quite neat. If you are writing on a file and then type something like: wiki/myarticle.org MyArticle On any other subsequent file you edit, it will highlight that very word and allow you to follow the link to the file. Nice to keep a wiki ontop of org, like this: wiki/anotherfile.org *MyArticle* -- gets underlined and allows you to follow the link As for the wiki -- I don't want a wiki to be published, i.e: online. Back on my Windows days (long time ago :)) I used to use wikidpad for reference data and it worked very well. What I have here is an attempt of getting near the functionality of wikidpad (a real-time wiki for the desktop). Again, I probably could simplify this a lot, and I'm open to suggestions ;) Marcelo. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode