Re: [O] bug(?) ox-html always add a timestamp in comment which can't be customized away

2013-06-07 Thread Nick Dokos
Haojun Bao writes: > Just checked, it is the same tag (release_8.0.3), there is no change like in > your code. > > Could you please run git blame on those lines? You need to upgrade to latest. Git blame says: , | $ git blame -L 1509,1511 lisp/ox-html.el | d574bf52 (Kodi Arfer 2013-05-30 15

Re: [O] bug(?) ox-html always add a timestamp in comment which can't be customized away

2013-06-07 Thread Haojun Bao
Just checked, it is the same tag (release_8.0.3), there is no change like in your code. Could you please run git blame on those lines? On Sat, Jun 8, 2013 at 1:30 PM, Nick Dokos wrote: > Haojun Bao writes: > > > The culprit code is the following: > > > > (when :time-stamp-file > > (form

Re: [O] bug(?) ox-html always add a timestamp in comment which can't be customized away

2013-06-07 Thread Nick Dokos
Haojun Bao writes: > The culprit code is the following: > >   (when :time-stamp-file >     (format-time-string >      (concat "\n"))) > > This `when' condition is always true, because :time-stamp-file is a > keyword and always eval to itself, never to nil. > > So I think org-export-time-stamp-fil

Re: [O] A simple way to search only headlines

2013-06-07 Thread Nick Dokos
Richard Lawrence writes: > Xebar Saram writes: > >> Thank you both Thorsten and Seb, i really appreciate the help! >> >> Seb, you wrote: The programming equivalent to C-c a s is: >> >> (org-agenda nil "s") >> >> That's what you'd have to bind to a key (using a "lambda" function). >> >> im a

[O] bug(?) ox-html always add a timestamp in comment which can't be customized away

2013-06-07 Thread Haojun Bao
The culprit code is the following: (when :time-stamp-file (format-time-string (concat "\n"))) This `when' condition is always true, because :time-stamp-file is a keyword and always eval to itself, never to nil. So I think org-export-time-stamp-file should be used instead of :time-stam

[O] possible bug: clocking in and out with STARTUP: logdrawer

2013-06-07 Thread Matthew Steffen
Hello emacs-orgmode! I think I may have encountered a bug (org-mode 7.8.02, emacs 23.3.1, ubuntu 12.04.2). It seems that if I have a file with #+STARTUP: logdrawer at the top, but the LOG_INTO_DRAWER property unset on an item, clocking in and out doesn't get logged into LOGBOOK. To illustrate: #+

Re: [O] A simple way to search only headlines

2013-06-07 Thread Richard Lawrence
Xebar Saram writes: > Hi Richard > > Fantastic, thx alot for the code snippet and detailed explanation, it > really helps to understand what goes on. unfortunately i get an error: > > Wrong type argument: commandp, (lambda nil (org-agenda nil "s" "<")) Ah, sorry about that, should have tested my

Re: [O] A simple way to search only headlines

2013-06-07 Thread Xebar Saram
Hi Richard Fantastic, thx alot for the code snippet and detailed explanation, it really helps to understand what goes on. unfortunately i get an error: Wrong type argument: commandp, (lambda nil (org-agenda nil "s" "<")) any clue? best Z. On Fri, Jun 7, 2013 at 5:50 PM, Richard Lawrence < ri

Re: [O] A simple way to search only headlines

2013-06-07 Thread Richard Lawrence
Xebar Saram writes: > Thank you both Thorsten and Seb, i really appreciate the help! > > Seb, you wrote: The programming equivalent to C-c a s is: > > (org-agenda nil "s") > > That's what you'd have to bind to a key (using a "lambda" function). > > im a complete neewb and dont really have any

Re: [O] Avoid escaping braces in LaTeX export?

2013-06-07 Thread Richard Lawrence
Marcin Borkowski writes: > Dnia 2013-06-07, o godz. 10:26:31 > Richard Lawrence napisał(a): > >> Here's my use case. I often create new commands in LaTeX to abstract >> over some common pattern so I can easily type it and change it later >> if necessary. For example, when taking notes on readi

Re: [O] Differnet bg/fg by code block type

2013-06-07 Thread Andreas Leha
Hi Xebar, Xebar Saram writes: > Hi again > > i understood from Fabrice (the dev of the excellent excellent > leuven-theme) that currently Org mode only uses one background face > for all the code blocks. Is that something one can request for > (different color background face for different code

Re: [O] Differnet bg/fg by code block type

2013-06-07 Thread Xebar Saram
Hi again i understood from Fabrice (the dev of the excellent excellent leuven-theme) that currently Org mode only uses one background face for all the code blocks. Is that something one can request for (different color background face for different code blocks (IE, Bash,Lisp,R)? if so where shoul

Re: [O] A simple way to search only headlines

2013-06-07 Thread Xebar Saram
Thank you both Thorsten and Seb, i really appreciate the help! Seb, you wrote: The programming equivalent to C-c a s is: (org-agenda nil "s") That's what you'd have to bind to a key (using a "lambda" function). im a complete neewb and dont really have any idea on how to do the above, can yo

Re: [O] export to odt

2013-06-07 Thread Christian Moe
Hi, Manfred Lotz writes: > My question: Is there an easy way to configure the odt export to do a > page break before switching to a Heading 1 line? In the end I would > like to view a Heading 1 like a chapter in a LaTeX book class. It's easier to use LibreOffice to modify the Heading 1 paragraph

Re: [O] BUG (?): org capture insist *.org file changed in disk, wipes file each time

2013-06-07 Thread Xebar Saram
Hi again all So after further long investigation it seems to me that the issues is caused from the capture template of all things. if i switch back to a basic capture template like this: (setq org-capture-templates '(("t" "Todo" entry (file+headline "~/Dropbox/Org/agenda/TODO.org" "Tasks")

Re: [O] :session question -- and changes to #+Property: syntax

2013-06-07 Thread Andreas Leha
Hi Achim, Achim Gratz writes: > Eric Schulte writes: >> As I recall I was fully in favor of applying these changes, however I am >> not qualified to address the changes to property behaviors. Hopefully >> someone who works more on that side of things can address those aspects. > > I am still ho

Re: [O] How to "postpone" a fragment when exporting

2013-06-07 Thread Christian Moe
Marcin Borkowski writes: > Is there a way to do something like this on Org side? (On LaTeX side, > this is quite easy, but I don't want to clutter my Org file with LaTeX > syntax like \begin{tip} ... \end{tip} etc.) #+begin_tip ... #+end_tip Yours, Christian

Re: [O] link abbreviation with multiple params, e. g. for geo locations

2013-06-07 Thread Achim Gratz
Michael Brand writes: > But for me it would have helped to have some other name, containing > neither "src-block", which I associate it with #+BEGIN_SRC but > not #+CALL line or inline call_, nor "head", which I associate > with #+HEADER. There are multiple places in Babel where "src-block-head" m

Re: [O] link abbreviation with multiple params, e. g. for geo locations

2013-06-07 Thread Vitalie Spinu
>> Michael Brand >> on Fri, 7 Jun 2013 21:16:00 +0200 wrote: [...] >> >> Perhaps the variable name should be updated, but this extension is >> simply a generalization to include inline code blocks as well. I don't >> find it misleading. [...] > If yes then I understand only now that

Re: [O] :session question -- and changes to #+Property: syntax

2013-06-07 Thread Achim Gratz
Eric Schulte writes: > As I recall I was fully in favor of applying these changes, however I am > not qualified to address the changes to property behaviors. Hopefully > someone who works more on that side of things can address those aspects. I am still hoping that one of the users that was askin

Re: [O] org-caldav will continue to work with Google Calendar

2013-06-07 Thread Eric S Fraga
David Engster writes: > David Engster writes: >> Google has announced today that they will shut down their CalDAV API in >> September, since hey, everybody's using their own protocol anyway. > > Well, Google has suddenly realized that not only is CalDAV an open > standard, but it's actually used

Re: [O] Formatting a calculated cell entry as currency

2013-06-07 Thread Eric S Fraga
Nick Dokos writes: > da...@adboyd.com (J. David Boyd) writes: > >> I've got a simple cell calculation, =@2 * 40 >> >> If @2 contained 10, is there anyway to force this to show as $400.00? I've >> combed through the info file, and if it is there I'm blind. >> > > This seems to work (apart from th

Re: [O] link abbreviation with multiple params, e. g. for geo locations

2013-06-07 Thread Michael Brand
Hi Eric On Fri, Jun 7, 2013 at 5:18 PM, Eric Schulte wrote: >> In this commit I see two issues which my patch does not have: >> >> 1) The variable name org-babel-current-exec-src-block-head is the same >>as for a different meaning (source block head) and purpose introduced >>in release_8.

Re: [O] ODT exporter not appearing in the C-c C-e menu

2013-06-07 Thread Nick Dokos
Marcin Borkowski writes: > The subject has it all. > > M-x org-version gives > Org-mode version 8.0.3 (8.0.3-15-g030e96-elpa > @ /home/marcin/.emacs.d/elpa/org-20130522/) > > and M-x emacs-version > GNU Emacs 24.3.1 (i686-pc-linux-gnu, GTK+ Version 3.4.2) of 2013-04-14 > on platinum, modified by

Re: [O] :session question -- and changes to #+Property: syntax

2013-06-07 Thread Eric Schulte
Achim Gratz writes: > Achim Gratz writes: >> The change on the Babel side was just a few lines, but reconciling Org's >> notion of property syntax in various places proved to be more difficult. >> >> It's still not very well tested (it does survive the test suite >> obviously) and I'll need to wr

[O] ODT exporter not appearing in the C-c C-e menu

2013-06-07 Thread Marcin Borkowski
The subject has it all. M-x org-version gives Org-mode version 8.0.3 (8.0.3-15-g030e96-elpa @ /home/marcin/.emacs.d/elpa/org-20130522/) and M-x emacs-version GNU Emacs 24.3.1 (i686-pc-linux-gnu, GTK+ Version 3.4.2) of 2013-04-14 on platinum, modified by Debian I did not mess up with export-conne

[O] How to "postpone" a fragment when exporting

2013-06-07 Thread Marcin Borkowski
Hi list, I'm preparing materials for a university course. The materials are not for students, but for teachers, and along with the syllabus for each of the topics, I'd like to include some optional tips (like what kind of problems might be good here, what to mention when teaching this etc.) The t

Re: [O] Avoid escaping braces in LaTeX export?

2013-06-07 Thread Marcin Borkowski
Dnia 2013-06-07, o godz. 10:26:31 Richard Lawrence napisał(a): > Here's my use case. I often create new commands in LaTeX to abstract > over some common pattern so I can easily type it and change it later > if necessary. For example, when taking notes on readings, I have a > command that makes

Re: [O] Help, I need to paste raw image from clipboard into emacs/orgmode

2013-06-07 Thread Klaus-Dieter Bauer
(defun my-org-insert-clipboard () (interactive) (let* ((image-file "clipboard.png") (exit-status (call-process "convert" nil nil nil "clipboard:" image-file))) (org-insert-link nil (concat "file:" image-file) "") (org-display-inline-images))) That works for me (Emacs 24.3, Windows 7

[O] Avoid escaping braces in LaTeX export?

2013-06-07 Thread Richard Lawrence
Hi all, I'm wondering if there is a way to prevent the LaTeX exporter from escaping "{" and "}" characters. There are export options to control the behavior of a number of other special characters, but I don't see any way to control export of braces in the documentation. Am I just missing it? I

Re: [O] org-babel and gnuplot

2013-06-07 Thread Eric Schulte
Carlos Russo writes: > Hi > > I was trying a gnuplot source block, and was stricken by "No > org-babel-execute function for gnuplot!" when I tried to execute the block. > I made sure the variable org-babel-load-languages contained (gnuplot . t) , > so I was quite puzzled. > > It turns out that

Re: [O] Wrong comment character when adding file local variables?

2013-06-07 Thread Vitalie Spinu
>> Rainer M Krug >> on Fri, 7 Jun 2013 17:40:53 +0200 wrote: > On Friday, June 7, 2013, Vitalie Spinu wrote: > All your examples are placed in fundamental mode. The comments are > treated by org and thus are correct, local variables are inserted > according to the major mode.

[O] org-babel and gnuplot

2013-06-07 Thread Carlos Russo
Hi I was trying a gnuplot source block, and was stricken by "No org-babel-execute function for gnuplot!" when I tried to execute the block. I made sure the variable org-babel-load-languages contained (gnuplot . t) , so I was quite puzzled. It turns out that I needed to explicitly add (require

[O] org-agenda-files defvar directory "evaluation" ?

2013-06-07 Thread 'Mash
Sorry not quite sure how to phrase the problem in the subject line there. I have the following setup in my .emacs ... (defvar org-dir "/home/mash/read/org/") And use it around such as ... (setq org-directory org-dir) (setq org-default-notes-file (concat org-dir "mash.org")) Now I understand th

Re: [O] :session question

2013-06-07 Thread Achim Gratz
Achim Gratz writes: > The change on the Babel side was just a few lines, but reconciling Org's > notion of property syntax in various places proved to be more difficult. > > It's still not very well tested (it does survive the test suite > obviously) and I'll need to write tests and documentation (

[O] org-publish: docview all pdf files

2013-06-07 Thread Vikas Rawal
When I publish the project, orgmode attempts to open all pdf files (which are static content). It seems to me that some sort of indexing is being attempted though I am not sure. I think it started happening after I included creation of a sitemap. I get messages like this: DocView: process pdf/ps

Re: [O] Wrong comment character when adding file local variables?

2013-06-07 Thread Rainer M Krug
On Friday, June 7, 2013, Vitalie Spinu wrote: > > All your examples are placed in fundamental mode. The comments are > treated by org and thus are correct, local variables are inserted > according to the major mode. > > The question is why - all .R files are automatically in r mode when I open the

Re: [O] refine org-babel-tangle-jump-to-org?

2013-06-07 Thread Rainer M Krug
. On Friday, June 7, 2013, Eric Schulte wrote: > Rainer M Krug > writes: > > > Rainer M Krug > writes: > > > >> Eric Schulte > writes: > >> > > [snip (46 lines)] > > > >>> For now I think both padlines and link comments are required for the > >>> jumping functionality to work. I've updated the d

Re: [O] [PATCH (v3)][ox-latex.el] Allow AUTO argument to org-latex-guess-babel-language.

2013-06-07 Thread Rasmus
Nicolas Goaziou writes: > It is, thank you. Here is another round of comments. v4 attached. -- C is for Cookie>From 2126f295e7137c1b90a8524108de4a7aaeac7e9f Mon Sep 17 00:00:00 2001 From: "rasmus.pank" Date: Sat, 1 Jun 2013 00:20:18 +0200 Subject: [PATCH] Allow AUTO argument to org-latex-gues

Re: [O] refine org-babel-tangle-jump-to-org?

2013-06-07 Thread Eric Schulte
Rainer M Krug writes: > Rainer M Krug writes: > >> Eric Schulte writes: >> > [snip (46 lines)] > >>> For now I think both padlines and link comments are required for the >>> jumping functionality to work. I've updated the documentation to >>> reflect this. >>> >> >> Thanks - I will change it a

Re: [O] link abbreviation with multiple params, e. g. for geo locations

2013-06-07 Thread Eric Schulte
Hi Michael, > > Is release_8.0.3-207-g5dc5143 the change you mention?: > yes > > commit 5dc5143578a2759611a5856de9bf9d1c7eba9283 > Author: Eric Schulte > Date: Thu Jun 6 10:59:27 2013 -0600 > > inline sets org-babel-current-exec-src-block-head > > In this commit I see two

Re: [O] link abbreviation with multiple params, e. g. for geo locations

2013-06-07 Thread Michael Brand
Hi Eric Thank you for looking into this. On Thu, Jun 6, 2013 at 7:01 PM, Eric Schulte wrote: > Is the only requirement that > the point from which a code block was called be accessible to the > emacs-lisp code executed within that code block? Yes. > If so then there should be no need for addit

[O] export to odt

2013-06-07 Thread Manfred Lotz
Hi there, I have an org file which I export to LaTeX. This works great. I even could add scrbook as a valid class to use for export. So this is really wow. However, one day I have to give the documentation to others which means I will export to odt. Export to odt works ok. For people who don't kno

Re: [O] [PATCH] Don't ask "File changed on disk" in org-babel-post-tangle-hook

2013-06-07 Thread Rainer M Krug
Eric Schulte writes: > Vitalie Spinu writes: > >> The problem with org-babel-post-tangle-hook is that user is always asked >> yes-or-no-p for file reversion. Calling auto revert (as Rainer tried) >> will not help. >> >> The problem is in find-file-noselect in org-babel-find-file-noselect-refresh

Re: [O] org-list-allow-alphabetical LaTeX export

2013-06-07 Thread Nick Dokos
Josiah Schwab writes: >> However, the type="a" thingie in is a bad idea: it is deprecated in >> the HTML spec, so it would be foolish to go chasing after it in org. > > I'll take a closer look the rest of your message to tomorrow, but I wanted > to mention that while "type" was deprecated in HTM

Re: [O] Wrong comment character when adding file local variables?

2013-06-07 Thread Vitalie Spinu
All your examples are placed in fundamental mode. The comments are treated by org and thus are correct, local variables are inserted according to the major mode. I don't how this could be easily fixed on org side, but you can solve it straightforwardly with: (add-to-list 'auto-mode-alist (con

Re: [O] [PATCH] Don't ask "File changed on disk" in org-babel-post-tangle-hook

2013-06-07 Thread Eric Schulte
Vitalie Spinu writes: > The problem with org-babel-post-tangle-hook is that user is always asked > yes-or-no-p for file reversion. Calling auto revert (as Rainer tried) > will not help. > > The problem is in find-file-noselect in org-babel-find-file-noselect-refresh. > > The following patch fixes

Re: [O] [PATCH (v3)][ox-latex.el] Allow AUTO argument to org-latex-guess-babel-language.

2013-06-07 Thread Nicolas Goaziou
Rasmus writes: > Nicolas Goaziou writes: >> I suggest to use something like this instead: >> >> (mapconcat (lambda (option) (if (equal "AUTO" option) language option)) >> (cond ((member language options) (delete "AUTO" options)) >>((member "AUTO" options) opti

Re: [O] [PATCH (v3)][ox-latex.el] Allow AUTO argument to org-latex-guess-babel-language.

2013-06-07 Thread Rasmus
Nicolas Goaziou writes: > Hello, > > Rasmus writes: > >> Nicolas Goaziou writes: > >> is the attached patch better? > > It is, thank you. Here is another round of comments. >> +(replace-match (mapconcat 'identity >> + (if language >> +

[O] Wrong comment character when adding file local variables?

2013-06-07 Thread Rainer M Krug
Hi when tangling the following file , | * Package Files | ** DESCRIPTION File | :PROPERTIES: | :tangle: ./DESCRIPTION | :shebang: | :padline: no | :no-expand: TRUE | :comments: no | :END: | #+begin_src R | Package: asmDrak | #+end_src | | ** NAMESPACE File | :PROPERTIES: | :tangle: .

Re: [O] eval-line-and-step broken in org mode buffer

2013-06-07 Thread Vitalie Spinu
I cannot reproduce it with org 8 and ESS 13.05. So probably it fixed ñ itself or it is some local configuration of yours. In that case would be nice to know the cause. Vitalie >> SabreWolfy >> on Fri, 7 Jun 2013 11:57:20 + (UTC) wrote: > http://comments.gmane.org/gmane.emacs.ess.ge

Re: [O] [PATCH (v3)][ox-latex.el] Allow AUTO argument to org-latex-guess-babel-language.

2013-06-07 Thread Nicolas Goaziou
Hello, Rasmus writes: > Nicolas Goaziou writes: > is the attached patch better? It is, thank you. Here is another round of comments. > + (replace-match (mapconcat 'identity > + (if language > + (cond ((member language option

Re: [O] refine org-babel-tangle-jump-to-org?

2013-06-07 Thread Rainer M Krug
Rainer M Krug writes: > Eric Schulte writes: > [snip (46 lines)] >> For now I think both padlines and link comments are required for the >> jumping functionality to work. I've updated the documentation to >> reflect this. >> > > Thanks - I will change it accordingly. I just discovered, that I

[O] eval-line-and-step broken in org mode buffer

2013-06-07 Thread SabreWolfy
http://comments.gmane.org/gmane.emacs.ess.general/7239 I can confirm this with Org 7.8 and ESS 13.05 and R 3.0.1 under Ubuntu 12.04 LTS. eval-line-and-step (F9) when in an Org file evaluates the line in R, and then jumps the cursor elsewhere as described, instead of advancing it. eval-line-and-st

Re: [O] Oorg-export-generic.el and emphasize

2013-06-07 Thread Nicolas Goaziou
Hello, Wes Hardaker writes: > celano writes: > >> I tried exporting a text with emphasize, but it doesn't work. >> The man page speaks about sections, lists and such other things, but >> nothing about emphasizing and bold text. >> http://orgmode.org/worg/org-contrib/org-export-generic.html > >

Re: [O] org-list-allow-alphabetical LaTeX export

2013-06-07 Thread Nicolas Goaziou
Hello, Carsten Dominik writes: > This is a good point - but this calls for something else: A mechanism > to name a particular list item and refer to it by name. In LaTeX you > can put a \label into an ordered list item and refer to it with \ref. > I am not sure if the new exporter allows this fo

[O] [PATCH] Don't ask "File changed on disk" in org-babel-post-tangle-hook

2013-06-07 Thread Vitalie Spinu
The problem with org-babel-post-tangle-hook is that user is always asked yes-or-no-p for file reversion. Calling auto revert (as Rainer tried) will not help. The problem is in find-file-noselect in org-babel-find-file-noselect-refresh. The following patch fixes it by silencing find-file-noselect

Re: [O] Help, I need to paste raw image from clipboard into emacs/orgmode

2013-06-07 Thread Vitalie Spinu
Thanks for the tip. Do you have an elisp piece that handles the image insertion into org buffers? Thanks, Vitalie >> Klaus-Dieter Bauer >> on Thu, 6 Jun 2013 19:16:26 +0200 wrote: > Dear All, > Please Help, > I need to paste raw image from clipboard into emacs/orgmode, I

Re: [O] Automatically adding local variables to tangled file

2013-06-07 Thread Rainer M Krug
Rainer M Krug writes: [snip (54 lines)] , | (defvar org-babel-tangled-file nil | "If non-nill, current file was tangled with org-babel-tangle") |(put 'org-babel-tangled-file 'safe-local-variable 'booleanp) | |(defun org-babel-mark-file-as-tang

Re: [O] refine org-babel-tangle-jump-to-org?

2013-06-07 Thread Rainer M Krug
Eric Schulte writes: >> the tangled file looks as follow, including the empty lines at >> beginning and end: >> >> , >> | >> | ## [[file:~/tmp/jumpBack.org::*newASM%20(./newASM.R)][newASM\ >> \(\./newASM\.R\):1]] >> | >> | >> logList("##

Re: [O] Automatically adding local variables to tangled file

2013-06-07 Thread Rainer M Krug
Eric Schulte writes: [snip (4 lines)] >> > > I personally prefer the solution shown below of adding a file-local > variable using the post-tangle hook. As mentioned previously this makes > the detection of tangled code much faster, simpler and less error prone > than grepping the file for comme

Re: [O] Other question concerning org-babel-tangle-jump-to-org

2013-06-07 Thread Rainer M Krug
Eric Schulte writes: > Rainer M Krug writes: > >> Would it be possible, that the function does not open a new window when >> executed, but uses the same window the tangled file is in? I am using >> org for literate programming in R (ESS): >> - R console left window >> - when there is an error,