[O] [ANN] Org-gamify

2014-07-08 Thread Paul Sexton
I have written a plugin for org agenda, which allows gamification of task management. Define currencies, earn them by completing tasks, and spend them on rewards. Inspired by HabitRPG, Epic Win and similar systems. http://bitbucket.org/eeeickythump/org-gamify Note - I am well aware of existing

Re: [O] org-drill - properties displayed during card review

2013-02-24 Thread Paul Sexton
I just never got around to fixing that minor glitch until now. I have committed a fix to the org-drill repository at http://bitbucket.org/eeeickythump/org-drill So if you download and use the org-drill.el from there, the problem will be fixed. On 24/02/2013, at 9:16 PM, Bastien

Re: [O] Fixes for org-capture-templates-contexts

2013-01-14 Thread Paul Sexton
Bastien bzg at altern.org writes: If you can send a patch against master for this, I'd be happy to apply it! Thanks again for pointing to these problems, Below are patches against org.el and org-capture.el. Are you sure it works correctly? The following setting for the variable does causes

[O] Fixes for org-capture-templates-contexts

2013-01-10 Thread Paul Sexton
org-capture-templates-contexts currently appears not to work. The structure that the function 'org-contextualize-validate-key' expects to find in the variable seems quite different from the structure described in the docstring. Here are fixed versions of the functions

Re: [O] Patch: option to not hide brackets in org links

2012-05-13 Thread Paul Sexton
Sean O'Halpin sean.ohalpin at gmail.com writes: Thanks! I just noticed that the main function, orgl-enable, sets the buffer's modification status to true when it runs. This is because altering text properties is considered a modification of the buffer. Fixed by wrapping the offending line in a

Re: [O] Patch: option to not hide brackets in org links

2012-05-10 Thread Paul Sexton
Sean O'Halpin sean.ohalpin at gmail.com writes: Is that publicly available anywhere? Here you go. To use, add orgl-enable to the relevant mode-hook, eg: (add-hook 'python-mode-hook 'orgl-enable) (defface orgl-target-face '((t (:foreground cyan :background royalblue4 :weight normal)))

[O] Patch: option to not hide brackets in org links

2012-05-09 Thread Paul Sexton
I would like to be able to control whether the '[[' ...']]' brackets around links are made invisible during fontification. The motivation is that I have a minor mode that makes org-style links fully active and fontifed in other major modes. But I can imagine some others might want to use it, as

Re: [O] Bug? in the latest revision of org

2011-10-27 Thread Paul Sexton
Marcelo de Moraes Serpa celoserpa at gmail.com writes: Hey list,Just updated to the latest rev. of org in git. When I try to press ret just in the beginning of a headline in order to move it one line below, I'm getting this error message:: Wrong type argument: listp, org-level-1Any

Re: [O] Markdown export (using org-export-generic)

2011-08-17 Thread Paul Sexton
Jambunathan K kjambunathan at gmail.com writes: May be you could cook something up with org-lparse? The file is in contrib dir and org-xhtml and ord-odt make use of it. Thanks, it looks interesting, but I can't find any documentation?

[O] Markdown export (using org-export-generic)

