Re: [O] org-odt compatibility patches
Hi Jambunathan, Jambunathan K kjambunat...@gmail.com writes: Could you please commit this? Done, thanks. -- Bastien
Re: [O] Corrections for org mode manual
Hi Bastien, thank you for including the patches. Also note that the convention is to use a double-space at the ending of each sentence. There are a lot of fixes needed to this regard... This patch should take care of (I hope all) the double spaces at the ending of the sentences (and a few other formatting issues). Best Julian From ac31b86b5a3be0cfa2e994fef42e777ed1a3f115 Mon Sep 17 00:00:00 2001 From: Julian Gehring julian.gehr...@googlemail.com Date: Sat, 25 Jun 2011 10:50:40 +0200 Subject: [PATCH] fix double spacing at the end of sentences in whole org mode manual --- doc/org.texi | 260 +- 1 files changed, 130 insertions(+), 130 deletions(-) diff --git a/doc/org.texi b/doc/org.texi index 7614b1a..721fe78 100644 --- a/doc/org.texi +++ b/doc/org.texi @@ -1426,7 +1426,7 @@ commands can be accessed through a dispatcher: This prompts for an extra key to select a sparse-tree creating command. @orgcmd{C-c / r,org-occur} @vindex org-remove-highlights-with-change -Occur. Prompts for a regexp and shows a sparse tree with all matches. If +Prompts for a regexp and shows a sparse tree with all matches. If the match is in a headline, the headline is made visible. If the match is in the body of an entry, headline and body are made visible. In order to provide minimal context, also the full hierarchy of headlines above the match @@ -1658,7 +1658,7 @@ converted into a list item. @kindex C-c * @item C-c * Turn a plain list item into a headline (so that it becomes a subheading at -its location). @xref{Structure editing}, for a detailed explanation. +its location). @xref{Structure editing}, for a detailed explanation. @kindex C-c C-* @item C-c C-* Turn the whole plain list into a subtree of the current heading. Checkboxes @@ -1940,7 +1940,7 @@ unpredictable for you, configure the variables @table @kbd @tsubheading{Creation and conversion} @orgcmd{C-c |,org-table-create-or-convert-from-region} -Convert the active region to table. If every line contains at least one +Convert the active region to table. If every line contains at least one TAB character, the function assumes that the material is tab separated. If every line contains a comma, comma-separated values (CSV) are assumed. If not, lines are split at whitespace into fields. You can use a prefix @@ -2520,7 +2520,7 @@ a Lisp string (in double-quotes) containing the field. If you provide the @samp{N} mode switch, all referenced elements will be numbers (non-number fields will be zero) and interpolated as Lisp numbers, without quotes. If you provide the @samp{L} flag, all fields will be interpolated literally, -without quotes. i.e., if you want a reference to be interpreted as a string +without quotes. I.e., if you want a reference to be interpreted as a string by the Lisp form, enclose the reference operator itself in double-quotes, like @code{$3}. Ranges are inserted as space-separated fields, so you can embed them in list or vector syntax. Here are a few examples---note how the @@ -3027,7 +3027,7 @@ or with a mouse click (@pxref{Handling links}). Links to custom IDs will point to the corresponding headline. The preferred match for a text link is a @i{dedicated target}: the same string in double angular brackets. Targets may be located anywhere; sometimes it is convenient to put them into a -comment line. For example +comment line. For example @example # My Target @@ -3323,7 +3323,7 @@ displayed at startup by configuring the variable @orgcmd{C-c %,org-mark-ring-push} @cindex mark ring Push the current position onto the mark ring, to be able to return -easily. Commands following an internal link do this automatically. +easily. Commands following an internal link do this automatically. @c @orgcmd{C-c ,org-mark-ring-goto} @cindex links, returning to @@ -3428,7 +3428,7 @@ not accept any arguments, and return the full link with prefix. File links can contain additional information to make Emacs jump to a particular location in the file when following a link. This can be a line number or a search option after a double@footnote{For backward -compatibility, line numbers can also follow a single colon.} colon. For +compatibility, line numbers can also follow a single colon.} colon. For example, when the command @kbd{C-c l} creates a link (@pxref{Handling links}) to a file, it encodes the words in the current line as a search string that can be used to find this line back later when following the @@ -4239,7 +4239,7 @@ large number of subtasks (@pxref{Checkboxes}). @vindex org-list-automatic-rules Every item in a plain list@footnote{With the exception of description -lists. But you can allow it by modifying @code{org-list-automatic-rules} +lists. But you can allow it by modifying @code{org-list-automatic-rules} accordingly.} (@pxref{Plain lists}) can be made into a checkbox by starting it with the string @samp{[ ]}. This feature is similar
Re: [O] Corrections for org mode manual
Julian Gehring julian.gehr...@googlemail.com writes: This patch should take care of (I hope all) the double spaces at the ending of the sentences (and a few other formatting issues). Applied, thanks a lot! Best, -- Bastien
Re: [O] How to attach data in clipboard directly?
Hello What I want is that emacs/orgmode understands the contents of the clipboard and creates that file for me. For instance, if it detects that the contents of the clipboard is an image or some sort of non-text format, emacs would dump the clipboard data to a file, auto-generate a filename, guessing the data type, and attach that file to my org-file via org-attach-attach. See Automatic screenshot insertion on Worg: http://orgmode.org/worg/org-hacks.html#sec-3-8 Best regards, Seb Thank you for your suggestion, Seb. The script Automatic screenshot insertion from Worg is based on import from Imagemagick, which operates on X buffers. I'm actually running Aquamacs in Mac OS X (10.6), so this solution doesn't work for me. Nevertheless, it's a good pointer: I was able to cook up an elisp function that calls an applescript to do the osx-dependent stuff. I suppose that X11 users could use xclip or xsel instead (did not try it, though). Here is the elisp bit: (defun org-capture-clipboard-as-png () Save the contents of the clipboard as a time stamped unique-named .png file in the same directory as the org-buffer and insert a link to this file. (interactive) (setq filename (concat (make-temp-name (concat (buffer-file-name) _ (format-time-string %Y%m%d_%H%M%S_)) ) .png)) (call-process ~/.emacs.d/scripts/save_clipboard.applescript nil nil nil filename ) (insert (concat [[ filename ]])) ;; (org-display-inline-images) ) and here is the applescript bit ( save_clipboard.applescript ) #!/usr/bin/osascript on run argv set fn to item 1 of argv # Check if Clipboard is empty set blnIsClipboardEmpty to false try set dataClipboard to the clipboard on error strErrorMessage number intErrorNumber if (intErrorNumber is -25131) then set blnIsClipboardEmpty to true end if end try # Try to save clipboard contentsas png if blnIsClipboardEmpty is false then set d to the clipboard as «class PNGf» set fid to open for access fn with write permission write d to fid close access fid end if end run Sure, this is far from perfect. I would like these scripts to - guess data type that is in clipboard and save the data with the correct extension - make the elisp script aware of the file extension - somehow feed this to org-attach, in order to have all of the git-attach goodies. but this is beyond my skills at the moment... Any hints?
[O] Trouble with ordered list start number
Hello, I see in the manual http://orgmode.org/manual/Plain-lists.html that with ordered lists, you can for example start one with the number 20 by starting the text of the item with [@20] I assume this means I can just have a newline that looks like this [@20] some text for this item and hit M-Return after typing the text for the item, and have a `21. ' appear below it. But when I do, it gives me the top header (`*') instead. What am I doing wrong? Thanks Chris (Org-mode version 7.4)
Re: [O] Trouble with ordered list start number
William Beard wcbear...@gmail.com writes: I see in the manual http://orgmode.org/manual/Plain-lists.html that with ordered lists, you can for example start one with the number 20 by starting the text of the item with [@20] I assume this means I can just have a newline that looks like this [@20] some text for this item and hit M-Return after typing the text for the item, and have a `21. ' appear below it. But when I do, it gives me the top header (`*') instead. What am I doing wrong? It needs to be a list. 1. [@20] some text for this item then M-RET turns it into this 20. [@20] some text for this item 21. point here -- Bernt
Re: [O] babel: textual output and graphic results
On Sat, Jun 25, 2011 at 2:00 PM, Eythan Weg eythan...@gmail.com wrote: True again. It solves the problem by bypassing a babel's weakness, I think. I would not say babel's weakness - rether a strength which result's in it's simplicity and power. Rainer Eythan Rainer M Krug r.m.k...@gmail.com Fri, 24 Jun 2011 14:28:41 +0200 On Fri, Jun 24, 2011 at 2:05 PM, Eythan Weg eythan...@gmail.com wrote: Thank you. True. But, I would like, if possible, to have the link to the saved plot as a link in the output, for free. Just add it as a cat() statement: #+begin_src R :results output :session print(seq(1,10)) pdf(ThePlot.pdf) plot(seq(1,10)) dev.off() cat([[./ThePlot.pdf]]) #+end_src Eythan Rainer M Krug r.m.k...@gmail.com Fri, 24 Jun 2011 13:18:36 +0200 On Fri, Jun 24, 2011 at 12:10 PM, Eythan Weg eythan...@gmail.com wrote: Hi, How could I effect the plot saved in a file and the output produced shown in the buffer by using a single execution of R in the following snippet? Why not the old R way: #+begin_src R :results output :session print(seq(1,10)) pdf(ThePlot.pdf) plot(seq(1,10)) dev.off() #+end_src Rainer Thank you. Eythan -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax (F): +33 - (0)9 58 10 27 44 Fax (D): +49 - (0)3 21 21 25 22 44 email: rai...@krugs.de Skype: RMkrug -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax (F): +33 - (0)9 58 10 27 44 Fax (D): +49 - (0)3 21 21 25 22 44 email: rai...@krugs.de Skype: RMkrug -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax (F): +33 - (0)9 58 10 27 44 Fax (D):+49 - (0)3 21 21 25 22 44 email: rai...@krugs.de Skype: RMkrug
Re: [O] babel: textual output and graphic results
Each code block can only return a single output type, so you will have Is this property fundamental, or temporary? This is intentional and will not be changed. The alternative would introduce many complications without adding any real new expressive power to code blocks. Best -- Eric -- Eric Schulte http://cs.unm.edu/~eschulte/
Re: [O] [babel] using #+call for inline results
Eric Schulte schulte.e...@gmail.com writes: Christian Moe m...@christianmoe.com writes: +1 for inline calls. No hurry, though. I've just pushed up an implementation for inline call blocks, the new syntax is described in the documentation but a simple example is below. #+source: square #+begin_src emacs-lisp :var it=0 (* it it) #+end_src Here is a call_square(it=4) stuck in the middle of some prose. Please let me know how it works and if you have any problems or recommendations. Cheers -- Eric Eric, I haven't done much testing but it does seem to work very nicely and, in fact, doesn't have the problem I had with using src_xxx{} in a list. Brilliant! Many thanks, eric -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.5 (release_7.5.443.gf4a7e.dirty)
Re: [O] Trouble with ordered list start number
Excellent, thank you. Chris On Sat, Jun 25, 2011 at 11:29 PM, Bernt Hansen be...@norang.ca wrote: William Beard wcbear...@gmail.com writes: I see in the manual http://orgmode.org/manual/Plain-lists.html that with ordered lists, you can for example start one with the number 20 by starting the text of the item with [@20] I assume this means I can just have a newline that looks like this [@20] some text for this item and hit M-Return after typing the text for the item, and have a `21. ' appear below it. But when I do, it gives me the top header (`*') instead. What am I doing wrong? It needs to be a list. 1. [@20] some text for this item then M-RET turns it into this 20. [@20] some text for this item 21. point here -- Bernt