Re: [O] indentation across multiple source blocks
Hi Tony, Tony Day zygom...@gmail.com writes: More like a terrible example. Here's a more complicated one out in the wild (from https://github.com/renard/o-blog) - templating html creation. https://gist.github.com/4333546 I imagine patches would be welcome :) Well... spare you the sweat, because I'm not even sure we'd like such a patch :) Indentation is a visual clue about the structure of the code -- if you lose the structure (like in the HTML scattered snippets of the link above), the visual clue will does not help anymore... imagine if you are deep in the HTML AST and have to indent by 20 whitespaces? That would not help at all -- instead, you want the snippet to be read as if it was on the top of the AST. Anyway, perhaps that's just me... -- Bastien
[O] [babel] Using Property Drawers to Pass Values to a Variable
I am trying to pass a variable value to a latex source code block: * Letter. :PROPERTIES: :first_name: Ian :last_name: Barton :END: #+begin_src latex var: last_name =(org-get-entry nil last_name) #+end_src However, it appears as though it's only supported for lisp. Any suggestions as how to do this? I am trying to construct a business letter template using the KOMA scrlttrs class. I have got the letter looking the way I want it in tex. I propose to use babel to produce the tex, but need a way to pass variables stored in my org file to the various komavar. I have tried org-koma-letter.el, which isn't quite flexible enough for my needs. I know there have been several postings in the list about using KOMA. If anyone is interested I found this http://stefano.italians.nl/archives/55 site a great help in getting my design the way I wanted it. Ian.
Re: [O] Bug: Messaging when moving in the agenda [7.9.2 (7.9.2-GNU-Emacs-24-3 @ /usr/share/emacs/24.2.50/lisp/org/)]
Hi Bastien On Sat, Dec 22, 2012 at 4:07 PM, Bastien b...@altern.org wrote: Both `org-display-outline-path' and visibility cycling will not populate the *Message* buffer with messages anymore. Nice, thank you. Michael
[O] bug#13254: org-odt: Batch exports creates data loss, deletes original org file
Hi Jambunathan, Jambunathan K kjambunat...@gmail.com writes: I have pushed a fix to my private branch (see below). Please merge both `maint' AND `master' branches. Done. Thanks a lot for continuing this work! -- Bastien
Re: [O] The statement on what is orgmode.
Hi Thomas, t...@tsdye.com (Thomas S. Dye) writes: Might better be: Org mode is for keeping notes, maintaining TODO lists, planning projects, and authoring documents with a fast and effective plain-text system. Indeed, I just updated the website. Thanks! -- Bastien
Re: [O] remote execution in heterogeneous environment
George Jones elu...@gmail.com writes: Still need to (setq temporary-file-directory /tmp/) for things to work, else I get: Couldn't write region to `/scpc:george@localhost#:/var/folders/j6/j6w17khs3vl9s2_yg4rb5zsmgn/T/input- 11249kNp', decode using `base64 -d -i %s\ ' failed Test script and output, without explicitly setting temporary-file-directory, attached: Indeed. I've published a patch to ob.el (as of Emacs trunk). Meanwhile, ob.el has been renamed to ob-core.el; likely that patch was lost :-( Bastien, could you please apply this patch (for `org-babel-temp-file')? Thanks, ---George Jones Best regards, Michael.
Re: [O] [babel] Using Property Drawers to Pass Values to a Variable
Ian Barton li...@wilkesley.net writes: I am trying to pass a variable value to a latex source code block: * Letter. :PROPERTIES: :first_name: Ian :last_name: Barton :END: #+begin_src latex var: last_name =(org-get-entry nil last_name) #+end_src However, it appears as though it's only supported for lisp. Any suggestions as how to do this? I am trying to construct a business letter template using the KOMA scrlttrs class. I have got the letter looking the way I want it in tex. I propose to use babel to produce the tex, but need a way to pass variables stored in my org file to the various komavar. I have tried org-koma-letter.el, which isn't quite flexible enough for my needs. I know there have been several postings in the list about using KOMA. If anyone is interested I found this http://stefano.italians.nl/archives/55 site a great help in getting my design the way I wanted it. Ian. Looks like you're the victim of two small typos. The following works for me. * Letter. :PROPERTIES: :first_name: Ian :last_name: Barton :END: #+begin_src latex :var last_name=(org-entry-get nil last_name) My last name is last_name. #+end_src -- Eric Schulte http://cs.unm.edu/~eschulte
Re: [O] Opening (for the first time) a 10-line Org doc takes 4 seconds
Hi Sébastien, Sebastien Vauban wxhgmqzgwmuf-genee64ty+gs+fvcfc7...@public.gmane.org writes: OK. And `org.el' is loaded[1] because of the major-mode association to the `.org' files, then, right? Right. [1] BTW, why not a `require' instead? About (load org-loaddefs.el t t) ? Because it is auto-generated. -- Bastien
Re: [O] Font-lock-add-keywords disables Org headline highlighting
Hi Sébastien, Sebastien Vauban wxhgmqzgwmuf-genee64ty+gs+fvcfc7...@public.gmane.org writes: However, as you can see on the screencast at http://screencast.com/t/RfMrD1IUBPZ, that conflicts with normal regular highlighting of headlines. This is a minor issue for me, and won't spend time on it, but let us know if you make progress on debugging this! Thanks, -- Bastien
Re: [O] remote execution in heterogeneous environment
Hi Michael, Michael Albinus michael.albi...@gmx.de writes: Indeed. I've published a patch to ob.el (as of Emacs trunk). Meanwhile, ob.el has been renamed to ob-core.el; likely that patch was lost :-( Bastien, could you please apply this patch (for `org-babel-temp-file')? Mhh... not sure what patch you refer to -- can you send me the patch itself and/or a link to it? Thanks! -- Bastien
Re: [O] remote execution in heterogeneous environment
Bastien b...@altern.org writes: Hi Michael, Hi Bastien, Indeed. I've published a patch to ob.el (as of Emacs trunk). Meanwhile, ob.el has been renamed to ob-core.el; likely that patch was lost :-( Bastien, could you please apply this patch (for `org-babel-temp-file')? Mhh... not sure what patch you refer to -- can you send me the patch itself and/or a link to it? http://thread.gmane.org/gmane.emacs.orgmode/63586/focus=63709 The last patch in this message. Again, the function seems to be moved to ob-core.el now. Thanks!
Re: [O] orgtbl-mode and markdown
Hi Vegard and Carsten, Carsten Dominik carsten.domi...@gmail.com writes: OK, I withdraw my opposition to fixing this issue in org - by my criticism toward the way markdown.el defines this hook remains. I fixed this by saving match data for `org-delete-backward-char' and `org-delete-char'. I also sent a patch for Emacs -- let's see. Thanks! -- Bastien
Re: [O] remote execution in heterogeneous environment
Hi Michael, Michael Albinus michael.albi...@gmx.de writes: http://thread.gmane.org/gmane.emacs.orgmode/63586/focus=63709 The last patch in this message. Again, the function seems to be moved to ob-core.el now. Ah okay, applied, thanks! -- Bastien
Re: [O] remote execution in heterogeneous environment
Should a git pull of development version of org pull the right patch? Thanks, ---george jones On Dec 23, 2012 11:47 AM, Bastien b...@altern.org wrote: Hi Michael, Michael Albinus michael.albi...@gmx.de writes: http://thread.gmane.org/gmane.emacs.orgmode/63586/focus=63709 The last patch in this message. Again, the function seems to be moved to ob-core.el now. Ah okay, applied, thanks! -- Bastien
[O] [PATCH] Introduce a new variable for x11idle
Debian and other OSes already have a program called 'xprintidle', which does the same thing as x11idle. It also handles the DPMS bug[1] some version of X servers have. In order to use an alternative, introduce a customizable variable 'org-clock-x11idle-program-name' to hold the actual command name. [1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=502226 --- doc/org.texi | 14 -- lisp/org-clock.el | 19 --- 2 files changed, 24 insertions(+), 9 deletions(-) diff --git a/doc/org.texi b/doc/org.texi index cb451fc..99d82bb 100644 --- a/doc/org.texi +++ b/doc/org.texi @@ -6350,12 +6350,14 @@ as 10 or 15, Emacs can alert you when you get back to your computer after being idle for that many minutes@footnote{On computers using Mac OS X, idleness is based on actual user idleness, not just Emacs' idle time. For X11, you can install a utility program @file{x11idle.c}, available in the -@code{contrib/scripts} directory of the Org git distribution, to get the same -general treatment of idleness. On other systems, idle time refers to Emacs -idle time only.}, and ask what you want to do with the idle time. There will -be a question waiting for you when you get back, indicating how much idle -time has passed (constantly updated with the current amount), as well as a -set of choices to correct the discrepancy: +@code{contrib/scripts} directory of the Org git distribution, or install the +@file{xprintidle} package and set it to the variable +@code{org-clock-x11idle-program-name} if you are running Debian, to get the +same general treatment of idleness. On other systems, idle time refers to +Emacs idle time only.}, and ask what you want to do with the idle time. +There will be a question waiting for you when you get back, indicating how +much idle time has passed (constantly updated with the current amount), as +well as a set of choices to correct the discrepancy: @table @kbd @item k diff --git a/lisp/org-clock.el b/lisp/org-clock.el index 8d11b8c..d0605aa 100644 --- a/lisp/org-clock.el +++ b/lisp/org-clock.el @@ -374,6 +374,19 @@ specifications than `frame-title-format', which see. :group 'org-clock :type 'sexp) +(defcustom org-clock-x11idle-program-name x11idle + Name of the program which prints X11 idle time in milliseconds. + +You can find x11idle.c in the contrib/scripts directory of the +Org git distribution. Or, you can do: + +sudo apt-get install xprintidle + +if you are using Debian. + :group 'org-clock + :version 24.3 + :type 'string) + (defvar org-clock-in-prepare-hook nil Hook run when preparing the clock. This hook is run before anything happens to the task that @@ -1012,13 +1025,13 @@ If `only-dangling-p' is non-nil, only ask to resolve dangling (defvar org-x11idle-exists-p ;; Check that x11idle exists (and (eq window-system 'x) - (eq (call-process-shell-command command nil nil nil -v x11idle) 0) + (eq (call-process-shell-command command nil nil nil -v org-clock-x11idle-program-name) 0) ;; Check that x11idle can retrieve the idle time - (eq (call-process-shell-command x11idle nil nil nil) 0))) + (eq (call-process-shell-command org-clock-x11idle-program-name nil nil nil) 0))) (defun org-x11-idle-seconds () Return the current X11 idle time in seconds. - (/ (string-to-number (shell-command-to-string x11idle)) 1000)) + (/ (string-to-number (shell-command-to-string org-clock-x11idle-program-name)) 1000)) (defun org-user-idle-seconds () Return the number of seconds the user has been idle for. -- 1.7.10.4
Re: [O] [PATCH] Introduce a new variable for x11idle
Hi Yasushi, Yasushi SHOJI ya...@atmark-techno.com writes: Debian and other OSes already have a program called 'xprintidle', which does the same thing as x11idle. It also handles the DPMS bug[1] some version of X servers have. In order to use an alternative, introduce a customizable variable 'org-clock-x11idle-program-name' to hold the actual command name. thanks for the patch, especially for taking care of updating the documentation. Since the patch is substantial, we need you sign the FSF copyright assignment in order to apply it. If that's okay with you, please fill the form here and follow the instructions here: http://orgmode.org/cgit.cgi/org-mode.git/plain/request-assign-future.txt Thanks! -- Bastien
[O] bugs in export
I cannot debug further, but FYI: 1) Sometimes # comments get exported to ASCII or HTML. I am not able to provide you with an appropriate test case at this time but it reliably reproduces with my test case (large file) and my code. I reproduced one or both of these bugs with Emacs -Q at one point. It occurs with subtree export when marking the subtree first. 2) org-export on subtree with A or H produces this error: Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil) goto-char(nil) (let (deactivate-mark) (push-mark rege t t) (goto-char regb)) (if subtree-p (let (deactivate-mark) (push-mark rege t t) (goto-char regb))) (if (and bg (nth 2 ass) (not (buffer-base-buffer)) (not (org-region-active-p))) (let ((p (start-process (concat Exporting (file-name-nondirectory (buffer-file-name))) *Org Processes* (expand-file-name invocation-name invocation-directory) -batch -l user-init-file --eval (require 'org-exp) --eval (setq org-wait .2) (buffer-file-name) -f (symbol-name (nth 1 ass) (set-process-sentinel p (quote org-export-process-sentinel)) (message Background process \%s\: started p)) (if subtree-p (let (deactivate-mark) (push-mark rege t t) (goto-char regb))) (call-interactively (nth 1 ass)) (when (and bpos (get-buffer-window cbuf)) (let ((cw (selected-window))) (select-window (get-buffer-window cbuf)) (goto-char cpos) (deactivate-mark) (select-window cw (let* ((bg (org-xor (equal arg (quote (16))) org-export-run-in-background)) (subtree-p (or (org-region-active-p) (eq org-export-initial-scope (quote subtree (regb (and (org-region-active-p) (region-beginning))) (rege (and (org-region-active-p) (region-end))) (help [t] insert the export option template\n[v] limit export to visible part of outline tree\n[1] switch buffer/subtree export\n[SPC] publish enclosing subtree (with LaTeX_CLASS or EXPORT_FILE_NAME prop)\n\n[a/n/u] export as ASCII/Latin-1/UTF-8 [A/N/U] to temporary buffer\n\n[h] export as HTML [H] to temporary buffer [R] export region\n[b] export as HTML and open in browser\n\n[l] export as LaTeX [L] to temporary buffer\n[p] export as LaTeX and process to PDF [d] ... and open PDF file\n\n[D] export as DocBook [V] export as DocBook, process to PDF, and open\n\n[o] export as OpenDocument Text [O] ... and open\n\n[j] export as TaskJuggler [J] ... and open\n\n[m] export as Freemind mind map\n[x] export as XOXO\n[g] export using Wes Hardaker's generic exporter\n\n[i] export current file as iCalendar file\n[I] export all agenda files as iCalendar files [c] ...as one combined file\n\n[F] publish current file [P] publish current project\n[X] publish a project... [E] publish every projects) (cmds (quote ((116 org-insert-export-options-template nil) (118 org-export-visible nil) (97 org-export-as-ascii t) (65 org-export-as-ascii-to-buffer t) (110 org-export-as-latin1 t) (78 org-export-as-latin1-to-buffer t) (117 org-export-as-utf8 t) (85 org-export-as-utf8-to-buffer t) (104 org-export-as-html t) (98 org-export-as-html-and-open t) (72 org-export-as-html-to-buffer nil) (82 org-export-region-as-html nil) (120 org-export-as-xoxo t) (103 org-export-generic t) (68 org-export-as-docbook t) (86 org-export-as-docbook-pdf-and-open t) (111 org-export-as-odt t) (79 org-export-as-odt-and-open t) (106 org-export-as-taskjuggler t) (74 org-export-as-taskjuggler-and-open t) (109 org-export-as-freemind t) (108 org-export-as-latex t) (112 org-export-as-pdf t) (100 org-export-as-pdf-and-open t) (76 org-export-as-latex-to-buffer nil) (105 org-export-icalendar-this-file t) (73 org-export-icalendar-all-agenda-files t) (99 org-export-icalendar-combine-agenda-files t) (70 org-publish-current-file t) (80 org-publish-current-project t) (88 org-publish t) (69 org-publish-all t r1 r2 ass (cpos (point)) (cbuf (current-buffer)) bpos) (save-excursion (save-window-excursion (if subtree-p (message Export subtree: ) (message Export buffer: )) (delete-other-windows) (with-output-to-temp-buffer *Org Export/Publishing Help* (princ help)) (org-fit-window-to-buffer (get-buffer-window *Org Export/Publishing Help*)) (while (eq (setq r1 (read-char-exclusive)) 49) (cond (subtree-p (setq subtree-p nil) (message Export buffer: )) ((not subtree-p) (setq subtree-p t) (setq bpos (point)) (org-mark-subtree) (org-activate-mark) (setq regb (and ... ...)) (setq rege (and ... ...)) (message Export subtree: (when (eq r1 32) (let ((case-fold-search t) (end (save-excursion ... ...))) (outline-next-heading) (if (re-search-backward ^[ ]+\\(:latex_class:\\|:export_title:\\|:export_file_name:\\)[]+\\S- end t) (progn (org-back-to-heading t) (setq subtree-p t) (setq bpos ...) (message Select command (for subtree): ) (setq r1 ...)) (error No enclosing node with LaTeX_CLASS or EXPORT_TITLE or EXPORT_FILE_NAME)) (if (fboundp (quote redisplay)) (redisplay)) (and bpos (goto-char bpos)) (setq r2
Re: [O] remote execution in heterogeneous environment
Success. No setting of temporary-file-directory needed. Thanks, ---George On Sun, Dec 23, 2012 at 2:54 PM, Bastien b...@altern.org wrote: George Jones elu...@gmail.com writes: Should a git pull of development version of org pull the right patch? Yes. Simply ~$ git clone git://orgmode.org/org-mode.git (our master branch is the development branch.) HTH, -- Bastien
Re: [O] bugs in export
Here is a minimal complete example. To reproduce, run emacs -Q on this file using Emacs 24.2. If you want, load a more recent Org version. Go to x. Run C-c c-e 1 A. That is a one, not an ell. The commented lines get exported. === * [#A] The FAQ that should never be necessary *** x * Quote Here is a quote: #+begin_quote I cannot be washed, cannot raise my head, cannot have company, cannot be lifted from bed, cannot look out of the window, cannot be touched, cannot watch television or listen to music - the list is long. ... #+end_quote # exported comment * She was exaggerating or faking She died. # non-exported comment === -- The Kafka Pandemic: http://thekafkapandemic.blogspot.com The disease DOES progress. MANY people have died from it. ANYBODY can get it. There is no hope without action.
Re: [O] bugs in export
Of course the bug occurs in most recent git master also, and it works with properly indented headers and odd-even settings. -- The Kafka Pandemic: http://thekafkapandemic.blogspot.com The disease DOES progress. MANY people have died from it. ANYBODY can get it. There is no hope without action.
Re: [O] FAILED test-org-clock/clocktable
Hi Achim, Achim Gratz strom...@nexgo.de writes: As nice as org-test-with-temp-text is, it is really hard to figure out what happened if there's an error — would it be possible to make a (named) buffer with the result if the test is unsuccessful, at least as an option? I explored ert a bit for this and found the `ert--test-buffers' variable... but I'm not sure how we could store info from this into a file. -- Bastien
Re: [O] Show only next n tasks of a project in the agenda
Hi Marcus, Marcus Klemm marcus.kl...@googlemail.com writes: Hello Orgmode list, I do a lot of project planning in Orgmode. All my projects are of the ordered sort, where later steps are blocked until previous steps have been completed. In my agenda, blocked tasks are dimmed because I like to see the next steps of a project. But now, having a few projects running in parallel, this list has become pretty crowded. Is there a possibility to show only a (configurable) number of next steps (blocked tasks) per project? The only alternative I found was to hide blocked tasks entirely, which is not what I want. I've been working on something for this... long time ago. Let's see if I can resurrect some code to make this work. But I agree this is desirable in general -- don't hesitate to re-ask if nothing happens within a month. Thanks, -- Bastien
Re: [O] Publishing only sub-hierarchies with a given tag
Hi Karl, Karl Voit devn...@karl-voit.at writes: The publishing methods are quite capable. I wonder whether or not it is possible (or easy to implement) to limit content to sub-hierarchies that are tagged for publishing. So if I have multiple Org-mode files in «base-directory», publish only the (few) things that are tagged with e.g. «:publish:». Can't you achieve (part of) this with :export: and :noexport: ? -- Bastien
Re: [O] Howto convert a complete bibtex file into an orgmode file?
Hi Michael, michael.zom...@googlemail.com writes: I want to migrate all my research papers and references to orgmode, but I was not able to figure out howto read/convert an existing bibtex file (say literatur.bib) to an orgmode file (say literature.org) where each entry from literatur.bib gets an heading in literatur.org with attributes corresponding to the stuff from the bibtex entry in literatur.bib. As far as I was able to find out, this is only possible for a single entry via 'org-bibtex-read'. Is there something like 'org-bibtex-read' for a whole file? For what is worth, I'm not using org-bibtex.el anymore but I would find such a feature interesting. Hopefully someone can have a look some day. Cheers, -- Bastien
Re: [O] #+STARTUP keywords for several variables
Hi John, John J Foerch jjfoe...@earthlink.net writes: I did not find #+STARTUP keywords for several variables that configure the format of an org file: org-log-into-drawer org-log-states-order-reversed I added logdrawer / nologdrawer and logstatesreversed / nologstatesreversed org-treat-insert-todo-heading-as-state-change For this one, I think it falls into the really-just-an-option- and-we-cannot-have-startup-keywords-for-every-option category :) I think that there should be keywords that correspond to these variables because it would make it easier to share org files among different emacses with different org configurations. File-local variables can currently be used to configure these variables, but #+STARTUP keywords would be more elegant. Note that you can also bind variables with #+BIND. Thanks, -- Bastien
Re: [O] link syntax bug
Hi Samuel, Samuel Wales samolog...@gmail.com writes: To reproduce: 1) place point at ^ 2) C-k 3) the entire line is fontified and active :( 4) set org-return-follows-link 5) press RET to split the lines as if by accident 6) you just accessed the Internet :( 7) the link is broken :( Fixed, thanks! -- Bastien
Re: [O] bugs in export
Hi Samuel, Samuel Wales samolog...@gmail.com writes: Here is a minimal complete example. To reproduce, run emacs -Q on this file using Emacs 24.2. If you want, load a more recent Org version. Go to x. Run C-c c-e 1 A. That is a one, not an ell. The commented lines get exported. I confirm the bug, thanks for describing it. Not sure if I'll have time to fix this soon, but note that the new exporter seems to handle this fine. Thanks, -- Bastien
Re: [O] Rudel - Real-Time collaborative editing of Org-Mode files
Hi Ciaran, Ciaran Mulloy crmul...@gmail.com writes: I was wondering whether anyone had experience, good bad or indifferent in the use of minor mode Rudel (http://rudel.sourceforge.net/) for collaborative editing of org-mode file by a number of different people over the internet. I am hoping that it would provide similar collaborative working features that's available in Google Docs. I don't have experience with Rudel but I'm also interested in hearing from others -- maybe at some point we can organize some co-writing session where we try to update Worg pages. On the same topic, I'm interested to know if anyone is using prose.io to collaborate on markdown docs: http://prose.io/about.html The nice thing is that the code is free, and it should be fairly easy for javascript programmers to adapt it so that it can handle basic Org structure... and let *anyone* write Org doc collaboratively and seemlessly. https://github.com/prose Com'on, let's start something great :) -- Bastien
Re: [O] Recursive descent depth control in org-publish
Hi Jeremy, Jashank Jeremy jash...@rulingia.com writes: I keep notes and projects in the same hierachy -- the projects themselves can be quite large -- and I use org-publish to export my notes to HTML. The problem is that I use ':recursive t' in my 'org-publish-project-alist' entry, and thus Emacs will attempt to traverse very, very, _very_ large directory hierachies and thus apparently hangs. Is there some way to flag sections of the tree as non-traversible? You can use this :exclude regexp-match-dir-names HTH, -- Bastien
Re: [O] vCard import
Hi Simon, Simon Thum simon.t...@gmx.de writes: just a short notice: I added a ruby gist which creates org-contacts entries from vCard files. https://gist.github.com/4145201 I added this to http://orgmode.org/worg/org-tools/ Thanks! -- Bastien
Re: [O] Bug: hl-line obscures org-habit tracking in agenda [7.8.11]
Salut Bastien, I'm unsure how to use hooks; can you provide a specific line to put in my .emacs? Thanks! -- Boyan Penkov On Dec 23, 2012, at 1:06 PM, Bastien b...@altern.org wrote: Hi Boyan and Vincent, Vincent Beffara vbeffara...@gmail.com writes: Same thing here except with TODO keywords, the font is configured to be black-on-red and hl-line lays on top of that, giving a black-on-darkgrey. Looking at docs about how emacs determines the face at a given location, they speak about a stack of specifications but nothing about the ordering of that stack - certainly org should be above hl-line ? Any way to change that ? (Maybe hl-line uses an overlay, in which case it seems to be hopeless ...) Yes, I think this is pretty hopeless. Before switching to Vi, maybe you can try to activate `hl-line-mode' within `org-agenda-finalize-hook', because fontification is done late in the agenda creation and this hook is called just before it. Not tested, though. 2 cts, -- Bastien
Re: [O] Bug: org-edit-special won't let me edit a latex snippet [7.9.2 (release_7.9.2-808-gd8b328 @ /home/youngfrog/sources/org-mode/lisp/)]
Hi Nicolas, Nicolas Richard theonewiththeevill...@yahoo.fr writes: I'm at commit 830e231ef1da5c5a1ab760a6a059551841952610, and notice the following unexpected behaviour. Starting from emacs -Q -L ~/sources/org-mode/lisp/ : M-x org-mode insert l and hit SPC hit C-c ' = user-error: No special environment to edit here Fixed, thanks! -- Bastien
Re: [O] Editing org source blocks enabled by org-src-fontify-natively?
Hi Bernt, Bernt Hansen be...@norang.ca writes: My org-mode document http://doc.norang.ca/org-mode.org uses org source blocks like the following for example: #+begin_src org :exports src ,* Health and Recreation ,* House Maintenance #+end_src My minimal emacs does not allow editing for this with C-c ' but when org-src-fontify-natively is set to t it does. This doesn't seem very intuitive to me -- it took me some time to isolate what variable actually enables editing of org source blocks in my setup. Should it really act this way? Definitly not -- the old behavior is back now. Thanks for reporting this, -- Bastien
Re: [O] Archiving logged work time
Hi Torben, Torben Hoffmann torben.leh...@gmail.com writes: Advice most welcome - I am in learning mode and want to improve my usage of org-mode. Not really an advice, but I was in a similar situation to yours, and I ended up tracking at higher level. Instead of tracking time on small tasks, I track time in thematic subtrees. This gives me what I want: less logs, ability to archive small tasks, etc. -- Bastien
Re: [O] Python code for producing Org tables
Hi François, François Pinard pin...@iro.umontreal.ca writes: I recently needed to produce Org tables from within Python, splitting them as needed to fit within a preset width. I append the code after my signature, in case it would be useful to others (or even, if you have ideas to improve it). Thanks for the code, if some can test it and put it on worg, all the better (if you agree of course.) One thing I only realized after writing this, however, is that I wrongly thought Org mode was aligning floating numbers on the decimal period, while it merely right align floating numbers regardless of the position of the period. So, I turn my mistake into a suggestion, as I think it would be more convenient if Org mode was aligning floating numbers more appropriately. Is it a standard practise when displaying float numbers in spreadsheets/tables? If so, this is a nice Elisp challenge for anyone willing to implement it :) I won't try it myself for now. -- Bastien
Re: [O] bad text pointer cursor: BadValue (integer parameter out of range for operation)
Hi Micah, Micah Anderson mi...@riseup.net writes: Everything works great, except... at some point, something happens and I can no longer open a capture frame. When I hit the key nothing happens, so I execute the emacsclient line in a shell and what I get is: *ERROR*: bad text pointer cursor: BadValue (integer parameter out of range for operation) Please report this with M-x report-emacs-bug RET Maybe Org is somehow involved, but I'll follow the thread anyway. Thanks! -- Bastien
Re: [O] PDF docs from Org-mode: not valid PDF?
Hi, Radhakrishnan CV c...@river-valley.org writes: I don't know enough about this to be of real help, but if Org and Orgers can help, don't hesitate let us know precisely how! I can help with LaTeX part of the stuff when needed. Thanks, -- Bastien
Re: [O] Fix to property inheritance
Hi Bill, Bill Wishon b...@wishon.org writes: This is my first major org-mode contribution, and I'm new to git, so if there is something I haven't got quite right in terms of how to contribute please advise. Thanks for contributing. org-entry-get with inherit set didn't work for sub-heading additions or overrides to properties found in parent headings as of Org-mode version 7.9.2 (release_7.9.2-738-g442b2a-git @ org-loaddefs.el can not be found!). An example test org-mode file is attached (modified from the testing/ examples directory and also updated in my git repository). Yes, I see the problem. My public git repository info is: git clone g...@bitbucket.org:mrvwman /wishon-org-mode.git branch name: fix-property-inheritance Unless this is a big serie of patches (e.g. 5) can you send the patch to the mailing list? We use a patchwork instance to store patches and be able to review them later. Make sure to read this : http://orgmode.org/worg/org-contribute.html#sec-4 I've submitted my request to ass...@gnu.org, but have not yet received a reply. I've added you to Worg: http://orgmode.org/worg/org-contribute.html#sec-6-2 Thanks in advance for the patch! -- Bastien
Re: [O] Priority cookies in org-store-link
Hi William, William Léchelle william.leche...@ens-lyon.fr writes: As for a recent git version, calling org-store-link on a subtree records its priority cookie in the link, which therefore breaks if the said priority is changed (“no match - create this as a new heading ?”) Links not featuring the priority succeed at finding the headline which has such a priority mark, so I suggest the priority is removed from the captured link. This is now the case in master, it will be part of 8.0. Thanks for the suggestion. As a side note, testing to ask this, it looks like captured links won't take into account header text after or , hence capturing links to headlines featuring these will fail, is there a known issue about accepted characters in headlines that I'm not aware of ? There should be none, please test master if you can and report any problem. Best, -- Bastien
Re: [O] org-edit-special on inline latex
Hi Jonas, co...@online.de (Jonas Hörsch) writes: i recently switched from using the verbose #+begin_latex \begin{eqnarray} 8 = 7 + 1 \end{eqnarray} #+end_latex to just the inline version \begin{eqnarray} 8 = 7 + 1 \end{eqnarray} which is: shorter to write thus also clearer to read and as a welcome gadget even exports to html as well. but i see also two drawbacks: 1. syntax highlighting is lost 2. org-edit-special (C-') doesn't switch to auctex anymore[fn:1] it would be fantastic if it was possible for org-edit-special to work on an enclosing \begin -- \end region the same way it did on a latex block, i.e. show a new window with the snippet in latex mode. The support for inline \begin{...} is a convenient hack, but it's a hack and adding features of the #+begin_src/latex blocks to it would only make it more hackish. I suggest you use a code block and C-c ' when necessary. Best, -- Bastien
Re: [O] Convert from emacs planner to org-mode
Hi Andreas, Andreas Hirczy a...@itp.tugraz.at writes: I have written yet another converter from planner to org: http://itp.tugraz.at/~ahi/Computer/SW/muse2org.html http://itp.tugraz.at/~ahi/Computer/SW/muse2org great, I've added a link to Worg: http://orgmode.org/worg/org-tools/ Thanks! -- Bastien
Re: [O] cyrillic agenda
Hi Basilio, basilio basi...@gmx.com writes: Does anybody know how setup emacs to ps-print finely cyrillic agendas? Perhaps you'll have more answers on the help-gnu-emacs mailing list? https://lists.gnu.org/mailman/listinfo/help-gnu-emacs Best, -- Bastien
Re: [O] Problem with template expansion of previous prompts.
Hi Michael, Michael Baum maab...@gmail.com writes: Yes, you're correct, Aaron, thanks. Apparently the secondary substitutions only get processed after all the questions are asked and the template is written out to the temp buffer. So the backslash has to be escaped to survive the first round of substitutions. I kind of feel that this should be stated more explicitly in the manual. IN BOLD TYPE. Can you suggest something more precise? Or send a patch? We will not use uppercase warnings, but we may try to be more explicit. Thanks, -- Bastien
Re: [O] unexpected (buggy?) export to iCalendar beheaviour
Hi, Detlef Steuer detlef.ste...@gmx.de writes: This --- * important SCHEDULED: 2012-12-03 Mo * not so important 2012-12-03 Mo --- is exported via C-c E i to --- BEGIN:VCALENDAR VERSION:2.0 X-WR-CALNAME:test PRODID:-//steuer//Emacs with Org-mode//EN X-WR-TIMEZONE:CET X-WR-CALDESC:nil CALSCALE:GREGORIAN BEGIN:VEVENT UID: TS-f58e8c25-322d-426b-b4e9-6b3f74fff4ea DTSTART;VALUE=DATE:20121203 DTEND;VALUE=DATE:20121204 SUMMARY:not so important DESCRIPTION: 2012-12-03 Mo CATEGORIES:test END:VEVENT END:VCALENDAR --- So the SCHEDULED event is not exported. I assume that's a bug? I cannot reproduce this either from the maint or master branch. Let us know if there is still a bug for this. Thanks! -- Bastien
Re: [O] Bug: hl-line obscures org-habit tracking in agenda [7.8.11]
Howdy, Boyan Penkov boyan.pen...@gmail.com writes: I'm unsure how to use hooks; can you provide a specific line to put in my .emacs? (add-hook 'org-agenda-finalize-hook 'hl-mode-line) I didn't test this. HTH, -- Bastien
Re: [O] Footnote disable sorting
Hi Alan, Alan L Tyree alanty...@gmail.com writes: This works for export, but it would be nice if plain footnotes were disabled entirely. You can set `org-activate-links' so that footnotes are not recognized as links anymore: (setq org-activate-links '(bracket angle plain radio tag date)) HTH, -- Bastien
Re: [O] LOGBOOK Drawer Position in Capture Templates
Hi Bill, Bill Wishon b...@wishon.org writes: I want the clock to be associated with the top level heading. Is there a way to construct the template so that it results in the LOGBOOK drawer being part of the primary heading? Like so: * Meeting TItle [date] :LOGBOOK: CLOCK [date] :END: ** point is here No -- but I would simply use - point is here then C-c * to convert the item at point into a heading. 2 cts, -- Bastien
Re: [O] Bug: hl-line obscures org-habit tracking in agenda [7.8.11]
Hello Bastien, Thanks for the tip -- however, I can confirm that this did *not* fix the problem. The behavior remains the same. FWIW, it didn't seem to do damage either. Thanks for thinking about this! Cheers! -- Boyan Penkov On Dec 23, 2012, at 8:27 PM, Bastien b...@altern.org wrote: Howdy, Boyan Penkov boyan.pen...@gmail.com writes: I'm unsure how to use hooks; can you provide a specific line to put in my .emacs? (add-hook 'org-agenda-finalize-hook 'hl-mode-line) I didn't test this. HTH, -- Bastien
Re: [O] org reserved and special words in drawers
Hi Tony, tony day tonyday...@gmail.com writes: I've been thinking about a patch for org-mode that would give an option to place various org concepts in a drawer rather than automatically in the body of the document. The overall idea is that for some use cases, it makes sense to disturb the underlying content as little as possible. In other words, we could then /apply/ org-mode on a document rather than transforming a document into an org document. Is this doable or is it a crazy amount of work for little benefit? What is doable is to try to enhance Org so that less stuff come in the way, sure. What we may think about is a Org readable exchange format (oref?), which would take the output of Nicolas' parser, export it in Org-mode using some specific properties like TAGS: TODO: etc. The org concepts I've penciled in are: ** tags What might be the best scheme for defining tags as properties rather than in headlines? See above. ** scheduled, closed, deadline It should be possible to put these in drawers. There is a plan for this, yes. ** =todo= Can we put =todo= keywords in drawers but still easily use all the org-mode technology surrounding them? See above. ** item Would it be at all possible to define an item without actually adding a header? One solution that comes to mind is to define an item (or a subtree in other words) as all content until the next properties drawer. Is there anything else missing from this list? Maybe you can start working on a org-e-oref exporter, storying *all* metadata into properties? ... Don't know where it will lead, but who knows? -- Bastien
Re: [O] [new exporter] adhere org-export-date-timestamp-format?
Hi Rasmus, Rasmus ras...@gmx.us writes: Would it be desirable if the new exporter took the variable org-export-date-timestamp-format into consideration when formatting dates? I think so. What do you think, Nicolas? -- Bastien
Re: [O] org-todo does not take into account quasi-todo-keywords
On 12/22/12, Bastien b...@altern.org wrote: This is now fixed, thanks. Thanks, Bastien. I wonder what behavior is preferrable in this case: just ignore the COMMENT string (which is now what Org does) or to delete it -- which is what a user might expect when _updating_ a TODO state. What do you think? I prefer skipping here for orthogonality, so all is well. Samuel -- The Kafka Pandemic: http://thekafkapandemic.blogspot.com The disease DOES progress. MANY people have died from it. ANYBODY can get it. There is no hope without action.
Re: [O] Footnote disable sorting
Bastien b...@altern.org writes: Hi Alan, Alan L Tyree alanty...@gmail.com writes: This works for export, but it would be nice if plain footnotes were disabled entirely. You can set `org-activate-links' so that footnotes are not recognized as links anymore: (setq org-activate-links '(bracket angle plain radio tag date)) HTH, Thanks Bastien. My real problem is that plain footnotes such as [1930] are a general nuisance to me since so many legal citations use that form. I am using a hack suggested by Jan Bocker to disable them, perform some operation and then un hack the hack. The hack is: replace [ with [ and a non-printing space when [ begins a plain footnote. The trouble is that I need to define new functions or macros for each general footnote operation. I think I misunderstood the purpose of f:nil in the options line. Thanks for your help. Cheers, Alan -- Alan L Tyree http://www2.austlii.edu.au/~alan Tel: 04 2748 6206 sip:172...@iptel.org