2011-08-16 Thread Paul Sexton
Wes Hardaker's org-export-generic (in worg) does a pretty good job of exporting to markdown syntax. The following works (use C-c C-e g to run the exporter): (require 'org-export-generic) (org-set-generic-type markdown '(:file-suffix .markdown :key-binding ?M :title-format

[O] Customising C-c C-c behaviour

2011-07-14 Thread Paul Sexton
Hi, I would like to customise the behaviour of C-c C-c on plain text (specifically I would like to make it alter the tags, as if the cursor were on the item header). A variable exists called org-ctrl-c-ctrl-c-hook, but if any function contained in that variable runs, it overrides all other C-c

[O] Typo in 'org-without-partial-completion'

2011-06-22 Thread Paul Sexton
I think there's an error in 'org-without-partial-completion' in org-macs.el. The variable pc-mode gets bound to the value of partial-completion-mode - but this is a VARIABLE (t if that mode is enabled). Funcalling the value of the variable produces an error, unsurprisingly. This breaks insertion

[O] Make M-up and M-down transpose paragraphs in org buffers

2011-06-21 Thread Paul Sexton
By default, if used within ordinary paragraphs in org mode, M-up and M-down transpose *lines* (not sentences). This was not useful to me. The following code makes these keys transpose paragraphs, keeping the point at the start of the moved paragraph. Behaviour in tables and headings is

Re: [O] #+begin_example broken when #+begin_src included inside?

2011-06-13 Thread Paul Sexton
Nick Dokos nicholas.dokos at hp.com writes: I can certainly confirm that: I reported it a week ago - see http://thread.gmane.org/gmane.emacs.orgmode/42546 Nick Lots of org syntax remains inappropriately live inside EXAMPLE blocks. For example, a property drawer inside an EXAMPLE

Re: [O] Audio/video file playback in org mode

2011-06-10 Thread Paul Sexton
Thanks Michael, I'm glad you think it will be helpful. I have implemented something like what you have requested here. I have hived this code off into a separate file called org-player.el. You can get it at: http://bitbucket.org/eeeickythump/org-player/ I intend to add it to worg in the next

Re: [O] Audio/video file playback in org mode

2011-06-10 Thread Paul Sexton
brian powell briangpowellms at gmail.com writes: * Something like this; respectively!?:  [[shell:mplayer -ss 00:03:21 -endpos 00:06:54 ~/some_podcast.mp3 ]] [[shell:mplayer -ss 00:03:21 ~/some_podcast.mp3 ]] [[shell:mplayer ~/some_podcast.mp3 ]] The troubles with using shell commands in

[O] Audio/video file playback in org mode

2011-06-09 Thread Paul Sexton
I have spent a few hours figuring this out so I thought I would post it for the benefit of others. I am learning a language, and wanted to include hyperlinks to audio files within my org document, and be able to play each file by clicking on the link. I eventually discovered the variable

Re: [O] Org-Drill first interval

2011-06-09 Thread Paul Sexton
Curt Bergmann curt.bergmann at visi.com writes: The first interval for my first question is always 4 whether I mark it as a 3, 4, or 5. When I change org-drill-learn-factor it doesn't appear to change the first interval. I would like to reduce the first interval and I assume that the

[O] [patch] make 'org-save-outline-visibility' return a useful value

2011-04-21 Thread Paul Sexton
The macro 'org-save-outline-visibility' in org-macs.el seems like it should return the value of the last statement in its body (like save-excursion and save-restriction do). Instead it discards this value and returns nothing useful. The macro is only used in 2 places in the org sources, and its

[O] Org-drill updated, now at v2.1

2011-04-12 Thread Paul Sexton
I Just thought I would let people know I have made extensive updates to org-drill recently. Org-drill uses orgmode topics as flashcards for self-testing, using spaced repetition algorithms like those used in programs such as SuperMemo, Anki and Mnemosyne. It resides in the contrib directory but

[O] [babel] By default, code blocks should not be evaluated during export

2011-04-07 Thread Paul Sexton
The default value of `org-export-babel-evaluate' is t. Having just crashed my Emacs session 5 times in a row trying to get a file containing a BEGIN_SRC emacs-lisp ... END_SRC *code example* to export to HTML... I strongly feel it should default to nil. I also feel that executable code block

[Orgmode] Re: Context-sensitive word count in org mode (elisp)

2011-02-20 Thread Paul Sexton
Bastien bastien.guerry at wikimedia.fr writes: #+begin_src emacs-lisp (when (looking-at org-bracket-link-analytic-regexp) (match-string-no-properties 5)) #+end_src emacs-lisp Thanks. Here is version 3 if the function, which is now able to count words in link descriptions. The code to

[Orgmode] Re: Context-sensitive word count in org mode (elisp)

2011-02-17 Thread Paul Sexton
Samuel Wales samologist at gmail.com writes: This looks great. How hard do you think it would be to show how many words there are for every subtree in a similar way to how clock durations are summed in c-c c-x c-d and displayed in the subtree itself in reverse video? I might leave that

[Orgmode] Re: Context-sensitive word count in org mode (elisp)

2011-02-16 Thread Paul Sexton
Christian Moe mail at christianmoe.com writes: Forgot to add the code. #+begin_src emacs-lisp ;; Adapted from code posted by Paul Sexton 2011-02-16 Wed 4:51am ;; - Everything now contained in one function ;; - Will count correct number of words inside Latex macro (defun

[Orgmode] Re: Context-sensitive word count in org mode (elisp)

2011-02-16 Thread Paul Sexton
Thanks for all the suggestions. Here is version 2. Improvements: - ignores source code blocks - ignores tags and TODO keywords in headings - ignores footnotes by default (option to force counting them) - skips any sections tagged as not for export - option to count words in latex macro arguments

[Orgmode] Re: Context-sensitive word count in org mode (elisp)

2011-02-16 Thread Paul Sexton
That looks really good. My suggestion would be to modify it so that 'wc-count' can be redefined on a per-major-mode or per-buffer basis, eg via a buffer-local variable 'wc-count-function'. Then my org-word-count function could be slotted in fairly easily - I would just have to modify it so that

[Orgmode] Context-sensitive word count in org mode (elisp)

2011-02-15 Thread Paul Sexton
I am trying to reduce the word count in a document I am writing. The existing word count functionality for emacs is surprisingly lacking. I wanted a word count function for org mode which excluded tables and comments, and ended up writing one myself. If this function is called with a region

[Orgmode] org-babel: Bugs with inline src_* blocks

2011-02-14 Thread Paul Sexton
I am experiencing a couple of significant bugs with inline src blocks in org-babel -- ie blocks of the form src_LANG{EXPRESSION}. I am using the development version of org, checked out a few days ago. Pressing C-c C-c with the cursor on such a block is supposed to evaluate it and echo the

[Orgmode] Re: [PATCH] Add new option for ignoring past or future items in the global todo list

2011-01-17 Thread Paul Sexton
Matt Lundin mdl at imapmail.org writes: [snip] Thanks Matt! (And it was mostly your idea.) Paul ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org

[Orgmode] Babel: replace inline block with evaluation result?

2011-01-13 Thread Paul Sexton
I have an org-mode document that uses a lot of R code (via babel). I have found that using inline code blocks, ie src_R{...}, within org tables works erratically, often either causing emacs to hang during latex export, or producing a table where random cells containing 'nil' instead of the result

[Orgmode] Re: Babel: replace inline block with evaluation result?

2011-01-13 Thread Paul Sexton
Eric Schulte schulte.eric at gmail.com writes: The following function could be bound to a key, and should do the job if called with the point on the src_lang portion of the inline code block. [snip - gmane web-thingy won't let me quote the function] Thanks Eric! I will try to come up with

[Orgmode] Patch: More options for ignoring scheduled items in agenda todo lists

2011-01-13 Thread Paul Sexton
In agenda todo lists, currently it is possible to ignore scheduled items according to when they are scheduled, using the variable 'org-agenda-todo-ignore-scheduled'. This can take one of three values - all, future (ignore if scheduled after today), or past (ignore if scheduled TODAY or in the

[Orgmode] Minor bug: org-agenda-holidays

2010-12-21 Thread Paul Sexton
In org-agenda.el, the function org-agenda-holidays is coded as: (defun org-agenda-holidays () Display the holidays for the 3 months around the cursor date. (interactive) (org-agenda-execute-calendar-command 'list-calendar-holidays)) 'list-calendar-holidays' does not exist. It should be

[Orgmode] Re: orgmode as a reference system: Storing private/sensitive information and syncing across devices.

2010-09-23 Thread Paul Sexton
Check out: http://ccrypt.sourceforge.net/ There is an emacs package provided, ps-ccrypt.el, which provides seamless loading saving of encryted files. I have been using it with my org agenda file for several months with no problems. Paul Marcelo de Moraes Serpa celoserpa at gmail.com writes:

[Orgmode] Problem with URLs in export to latex

2010-09-02 Thread Paul Sexton
Hi guys My .org document contains the following sentence. In R, procedures in the =survey= library were used\footnote{Available at: http://faculty.washington.edu/tlumley/survey/}. This is exported to: In R, procedures in the \texttt{survey} library were used\footnote{Available at:

[Orgmode] Re: cannot enable org-habit

2010-09-01 Thread Paul Sexton
Joseph Buchignani joseph.buchignani at gmail.com writes: Yes, here is how it looks: ... Hi Joseph The following item has been working fine for me. However I can't see any glaring differences wrt to your example item. ** TODO Add MCQs SCHEDULED: 2010-09-03 Fri .+1d/4d - State DONE

[Orgmode] Re: [BUG] some nasty bugs with PROPERTIES drawers

2010-08-31 Thread Paul Sexton
David Maus dmaus at ictsoc.de writes: I cannot reproduce this wiht Org-mode version 7.01trans (pulled yesterday) on GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) of 2010-08-14 on raven, modified by Debian There is a documentation file, README.org, that accompanies org-drill. It can

[Orgmode] Re: [BUG] some nasty bugs with PROPERTIES drawers

2010-08-31 Thread Paul Sexton
Erik Iverson eriki at ccbr.umn.edu writes: See the :exports argument, the default is code only. http://orgmode.org/org.html#exports That was my initial assumption, which is why I had BEGIN_SRC blocks in the file. But then I found that it crashed during export with these blocks, and stopped

[Orgmode] [BUG] org-read-date produces imaginary date

2010-08-30 Thread Paul Sexton
Today (31 August), if I evaluate (org-read-date t), then at the prompt type +3 The string returned is: 2010-08-34 Paul ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org

[Orgmode] [BUG] some nasty bugs with PROPERTIES drawers

2010-08-30 Thread Paul Sexton
There seems to be a fairly nasty bug caused by :PROPERTIES: drawers still being recognised by org when they appear inside BEGIN_EXAMPLE or BEGIN_SRC blocks. I encountered this behaviour while writing docs for org-drill. The doc file, README.org, contains quoted examples of org items, and also

[Orgmode] Re: [Ann] Updates to org-drill (org topics as interactive quot; flashcardsquot; using spaced repetition)

2010-08-27 Thread Paul Sexton
Detlef Steuer detlef.steuer at gmx.de writes: What is the intended way to input a few hundred two-sided cards? If I understand spanish.org correctly I need a headline like *** Noun :drill: :PROPERTIES: :DRILL_CARD_TYPE: twosided

[Orgmode] [Ann] Updates to org-drill (org topics as interactive flashcards using spaced repetition)

2010-08-26 Thread Paul Sexton
Org-Drill has recently been added to the contrib directory of the org repository. Latest version is in repository at: http://bitbucket.org/eeeickythump/org-drill I have made a couple of major updates recently. Changelogs are below. Reports of user experiences are welcome. Version 1.0 Added

[Orgmode] Bug: export aborts if ':eval query/never' in source code blocks

2010-08-26 Thread Paul Sexton
#+BEGIN_SRC R :eval query ... #+END_SRC If the above is in an org file, the user runs an export (C-c C-e), and the user types 'no' when asked whether to evaluate the code block, then the whole export process is aborted (no further blocks are processed and no export output is produced). The same

[Orgmode] Re: Bug: export aborts if ':eval query/never' in source code blocks

2010-08-26 Thread Paul Sexton
Eric Schulte schulte.eric at gmail.com writes: I've just pushed up a fix for this issue. For more information see http://eschulte.github.com/babel-dev/DONE-eval-and-noeval.html Wow, that was fast! Thanks very much. Paul ___ Emacs-orgmode

[Orgmode] Folding org drawers in elisp code?

2010-08-23 Thread Paul Sexton
Can anyone tell me how I can write elisp code to force drawers to appear closed (folded) in an org buffer? Thanks Paul ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org

[Orgmode] Some useful timestamp s-expressions

2010-08-18 Thread Paul Sexton
In org, timestamps can be in the usual angle-bracket format, eg 2010-08-19 +2w, or you can use lisp s-expressions. These are in the same format as the s-expressions used in the 'diary'/'calendar' emacs packages. I only discovered these recently but have been able to use them to schedule some

[Orgmode] Re: [ANN] Org-Drill: Interactive revision a la Anki/Mnemosyne

2010-08-02 Thread Paul Sexton
Detlef Steuer detlef.steuer at gmx.de writes: Hi! Just to give some feedback on org-drill. I had a look into writing something similar some time ago, but never got around learning enough emacs lisp. [...] Thanks for the feedback. If by whitespace you mean blank lines, that's not a

[Orgmode] Re: Small patch to restrict syntactic context where [[links]] are active

2010-07-26 Thread Paul Sexton
Paul Sexton psexton at xnet.co.nz writes: Unfortunately this doesn't seem to work as well as I thought. For some reason when org-bracket-link-context-ok is called, (point) is not at the end of the link, despite the fact that the docs for re-search-forward state that is where the point should

[Orgmode] [PATCH] org-depend only blocks null-TODO state change

2010-07-26 Thread Paul Sexton
In agenda view, tasks which are supposed to be blocked using org-depend's :BLOCKER: property, are not actually blocked and do not show up dimmed. This is because of a logic error in 'org-depend-block-undo', hopefully fixed below. index eb38aa0..84fa1a7 100644 ---

[Orgmode] Small patch to restrict syntactic context where [[links]] are active

2010-07-24 Thread Paul Sexton
Hi, I posted a bit of code here a while back which allows org [[links]] and targets to be fontified and active in any major mode. I have been using this with great success in elisp and common lisp source code files, where it actually works much more smoothly than linkd mode (see emacswiki) which

[Orgmode] Active, fontified org hyperlinks in any major mode

2010-03-11 Thread Paul Sexton
To activate and correctly fontify org [[hyperlinks]] in any major mode, add the following to your .emacs: (defun orgl-do-font-lock (add-or-remove) Add or remove font-lock rules for org hyperlinks. (funcall add-or-remove nil '((org-activate-bracket-links (0 'org-link t) (defun

[Orgmode] Programmers, use org to write your doc strings...

2010-03-02 Thread Paul Sexton
Hi I think org is a good platform for writing documentation for source code. The babel module is one approach, but it presumes that org is the dominant major mode, and the actual source code is divided into snippets here and there. I wanted to look into another way of doing it: the source

[Orgmode] Re: Org-ctags released

2009-12-24 Thread Paul Sexton
Happy Xmas everyone. I have updated org-ctags to use an existing hook which has recently been added to the development version of org-mode by Carsten. So now, no patch is needed. I have also fixed a couple of bugs. Latest version can be downloaded at:

[Orgmode] Org-ctags released

2009-12-23 Thread Paul Sexton
Hi, I have rewritten org-ctags, a package which allows org mode to use Emacs tags to seamlessly navigate to link targets in other org files (as well as source code files etc). See below for more of an explanation. The patch to org.el now creates a hook, as suggested by Carsten. Basically, if a

[Orgmode] Re: OrgmodeWiki Support

2009-12-18 Thread Paul Sexton
Carsten Dominik carsten.dominik at gmail.com writes: [snip] I think it would be useful to discuss this proposal first in a broader sense. Let me try to make a start. A few days ago, Paul Sexton submitted his proposal for simple file-to-file links based on etags. He wanted to make

[Orgmode] Re: Integrating ctags org mode (patch)

2009-12-15 Thread Paul Sexton
Carsten Dominik carsten.dominik at gmail.com writes: Hi Paul, I like this very much. But I would like to change the implementation so that there will be a hook. Then people can do different things, including matching tags in source code files etc. Would you be interested to turn

[Orgmode] Re: Integrating ctags org mode (patch)

2009-12-15 Thread Paul Sexton
Also I realised there was a misplaced parenthesis in the (if (y-or-n-p... clause. Corrected patch follows. BEGIN PATCH for org.el (delete this line) 8349,8369c8349,8350 { (condition-case nil (eval cmd) { ;; ORG-TAGS { (error {(progn

[Orgmode] Re: Integrating ctags org mode (patch)

2009-12-15 Thread Paul Sexton
Sorry guys, I seem to be spamming this topic, but I just fixed another problem -- properties on the link string were causing problems with find-tag, which expected a propertyless string. Fixed patch follows. BEGIN PATCH for org.el (delete this line) 8349,8369c8349,8350 {

[Orgmode] Integrating ctags org mode (patch)

2009-12-14 Thread Paul Sexton
Hi, I have managed to get exuberant ctags working with org mode. This means that plain links [[like this]], instead of defaulting to plain text search when no match is found in the current file, now look for a matching tag like this in all your *.org files, and jumps there. This means your org

[Orgmode] More wiki-like behaviour

2009-02-06 Thread Paul Sexton
Hi, I am interested in using Org mode to create a personal wiki (along the lines of Wikidpad: http://wikidpad.sourceforge.net/ ), treating top level headings (one star) as wiki topics. To do this, I have added 2 behaviours to Org-mode. 1. Always narrow to subtree after following an internal