Re: For your consideration: Extending org-info-js with additional hooks

2022-12-29 Thread David O'Toole
Ok, I will get started on this :)

On Thu, Dec 29, 2022 at 10:38 AM Bastien Guerry  wrote:

> Ihor Radchenko  writes:
>
> > Bastien, since the activity around org-info-js revived after a long
> > delay, should we move the code out of worg into a separate repo?
>
> Yes, definitely.  David, would you like to set up a new repository
> with the code from the org-info-js directory here:
>
> https://git.sr.ht/~bzg/worg/tree/master/item/code/org-info-js
>
> You can try to excise the directoy while preserving its history,
> although I would not make it mandatory for org-info-js to live in
> a new, separate repository.
>
> Once this is done, we'll see how to remove org-info-js from Worg.
>
> Thanks!
>
> --
>  Bastien
>


Updated patch for org-info-src.js

2022-12-24 Thread David O'Toole
Hi everyone,

As you may recall, I have been working on org-info-js. I have fixed at
least one bug since my last patch, where org-info-js had gotten out of sync
with the details of Org HTML export. I also split several "paragraphs" of
code out into their own functions so that I could call them from elsewhere.
Thus I am submitting an updated patch for your consideration. I hope you
will find it useful.
diff -u /home/dto/Downloads/org-info-src.js /home/dto/notebook/org-info-src.js
--- /home/dto/Downloads/org-info-src.js	2022-12-10 11:47:20.086746072 -0500
+++ /home/dto/notebook/org-info-src.js	2022-12-24 10:18:38.010260115 -0500
@@ -28,30 +28,87 @@
  * 
  *
  *
- * The script is now roughly devided in sections by form-feeds. Editors can
- * move section wise using the common emacs commands for this purpos ('C-x ]'
- * and  'C-x ]').
+ * The script is now roughly divided into sections by
+ * form-feeds. Editors can move section-wise using the common emacs
+ * commands for this purpose ('C-x ]' and 'C-x ]').
  *
  * The sections are:
  *1. This comment block.
- *2. Everything around =OrgNodes=.
- *3. =org_html_manager= constructor and setup.
- *4. =org_html_manager= folding and view related stuff.
- *5. =org_html_manager= history related methods.
- *6. =org_html_manager= minibuffer handling.
- *7. =org_html_manager= user input.
- *8. =org_html_manager= search functonality.
- *9. =org_html_manager= misc.
- *10. Global functions.
+ *2. Content hooks
+ *3. Everything around =OrgNodes=.
+ *4. =org_html_manager= constructor and setup.
+ *5. =org_html_manager= folding and view related stuff.
+ *6. =org_html_manager= history related methods.
+ *7. =org_html_manager= minibuffer handling.
+ *8. =org_html_manager= user input.
+ *9. =org_html_manager= search functonality.
+ *10. =org_html_manager= misc.
+ *11. Global functions.
  */
 
+/**
+ * This program has been modified from its original version to add
+ * hooks for per-page HTML injection and per-click navigation event
+ * response. A patch is being submitted to upstream. 
+ *  - David T. O'Toole 
+ */
 
 
 
 
+var OrgInfoCurrentSectionNumber = 0;
+
+/**
+ * The following variable should hold a function which accepts an
+ * integer pageNumber and should return HTML to be inserted in the
+ * OrgInfo header of each page.
+ */
+var OrgInfoPageInsertFunction = function(pageNumber) {return '';};
+
+
+/**
+ * The following variable should hold a function which accepts an
+ * integer pageNumber and performs a user-defined action after the
+ * page has flipped.
+ *
+ */
+var OrgInfoAfterNavigateFunction = function(pageNumber) {};
+
+/**
+ * The following variable should hold a function which performs a
+ * user-defined action after Plain View has been activated.
+ *
+ */
+
+var OrgInfoAfterPlainViewFunction = function() {};
+
+/**
+ * The following variable should hold a function which performs a
+ * user-defined action after Info View has been activated.
+ *
+ */
+
+var OrgInfoAfterInfoViewFunction = function() {};
+
+/**
+ * The following variable should hold a function which performs a
+ * user-defined action after the document is ready.
+ */
+
+var OrgInfoAfterReadyFunction = function() {};
+
+/**
+ * Custom keybindings for Z, K, and Y.
+ */
+var OrgInfoUserKeyZ = function () {};
+var OrgInfoUserKeyK = function () {};
+var OrgInfoUserKeyY = function () {};
+
+
+
 /**
  * Creates a new OrgNode.
- * An OrgOutline stores some refs to its assoziated node in the document tree
+ * An OrgOutline stores some refs to its associated node in the document tree
  * along with some additional properties.
  */
 function OrgNode ( _div, _heading, _link, _depth, _parent, _base_id, _toc_anchor)
@@ -87,8 +144,17 @@
 var fid =  _base_id.substring(4);
 folder = document.getElementById("text-"+fid); // try old schema
   }
-  if(null != folder)
-t.FOLDER = folder;
+
+if(null == folder)
+{
+if (null != t.BASE_ID) {
+var did = OrgInfoRecoverSectionID(document.getElementById(t.BASE_ID).textContent);
+folder = document.getElementById("text-"+did);
+}
+}
+
+if(null != folder)
+{ t.FOLDER = folder;}
 
   t.isTargetFor = new Object();
   t.isTargetFor['#' + t.BASE_ID] = 2;
@@ -434,7 +500,7 @@
   var v = sets[i].substring(pos+1);
   var k = sets[i].substring(0, pos);
   switch(k) {
-// Explicitely allow overwrites.
+// Explicitly allow overwrites.
 // Fall through:
   case 'TOC':
   case 'TOC_DEPTH':
@@ -634,6 +700,7 @@
 }
 t.HOOKS.run_hooks = true;// Unblock all hooks.
 t.runHooks('onReady', this.NODE);
+  OrgInfoAfterReadyFunction();
   },
 
 
@@ -734,7 +801,7 @@
   t.cutToc(theIndex, 1);
 }
 
-// Move the title into the first visible section.
+// Move the title into the first visible section.urrentpage
 // TODO: 

CSV agenda export formats some day and month values as single digits

2022-12-23 Thread David O'Toole
Version: Org mode version 9.6 (release_9.6-3-ga4d38e @
/usr/local/share/emacs/29.0.60/lisp/org/)

CSV export for the agenda is formatting January 1, 2023 as "2023-1-1" and
not "2023-01-01".
The raw output is here: https://pastebin.com/raw/EyN1JbhP

The last two lines both have "2023-1-1".
This is incorrect because:

Expression: (format-time-string "%04Y-%02m-%02d" (date-to-time "2023-1-1"))
Result: "1999-12-31"


Validating org XHTML output

2022-12-22 Thread David O'Toole
Hello. While at one time org XHTML output validated successfully, now the
default values of certain variables in ox-html cause the resulting output
to not validate as XHTML 1.0 Strict.

org-html-infojs-template: script tag attribute "type" is required (2x)
org-html-style-default: style tag attribute "type" is required

Also the following output gives the error "there is no attribute 'role'".





The same for this output:

role=*"*doc-backlink"


Re: For your consideration: Extending org-info-js with additional hooks

2022-12-14 Thread David O'Toole
At Ihor's invitation, I'd like to mention that I can help maintain
org-info-js going forward. I'm not a JavaScript expert but I seem to be
doing fine with adding my hooks and figuring out how the code works. Please
let me know what I can do to help out with maintenance. I already have
copyright assignment papers on file with the FSF so that's all set.


Re: For your consideration: Extending org-info-js with additional hooks

2022-12-13 Thread David O'Toole
Here are my suggested changes to the manual and change log.

On Tue, Dec 13, 2022 at 11:32 AM David O'Toole 
wrote:

> Sure, I would be happy to help out with the news and manual.
> I will draft some changes and get back to you.
>
>
>> This addition does sound useful.
>> However, in addition to changes in the code, it would be helpful to
>> provide appropriate news entry and manual changes.
>>
>
> On Tue, Dec 13, 2022 at 5:00 AM Ihor Radchenko 
> wrote:
>
>> "David O'Toole"  writes:
>>
>> > After some discussion with Yantar on IRC, I humbly submit the attached
>> diff
>> > for your consideration.
>> >
>> > It adds new hooks to org-info-js to allow the following: 1. inserting
>> > page-specific HTML into each OrgInfo header, and 2. calling a custom
>> > JavaScript function to run after any page navigation button/link is
>> > clicked. I have used these hooks to implement Org-fleuron, a custom
>> config
>> > with nice navigation buttons, a greeting balloon, and embedded
>> theme/fonts.
>> > You can find out more about org-fleuron here:
>> > https://davidotoole.info/fleuron.html?#org5dc18bc and the page was made
>> > with the setup.
>> >
>> > I also corrected some of the English messages displayed by org-info-js.
>>
>> This addition does sound useful.
>> However, in addition to changes in the code, it would be helpful to
>> provide appropriate news entry and manual changes.
>>
>> See
>> https://git.sr.ht/~bzg/worg/tree/master/item/code/org-info-js/changes.org
>> and
>> https://git.sr.ht/~bzg/worg/tree/master/item/code/org-info-js/index.org
>>
>> Bastien, since the activity around org-info-js revived after a long
>> delay, should we move the code out of worg into a separate repo?
>>
>> --
>> Ihor Radchenko // yantar92,
>> Org mode contributor,
>> Learn more about Org mode at <https://orgmode.org/>.
>> Support Org development at <https://liberapay.com/org-mode>,
>> or support my work at <https://liberapay.com/yantar92>
>>
>
diff -u /home/dto/Downloads/changes.org /home/dto/orginfo/changes.org
--- /home/dto/Downloads/changes.org	2022-12-13 11:41:29.005889535 -0500
+++ /home/dto/orginfo/changes.org	2022-12-13 11:48:20.807362246 -0500
@@ -8,7 +8,13 @@
 #+INFOJS_OPT: up:https://orgmode.org/worg/
 #+INFOJS_OPT: home:https://orgmode.org buttons:nil
 
+* 2022-12-13 David O'Toole
 
+  * Create additional hooks so that the end-user can insert
+per-section custom HTML (OrgInfoPageInsertFunction) and handle
+navigation events (OrgInfoAfterNavigateFunction).
+
+  * Correct English error/status messages displayed in minibuffer.
 
 * 2010-11-24 Benny Simonsen Part 1
 

Diff finished.  Tue Dec 13 12:18:39 2022
diff -u /home/dto/Downloads/index.org /home/dto/orginfo/index.org
--- /home/dto/Downloads/index.org	2022-12-13 11:41:43.022078142 -0500
+++ /home/dto/orginfo/index.org	2022-12-13 12:17:18.460761688 -0500
@@ -192,8 +192,8 @@
  version 0.0.7.3a (fixed in current Org-mode versions). If you export with
  =skip:nil=, you may add this to your stylesheet:
  : #text-before-first-headline {color:red;font-weight:bold;}
-+ Hooks :: The OrgHtmlManager object provides hooks (two currently) to add
- custom actions.
++ Hooks :: There are several hooks to add custom actions. See the
+  section "Hooks" for more information.
 
 * Shortcuts
 :PROPERTIES:
@@ -703,8 +703,15 @@
 :CUSTOM_ID: hooks
 :END:
 
-Currently two hooks are provided.  Each hook function is called with one or
-more parameters the first of which is the OrgHtmlManager object.
+Two styles of hooks are supported: Standard hooks (which use
+OrgHtmlManager and require a bit of bookkeeping) and simple hooks,
+which are JavaScript variables that hold a function.
+
+** Standard hooks
+
+Currently two standard hooks are provided.  Each hook function is
+called with one or more parameters the first of which is the
+OrgHtmlManager object.
 
 - '~onReady~' :: This hook is run once the document is loaded, the view is
  setup and the startup section is shown.  The second parameter
@@ -714,7 +721,6 @@
  first section.  The second parameter is an object with to OrgNodes: the
  previously shown section and the current section.
 
-
 To add functions to the hooks, fill a global object ~orgInfoHooks~ with the
 function objects you need.  This is necessary, because code added via the
 ~#+STYLE:~ option lines is executed before org-info.js is loaded.
@@ -748,6 +754,50 @@
 could happen otherwise (the hook loop will overlook a member. While the hook
 loop runs in first hook first, the remove loop removes the last hook first).
 
+** Simple hooks
+
+Simple hooks are just JavaScri

Re: For your consideration: Extending org-info-js with additional hooks

2022-12-13 Thread David O'Toole
Sure, I would be happy to help out with the news and manual.
I will draft some changes and get back to you.


> This addition does sound useful.
> However, in addition to changes in the code, it would be helpful to
> provide appropriate news entry and manual changes.
>

On Tue, Dec 13, 2022 at 5:00 AM Ihor Radchenko  wrote:

> "David O'Toole"  writes:
>
> > After some discussion with Yantar on IRC, I humbly submit the attached
> diff
> > for your consideration.
> >
> > It adds new hooks to org-info-js to allow the following: 1. inserting
> > page-specific HTML into each OrgInfo header, and 2. calling a custom
> > JavaScript function to run after any page navigation button/link is
> > clicked. I have used these hooks to implement Org-fleuron, a custom
> config
> > with nice navigation buttons, a greeting balloon, and embedded
> theme/fonts.
> > You can find out more about org-fleuron here:
> > https://davidotoole.info/fleuron.html?#org5dc18bc and the page was made
> > with the setup.
> >
> > I also corrected some of the English messages displayed by org-info-js.
>
> This addition does sound useful.
> However, in addition to changes in the code, it would be helpful to
> provide appropriate news entry and manual changes.
>
> See
> https://git.sr.ht/~bzg/worg/tree/master/item/code/org-info-js/changes.org
> and
> https://git.sr.ht/~bzg/worg/tree/master/item/code/org-info-js/index.org
>
> Bastien, since the activity around org-info-js revived after a long
> delay, should we move the code out of worg into a separate repo?
>
> --
> Ihor Radchenko // yantar92,
> Org mode contributor,
> Learn more about Org mode at <https://orgmode.org/>.
> Support Org development at <https://liberapay.com/org-mode>,
> or support my work at <https://liberapay.com/yantar92>
>


For your consideration: Extending org-info-js with additional hooks

2022-12-12 Thread David O'Toole
Greetings, Orgmoders.

After some discussion with Yantar on IRC, I humbly submit the attached diff
for your consideration.

It adds new hooks to org-info-js to allow the following: 1. inserting
page-specific HTML into each OrgInfo header, and 2. calling a custom
JavaScript function to run after any page navigation button/link is
clicked. I have used these hooks to implement Org-fleuron, a custom config
with nice navigation buttons, a greeting balloon, and embedded theme/fonts.
You can find out more about org-fleuron here:
https://davidotoole.info/fleuron.html?#org5dc18bc and the page was made
with the setup.

I also corrected some of the English messages displayed by org-info-js.

I hope you will find this useful.

Please let me know if you have any questions or comments!
diff -u /home/dto/Downloads/org-info-src.js /home/dto/notebook/org-info-src.js
--- /home/dto/Downloads/org-info-src.js	2022-12-10 11:47:20.086746072 -0500
+++ /home/dto/notebook/org-info-src.js	2022-12-12 11:48:20.471441625 -0500
@@ -28,30 +28,57 @@
  * 
  *
  *
- * The script is now roughly devided in sections by form-feeds. Editors can
- * move section wise using the common emacs commands for this purpos ('C-x ]'
- * and  'C-x ]').
+ * The script is now roughly divided into sections by
+ * form-feeds. Editors can move section-wise using the common emacs
+ * commands for this purpose ('C-x ]' and 'C-x ]').
  *
  * The sections are:
  *1. This comment block.
- *2. Everything around =OrgNodes=.
- *3. =org_html_manager= constructor and setup.
- *4. =org_html_manager= folding and view related stuff.
- *5. =org_html_manager= history related methods.
- *6. =org_html_manager= minibuffer handling.
- *7. =org_html_manager= user input.
- *8. =org_html_manager= search functonality.
- *9. =org_html_manager= misc.
- *10. Global functions.
+ *2. Content hooks
+ *3. Everything around =OrgNodes=.
+ *4. =org_html_manager= constructor and setup.
+ *5. =org_html_manager= folding and view related stuff.
+ *6. =org_html_manager= history related methods.
+ *7. =org_html_manager= minibuffer handling.
+ *8. =org_html_manager= user input.
+ *9. =org_html_manager= search functonality.
+ *10. =org_html_manager= misc.
+ *11. Global functions.
  */
 
+/**
+ * This program has been modified from its original version to add
+ * hooks for per-page HTML injection and per-click navigation event
+ * response. A patch is being submitted to upstream. 
+ *  - David T. O'Toole 
+ */
+
+
+
+
+/**
+ * The following variable should hold a function which accepts an
+ * integer pageNumber and should return HTML to be inserted in the
+ * OrgInfo header of each page.
+ */
+var OrgInfoPageInsertFunction = function(pageNumber) {return '';};
+
+
+/**
+ * The following variable should hold a function which accepts an
+ * integer pageNumber and performs a user-defined action after the
+ * page has flipped.
+ *
+ */
+var OrgInfoAfterNavigateFunction = function(pageNumber) {};
+
 
 
 
 
 /**
  * Creates a new OrgNode.
- * An OrgOutline stores some refs to its assoziated node in the document tree
+ * An OrgOutline stores some refs to its associated node in the document tree
  * along with some additional properties.
  */
 function OrgNode ( _div, _heading, _link, _depth, _parent, _base_id, _toc_anchor)
@@ -904,14 +931,16 @@
 for(var i = 0; i < this.SECS.length; ++i)
 {
   this.SECS[i].IDX = i;
-  var html = ''
-+''
-+''
-+'Top: '+index_name+''
-+''
-+ this.LINKS
-+'toggle view'
-+'';
+var html =
+OrgInfoPageInsertFunction(i)
++ ''
++''
++ ''
++ 'Top: '+index_name+''
++ ''
++  this.LINKS
++ 'toggle view'
++ '';
 
   if(i>0)
 html += ''
-+''
++''
 +this.SECS[i].PARENT.HEADING.innerHTML+'';
   else
-html += ''+this.SECS[i].HEADING.innerHTML+'';
+html += ''+this.SECS[i].HEADING.innerHTML+'';
 
   // Right:
   html += '';
@@ -1321,7 +1350,7 @@
 var T = this;
 var i = T.NODE.IDX + 1;
 if(i0) t.navigateTo(i-1);
-else t.warn("Already first section.");
+else t.warn("This is already the first section.");
   },
 
 
@@ -1345,6 +1374,8 @@
 if(t.VIEW == t.SLIDE_VIEW) t.adjustSlide(sec);
 t.pushHistory(sec, t.NODE.IDX);
 t.showSection(sec);
+
+OrgInfoAfterNavigateFunction();
   },
 
 
@@ -1386,7 +1417,7 @@
   else if(t.HFO && history.length) history.forward();
   else {
 t.HFO=1;
-t.warn("History: No where to foreward go from here. Any key and `B' to move to next file in history.");
+t.warn("History: There is nowhere to go forward to from here. Press `B' to move to the next page in your browser history.");
   }
 } else {
   if(t.HISTORY[t.HIST_INDEX - 1]) {
@@ -1406,7 +1437,7 @@
   else if(t.HBO

[O] wolfram's computable document format

2011-07-21 Thread David O'Toole
http://www.wolfram.com/cdf/

Looks nice, and could be very interesting to orgmoders.



Re: [O] org-mode fontification error when exporting to LaTeX

2011-07-12 Thread David O'Toole
Hi,

try doing (setq debug-on-error t) and then re-export; this should give
you a backtrace.

but sometimes fontification stuff can have errors without backtraces.
try checking the *Messages* buffer. misbehaving font-lock rules and
improperly defined faces can also be issues.

On Tue, Jul 12, 2011 at 9:52 PM, Luke J Crook  wrote:
> I get an 'org-mode fontification error' when I export to LaTeX.
> Any idea what may be causing this?
>
> Thanks,
> -Luke
>
>
>



Re: [O] ob-lilypond

2011-06-28 Thread David O'Toole
this is fantastic :)

org mode is becoming like the Jupiter of the emacsian solar system.

On Tue, Jun 28, 2011 at 8:11 AM, Christian Moe  wrote:
> Hi,
>
> I'm thrilled that Lilypond has been added to Babel, grateful for the extra
> thought given to Mac users -- and completely bowled over by your demos!
>
> Rather than put together complex scores or generate arpeggios the literate
> programming way, though, all I'd like to do is to easily include simple
> snippets of music notation in Org documents (elaboration follows).
>
> So please consider this a polite request to bump up "Consider the option to
> embed resultant partial musical output into org file" from SOMEDAY to TODO
> in your task list...
>
> Use cases:
>
> - Self-contained documentation, e.g. using Org to author a text like the
> Lilypond documentation: much prose with code examples and the results of
> those examples interspersed.
>
> - Writing a musicology paper, with captioned and cross-referenced examples
> (not /my/ use case, but someone might...)
>
> - Putting together a simple song booklet, such as for a summer camp, with
> lyrics and possibly illustrations. (This is my main interest.)
>
> Ways to do it:
>
> One (imperfect) solution would be a header argument to just surround the
> exported content of Lilypond blocks with the appropriate HTML tags / LaTeX
> environment for lilypond-book to act on, and perhaps a post-processing step
> to automatically call lilypond-book on the exported document. I can probably
> set up something like this for myself.
>
> But much better, IMO, would be a way to `evaluate' a single Lilypond block
> and get #+RESULTS with a link to a PNG representing just that snippet of
> music. The snippet would then show up in subsequent exports as an included
> graphic without any post-processing, and could also be viewed in-buffer with
> `C-c C-x C-v'. (For my money, this and not `tangle all' would be the
> intuitive use of `C-c C-c' on a block, but I understand how your choice
> makes sense for other uses.)
>
> Yours,
> Christian
>
>
>
> On 6/27/11 3:00 PM, Martyn Jago wrote:
>>
>> Hi
>>
>> This is an invitation to try / test ob-lilypond - enabling LilyPond
>> Score Generation / Arrangement from within org-mode.
>>
>> Available on Github at https://github.com/mjago/ob-lilypond
>>
>> This is a beta release, but includes examples, instructions, and
>> tests, and has been tested on OSX and nix.
>>
>> Any further testing would be helpful.
>>
>> Following is the readme.org file which is rendered correctly on
>> Github...
>>
>> --->
>>
>> * Emacs Org Babel LilyPond Mode
>> ** Purpose
>> Allow LilyPond Score Generation to take place within Emacs Org-mode
>> using literate programming principles.
>>
>> ** Examples
>> Several examples are included
>> *** Misty (Jazz Standard utilising org-mode to organise voice and other
>> data)
>>       - Here is an example Org LilyPond File]] exported as HTML
>>       - Resultant Score exported in pdf format
>>       - Generated Score export of individual Pages (png)
>> *** Modal Cycles (Utilises org-babel and noweb to generate notes)
>>       - Generated Score
>>       - Generated Midi File
>> *** Modal Cycles 2 (Utilises org-babel and noweb to generate notes)
>>       - Generated Score
>>       - Generated Midi File
>> *** Modes in the Key of C (another example of polyglot lilypond
>> programming)
>>       - Generated Score
>>       Generated MIDI File
>>
>> ** Features
>>  - Optional Automated LilyPond Compilation following the "Tangling"
>>   of a "Literate Org LilyPond" file
>>  - Optional Automated display of resultant Musical Score following
>> compilation
>>  - Optional Automated playing of the resultant MIDI file following
>> compilation
>>  - Highlights syntax errors in Org file following a failed compilation
>>  - Integrates with LilyPond-Mode
>>  - Cross-Platform (OSX, nix, win32)
>>
>> ** Usage
>>
>> *** Compiling lilypond source
>> Hitting 'C-c C-c' within a lilypond block initiates ly-tangle (tangling of
>> all
>> lilypond blocks). Depending on the feature settings, ob-lilypond will
>> then either display a pdf of the score, play the generated midi file,
>> both, or neither.
>>
>> 'M-x ly-tangle' can also be called from anywhere in the file
>> and can be tied to a function key with something like...
>>
>> #+begin_src emacs-lisp
>>
>>  (global-set-key [f8] 'ly-dev-tangle)
>>
>> #+end_src
>>
>> *** Commands
>>
>> Some commands are included to quickly disable certain post-tangle
>> activities...
>>  - ly-toggle-midi-play (toggle whether midi will be played following a
>>      successful compilation)
>>  - ly-toggle-pdf-display (toggle whether pdf will be displayed following
>>     a successful compilation)
>>
>>
>> NOTE:- If using Timidity for midi playback, kill the midi stream with
>> C-g in Emacs
>>
>> ** Setup (add to emacs init file)
>> *** Cloning ob-lilypond
>>
>> The Files need to be downloaded to your relevant dotfiles directory...
>>
>> #+BEGIN_SRC sh
>>
>> git clone http

[O] documentary filmmaking and reproducible research?

2011-03-14 Thread David O'Toole
Greetings, org community. A while back I made two short (less than 10
minute) amateur documentary films. I used org-mode to outline
everything, structure my notes and the many public domain texts/images
I used, and coordinate the recording process for the voiceovers. I've
also separately experimented with using org as an asset management
system complete with binary attachments, Dublin Core metadata to keep
track of (among other things) licensing information for assets used in
video game development.

I have some (somewhat disorganized) thoughts and references collected
here: https://github.com/dto/ioforms/raw/master/ioforms.org

I've just seen the documentary film "Inside Job", and then watched it
over again, and listened to the voiceover commentary of the film's
director and producer. They discussed using many gigantic, complex
Word and Excel documents to organize the data they needed to make the
film, and apparently emailing these big MS Office files around the
world to coordinate the deep research the team were doing right up
until the film was finished.

http://en.wikipedia.org/wiki/Inside_Job_(film)

One of the most striking aspects of Inside Job is its effective use of
animated diagrams with explanatory voiceover. By consistent use of
terms, shapes, simple icons, and color-coding, the diagrams lead to
some of the most effective moments of the film. Aside from many
illustrative bar and line graphs, the filmmakers use "block-and-arrow"
animations to explain the flows of money in what they call the
"securitization food chain".

An important part of the film are network analyses (identifying single
people who serve or have served on multiple corporate boards of
directors, or who went from a board of directors to a position at a
regulatory agency regulating the same corporations, or identifying
groups of people who served together on the same boards, and so on. I
wonder what it might have been like if something like Gephi
(http://gephi.org) had been used instead of Microsoft Excel.

Apparently now there is also some information on use of the R language
at the New York Times' graphics department.
http://www.r-bloggers.com/amanda-cox-on-how-the-new-york-times-graphics-department-uses-r/
  And perhaps people here have read arguments that David X. Li's
famous statistical formula had a part to play in the debacle.

So, what do people think of assembling free software so that anyone
can make reproducibly-researched, remixable, crowd-sourced documentary
films? Or even just research papers with some really nice animations?
:) And use org-publish to throw the "source code" of the documentary
on the internet for inspection and criticism? I'm seeing a common
theme, of how software tools (whether MS Office, or org and R) become
involved in the process of creating and then communicating the results
of research.

The government is already using stuff like link analysis to get
information about the general public (to identify connections between
members of Wikileaks, Anonymous) but it might be interesting to try
the reverse, and use software to connect people who can then cooperate
and share information, and perhaps discover connections or groups
(cells?) of individuals who are connected across networks in academe,
government, corporations, non-governmental organizations, large media
institutions, and so on.

Of course it doesn't have to be Julian Assange type intrigue, it could
just be another fun thing to do with Orgmode.

What do you think?



Re: [Orgmode] Fontification of blocks

2010-12-10 Thread David O'Toole
Hi Sebastien,

I give a definite Vote++ to this feature!

2010/12/10 Sébastien Vauban :
> Hi,
>
> In order to make the blocks stand out more clearly in the mix of prose, code
> and table results of many Babel Org files, I've added 2 new faces:
>
> - org-block-begin-line
> - org-block-end-line
>
> These apply to the line just before and after the block's body:
>
> #+srcname: top-10-dossiers-with-many-prestations
> #+begin_src sql                                     <<< org-block-begin-line
> SELECT TOP 10 prsPfiID_fk, COUNT(*) AS '# Prestations'
> FROM prestations
> GROUP BY prsPfiID_fk
> ORDER BY COUNT(*) DESC
> #+end_src                                             <<< org-block-end-line
>
> Not only for =src=, but also for =verse=, =quote=, etc.
>
> This patch takes care of the correct fontification, both in native style, and
> in the "no native fontification" style:
>
>
>
> Best regards,
>  Seb
>
> --
> Sébastien Vauban
>
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Org-babel games screencast

2010-11-26 Thread David O'Toole
Here's a presentation I made, sorry it's a bit rough but here goes:

http://lispgamesdev.blogspot.com/2010/11/lisp-game-development-screencast-1.html

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Themes Compatible with color-theme.el

2010-10-10 Thread David O'Toole
Done. There are actually two themes here, one dark and one medium in
brightness. These probably only work well on relatively high-contrast
LCD or similar flat panels.

http://github.com/dto/emacs-config


On Sun, Oct 10, 2010 at 3:54 AM, Ian Barton  wrote:
> On 09/10/10 19:42, David O'Toole wrote:
>>
>> Hi everyone, I have a theme with Org customizations called
>> color-theme-folio. it's not done yet, but works fine so far. I'd be
>> happy to make a few more changes and contribute it under whatever
>> license.
>> http://github.com/dto/emacs-config/blob/master/folio.el
>>
>>
>> On Sat, Oct 9, 2010 at 11:54 AM, Yavuz  wrote:
>>>
>>> I have a theme (a modified zenburn to be less contrasty and use a light
>>> background) at http://github.com/yarkun/zenash if anyone is interested.
>>>
>>>
> Thanks David. I'll add the current version to worg. Could I ask that you
> rename it color-theme-folio.el, to make it compatible with the naming
> convention of the other themes.
>
> Ian.
>

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Themes Compatible with color-theme.el

2010-10-09 Thread David O'Toole
Hi everyone, I have a theme with Org customizations called
color-theme-folio. it's not done yet, but works fine so far. I'd be
happy to make a few more changes and contribute it under whatever
license.
http://github.com/dto/emacs-config/blob/master/folio.el


On Sat, Oct 9, 2010 at 11:54 AM, Yavuz  wrote:
> I have a theme (a modified zenburn to be less contrasty and use a light
> background) at http://github.com/yarkun/zenash if anyone is interested.
>
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Org now fontifies code blocks

2010-09-06 Thread David O'Toole
I agree Bastien :)

On Mon, Sep 6, 2010 at 2:30 PM, Bastien  wrote:
> If setting org-src-fontify-natively to `t' by default triggers a debate
> on whether we need to set org-warn-when-editing-src-block-in-org-buffer
> on or off by default, I'd rather set org-src-fontify-natively off by
> default...
>
> My 2 cts,
>
> --
>  Bastien
>

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Org now fontifies code blocks

2010-09-06 Thread David O'Toole
maybe there could be an on-by-default variable called
org-warn-when-editing-src-block-in-org-buffer, or make the text
readonly, etc.

making this on-by-default would seem to create another discussion
about things being on-by-default :)

however, if fontification is on by default, then this should also be
on by default, since fontification causes the mistaken in-org-buffer
edits that Richard points out, which seems reasonable to want to
prevent systematically. I've done this myself a few times.



On Mon, Sep 6, 2010 at 12:59 PM, Richard Riley  wrote:
> Eric S Fraga  writes:
>
>> On Thu, 02 Sep 2010 08:51:16 -0700, Dan Davison  
>> wrote:
>>>
>>> I've just pushed changes which mean that Org now fontifies code in code
>>> blocks. Currently, this is turned on by default, so it would be helpful
>>> if people could report any problems, and opinions as to whether it
>>> should be on or off by default.
>>
>> [...]
>>
>> This is brilliant!  Works very well on my notebook (with small code
>> blocks as that's all I tend to have).  Many thanks!
>
> Without wanting to rock the boat I think its safer to have this disabled
> by default. I cant tell you how many times I thought I was in the LISP
> buffer and ended up making a mess since this enhancement was added. I
> realise I can configure it myself but possibly the more conservative
> "stick with old default" is better? It IS a nice feature when in more
> capable hands than mine ;) What next? nxhtml integration and live
> editing inside the src blocks?
>
>
>
>
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Org now fontifies code blocks

2010-09-06 Thread David O'Toole
hi everyone,

sorry for my silence, I had very little internet access on my seaside
vacation. thanks so much everyone for making my dream of fontified
source blocks a reality :)

On Fri, Sep 3, 2010 at 3:10 PM, Thomas S. Dye  wrote:
> Aloha Dan,
>
> This is really nice.  Thanks for shepherding it along.
>
> In some of my use cases there is a substantial delay when opening a large
> file and then unfolding sections with many source code blocks.  I don't mind
> this and intend to keep the feature on, but I do think it should be off by
> default because the user potentially pays an appreciable time penalty for
> the pleasure of semantic source code markup.
>
> Thanks again for this nice feature.
>
> All the best,
> Tom
>
> On Sep 3, 2010, at 7:30 AM, Eric S Fraga wrote:
>
>> On Thu, 02 Sep 2010 08:51:16 -0700, Dan Davison 
>> wrote:
>>>
>>> I've just pushed changes which mean that Org now fontifies code in code
>>> blocks. Currently, this is turned on by default, so it would be helpful
>>> if people could report any problems, and opinions as to whether it
>>> should be on or off by default.
>>
>> [...]
>>
>> This is brilliant!  Works very well on my notebook (with small code
>> blocks as that's all I tend to have).  Many thanks!
>> --
>> Eric S Fraga
>> GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
>> ___
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] request for comments on org icon theme standards

2010-08-04 Thread David O'Toole
There's been some interest in embedding graphical icons and other
indicators into org-mode buffers to increase readability and reduce
clutter.
One nice icon set based on the Tango color scheme has been released,
and it would be useful to define icon themes for org so that the
eventual org-icons contrib can support loading different icon sets.

I suppose we could just inventory the existing icons and make that
into an icon themes standard, perhaps I will do that tonight and write
up a short document.

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: [PATCH] Mode-specific fontification of babel source blocks

2010-08-03 Thread David O'Toole
Hi, I don't have much more to do on the patch. I suspect it could be
slow with larger files, perhaps it could be programmed to only
refontify changed blocks (i.e. use the caching mechanism for block
results to prevent redundant fontifying. Perhaps someone who knows
about babel internals can help?

On Tue, Aug 3, 2010 at 10:55 PM, Dan Davison  wrote:
> "David O'Toole"  writes:
>
>> I've got a preliminary patch that adds optional "native" fontification
>> for source blocks. It uses the block's declared mode to fontify the
>> block text. So now blocks look the way they should, and this opens the
>> way to further enhancements.
>
> Hi David,
>
> This is great! Here's a patch which allows the src blocks to have
> switches and header args, and also uses `org-src-lang-modes' to find the
> major mode. Do you want to host this somewhere while it evolves? I've
> put my commits in branch src-block-display of
> git://repo.or.cz/org-mode/babel.git for the moment.
>
> --8<---cut here---start->8---
> diff --git a/lisp/org.el b/lisp/org.el
> index 843e4fe..ad8b7f9 100644
> --- a/lisp/org.el
> +++ b/lisp/org.el
> @@ -5012,14 +5012,13 @@ will be prompted for."
>   "Fontify #+ lines and blocks, in the correct ways."
>   (let ((case-fold-search t))
>     (if (re-search-forward
> -        "^\\([ \t]*#\\+\\(\\([a-zA-Z]+:?\\| 
> \\|$\\)\\(_\\([a-zA-Z]+\\)\\)?\\)\\(.*\\)\\) ?\\(\\(\\w\\|-\\)*\\)"
> +        ;;  1            2  3                     3  4   5           5  4   
> 2        6           6        7    7  1
> +        "^\\([ \t]*#\\+\\(\\([a-zA-Z]+:?\\| 
> \\|$\\)\\(_\\([a-zA-Z]+\\)\\)?\\)[ \t]*\\([^ \t\n]*\\)[ \t]*\\(.*\\)\\)"
>         limit t)
>        (let* ((beg (match-beginning 0))
>               (block-start (match-end 0))
>               (block-end nil)
> -              (language (downcase (if (stringp (match-string 6))
> -                                      (match-string 6)
> -                                      "AA")))
> +              (language (match-string 6))
>               (beg1 (line-beginning-position 2))
>               (dc1 (downcase (match-string 2)))
>               (dc3 (downcase (match-string 3)))
> @@ -5053,9 +5052,10 @@ will be prompted for."
>              (add-text-properties beg beg1 '(face org-meta-line))
>              (add-text-properties end1 end '(face org-meta-line))
>              (cond
> -               (org-src-fontify-natively
> -                (when (and (stringp language) (> (length language) 1))
> -                  (let* ((mode-command (intern (concat (substring language 
> 1) "-mode")))
> +               ((and org-src-fontify-natively language)
> +                (let* ((lang-mode
> +                        (or (cdr (assoc language org-src-lang-modes)) 
> (intern language)))
> +                         (mode-command (intern (concat (symbol-name 
> lang-mode) "-mode")))
>                          (string (buffer-substring-no-properties block-start 
> block-end))
>                          (modified (buffer-modified-p))
>                          (fontified-output
> @@ -5073,7 +5073,7 @@ will be prompted for."
>                       (goto-char block-start)
>                       (delete-region block-start block-end)
>                       (insert fontified-output)
> -                      (set-buffer-modified-p modified)
> +                      (set-buffer-modified-p modified
>                (quoting
>                (add-text-properties beg1 end1 '(face org-block)))
>               ((not org-fontify-quote-and-verse-blocks))
> --8<---cut here---end--->8---
>
>
>> Anyone up for an icons theme standard
>> discussion?
>
> Yes.
>
> Dan
>
>>
>> ___
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: [PATCH] Mode-specific fontification of babel source blocks

2010-08-03 Thread David O'Toole
I've placed a screenshot of the fontification here:

http://imagebin.ca/view/iRVK_as7.html

On Tue, Aug 3, 2010 at 7:12 PM, David O'Toole  wrote:
> I've got a preliminary patch that adds optional "native" fontification
> for source blocks. It uses the block's declared mode to fontify the
> block text. So now blocks look the way they should, and this opens the
> way to further enhancements. Anyone up for an icons theme standard
> discussion?
>

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] [PATCH] Mode-specific fontification of babel source blocks

2010-08-03 Thread David O'Toole
I've got a preliminary patch that adds optional "native" fontification
for source blocks. It uses the block's declared mode to fontify the
block text. So now blocks look the way they should, and this opens the
way to further enhancements. Anyone up for an icons theme standard
discussion?
diff --git a/lisp/org.el b/lisp/org.el
index d2c1fdf..843e4fe 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -5005,17 +5005,25 @@ will be prompted for."
 '(display t invisible t intangible t))
 	t)))
 
+(defvar org-src-fontify-natively nil
+  "When non-nil, fontify source blocks like their major mode would.")
+
 (defun org-fontify-meta-lines-and-blocks (limit)
   "Fontify #+ lines and blocks, in the correct ways."
   (let ((case-fold-search t))
 (if (re-search-forward
-	 "^\\([ \t]*#\\+\\(\\([a-zA-Z]+:?\\| \\|$\\)\\(_\\([a-zA-Z]+\\)\\)?\\)\\(.*\\)\\)"
+	 "^\\([ \t]*#\\+\\(\\([a-zA-Z]+:?\\| \\|$\\)\\(_\\([a-zA-Z]+\\)\\)?\\)\\(.*\\)\\) ?\\(\\(\\w\\|-\\)*\\)"
 	 limit t)
-	(let ((beg (match-beginning 0))
-	  (beg1 (line-beginning-position 2))
-	  (dc1 (downcase (match-string 2)))
-	  (dc3 (downcase (match-string 3)))
-	  end end1 quoting block-type)
+	(let* ((beg (match-beginning 0))
+	   (block-start (match-end 0))
+	   (block-end nil)
+	   (language (downcase (if (stringp (match-string 6))
+   (match-string 6)
+   "AA")))
+	   (beg1 (line-beginning-position 2))
+	   (dc1 (downcase (match-string 2)))
+	   (dc3 (downcase (match-string 3)))
+	   end end1 quoting block-type)
 	  (cond
 	   ((member dc1 '("html:" "ascii:" "latex:" "docbook:"))
 	;; a single line of backend-specific content
@@ -5035,6 +5043,7 @@ will be prompted for."
 		   (concat "^[ \t]*#\\+end" (match-string 4) "\\>.*")
 		   nil t)  ;; on purpose, we look further than LIMIT
 	  (setq end (match-end 0) end1 (1- (match-beginning 0)))
+	  (setq block-end (match-beginning 0))
 	  (when quoting
 		(remove-text-properties beg end
 	'(display t invisible t intangible t)))
@@ -5044,7 +5053,28 @@ will be prompted for."
 	  (add-text-properties beg beg1 '(face org-meta-line))
 	  (add-text-properties end1 end '(face org-meta-line))
 	  (cond
-	   (quoting
+		(org-src-fontify-natively
+		 (when (and (stringp language) (> (length language) 1))
+		   (let* ((mode-command (intern (concat (substring language 1) "-mode")))
+			  (string (buffer-substring-no-properties block-start block-end))
+			  (modified (buffer-modified-p))
+			  (fontified-output
+			   (with-temp-buffer
+			 (insert string)
+			 (message language)
+			 (funcall mode-command)
+			 (font-lock-fontify-buffer)
+			 (add-text-properties
+			  (point-min) (point-max)
+			  '(font-lock-fontified t fontified t font-lock-multiline t))
+			 (buffer-substring (point-min) (point-max)
+		 (when fontified-output
+		   (assert (stringp fontified-output))
+		   (goto-char block-start)
+		   (delete-region block-start block-end)
+		   (insert fontified-output)
+		   (set-buffer-modified-p modified)
+		(quoting
 		(add-text-properties beg1 end1 '(face org-block)))
 	   ((not org-fontify-quote-and-verse-blocks))
 	   ((string= block-type "quote")
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] camel.el, for CamelCase links

2010-08-03 Thread David O'Toole
http://github.com/dto/folio/blob/master/camel.el

Someone asked about this recently, i have some partially working code.
Anyone want to try?

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Common Lisp / SLIME support for babel

2010-08-03 Thread David O'Toole
Hi Eric,

I just tried it out, and it seems to work great! Thanks so much for
this. So, I already have FSF papers, consider it yours :)

On Tue, Aug 3, 2010 at 10:12 AM, Eric Schulte  wrote:
> Hi David,
>
> I've forked your github repository, and I now have it to the point where
> basic session and external evaluation are both working on my system
> using SBCL.
>
> It is now also possible to pass variables into lisp blocks.
>
> It certainly needs more cleanup and testing, but this initial pass is up
> at http://github.com/eschulte/org-babel-lisp
>
> Cheers -- Eric
>
> "David O'Toole"  writes:
>
>> Hi, I've updated my proposed ob-lisp module for the new API. I am now
>> using org updated from git head.
>> http://github.com/dto/org-babel-lisp
>>
>> Despite having the ob-template.el and ob-clojure modules, I'm still
>> stuck making sessions work properly. Executing successive statements
>> with an already-open SLIME session works (testing with SBCL and latest
>> SLIME) but it doesn't update the *inferior-lisp* buffer the way I
>> would like, hangs emacs, and also results in weird errors about
>> "asynchronous evaluation aborted".
>>
>> The tangling works since it is language-agnostic, and the tangling is
>> 95% of what i need. But I would love to be able to execute blocks
>> dynamically without the glitches I have now.
>>
>> Perhaps someone more familiar with org and slime could help? I feel
>> like I've run out of ideas.
>>
>> Thanks everyone. By the way, I am still working on my DAM (digital
>> asset management) litprog ideas, inspired by org-babel.
>> The current version of my proposal document with some ideas:
>> http://github.com/dto/hypo/raw/master/hypo.org
>> An example, working on a game's code using org-babel literate tools:
>> http://github.com/dto/xe2/raw/master/void/void.org
>>
>> ___
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] user control of source block header line exporting formats

2010-07-31 Thread David O'Toole
I've attached a diff of my apparently-working changes to allow better
control of the way ob-exp.el formats the name and arguments of source
code blocks.

What do you think?
diff --git a/lisp/ob-exp.el b/lisp/ob-exp.el
index 796812c..0c34431 100644
--- a/lisp/ob-exp.el
+++ b/lisp/ob-exp.el
@@ -206,42 +206,66 @@ The function respects the value of the :exports header argument."
 		 (org-babel-exp-results info type))
 
 (defvar backend)
+
+(defvar org-babel-format-code-functions
+  '(inline org-babel-format-code-inline
+block org-babel-format-code-block
+lob org-babel-format-code-lob))
+
+(defun org-babel-format-code-inline (lang body args switches name) 
+  (format "=%s=" body))
+
+(defvar org-babel-format-code-block-control-string "%s(%s)")
+
+(defun org-babel-format-code-block-default-style (info)
+  (destructuring-bind (lang body args0 switches name &rest ignore) info
+(format org-babel-format-code-block-control-string
+	name
+	(mapconcat #'identity args ", "
+
+(defun org-babel-format-code-block-alternate-style (info)
+  (destructuring-bind (lang body args0 switches name &rest ignore) info
+(format "SOURCE: %s ARGUMENTS: %s LANGUAGE: %s"
+	name (if (null args) "None."
+		 (mapconcat #'identity args ", "))
+	lang)))
+
+(defvar org-babel-format-code-block-caption-function
+  'org-babel-format-code-block-default-style) 
+
+(defun org-babel-format-code-block (lang body args switches name) 
+  (let ((str
+	 (format "#+BEGIN_SRC %s %s\n%s%s#+END_SRC\n" lang switches body
+		 (if (and body (string-match "\n$" body))
+		 "" "\n"
+(when name
+  (add-text-properties
+   0 (length str)
+   (list 'org-caption
+	 (funcall org-babel-format-code-block-caption-function 
+		  (list lang body args switches name)))
+   str))
+str))
+
+(defun org-babel-format-code-lob (lang body args switches name) 
+  (let ((call-line (and (string-match "results=" (car args))
+			(substring (car args) (match-end 0)
+(cond
+  ((eq backend 'html)
+   (format "\n#+HTML: %s\n"
+	   call-line))
+  ((format ": %s\n" call-line)
+
 (defun org-babel-exp-code (info type)
   "Prepare and return code in the current code block for export.
-Code is prepared in a manner suitable for exportat by
+Code is prepared in a manner suitable for export by
 org-mode.  This function is called by `org-babel-exp-do-export'.
 The code block is not evaluated."
-  (let ((lang (nth 0 info))
-(body (nth 1 info))
-(switches (nth 3 info))
-(name (nth 4 info))
-(args (mapcar
-	   #'cdr
-	   (org-remove-if-not (lambda (el) (eq :var (car el))) (nth 2 info)
-(case type
-  ('inline (format "=%s=" body))
-  ('block
-	  (let ((str
-		 (format "#+BEGIN_SRC %s %s\n%s%s#+END_SRC\n" lang switches body
-			 (if (and body (string-match "\n$" body))
-			 "" "\n"
-	(when name
-	  (add-text-properties
-	   0 (length str)
-	   (list 'org-caption
-		 (format "%s(%s)"
-			 name
-			 (mapconcat #'identity args ", ")))
-	   str))
-	str))
-  ('lob
-   (let ((call-line (and (string-match "results=" (car args))
-			 (substring (car args) (match-end 0)
-	 (cond
-	  ((eq backend 'html)
-	   (format "\n#+HTML: %s\n"
-		   call-line))
-	  ((format ": %s\n" call-line
+  (destructuring-bind (lang body args0 switches name &rest ignore) info
+(let ((args (mapcar #'cdr
+			(org-remove-if-not (lambda (el) (eq :var (car el))) args0
+  (let ((formatter (getf org-babel-format-code-functions type)))
+	(funcall formatter lang body args switches name)
 
 (defun org-babel-exp-results (info type &optional silent)
   "Evaluate and return the results of the current code block for export.
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Common Lisp / SLIME support for babel

2010-07-30 Thread David O'Toole
Hi, I've updated my proposed ob-lisp module for the new API. I am now
using org updated from git head.
http://github.com/dto/org-babel-lisp

Despite having the ob-template.el and ob-clojure modules, I'm still
stuck making sessions work properly. Executing successive statements
with an already-open SLIME session works (testing with SBCL and latest
SLIME) but it doesn't update the *inferior-lisp* buffer the way I
would like, hangs emacs, and also results in weird errors about
"asynchronous evaluation aborted".

The tangling works since it is language-agnostic, and the tangling is
95% of what i need. But I would love to be able to execute blocks
dynamically without the glitches I have now.

Perhaps someone more familiar with org and slime could help? I feel
like I've run out of ideas.

Thanks everyone. By the way, I am still working on my DAM (digital
asset management) litprog ideas, inspired by org-babel.
The current version of my proposal document with some ideas:
http://github.com/dto/hypo/raw/master/hypo.org
An example, working on a game's code using org-babel literate tools:
http://github.com/dto/xe2/raw/master/void/void.org

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [BABEL] help adding a language, please?

2010-07-23 Thread David O'Toole
Ah, this is great! Thanks Eric :) and I will keep everyone updated on
my progress with the wacky "hypermedia programming" thing i've been
working on. Really what it boils down to is Common Lisp support for
babel, and an add-on module that brings attachments and other data
into the mix.

It's a combination paper/tutorial/elisp library bundled into one file.

The rough draft in progress is here, if anyone is interested in peeking:

http://github.com/dto/hypo/raw/master/hypo.org

On Fri, Jul 23, 2010 at 12:01 PM, Eric Schulte  wrote:
> Hi David,
>
> The instructions currently live at
> http://orgmode.org/worg/org-contrib/babel/languages.php#develop
>
> The bulk of the information is contained in the documentation strings
> and the comments of the ob-template.el file (linked to from the above).
>
> It should be fairly complete, but please let me know if you see any
> avenues of improvement.
>
> -- Eric
>
> "David O'Toole"  writes:
>
>> Is there an instruction manual documenting how the new org-babel
>> language extensions should work? This would really be helpful, because
>> I had trouble figuring out how to make sessions work in the pre-7.0
>> api (i'm adding Common Lisp support.) Documenting for how a language
>> extension is supposed to behave, would be great.
>>
>> On Thu, Jul 22, 2010 at 4:13 PM,   wrote:
>>> Hi guys,
>>>
>>> Org-mode newbie, here.  I'd like to add newlisp to the list
>>> of languages that babel supports.  I got ob-template.el and
>>> replaced all  occurrences of "template" with "newlisp."
>>>
>>> When I try to execute a code block, it fails, looking for
>>> "inf-newlisp."  That's "inferior-mode," right?  Can I work
>>> around that somehow?  There is a newlisp mode available
>>> here:
>>> http://github.com/may/newlisp-mode
>>> I'm running Org-mode 7.01.
>>>
>>> Org-mode is great!  I sure hope you guys are tolerant of
>>> stupid questions, because I've got a bunch of them.
>>> :-)
>>>
>>> --
>>> signature riding a horse: "clopclopclopclop"
>>> -tom
>>>
>>> ___
>>> Emacs-orgmode mailing list
>>> Please use `Reply All' to send replies to the list.
>>> Emacs-orgmode@gnu.org
>>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>>
>>
>> ___
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [BABEL] help adding a language, please?

2010-07-22 Thread David O'Toole
Is there an instruction manual documenting how the new org-babel
language extensions should work? This would really be helpful, because
I had trouble figuring out how to make sessions work in the pre-7.0
api (i'm adding Common Lisp support.) Documenting for how a language
extension is supposed to behave, would be great.

On Thu, Jul 22, 2010 at 4:13 PM,   wrote:
> Hi guys,
>
> Org-mode newbie, here.  I'd like to add newlisp to the list
> of languages that babel supports.  I got ob-template.el and
> replaced all  occurrences of "template" with "newlisp."
>
> When I try to execute a code block, it fails, looking for
> "inf-newlisp."  That's "inferior-mode," right?  Can I work
> around that somehow?  There is a newlisp mode available
> here:
> http://github.com/may/newlisp-mode
> I'm running Org-mode 7.01.
>
> Org-mode is great!  I sure hope you guys are tolerant of
> stupid questions, because I've got a bunch of them.
> :-)
>
> --
> signature riding a horse: "clopclopclopclop"
> -tom
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Captions for source code

2010-07-22 Thread David O'Toole
I'll look into this as well, as it relates to my earlier question
about building an imenu full of block names.

On Thu, Jul 22, 2010 at 3:20 PM, Eric Schulte  wrote:
> Hi Robert,
>
> Currently captions are only supported for Tables and for Links, not for
> code blocks.  Although the "caption" attribute is used by code blocks it
> is only used to hold the code block name, not as an actual caption.
>
> Adding real captions to code blocks (and moving the code block name to
> it's own property) certainly seems like a good idea for future
> development.  If anyone is interested the
> `org-export-attach-captions-and-attributes' function is probably a good
> place to start.  I've added this to my personal stack, but we'll see if
> that ends up meaning anything.
>
> Best -- Eric
>
> "Robert Klein"  writes:
>
>> Hi list,
>>
>> I'm trying to get source code exported to HTML with captions, e.g. like:
>>
>>
>> #+caption: Examples of variable declaration.
>> #+begin_src sql
>> SELECT 6*9;
>> #+end_src
>>
>> There seems to be code in org-exp.el, see lines 2128 and
>> following in version 7.01f of org-mode.
>>
>> However, I'm unable to find out what I'm doing wrong, atm.
>>
>> Do you know how I can get this working?
>>
>> Thank you very much!
>>
>> Best regards
>> Robert
>>
>> ___
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] imenu support for babel blocks

2010-07-17 Thread David O'Toole
I tried the following to get an Imenu composed of babel blocks, so that you
could browse/jump to blocks. But it doesn't seem to work, I'm guessing that
something about how org-mode builds the imenu-generic-expression overwrites
my entry. Is there a hook (or could there be a hook added) that allows me to
imenu-ify more constructs?

  (push (list "Source code chunks"
"^#\\+\\(source:\\|srcname:\\|function:\\) \\(.*\\)$" 2)
imenu-generic-expression)
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


meta model for literate programming [pdf] Re: [Orgmode] hypermedia programming with babel

2010-07-05 Thread David O'Toole
An interesting paper!

http://www.cosc.canterbury.ac.nz/research/reports/HonsReps/1999/hons_9902.pdf

On Mon, Jul 5, 2010 at 4:15 PM, Eric Schulte  wrote:

> Hi David,
>
> "David O'Toole"  writes:
>
> > Since discovering org babel, I've been doing a lot of reading and
> > brainstorming, and have collected some thoughts/code/plans in several
> > places:
> >
> >  1. http://github.com/dto/org-babel-lisp
> >
> > Some very basic compatibility. I'm not experienced enough with either
> > babel or slime, perhaps someone can help me flesh this code out. I
> > have papers on file with FSF, please feel free to take
> > org-babel-lisp.el and do whatever you want.
> >
>
> This looks like a good start, you could look to ob-clojure.el for an
> example of a slime-driven lisp Babel file.
> http://repo.or.cz/w/org-mode.git/blob_plain/HEAD:/lisp/ob-clojure.el
>
> >
> >  2. http://github.com/dto/hypo
> >
> > My thoughts and some code toward a reproducible-results sort of digital
> > asset management system, with relevance to games.
> > Github's formatter messes it up. To read the raw file, use this link:
> > http://github.com/dto/hypo/raw/master/hypo.org
> >
> > I've made TODO items for the icons discussion. I want to be able to
> > define/contribute my own competing theme.
>
> That looks like a great application for literate programming.  It might
> be nice to link to this project from the Babel uses page at
> http://orgmode.org/worg/org-contrib/babel/uses.php
>
> > How can I help next?
>
> Babel in general is in need of some language-specific introductory
> tutorials, with the goal of laying out the basic usage plenty of
> examples covering simple use case e.g.
> - author a shell script which can be tangled out to an executable
> - simple processing of data in tables, or execution of code blocks with
>  the output captured in the buffer
>
> There is also plenty of room for help with documentation, testing,
> etc...
>
> Thanks! -- Eric
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] hypermedia programming with babel

2010-07-05 Thread David O'Toole
Hi Eric,

Thanks for the additional info. I'll keep you informed on my progress---I'll
be presenting my "paper" for the Lisp Games Expo (see
http://dto.github.com/notebook/2010expo.html

About linking from the Uses section on the babel page... Should I make a
page for the program, or can you just link to my current repo? Either way,
it's not quite ready for being on the webpage :) but I see it as a
discussion topic here.

Do others have thoughts or experiences with multimedia and babel or org?

On Mon, Jul 5, 2010 at 4:15 PM, Eric Schulte  wrote:

> Hi David,
>
> "David O'Toole"  writes:
>
> > Since discovering org babel, I've been doing a lot of reading and
> > brainstorming, and have collected some thoughts/code/plans in several
> > places:
> >
> >  1. http://github.com/dto/org-babel-lisp
> >
> > Some very basic compatibility. I'm not experienced enough with either
> > babel or slime, perhaps someone can help me flesh this code out. I
> > have papers on file with FSF, please feel free to take
> > org-babel-lisp.el and do whatever you want.
> >
>
> This looks like a good start, you could look to ob-clojure.el for an
> example of a slime-driven lisp Babel file.
> http://repo.or.cz/w/org-mode.git/blob_plain/HEAD:/lisp/ob-clojure.el
>
> >
> >  2. http://github.com/dto/hypo
> >
> > My thoughts and some code toward a reproducible-results sort of digital
> > asset management system, with relevance to games.
> > Github's formatter messes it up. To read the raw file, use this link:
> > http://github.com/dto/hypo/raw/master/hypo.org
> >
> > I've made TODO items for the icons discussion. I want to be able to
> > define/contribute my own competing theme.
>
> That looks like a great application for literate programming.  It might
> be nice to link to this project from the Babel uses page at
> http://orgmode.org/worg/org-contrib/babel/uses.php
>
> > How can I help next?
>
> Babel in general is in need of some language-specific introductory
> tutorials, with the goal of laying out the basic usage plenty of
> examples covering simple use case e.g.
> - author a shell script which can be tangled out to an executable
> - simple processing of data in tables, or execution of code blocks with
>  the output captured in the buffer
>
> There is also plenty of room for help with documentation, testing,
> etc...
>
> Thanks! -- Eric
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] hypermedia programming with babel

2010-07-04 Thread David O'Toole
Since discovering org babel, I've been doing a lot of reading and
brainstorming, and have collected some thoughts/code/plans in several
places:

 1. http://github.com/dto/org-babel-lisp

Some very basic compatibility. I'm not experienced enough with either babel
or slime, perhaps someone can help me flesh this code out. I have papers on
file with FSF, please feel free to take org-babel-lisp.el and do whatever
you want.

 2. http://github.com/dto/hypo

My thoughts and some code toward a reproducible-results sort of digital
asset management system, with relevance to games.
Github's formatter messes it up. To read the raw file, use this link:
http://github.com/dto/hypo/raw/master/hypo.org

I've made TODO items for the icons discussion. I want to be able to
define/contribute my own competing theme. How can I help next?
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: [BABEL] literate Lisp games development questions

2010-07-03 Thread David O'Toole
Hi Dan

I looked at your notes in the icons repo, perhaps we can come up with a
brief org file that is the official community standard for the icon themes.


On Fri, Jul 2, 2010 at 6:33 PM, Dan Davison  wrote:

> <...>
>
> Hi David,
>
> That sounds fun, and I look forward to looking at it, when I have more
> time for fun.
>
> >  1. the html output fontification of source blocks is nice. the pop-out
> > editing of the blocks is nice too. However, can I get the syntax
> > highlighting to show up INLINE in the begin-src block?
>
> I believe the consensus on this list is still that the existing projects
> in that direction don't currently work well for doing this.
> http://www.emacswiki.org/emacs/MuMaMo
>
> I had a probably terrible idea that one could fake something a bit like
> this by removing the mode lines between split windows. You could even
> fake continuity of buffer locations... (Incidentally, I've been enjoying
> recently using emacs full screen without the mode line (who needs it all
> the time?); when I get a chance I want to write a minor mode that does
> away with the mode line by default. Obviously no menu or scroll bars
> either.)
>
> > 2. has anyone been following efforts to prettify org-mode constructs? i
> > would love to be able to replace certain things (like all the #+BEGIN_SRC
> > lines) with something graphical, like a tiny icon with a horizontal rule.
> > anyone done anything in this area?
>
> Yes, I started doing this. Nicolas Girard did all the ground work in his
> org-icons project. I started work on adding icons for src blocks in the
> branch named "dan". I can confirm that ruby blocks look quite pretty
> when #+begin_src ruby is replaced by an image of a ruby, although
> unfortunately I still don't know any ruby.
>
> http://github.com/ngirard/org-icons/tree/dan
>
> I believe Nicolas would be happy to have other people help out with that
> project. There were a few reorganizations we wanted to do to make it fit
> better with Org.
>
> Best wishes,
>
> Dan
> > ___
> > Emacs-orgmode mailing list
> > Please use `Reply All' to send replies to the list.
> > Emacs-orgmode@gnu.org
> > http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] [BABEL] literate Lisp games development questions

2010-07-02 Thread David O'Toole
Hello orgmoders. We on freenode#lispgames are having the month-long 2010
International Lisp Games Expo, and I'd like to apply literate programming
principles, using org-babel, to Lisp game development.

I have several reasons for doing this. The resources for a given game object
or entity may be scattered across multiple files. There can be many frames
of animation (PNG files), methods defined, functions, sounds (.WAV), music
(OGG), extensive in-game narrative text, and PAK data (my own format), all
to describe one game object. Manually linking and navigating among these
many files and pieces of data has become very time consuming as my asset
library grows to hundreds of different objects, and re-using assets between
projects becomes difficult just because I have to hunt for all the files and
snippets of text. The XE2 game engine source is also becoming harder to
manage as it grows because of some of the same issues.

My short term goal is to write a Common Lisp game for the XE2 engine, but
with all the code and text in a single .ORG file (with many links to
external png, wav, etc as needed.) With a custom tangle setup, it would be
easy to export the .lisp and .pak files my engine requires. Not only would
the whole project be organized hierarchically, but I am using tags like
these to organize data by "aspects":

 Presentation Player Structure Environment Controls Combat Enemies Planning
Story

Each game object could have its own org heading, with subheads and links to
code, png files with inline display, some editable properties data for
tweaking. I could add commands to open one of the PNGs in Gimp, play a
sound, and so on.

I have gotten some very basic support working, where you can execute Common
Lisp blocks via slime, and basic tangling works as well.

See  http://github.com/dto/org-babel-lisp/  for my very basic code. Feel
free to use this, I already have FSF papers, and I will keep you updated on
progress.

The document I'm working on is at http://dto.github.com/notebook/void.html
My idea is to make a coherent hierarchical design document for the entire
game (story, graphics, sound, gameplay) and then embed/link all the required
resources/code, bit by bit, filing each link/block in its right place, and
tagging everything so i can navigate and search.

And now some questions...

 1. the html output fontification of source blocks is nice. the pop-out
editing of the blocks is nice too. However, can I get the syntax
highlighting to show up INLINE in the begin-src block?

2. has anyone been following efforts to prettify org-mode constructs? i
would love to be able to replace certain things (like all the #+BEGIN_SRC
lines) with something graphical, like a tiny icon with a horizontal rule.
anyone done anything in this area?
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] fontification and icon issues

2009-09-22 Thread David O'Toole
A couple of issues: 

1. org-fontify-whole-heading-line and org-startup-indented seem to
conflict with one another. See screenshot:

http://dto.github.com/images/folio.png

The headline background color extends to the next line. The problem goes
away when you set org-startup-indented to nil and M-x org-mode.

BTW org-startup-indented is cool.

2. using add-text-properties to specify a display property (or even just
a face) for any part of an org headline text kills the fontification of
the rest of the text (TODO keyword and leading stars unaffected.) I'm
trying to use font-lock-add-keywords to display the images.

Maybe I should use overlays instead?





___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] org and htmlfontify

2009-09-19 Thread David O'Toole
Hello orgmoders. I thought I would share my custom publishing function
for using htmlfontify together with org-publish to automatically convert
Lisp source code files into HTML with my own custom-inserted anchors.

The lisp snippet is below. This was used to make the HTML links in my
developer documentation properly jump to particular headings in the
HTMLfontified output (try the page and see what I mean:
http://dto.github.com/notebook/developers-guide.html 

I am also working something else org-related:
http://dto.github.com/notebook/folio.html

(defun spaces-to-underscores (string)
  (save-match-data
(with-temp-buffer
  (insert string)
  (goto-char (point-min))
  (while (re-search-forward " \\|-" nil t) ;; and dashes!
(replace-match "_"))
  (buffer-substring-no-properties (point-min) (point-max)

(defun publish-lisp-to-html (plist filename pub-dir)
  (interactive)
(let* ((dir (file-name-directory filename))
   (base (file-name-sans-extension (file-name-nondirectory filename)))
   (target (expand-file-name (concat base ".html") pub-dir))
   (html nil)
   (hfy-src-doc-link-style "color: #a020f0; font-weight: bold;")
   (hfy-sec-doc-link-unstyle " color: #4d4d4d;"))
  (with-current-buffer (find-file-noselect filename)
(hfy-force-fontification)
(setf html (hfy-fontify-buffer dir filename)))
  (with-current-buffer html
;; add anchors for all three-semicolon headings
(goto-char (point-min))
(while (re-search-forward ";;;[...@]*@@ \\([^<>]*\\)" nil t)
  (message "matched %s" (match-string-no-properties 1))
  (replace-match (format ";;; @@ %s"
 (spaces-to-underscores 
(match-string-no-properties 1))
 (match-string-no-properties 1
(write-file target nil))
  (kill-buffer html)))



___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [ANN] org-icons.el

2009-06-24 Thread David O'Toole
> On Wed, Jun 24, 2009 at 7:56 AM, Carsten Dominik <
carsten.domi...@gmail.com> wrote:
>
> To be honest, I was not excited when I first saw David's icons.
> Yours look a lot better - but I don't expect to use them myself.

Well I'm no visual artist :) I like nicolas' icons better too. I've even
changed my color theme to match them!
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [ANN] org-icons.el

2009-06-23 Thread David O'Toole
I'm sorry, the patch is in Nicolas' github repo:
http://github.com/ngirard/org-icons/blob/b8be3d85b87c4fe6ce31cdc931fd1b77bb170a5c/lisp/org-icons.patch

On Tue, Jun 23, 2009 at 7:11 PM, Bastien wrote:

> "David O'Toole"  writes:
>
> > Carsten: right now this code requires a patch to org.el, but I'm not sure
> how
> > much effect it has on other code---can you peek at the patch and see if
> this
> > icons code could be made to run on a stock org.el by integrating the
> > patch?
>
> (David, I think you forgot the patch...)
>
> --
>  Bastien
>
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [ANN] org-icons.el

2009-06-23 Thread David O'Toole
Hi everyone,

I really like Nicolas' icons, and I am developing an Emacs color-theme that
coordinates with them (screenshots soon!) I've also agreed to help out with
the code, since I wrote some similar stuff a while back.

Carsten: right now this code requires a patch to org.el, but I'm not sure
how much effect it has on other code---can you peek at the patch and see if
this icons code could be made to run on a stock org.el by integrating the
patch?

On Tue, Jun 23, 2009 at 3:38 PM, Nicolas Girard wrote:

> Hi all,
>
> a while ago, David mentionned that at least two people from the
> #org-mode IRC channel would be interested in having pretty icons in
> org-mode buffers. I have to confess I'm the second one :-)
>
> After a little experimentation, I ended up with the results shown in
> these screenshots [1] [2].
>
> The code can be found on github [3]. Currently, it is not based
> on overlays, like David's linkd.el, but on display properties. It is
> still unclear which of the approach is the best, but as David
> offered his help and is by far more skilled in elisp than I,
> hopefully these kind of implementation details will be solved
> quickly and the code will become actually useable.
>
> As for the icons, I make them from scratch using Inkscape and the
> Tango [4] colour palette.
>
> So, what do you think ? Is this a direction you'd want org-mode
> to go ? Please, share your feedback & suggestions !
>
> Also, I was thinking that putting such kind of screenshots in org-mode's
> website could make us gain a little more votes...
>
> Cheers,
> Nicolas
>
> [1]
> http://github.com/ngirard/org-icons/blob/20ab287cd6ab5a5bb3fc8dfc6524f3dd1ab29b2e/example/screenshot1.png
> [2]
> http://github.com/ngirard/org-icons/blob/20ab287cd6ab5a5bb3fc8dfc6524f3dd1ab29b2e/example/screenshot2.png
> [3] http://github.com/ngirard/org-icons/tree/master
> [4] http://tango.freedesktop.org/Tango_Icon_Theme_Guidelines
>
>
> ___
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] org-plotting with date as the independent variable

2009-06-23 Thread David O'Toole
I'm having trouble with org-plotting data that is captured on certain dates
over time, like my bodyweight. My table looks like this, but the plotting
seems to be very wrong:

#+PLOT: ind:1 timefmt:"%Y-%m-%d" with:points
|   Date | Weight |
|+|
| 2008-09-26 |266 |
| 2008-10-08 |261 |
| 2008-10-16 |263 |
| 2008-10-19 |259 |
| 2009-05-20 |272 |
| 2009-06-12 |274 |
| 2009-06-23 |275 |

I've attached the incorrect image.

Also how can I plot the totals from a bunch of separate tables as the
dependent variable? Each of the tables would be like the following below:

| Time | Description| Calories |
|--++--|
| 6:00 | Whey shake, 2 scoops   |  200 |
|  | + 2 cups skim milk |  180 |
| 9:30 | 4 egg whites   |  120 |
|  | + 2 slices salami  |  200 |
|  | + 1 slice cheese   |  110 |
|  | Whey shake, 2 scoops   |  200 |
|  | + 2 cups skim milk |  180 |
|  | light yogurt   |   60 |
|  | rice cake  |   40 |
|  | + 2 tbsp peanut butter |  200 |
|--++--|
|  | TOTAL  | 1490 |
#+TBLFM: @12$3=vsum(@2$...@11$3)
<>___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] pretty icons in org buffers

2009-06-21 Thread David O'Toole
I've been re-entering my life data into Orgmode after about a year of just
using a palm pilot. So I would like to contribute something to the org
community again. A while back I wrote some elisp code for displaying bitmap
icons as overlays in org buffers (screenshots at
http://dto.github.com/notebook/linkd.html )
As you can see I also drew a bunch of .xpm icons for emacs to display in the
buffers. I would be happy to contribute these icons and rework that 30 or 40
lines of overlay code back into a nice little org extension.
After a discussion on the #org-mode IRC channel, it seems like there might
be a demand for this. We have at least 2 people who want it. :)

What do people think of icons in org buffers? This could actually reduce
visual noise and increase comprehension. Think of priorities being colored
circles instead of [#A] [#B] [#C]. Or TODO and DONE and CANCELED being
represented by different checkboxy icons.
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] RE: orgmode and physical fitness training

2008-10-17 Thread David O'Toole
I've started a basic "training.org" file and added some data. So far I
can get a nice columns view of my weight and body-fat percentage. There
is much more to be done (in particular tracking poundages) but perhaps
others will have responses or suggestions. I'll continue posting tidbits
as I move more of this to org-mode. 


#+TAGS: workout food trainer payment equipment supplements
#+COLUMNS: %25ITEM %weight %bodyfat %TODO %TAGS

* <2008-09-26 Fri>
  :PROPERTIES:
:weight: 266
:bodyfat: 31.0
:END:

* <2008-10-08 Wed>
  :PROPERTIES:
:weight: 261
:bodyfat: 29.7
:arm: 14.75
:waist: 47.5
:chest: 50.25
:hips: 47.25
:leg: 25.5
  :END:

* <2008-10-16 Thu>
  :PROPERTIES:
:weight: 263
  :END:

** <2008-10-16 Thu 08:30> :workout:trainer:

 cardio, pushups, situps, russian twist, preacher curls
 (what else to write down here?) notebook?

** <2008-10-16 Thu 13:12>  :food:

 1 can tuna fish 
   + 2 tbsp mayo
   + 2 tbsp relish
   + 4 slices lo-carb (8g/slice) bread
 1 glass skim milk
 1 slice cheddar cheese
 1 coffee
 1 handful cashews

 (am i eating too much fat?)

** <2008-10-16 Thu 16:26>  :food:

 1 milkshake (2 cups 2% milk, 1/4 cup yogurt, 1 ripe banana, 
  2 tbsp peanut butter)
 2 slices beef bologna

* <2008-10-17 Fri>

** <2008-10-17 Fri 03:36>  :food:

 1 slice lo-carb whole wheat bread
   + 2 tbsp peanut butter
 2 handfuls cashews
 2 fish filets
 1 bowl raisin bran

** <2008-10-17 Fri 08:47>  :food:

 1/2 cup cottage cheese

** <2008-10-17 Fri 11:46>  :food:

 3 fried eggs (with 1 tbsp olive oil)
 1 handful cashews
 
** <2008-10-17 Fri 14:09>  :food:

 1 glass 2% milk 
   + 1 teaspoon flax oil (read about this in a book?
 3 slices ham
 1 slice sharp cheddar cheese

** <2008-10-17 Fri 17:02>  :food:

 1 glass 2% milk
 1 slice lo-carb whole wheat bread 
   + 2 tbsp peanut butter
 1 spinach salad 
   + 1/2 tbsp olive oil
   + 2 tbsp balsamic vinegar
 
* Scheduling

** TODO Discuss solo workout scheduling :trainer:
** TODO Figure out org recurring tasks

** TODO Workout:workout:solo:
SCHEDULED: <2008-10-18 08:30 Sat>

** TODO PT Session:trainer:workout:
SCHEDULED: <2008-10-21 Tue 08:30>

** TODO PT Session:trainer:workout:
SCHEDULED: <2008-10-23 Thu 08:30>

** TODO Pay $400.00 :payment:
DEADLINE: <2008-10-23 Thu>

* Tasks

** DONE buy flaxseed oil and fish oil
CLOSED: [2008-10-17 Fri 14:13]
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] orgmode and physical fitness training

2008-10-14 Thread David O'Toole
Recently I hired a personal trainer to manage my strength training
program. There is a lot of data to keep track of:

  1. timestamped records of what I eat --- these are reviewed by my
trainer and I want to go back and annotate things that i should cut out.
It will also be useful to look these up later for meal ideas. 
  2. appointments with my trainer
  3. flexible "appointments" where I plan to go to the gym at a certain
hour... is there any way to get org to send SMS messages to my phone?
  4. payments due to the gym and trainer
  5. other spending (items like gloves, shoes)
  6. my weight, measurements, and body fat percentage 
  7. medications and/or supplements
  8. sleep log (i have issues with my sleep cycle and this is very
important for recovery after exercise.)

I'd like to use org-mode to increase my grasp of the situation and
measure my progress objectively. Does anyone else here use org-mode for
fitness and/or health tracking? I would be interested to hear people's
stories or suggestions. I'm guessing I should use the spreadsheet
feature for the weight/measurements/bodyfat stuff. So I will have to
finally learn that part of org :)

I'll try to hammer out my own configuration and post any relevant
snippets. 



___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: HTML export problems

2008-08-23 Thread David O'Toole
Specification conformance is beside the point, it is still a bug. We are
unable to properly style this first paragraph because it has no P tag,
and therefore the styles that apply to the P tag in our css don't work.

On Sat, 2008-08-23 at 13:17 -0700, Jesse Alama wrote:
> David O'Toole <[EMAIL PROTECTED]> writes:
> 
> > The first paragraph before any heading is exported, but without
> > surrounding P paragraph tags; the remaining paragraphs (whether before
> > other headings, or after those headings) all have P tags and this is
> > messing up the styling. I'm using org-version 6.06b.
> >
> > #+OPTIONS skip:nil is on.
> 
> Perhaps surprisingly, that is valid XHTML 1.0 Transitional:
> 
>   Big Header
>   
>   Blah, blah.
>   
>   A paragraph unlike the previous one.
> 
> I think that is malformed according to XHTML 1.1.
> 
> Jesse
> 



___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] HTML export problems

2008-08-23 Thread David O'Toole
The first paragraph before any heading is exported, but without
surrounding P paragraph tags; the remaining paragraphs (whether before
other headings, or after those headings) all have P tags and this is
messing up the styling. I'm using org-version 6.06b.

#+OPTIONS skip:nil is on.



___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] org-publish

2008-08-19 Thread David O'Toole
I have some ideas for changes to org-publish. I am helping someone set
up a content-heavy site using Emacs and Org-Mode, and we ran into
several problems that I would like to fix. We have workarounds in place
but these immediately suggested interesting fixes. For example it
doesn't seem possible to publish to .PHP files but maybe I missed
something. I need to reread the code because there seem to have been
many changes since I last looked at it. Furthermore it did not seem
possible to control :auto-preamble and :auto-postamble on a per-file
basis (without setting up a special project just for that one file and
using include/exclude.) Anyone mind if I make some changes and send a
patch? Is there a more recent version than the one in CVS that i should
begin with? 





___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] blorg users?

2008-06-25 Thread David O'Toole
I've abandoned my old program "org-blog.el" and have started to set up
Bastien's "Blorg" software. But there seems to be a lot of templates to
customize, and I also have to come up with styles. Are there any other
blorg users out there who would share their configs and templates with
me, and maybe I could piece together a style? I promise to tweak
everything and change the colors so that it won't look too much like
your site. what I'm mainly hoping for is to borrow someone's layout, and
then do my own color scheme.

I also promise to release my theme back to the community for further
copying.

Any thoughts?



___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] thousands of Invalid face attribute messages

2008-03-26 Thread David O'Toole
When I open an org-mode file I start to get these errors in the
message-buffer. Debug-on-error does not seem to work because it's
apparently happening during redisplay.

Invalid face attribute :bold t [1133 times]

I removed all instances of :bold t from my color theme file, so I
don't think it's my code.

This is with current CVS HEAD.


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] org-publish.el v1.81 is out

2008-01-16 Thread David O'Toole
I have a new version of org-publish.el, with an experimental new
feature called "project templates."

It helps you factor out common parts of org-publish projects, which is
useful when you have project directories that have subproject
directories that also need to be published.

There's no manual entry, but there are plenty of docstrings. To get an
overview of the new functionality, visit org-publish.el (URL below)
and look for the section "Project templates".

enjoy!

http://dto.mamalala.org/alpha/org-publish.el


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Announcing Worg (Web-Org)

2008-01-16 Thread David O'Toole
It occurs to me that I probably shouldn't put radio.el in the worg
repo, because I maintain it as part of Eon, and other parts of Eon
will depend on it (in particular, the sound audition/annotation thing
i described.) But the URL i gave (http://dto.mamalala.org/eon/radio.el
) is the standard location for the file (it's an hourly svn update),
and I'm happy to take feature requests / bug reports on this list.

On Jan 16, 2008 9:36 AM, David O'Toole <[EMAIL PROTECTED]> wrote:
> http://dto.mamalala.org/eon/radio.el
>
> I haven't worked on it in a little while, as I've been hacking on Eon
> and org-publish.el. But, some people may find it of interest. I do
> intend to use it for audio, because it allows you to annotate binaries
> as well (by making a separate little note file.)
>
>
> On Jan 16, 2008 4:48 AM, Phil Jackson <[EMAIL PROTECTED]> wrote:
> > David,
> >
> > Bastien <[EMAIL PROTECTED]> writes:
> >
> > > "David O'Toole" <[EMAIL PROTECTED]> writes:
> > >> Now that the holidays are over, I am back to hacking.
> > >
> > > Good to hear.  I'm just back from an email blackout.
> >
> > [...]
> >
> > >> contribute my org-radio annotator thing to the repository (if anyone
> > >> is interested).
> > >
> > > Sure!  Normaly you should be able to commit to Worg's repository.
> >
> > [...]
> >
> > > - I think Phil and you could put your effort in common, since
> > >   org-annotate-file.el is scratching at the same itching need.
> >
> > I must have skipped over radio thinking it was something to do solely
> > with audio :( I went back to your original announcement and it sounds
> > like we really are doing the same thing. I can't actually find org-radio
> > (the link to the repo doesn't work anymore) to see how much better your
> > code is than mine and or sabotage the repository :)
> >
> > Happy to swap/lend/steal/merge anything you think we should or we could
> > go into a bitter competition involving spies, bribery and litigation.
> >
> > Phil
> > --
> >  Phil Jackson
> >  http://www.shellarchive.co.uk
> >
>


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Announcing Worg (Web-Org)

2008-01-16 Thread David O'Toole
http://dto.mamalala.org/eon/radio.el

I haven't worked on it in a little while, as I've been hacking on Eon
and org-publish.el. But, some people may find it of interest. I do
intend to use it for audio, because it allows you to annotate binaries
as well (by making a separate little note file.)

On Jan 16, 2008 4:48 AM, Phil Jackson <[EMAIL PROTECTED]> wrote:
> David,
>
> Bastien <[EMAIL PROTECTED]> writes:
>
> > "David O'Toole" <[EMAIL PROTECTED]> writes:
> >> Now that the holidays are over, I am back to hacking.
> >
> > Good to hear.  I'm just back from an email blackout.
>
> [...]
>
> >> contribute my org-radio annotator thing to the repository (if anyone
> >> is interested).
> >
> > Sure!  Normaly you should be able to commit to Worg's repository.
>
> [...]
>
> > - I think Phil and you could put your effort in common, since
> >   org-annotate-file.el is scratching at the same itching need.
>
> I must have skipped over radio thinking it was something to do solely
> with audio :( I went back to your original announcement and it sounds
> like we really are doing the same thing. I can't actually find org-radio
> (the link to the repo doesn't work anymore) to see how much better your
> code is than mine and or sabotage the repository :)
>
> Happy to swap/lend/steal/merge anything you think we should or we could
> go into a bitter competition involving spies, bribery and litigation.
>
> Phil
> --
>  Phil Jackson
>  http://www.shellarchive.co.uk
>


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Announcing Worg (Web-Org)

2008-01-13 Thread David O'Toole
Hi Bastien,

Now that the holidays are over, I am back to hacking. I'd like to
write some org-modematerial (perhaps on GTD, perhaps other stuff)
and maybe it would make sense to contribute my org-radio annotator
thing to the repository (if anyone is interested).

On 1/7/08, Bastien <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I'm pleased to announce "Worg" (say "hello Worg!").  Worg is an attempt
> to implement distributed editing of .org files.  The purpose is:
>
>   1. to edit .org files together
>   2. to have a nice user-contributed website around Org, GTD, planning
>   3. to see whether we can really *share tasks* over the web with Org
>
> The Worg website is the output of the .org files.  Browse it here:
>
>   http://www.cognition.ens.fr/~guerry/worg/
>
> The git repository of .org files lives here:
>
>   http://repo.or.cz/w/Worg.git
>
> Anyone is welcome to contribute.  If you would like to do so, here are
> the first steps you need to go thru (ask for help):
>
>   1. create a SSH key
>   2. create a user on repo.or.cz (and tell me your username)
>   3. install git
>   4. pull the Worg repository somewhere on your disk
>
> All this doesn't take very long and is explained here:
>
>   http://www.cognition.ens.fr/~guerry/worg/worg-git.html
>
> Once you've done that, here is a typical sequence of wor^D^Dfun:
>
>   1. go to your Worg directory
>   2. pull any changes made by others (~$ git pull)
>   3. write tutorials and code and whatever you want
>   4. commit your changes (~$ git commit -a -m "My changes")
>   5. push your changes (~$ git push)
>
> That's it.  You can even work offline safely, pulling and pushing will
> take care of any conflicts as simply as possible.
>
> So instead of feeling lazy about some tutorial you want to write, just
> write the beginning of the tuturial, and add a new task for someone:
>
> ** TODO Please continue my tutorial [[file:mytutorial.org][here]]
>
> If you add the ~/org/Worg/worg-todo.org file to your agenda files, then
> you will see this task sneaking into YOUR list of tasks.  I know, tasks
> are very intimate things, but YOU define the way you want Worg-related
> tasks to be displayed in your agenda views.
>
> There is way too much knowledge and code snipets living on this mailing
> list, I guess Worg would help beginners find their way thru Worg, and
> others find a more central place where to elaborate ideas and code.
>
> Enjoy,
>
> --
> Bastien
>
>
> ___
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] [OT] org-musicians :-)

2007-12-24 Thread David O'Toole

> Weird stuff this, but perhaps linux/emacs/gtd does attract a certain
> sort of person (geek musicians ?) ?  I'm also a musician (mainly jazz
> pianist these days). 

Heh, I am also one of those linux/emacs/gtd music geeks :-)

Here is a song from our band: http://dto.twu.net/thedivinepersonality.ogg

> Anyway, can I wish you all a great Christmas as well, and say a big
> thank you to Carsten for the enormous effort and dedication he puts into
> org-mode.  Also, to others like Bastien for picking up some of the
> org-mode development and running with it. Fantastic stuff. 

Happy Holidays, orgmoders!


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: my GTD setup

2007-12-24 Thread David O'Toole

Hi Ivan,

> Hi David, thanks for sharing your setup. Could you, please, fix mew so
> that it does not wrap your lisp? I find it unreadable.

Certainly! I just got started with Mew so I am still configuring.

> Do you know there is a book called "Getting Things Done" ? I suggest you
> buy it ;)
> 
> I have not finished it, but I don't think reading stuff on the 'net is
> a substitute to reading the original book. My two cents.

I think my mom has a copy, I will try to borrow hers...


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Org Radio

2007-12-24 Thread David O'Toole

Hello Bastien,

I really like the region idea. However it could be very tricky to
implement. The annotations in the radio file would be matched to
regions in the target file. So presumably we save the region's
coordinates in the radio file along with its annotation. We can use
markers and overlay properties to keep these data consistent in the
face of changes that happen in an Emacs buffer, but if a file can
change outside Emacs (i.e. annotating a shared file in version
control) then we have a problem, because (in the new model you are
suggesting) there was never anything in the file itself to indicate
which regions go with which annotations. That model is interesting
because it means you can annotate files without changing them
(i.e. notes on /etc). But I don't see how to keep the radio file from
breaking.

But maybe I am missing an obvious solution---can you give more details
on the GPLv3 thing you are referring to?

--dave

From: Bastien <[EMAIL PROTECTED]>
Subject: Re: [Orgmode] Org Radio
Date: Sat, 22 Dec 2007 19:49:34 +0100

> Hi David,
> 
> "David O'Toole" <[EMAIL PROTECTED]> writes:
> 
> > I'm writing an add-on for Org (again!)
> >
> > This one is called radio.el. It lets you annotate files (or even
> > individual lines within files) with arbitrary org subtrees.
> 
> Great!  I played with it a bit, and I like the general idea.  I thought
> about doing something similar a while ago, because the one thing I lack
> in Emacs is the ability to take notes against one particular file and to
> see from within the file if there are notes attached to it...
> 
> Maybe one direction for further improvements: I don't really like the
> glyph ":>".  I would prefer that taking notes is done against a region
> and that the whole region get overlayed when you activate radio-mode (or
> whatever mode it could be.)
> 
> Remember the GPLv3 comment process and the way comments were overlined.
> Turning your mode on could overline regions that are annotated, and
> those overlined regions could link to the note in the attached Org
> file...  
> 
> Does this fit with your use of the tool ?
> 
> -- 
> Bastien


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] my GTD setup

2007-12-21 Thread David O'Toole

Hello folks, 

I decided to finally sit down and read up on GTD and implement a
simple setup for Org. But instead of writing a big article about GTD
and org-mode, I have decided to add notes and paste my config.

Not very complicated, but I'm trying to keep my GTD setup simple so
that I will actually stick with it and get used to the process.

Enjoy!

;;; org-gtd.el --- dto's org-mode configuration for GTD

;; Copyright (C) 2007  David O'Toole

;; Author: David O'Toole(require 'org) <[EMAIL PROTECTED]>
;; Keywords: tools

;; This file is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 3, or (at your option)
;; any later version.

;; This file is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; GNU General Public License for more details.

;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs; see the file COPYING.  If not, write to
;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
;; Boston, MA 02110-1301, USA.

;;; Commentary:

;; There are several articles about using GTD (GettingThingsDone) with
;; OrgMode. I'm publishing mine as an Emacs Lisp source
;; file. 

;; This is a very basic example org-and-gtd setup. It's also my real
;; configuration, so you can load it yourself or just take a few
;; pieces.

;;; Code:

(require 'org)
(require 'remember)

;; I have a nice Wacom tablet, so I like to use the mouse. Org-mouse
;; adds various clickable menus to org-mode constructs.

(require 'org-mouse)

;; I want files with the extension ".org" to open in org-mode.

(add-to-list 'auto-mode-alist '("\\.org$" . org-mode))

;; I keep almost everything in one big org file.

(defvar org-gtd-file "~/gtd.org")

;; I open my gtd file when I hit C-c g

(defun gtd ()
  "Open the GTD file."
  (interactive)
  (find-file org-gtd-file))

;; Some basic keybindings.

(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-ca" 'org-agenda)
(global-set-key "\C-cr" 'org-remember)
(global-set-key "\C-cg" 'gtd)

;; This seems like a good basic set of keywords to start out with:

(setq org-todo-keywords '((type "TODO" "NEXT" "WAITING" "DONE")))

;; Some projects need their own org files, but I still want them to
;; show up in my agenda.

(defvar org-gtd-other-files)

(setf org-gtd-other-files (list "~/eon/eon.org"))

(setf org-agenda-files (cons org-gtd-file org-gtd-other-files))

;; When I'm using org to track issues in a project, I use these
;; keywords on a file-local basis: 

;; #+SEQ_TODO: TODO | DONE
;; #+SEQ_TODO: REPORT BUG KNOWNCAUSE | FIXED 
;; #+SEQ_TODO: | CANCELLED

;; The lisp version is:

;; (setq org-todo-keywords '((sequence "TODO" | "DONE")
;;(sequence "REPORT" "BUG" "KNOWNCAUSE" | "FIXED")
;;(sequence | "CANCELLED")))

;; Easy basic searches. Get a quick view of nextactions, etc

(setq org-agenda-custom-commands
  '(("w" todo "WAITING" nil)
("n" todo "NEXT" nil)
("d" "Agenda + Next Actions" ((agenda) (todo "NEXT")

;; I use org's tag feature to implement contexts.

(setq org-tag-alist '(("STUDIO" . ?s)
  ("COMPUTER" . ?c)
  ("MAIL" . ?m)
  ("HOME" . ?h)
  ("FIELD" . ?f) 
  ("READING" . ?r)
  ("DVD" . ?d)))

;; I like to color-code task types.

(setf org-todo-keyword-faces '(("NEXT" . (:foreground "yellow" :background 
"red" :bold t :weight bold))
   ("TODO" . (:foreground "cyan" :background 
"steelblue" :bold t :weight bold))
   ("WAITING" . (:foreground "yellow" :background 
"magenta2" :bold t :weight bold))
   ("DONE" . (:foreground "gray50" :background 
"gray30"

;; I put the archive in a separate file, because the gtd file will
;; probably already get pretty big just with current tasks.

(setq org-archive-location "%s_archive::")

;; Remember support. This creates several files:
;;
;;   ~/todo.org  Where remembered TODO's are stored.
;;   ~/journal.org   Timestamped journal entries.
;;   ~/remember.org  All other notes

;; 

[Orgmode] Org Radio

2007-12-17 Thread David O'Toole
I'm writing an add-on for Org (again!)

This one is called radio.el. It lets you annotate files (or even
individual lines within files) with arbitrary org subtrees.

This program is very preliminary, but it does work, and I'd be
interested to hear people's thoughts. I have an audio-related
application in mind that I'll show you later this week---adding tags
and todo items to audio files, and even annotating timespans within
audio files.

Download radio.el from
http://emacs-ontology-project.googlecode.com/svn/trunk/radio.el


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] orgstruct-mode keybindings don't work

2007-12-14 Thread David O'Toole
I'm using orgstruct-mode in my elisp files (i.e. turn-on-orgstruct is
in the emacs-lisp-mode-hook.)

Local value of outline regexp is: ";;;\\(;* [^
]\\|###autoload\\)\\|("

None of the orgstruct commands/keybindings work;
C-h k shows that M-right has the org-hijacker command bound to it, but
executing it just does the normal M-right action (which is
forward-word on my emacs)
No repositioning of point (i.e. further into the headline) helps at all.

Trying M-up or M-down gives "this key has no function outside
structure elements" even when in a headline.

Am I doing something wrong?

M-x emacs-version gives:
GNU Emacs 23.0.50.1 (i686-pc-linux-gnu, X toolkit) of 2007-12-10 on pod


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Can't force org-publish-current-project

2007-11-23 Thread David O'Toole
I will look into this and get back to you...

On Nov 23, 2007 8:06 PM, Daniel Clemente <[EMAIL PROTECTED]> wrote:
>Hi. With org 5.13i,
> C-u M-x org-publish-current-project
>or:
> C-u C-c C-e P
>do not force the publishing (as the manual says).
>In contrast, forcing „org-publish-current-file" or „org-publish-all" works.
>
>Greets,
> Daniel
>
>
> ___
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] another GTD question from dto

2007-10-03 Thread David O'Toole

I've been in my new "simple GTD" system for about a week, and it feels
very comfortable. Thanks again to Carsten and to the org-mode
community.

Now I see what was wrong with my previous uses of org-mode. I never
used any keywords other than TODO and DONE. This didn't give enough
information, so it meant that every task I might possibly ever do had
a TODO item. Because of the absurd number of TODO's I never used the
agenda feature much, and therefore didn't schedule many things; I
relied on my cell-phone for scheduling appointments, and never set
deadlines in my personal coding projects.

Now I am scheduling more things, and using the agenda views
regularly. 

But I am still having one problem. Right now I have a section in my
One Big Orgfile that looks like this: 

> * Books
> ** TODO Read "Tractatus Logico-Philosophicus"
> *** DONE Find out about Wittgenstein's notation
> *** NEXT Chapter 5
> *** TODO Chapter 6
> *** TODO Chapter 7
> *** TODO Review entire book
> *** MAYBE [[http://s22318.tsbvi.edu/mathproject/appB-sec1.asp][Spoken 
> mathematics]]
> ** TODO Read "The Analysis of Mind"
> *** NEXT Chapter 1 

This gives in the agenda:

 dto:  Scheduled:  NEXT Chapter 5
 dto:  Scheduled:  NEXT Chapter 1

Without any indication which book the chapters are from.  Can I fix
this with properties or tags or categories or something?

-- 
David O'Toole 
[EMAIL PROTECTED]
http://dto.freeshell.org/notebook/


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] my simple GTD setup

2007-09-28 Thread David O'Toole

"Dmitri Minaev" <[EMAIL PROTECTED]> writes:

> Hello,
>
> The requested URL /notebook/images/menu-shot.png was not found on this server.

Oops! The correct URL is http://dto.freeshell.org/images/menu-shot.png

> Thanks for the ideas! Could you also share a sample fragment of an
> .org file, please?

   
* Emacs :COMPUTER:
** eon  :PROJECT:
*** NEXT Implement modules
*** TODO Serialization
*** TODO Code suspend>> macro
*** TODO Code run>> macro
*** TODO Simple object browser
*** TODO RELEASE 1.1:MILESTONE:
*** TODO Common Lisp compatibility 
*** TODO Interactive minibuffer message sender
*** TODO Object mouse menus
*** TODO Eon menubar
*** TODO Write brief developer's guide
*** TODO Add edebug declarations for the macros
** pixel art:PROJECT:
*** TODO Menu support
*** TODO Save and load

** rlx  :PROJECT:
** Void Mission
** cl-guide :PROJECT:
** peano:PROJECT:
** Configuration
*** TODO Tweak menu-bar colors
*** TODO Set up keyboard commands for menubar
** TODO Implement GTD system
*** TODO [#C] Set up versor keys
*** TODO Configure org-stuck-projects 
*** NEXT Fix tag search
*** TODO Move tasks from other pages
*** TODO fix color theme

* Books
** TODO Read "Tractatus Logico-Philosophicus"
*** NEXT Chapter 5
*** TODO Chapter 6
*** TODO Chapter 7
*** TODO Review entire book
* Music :STUDIO:

** TODO Back up the Pod :STUDIO:
** TODO Try out Common Music

** TODO Omnipotent Space Band 1.0   :PROJECT:
*** NEXT Obtain ZoomH4
*** TODO Conduct field recording session:FIELD:
*** TODO Reorganize file:osb1.org
   DEADLINE: <2007-10-22 Mon>
*** TODO Prepare statement of work for Dominic
* Fun

** TODO Play crawl


-- 
David O'Toole 
[EMAIL PROTECTED]
http://dto.freeshell.org/notebook/


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] my simple GTD setup

2007-09-27 Thread David O'Toole

I read through some of the available articles by people who use org
for GTD and decided to try it myself.

Two days ago I put together a very simple setup. 
Screenshot at http://dto.freeshell.org/notebook/images/menu-shot.png
Elisp snippets at bottom of message.

Details: 

 - I use the TODO keywords as a "task status". 
   These are TODO, MAYBE, WAITING, NEXT, DONE.
   "NEXT" is specially fontified so that it stands out.
   I find it convenient to use org-mouse to change keywords.

 - I use tags for contexts. I don't worry about not having a precise
   definition of what a context is; it could be a place, a tool, a
   person, a project, or whatever.

 - I put almost everything in One Big Org File. This is the biggest
   change from my old style. I used to have one org file per project,
   with the "webpage" stuff in the top half, and the TODO items jammed
   all at the end of the file in a huge mess. 

   Now I am using foo.org as the webpage and notes file, whereas the
   workflow structure and scheduling for "foo" go into the foo section
   of my main file "dto.org". I think this separation will help each
   file be cleaner, and bring together all my workflows into one
   hierarchically organized clickable buffer. 

 - I am having trouble with searching for all the "NEXT" keyword
   items, which is all I really need to complete my setup. I can see
   the list of NEXT actions, but not what project they come from or
   what tags they have. So it can be tricky to understand what the
   task means out of context. Should I use a tag to represent each
   project, or properties, or what?

There is so much other stuff like tables, properties, etc that I'm not
sure what to do with yet, but I'm sure I'll find something :-)

> (setq org-hide-leading-stars t)

> (setq org-todo-keywords '((sequence "TODO" "MAYBE" "WAITING" "NEXT" "DONE")))

> (setq org-tag-alist '(("STUDIO" . ?s)
> ("COMPUTER" . ?c)
> ("MAIL" . ?m)
> ("HOME" . ?h)
> ("PROJECT" . ?p)
>     ("READING" . ?r)
> ("DVD" . ?r)))

> (setf org-special-ctrl-a/e t)

> (setf org-todo-keyword-faces '(("NEXT" . (:foreground "yellow" :background 
> "red" :bold t :weight bold


-- 
David O'Toole 
[EMAIL PROTECTED]
http://dto.freeshell.org/notebook/


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Thanks

2007-09-18 Thread David O'Toole

Hello everyone; sorry I have not been posting so much lately. But this
is a good opportunity to send out a shout to my fellow orgmoders.

Carsten Dominik <[EMAIL PROTECTED]> writes:

> Hi,
>
> I would like to use this message thank all of your for your
> contributions to Org-mode.  Without you all, Org-mode would
> not nearly be what it is today.  In particular thanks to:

I would like to thank Carsten for Org-mode, and also I should thank
all the other people he is thanking now (including myself!?) :-)

> - The tutorial writers:
>   While Org-mode tries to make entering its world as easy as
>   possible with as little clutter as possible, it still has become
>   a large package with an huge number of features - easily confusing
>   and daunting to new users.  I think the impact of writing up your
>   own personal setup and way of using it for a particular task can
>   not be overrated.

I'm planning a second, bigger org-tutorial that presents a particular
TODO system. It will basically feel like the system I used in my last
job---which demanded all the organizational skills I could possibly
muster every day for almost two straight years---plus some newer
things I've learned from reading about GTD and other methods.

In particular I would like to try recording an audio/video
screencast. I have seen some impressive ones on Emacswiki.

But first I have to finish the other (still Emacs-related) tutorial
I'm writing: 

http://dto.freeshell.org/e/cl-guide.html

> - The coders:
>   Some of you have written additions to Org-mode, in particular Bastien,
>   David and Piotr.  I really get a kick out of this.

I'm also planning to integrate org support into my new (beta) Emacs
Lisp project ( http://dto.freeshell.org/notebook/Eon.html ). I will
definitely ask Carsten to help me interface them, as we did for
org-publish.el. 

As for org-publish, the new LaTeX support is nice. I'm not sure what
is coming next for org-publish.el, perhaps people can suggest ideas. I
can think of at least one: I want both the ability to export to LaTeX
(and then to PDFs with hyperlinks) AND to make a PDF whose styles come
directly from your CSS. At one point I was working with an HTML->PDF
exporter that had great-looking output; unfortunately it is
implemented as a PHP CGI, so you need to have Apache running even to
use it. I never could get it working properly with org, but perhaps
there are other programs out there now.

-- 
David O'Toole 
[EMAIL PROTECTED]
http://dto.freeshell.org/notebook/


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] error when M-x org-publish RET blog RET

2007-08-31 Thread David O'Toole
y evoke a quite intriguing sense of open space (not 
necessarily\ninhabited.) Harmonium-like drones appear, but melodies and 
harmonies\nare scarce on their double-album /Hz./ Instead they play 
contrasting\ntimbres off one another and confront the listener with 
unrecognizable\nsounds.\n\nThis post was too long half an hour ago. I think 
I'll quit here and\nget some hacking done...\n" "Fri, 31 Aug 2007 03:28:00 
-0400")
  (cons (org-blog-rss-item post-title (concat blog-base-url ... ".html") 
post-content post-time) blog-rss-feed)
  (setq blog-rss-feed (cons (org-blog-rss-item post-title ... post-content 
post-time) blog-rss-feed))
  (push (org-blog-rss-item post-title (concat blog-base-url ... ".html") 
post-content post-time) blog-rss-feed)
  (progn (push (org-blog-rss-item post-title ... post-content post-time) 
blog-rss-feed))
  (if rss (progn (push ... blog-rss-feed)))
  (when rss (push (org-blog-rss-item post-title ... post-content post-time) 
blog-rss-feed))
  (progn (when rss (push ... blog-rss-feed)) (if (< count num-posts) (progn ... 
... ...) (progn ... ... ...)))
  (if (not (string= basename index-filename)) (progn (when rss ...) (if ... ... 
...)))
  (when (not (string= basename index-filename)) (when rss (push ... 
blog-rss-feed)) (if (< count num-posts) (progn ... ... ...) (progn ... ... 
...)))
  (let ((basename ...) (post-title nil) (post-time ...) (post-description nil)) 
(with-temp-buffer (insert-file-contents p) (let ... ...) (goto-char ...) 
(re-search-forward "#\\+TITLE: \\(.*\\)$" nil t) (setf post-title ...) 
(re-search-forward "#\\+DESCRIPTION: \\(.*\\)$" nil t) (setf post-description 
...) (setf post-content ...)) (when (not ...) (when rss ...) (if ... ... ...)) 
(setq count (+ 1 count)))
  (while (setq p (pop posts)) (let (... ... ... ...) (with-temp-buffer ... ... 
... ... ... ... ... ...) (when ... ... ...) (setq count ...)))
  (save-current-buffer (set-buffer temp-buffer) (while (setq p ...) (let ... 
... ... ...)) (when rss (push ... blog-rss-feed) (with-temp-buffer ... ... 
...)) (goto-char (point-min)) (while (search-forward "#+TITLE: " nil t) 
(replace-match "** " nil t)) (when index-title (goto-char ...) (insert ...)) 
(write-file index-file) (kill-buffer (current-buffer)))
  (with-current-buffer temp-buffer (while (setq p ...) (let ... ... ... ...)) 
(when rss (push ... blog-rss-feed) (with-temp-buffer ... ... ...)) (goto-char 
(point-min)) (while (search-forward "#+TITLE: " nil t) (replace-match "** " nil 
t)) (when index-title (goto-char ...) (insert ...)) (write-file index-file) 
(kill-buffer (current-buffer)))
  (unwind-protect (with-current-buffer temp-buffer (while ... ...) (when rss 
... ...) (goto-char ...) (while ... ...) (when index-title ... ...) (write-file 
index-file) (kill-buffer ...)) (and (buffer-name temp-buffer) (kill-buffer 
temp-buffer)))
  (let ((temp-buffer ...)) (unwind-protect (with-current-buffer temp-buffer ... 
... ... ... ... ... ...) (and ... ...)))
  (with-temp-buffer (while (setq p ...) (let ... ... ... ...)) (when rss (push 
... blog-rss-feed) (with-temp-buffer ... ... ...)) (goto-char (point-min)) 
(while (search-forward "#+TITLE: " nil t) (replace-match "** " nil t)) (when 
index-title (goto-char ...) (insert ...)) (write-file index-file) (kill-buffer 
(current-buffer)))
  (let* ((posts ...) (base-directory ...) (blog-base-url ...) (blog-title ...) 
(publishing-directory ...) (blog-description ...) (blog-rss-feed nil) (rss ...) 
(post-content nil) (index-file ...) (index-buffer ...) (num-posts ...) 
(index-title ...) (count 0) (p nil)) (message "RSS = %S" rss) (if index-buffer 
(kill-buffer index-buffer)) (when rss (push ... blog-rss-feed)) 
(with-temp-buffer (while ... ...) (when rss ... ...) (goto-char ...) (while ... 
...) (when index-title ... ...) (write-file index-file) (kill-buffer ...)))
  org-publish-blog-index((:base-directory "~/blog/" :base-extension "org" 
:preamble "\nhome - index" :blog-base-url 
"http://dto.freeshell.org/blog/"; :blog-title "dto.freeshell.org blog" 
:blog-description "David O'Toole's web log." :blog-export-rss t 
:publishing-directory "/ssh:[EMAIL PROTECTED]:~/html/blog/" 
:publishing-function org-publish-org-to-html :auto-preamble t :auto-postamble 
nil :auto-index t :index-function org-publish-blog-index :index-filename 
"index.org" :index-title "Welcome to the dto.freeshell.org blog" :index-posts 
8) "index.org")
  funcall(org-publish-blog-index (:base-directory "~/blog/" :base-extension 
"org" :preamble "\nhome - index" :blog-base-url 
"http://dto.freeshell.org/blog/"; :blog-title "dto.freeshell.org blog" 
:blog-description "David O'Toole's web log." :blog-export-rss t 
:publishing-directory "/ssh:[EMAIL PROTECTED]:~/html/blog/" 
:publishing-function org-publish-org-to-html :auto-preamble t :auto-postamble 
nil :auto-index t :index-function org-publish-blog-index :index-filename 
"index.org" :index-title "Welcome to the dto.freeshell.org blog" :index-posts 
8) "index.org")
  (if index-p (funcall index-function plist index-filename))
  (let* ((exclude-regexp ...) (publishing-function ...) (index-p ...) 
(index-filename ...) (index-function ...) (preparation-function ...) (f nil)) 
(when preparation-function (funcall preparation-function)) (if index-p (funcall 
index-function plist index-filename)) (let (...) (while ... ...)))
  org-publish-plist((:base-directory "~/blog/" :base-extension "org" :preamble 
"\nhome - 
index" :blog-base-url 
"http://dto.freeshell.org/blog/"; :blog-title "dto.freeshell.org blog" 
:blog-description "David O'Toole's web log." :blog-export-rss t 
:publishing-directory "/ssh:[EMAIL PROTECTED]:~/html/blog/" 
:publishing-function org-publish-org-to-html :auto-preamble t :auto-postamble 
nil :auto-index t :index-function org-publish-blog-index :index-filename 
"index.org" :index-title "Welcome to the dto.freeshell.org blog" :index-posts 
8))
  mapcar(org-publish-plist ((:base-directory "~/blog/" :base-extension "org" 
:preamble "\nhome - index" :blog-base-url 
"http://dto.freeshell.org/blog/"; :blog-title "dto.freeshell.org blog" 
:blog-description "David O'Toole's web log." :blog-export-rss t 
:publishing-directory "/ssh:[EMAIL PROTECTED]:~/html/blog/" 
:publishing-function org-publish-org-to-html :auto-preamble t :auto-postamble 
nil :auto-index t :index-function org-publish-blog-index :index-filename 
"index.org" :index-title "Welcome to the dto.freeshell.org blog" :index-posts 
8)))
  (let ((org-publish-use-timestamps-flag ...) (plists ...)) (mapcar (quote 
org-publish-plist) plists))
  (save-window-excursion (let (... ...) (mapcar ... plists)))
  org-publish("blog" nil)
  call-interactively(org-publish)
  execute-extended-command(nil)
  call-interactively(execute-extended-command)



-- 
David O'Toole 
[EMAIL PROTECTED]
http://dto.freeshell.org/notebook/
___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] orgstruct-mode error

2007-08-26 Thread David O'Toole

I am using org 5.05 and get this error when doing org-cycle in an
emacs-lisp-mode buffer (with Orgstruct mode on)

> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
>   re-search-forward(nil 6690 t)
>   org-cycle-hide-drawers(contents)
>   run-hook-with-args(org-cycle-hide-drawers contents)
>   org-cycle(t)
>   org-cycle-global()
>   call-interactively(org-cycle-global)
>   recursive-edit()
>   byte-code("Æ@Ç=!ÈÉÊ\"ËÉ!A@)¢Ì=!ÈÍÊ\"Î!Ï Ð 
> !\fcÑed\"VWebÒ¥y`dbÒ¥Zy`|)ÓcebÔÕÖ \"× ÔØ!ÙÊÔØ!ŠÚ +Ù" [unread-command-char 
> debugger-args x debugger-buffer noninteractive debugger-batch-max-lines -1 
> debug backtrace-debug 4 t backtrace-frame lambda 5 pop-to-buffer 
> debugger-mode debugger-setup-buffer count-lines 2 "...\n" message "%s" 
> buffer-string kill-emacs "" nil recursive-edit middlestart buffer-read-only 
> standard-output] 4)
>   debug(error (wrong-type-argument stringp nil))
>   re-search-forward(nil 6690 t)
>   org-cycle-hide-drawers(contents)
>   run-hook-with-args(org-cycle-hide-drawers contents)
>   org-cycle(t)
>   org-cycle-global()
>   call-interactively(org-cycle-global)

Here is the code I use to set up the buffer:


;; global consistent org cycling keys

(defun org-cycle-global ()
  (interactive)
  (org-cycle t))

(defun org-cycle-local ()
  (interactive)
  (save-excursion
(move-beginning-of-line nil)
(org-cycle)))

(global-set-key (kbd "M-[") 'org-cycle-global)
(global-set-key (kbd "M-]") 'org-cycle-local)

(add-hook 'emacs-lisp-mode-hook #'orgstruct-mode)

 Fontifying todo items outside of org-mode

(defface todo-comment-face '((t (:background "red" :foreground "yellow" :weight 
bold :bold t))) "Face for TODO in code buffers.")
(defvar todo-comment-face 'todo-comment-face)
(defun fontify-todo () 
  (font-lock-add-keywords nil '(("\\<\\(TODO\\)\\>" 
 (1 todo-comment-face t)

(add-hook 'emacs-lisp-mode-hook #'fontify-todo)


(defface headline-face '((t (:foreground "white" :underline "white" :background 
"navyblue"))) "Face for headlines.")
(defvar headline-face 'headline-face)

(defun fontify-headline () 
  (font-lock-add-keywords nil '(("^* \\(.*\\)\\>" 
 (1 headline-face t)


(add-hook 'emacs-lisp-mode-hook #'fontify-headline)




-- 
David O'Toole 
[EMAIL PROTECTED]
http://dto.freeshell.org/notebook/


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Tutorials

2007-07-08 Thread David O'Toole

Carsten Dominik <[EMAIL PROTECTED]> writes:

> The impact of these two document has been huge, much more than
> the manual or my (admittedly quite boring) web page.

One thing I want to mention---people get you and I confused because
our websites look almost exactly the same. Maybe one of us should make
a few tweaks to the CSS, otherwise people will keep sending org.el bug
reports to me :-)

> This is why I tink it would be great to have more tutorials.
> There are several areas where a step-by-step tutorial,
> with lots of screen shots in the way David wrote his
> could be easily made.

I used a bit of elisp to make the screenshot process easier.  It makes
numbered screenshots using ImageMagick (i.e. the "import" command.)
You may need to tweak things for your system.

It's at http://dto.freeshell.org/e/eeshot.el

> - How you, personally, use Org-mode for plannig and
>   monitoring your tasks (we could have *many* of those).

I could probably do one of these, especially in regard to Eon. A big
part of the Eon idea is to make some really interesting things happen
with large databases of many org-mode files, which have embedded lisp
data. I am building a sort of annotation system that can read various
org-mode data/properties/timestamps as well as embedded lisp data in
an Eon-specific format. This is the further development of the Linkd
and CellMode ideas and I'm pretty excited about it. 

Hey Carsten, it would be interesting to hear your feedback on 
the ideas written up at http://dto.freeshell.org/notebook/Eon.html

There is some working code, but not quite usable yet...

-- 
David O'Toole 
[EMAIL PROTECTED]
http://dto.freeshell.org/notebook/


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Org-mode version 5.01

2007-07-05 Thread David O'Toole

[EMAIL PROTECTED] (Jason F. McBrayer) writes:

> Eon looks very interesting and promising, but I'd have to see some
> more concrete examples of usage to really buy-into it.  How friendly

I will be fleshing out Eon soon. Very often my initial design ideas
are a bit vague; but after I write 200 or so lines of code, I return to
the design and make changes or even rewrite it. I suspect things will
be much more concrete when that happens. 

I want to be as org-friendly as possible: 

 - using org-structure-mode to display and navigate Eon's buffers
 - integration with org-publish
 - extraction of data from the org-agenda 

   [carsten, is there a way to get lisp data (instead of CSV) out of
   org-agenda? can we talk about ways to "query" org-files by
   grepping for certain dates and/or keywords?]

I will keep the group posted on my progress. 

-- 
David O'Toole 
[EMAIL PROTECTED]
http://dto.freeshell.org/notebook/


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Org-mode version 5.01

2007-07-04 Thread David O'Toole
 of formulas has changed.
>   Previously, first the column formulas would be evaluated
>   everywhere, and then the field formulas would kick in, and
>   in some cases overwrite the results of column formulas in
>   the appropriate fields.  This had the side effect that some
>   formulas might always use the wrong, intermediate content of
>   a field that is computed both by a column and a field
>   formula.
>
>   From now on, column formulas will no longer temporarily
>   overwrite field formulas.  This gives much more consistent
>   results.  For example you can now finally have a column of
>   increasing numbers by setting the first field to a fixed
>   number, and let the rest follow from a column formula.
>
>   Here is an example
>
>  | 1 |
>  | 2 |
>  | 3 |
>  #+TBLFM: [EMAIL PROTECTED]::@1$1=1
>
> - Constants for formulas in spreadsheets are globally defined
>   with the variable `org-table-formula-constants'.  File-local
>   constants can now be set with a line like:
>
>  #+CONSTANTS: c=299792458.  pi=3.14  eps=2.4e-6
>
>   + Minor changes
>
> - When entries are archived, a timestamp for the moment of
>   archiving is added to the line with planning information.
>   It looks like this:
>
>ARCHIVED: [2007-07-02 Mon 11:34]
>
>   Thanks to J. David Boyd for constructive comments.
>
> - Bug fixes
>
>   Many bugs are fixed, as usually all the ones where I replied
>   "fixed" on emacs-orgmode.  If you reported one of these
>   bugs, please check if it really has disappeared in the new
>   version, and complain if not.  Thanks!
>
>
>
> ___
> Emacs-orgmode mailing list
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>

-- 
David O'Toole 
[EMAIL PROTECTED]
http://dto.freeshell.org/notebook/


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Fair comparison of blorg and org-blog ?

2007-07-04 Thread David O'Toole

Hi Xavier, 

I am the author of org-blog.el. It is very simple and provides only a
basic level of functionality: postings, a summary page, and RSS. There
are complete instructions in the org-blog.el commentary section. That
should give you an idea of org-blog's features.

I want to add more functionality (like a sidebar and maybe even a
calendar) but I've been working on other things lately...

I haven't used blorg so I don't know much about how it differs.

Xavier Maillard <[EMAIL PROTECTED]> writes:

> Hi,
>
> Is there any comparison table of the two main blog solution for org-mode
> available somewhere ?
>
> I have used them myself but I am quite unable to explain in what they differ,
> what are the pros and cons of the solutions. A friend of mine has asked me to
> help him choose one of them and I can't :)
>
> Regards,
>
> Xavier
>
>
>
> ___
> Emacs-orgmode mailing list
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>

-- 
David O'Toole 
[EMAIL PROTECTED]
http://dto.freeshell.org/notebook/


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] The Struggle for Organization (was RE: community writing?)

2007-06-13 Thread David O'Toole

Last week I posted something about the org-mode community sharing
usage strategies and configurations. My thoughts on this issue
eventually turned into a blog post. 

http://dto.freeshell.org/blog/blog-2007-06-13-1355.html

I'm not sure whether we should start a new wiki, or just collaborate
on an EmacsWiki.org page. 

Your thoughts and comments are welcome.

-- 
David O'Toole 
[EMAIL PROTECTED]
http://dto.freeshell.org/notebook/


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] org-blog v1.18

2007-06-13 Thread David O'Toole

Bugfix release. Thank you Carsten!

http://dto.freeshell.org/notebook/org-blog.el

Org-blog is very simple and not very featureful right now. But I want
to develop it into a more comprehensive blogging tool. Feel free to
make suggestions!

-- 
David O'Toole 
[EMAIL PROTECTED]
http://dto.freeshell.org/notebook/


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] org-blog bug in 4.77 org-export-region-as-html?

2007-06-12 Thread David O'Toole

Thanks for this Carsten, 

I will fix it up and post the corrected version...

Carsten Dominik <[EMAIL PROTECTED]> writes:

> This is a problem in org-blog.el.  David, you need to turn on
> org-mode in the temporary buffer used to process the posts, or
> important variables needed during export will not have been set.
>
> If I am understanding your code correctly, you need something like
> this, near line 216 of org-blog.el.
>
>
> ;; grab post details
> (with-temp-buffer
>   (insert-file-contents p)
>>>> (let (org-inhibit-startup) (org-mode))
>   (goto-char (point-min))
>
> - Carsten
>
> On Jun 11, 2007, at 18:21, Emre Sahin wrote:
>
>>
>> Hi all,
>>
>> This may be a problem in my installation, however I couldn't solve the
>> issue.
>>
>> My Emacs is on a Debian testing (lenny) and has a version of:
>>
>> GNU Emacs 22.1.50.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
>> of 2007-06-08 on pacem, modified by Debian
>>
>> (from emacs-snapshot site, I'm using the unstable version of this
>> package.)
>>
>> I'm using 4.77 org.el along with 1.17 org-blog.el. I have installed
>> these without deleting the older versions and reload the files via
>>
>> (load-file "/usr/local/share/emacs/site-lisp/org.el")
>> (load-file "/usr/local/share/emacs/site-lisp/org-publish.el")
>> (load-file "/usr/local/share/emacs/site-lisp/org-mouse.el")
>> (load-file "/usr/local/share/emacs/site-lisp/org-install.el")
>>
>>
>> and trying to publish two pages in ~/blog/. I have a single
>> project. My alist in .emacs is
>>
>> (require 'org-blog)
>>
>> (autoload 'org-publish "org-publish" nil t)
>> (autoload 'org-publish "org-publish-all" nil t)
>> (autoload 'org-publish "org-publish-current-file" nil t)
>> (autoload 'org-publish "org-publish-current-project" nil t)
>>
>> (add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
>>
>> (setq org-log-done t)
>>
>> (setq org-publish-project-alist
>>   (list
>>'("blog"
>>
>>   :base-directory "~/blog/"
>>   :base-extension "org"
>>   :publishing-directory "~/public_html/blog/"
>>   :publishing-function org-publish-org-to-html
>>   :auto-index t
>>  :blog-base-url "http://emresahin.net/";
>>   :blog-title "emreşahin.net"
>>   :blog-description "Emre Şahin"
>>   :blog-export-rss t
>>   :index-function org-publish-blog-index
>>   :index-filename "index2.org"
>>   :index-title "okuyan bir kişiye"
>>   :language "en"
>>   :index-posts 6)))
>>
>> As far as I understand, I did the steps described in org-blog.el
>> correctly. However when I use M-x org-publish-all an error (which
>> produces the attached debug report) occurs.
>>
>> There may be problems about locale, my initial installation of this
>> system was with Turkish locale and there was a different error about
>> publishing. Then I tried to switch to English locale (by changing the
>> value in /etc/defaults/locale and set my language environment as
>>
>> (set-language-environment "UTF-8")
>> (setq default-file-name-coding-system 'utf-8)
>> (setq locale-coding-system 'utf-8)
>> (set-terminal-coding-system 'utf-8)
>> (set-keyboard-coding-system 'utf-8)
>> (set-selection-coding-system 'utf-8)
>> (set-clipboard-coding-system 'utf-8)
>> (prefer-coding-system 'utf-8)
>>
>> in my .emacs. (Locale problem may be about emacs in general, because
>> when I was playing with blorg.el recently, I didn't get any output due
>> to an error also. And there is strange bug in gnus which make emacs to
>> shut down immediately when I try to open some e-mail messages. However
>> I couldn't reproduce this bug to submit a nice report, and emacs 21.4
>> doesn't have such a problem.)
>>
>> Above bug also occurs in Emacs 21.4 (GNU Emacs 21.4.1
>> (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2007-03-11 on
>> raven, modified by Debian)
>>
>> If there is any information I can further give, I'd be glad to help.
>>
>> Best Regards,
>>
>> Emre
>>
>> > html.dbg.el>___
>> Emacs-orgmode mailing list
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>
>
> --
> Carsten Dominik
> Sterrenkundig Instituut "Anton Pannekoek"
> Universiteit van Amsterdam
> Kruislaan 403
> NL-1098SJ Amsterdam
> phone: +31 20 525 7477
>
>
>
> ___
> Emacs-orgmode mailing list
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>

-- 
David O'Toole 
[EMAIL PROTECTED]
http://dto.freeshell.org/notebook/


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] community writing?

2007-06-08 Thread David O'Toole

I notice the planner world has some pages where they discuss the
various ways people use planner. I think it would be cool for us to
collectively post some org-mode usage strategies, perhaps on an
emacswiki page.

Or, people could prepare a small .org file and send it to me, and I
could paste it into a page of my site. it could be a collaboratively
written "Org-Mode Strategy and Tactics"

If anyone enjoys this, I'll get started by writing my own entry.

-- 
David O'Toole 
[EMAIL PROTECTED]
http://dto.freeshell.org/notebook/


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: org-blog report

2007-05-31 Thread David O'Toole

> First, is this a documentation bug?
>
> ;; '("blog" . (:base-directory "~/blog/"

Yes. thanks for identifying it. 

> org-blog-new-post and org-blog-finish-post work as expected, but
> org-publish does not.  When I interactively org-publish the blog project
> I get the attached index.org in the base-directory, the attached
> blog.xml in the publishing-directory, and no html files anywhere.  Doing
> an interactive org-export-as-html on the attached finished blog entry
> does correctly produce an html file even though publishing the project
> does not.

I'm not sure how to test this. It works fine for me. I am using the
latest versions of both org-publish.el and org-blog.el and these are
on the website in the directory http://dto.freeshell.org/e/
Maybe you can load those into emacs and see if the problem improves?

If not, can you try running it under edebug? 

>   - what's the difference between blog-title and index-title in the
> plist?

blog-title is the title of the exported RSS feed. index-title is the title of
the exported index.html page.

This is not documented, sorry. 

>   - in files generated by org-blog-new-post, where will the #+TITLE and
> #+DESCRIPTION show up on the page?

This is also not documented. I'm probably going to remove the
#+DESCRIPTION functionality.

>   - is content before the first heading published?

Do you mean in a blog post? 




-- 
David O'Toole 
[EMAIL PROTECTED]
http://dto.freeshell.org/notebook/


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] org-blog.el updated to v1.17

2007-05-30 Thread David O'Toole

Available from http://dto.freeshell.org/e/org-blog.el

This is the first usable release of org-blog. Instructions for setup
and use are in the file's commentary. It requires org-mode at least
4.75 (very recent, see quoted posts below.)

You can see an example of the output at http://dto.freeshell.org/blog/
and the generated XML at http://dto.freeshell.org/blog/blog.xml

Features: 

  - write blog posts in org-mode syntax
  - juggle multiple posts while writing, publish in any order when finished
  - RSS 2.0 file. Now you can be on planet.emacsen.org!
  - "blogroll" (not well-tested)

Carsten Dominik <[EMAIL PROTECTED]> writes:

> On May 19, 2007, at 3:17, David O'Toole wrote:
>
>>
>> I am working on my blog extension for org-publish. I would like to
>> convert a region of text (say, between two markers) from org-mode
>> markup into html and then paste the resulting html into another buffer
>> where I am building a full page. I need to do this from a lisp
>> program. It says that org-export-as-html will export an active region
>> but I tried it and it doesn't work in a temp-buffer where
>> (buffer-file-name) is nil. Anyway, would it be hard to expose a
>> function like the following?
>>
>> (defun org-export-region-to-html (beg end)
>>   "Convert region between BEG and END into HTML, placing the result
>>   into a new buffer. The new buffer is returned."
>
>
> Thanks for this idea, will be useful for many things.
>
> - Carsten
>
> 4.75 will contain the following function:
>
> (defun org-export-region-as-html (beg end &optional body-only buffer)
>   "Convert region fron BEG to END in org-mode buffer to HTML.
> If prefix arg BODY-ONLY is set, omit file header, footer, and table of
> contents, and only produce the region of converted text, useful for
> cut-and-paste operations.
> If BUFFER is a buffer or a string, use/create that buffer as a target
> of the converted HTML.  If BUFFER is the symbol `string', return the
> produced HTML as a string and leave no buffer behind.  For example,
> a Lisp program could call this function in the following way:
>
>   (setq html (org-export-region-as-html beg end t 'string))
>
> When called interactively, the output buffer is selected, and shown
> in a window.  A non-interactive call will only retunr the buffer."
>
>
>
>

-- 
David O'Toole 
[EMAIL PROTECTED]
http://dto.freeshell.org/notebook/


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] convert region to html?

2007-05-21 Thread David O'Toole

super! thanks for this Carsten, i will test it when it is released and
see if i can get my org-blog.el working properly. I have had the urge
to blog a lot lately but haven't had an outlet :-)

> Thanks for this idea, will be useful for many things.
>
> - Carsten
>
> 4.75 will contain the following function:
>
> (defun org-export-region-as-html (beg end &optional body-only buffer)
>   "Convert region fron BEG to END in org-mode buffer to HTML.
> If prefix arg BODY-ONLY is set, omit file header, footer, and table of
> contents, and only produce the region of converted text, useful for
> cut-and-paste operations.
> If BUFFER is a buffer or a string, use/create that buffer as a target
> of the converted HTML.  If BUFFER is the symbol `string', return the
> produced HTML as a string and leave no buffer behind.  For example,
> a Lisp program could call this function in the following way:
>
>   (setq html (org-export-region-as-html beg end t 'string))
>
> When called interactively, the output buffer is selected, and shown
> in a window.  A non-interactive call will only retunr the buffer."
>
>
>
>

-- 
David O'Toole 
[EMAIL PROTECTED]
http://dto.freeshell.org/notebook/


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] org-publish.el 1.80

2007-05-21 Thread David O'Toole

Hello Scott. Yes, I am indeed still developing org-publish.el, and I
think it's about time I gave it some new features instead of just
bugfixes. So thanks for prompting me :-)

Anyway, the html conversion is handled in org.el
itself. org-publish.el is just a front-end to that functionality. So,
you'd have to ask Carsten about implementing footnotes formatting. I
think it's a good idea and let me know if there is anything I can do
in org-publish.el that might help.

> P.S. I'm really excited to see that cell mode is coming along.
>
> On 3/21/07, David O'Toole <[EMAIL PROTECTED]> wrote:

Thanks, I will keep you posted. 

-- 
David O'Toole 
[EMAIL PROTECTED]
http://dto.freeshell.org/notebook/


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] convert region to html?

2007-05-18 Thread David O'Toole

I am working on my blog extension for org-publish. I would like to
convert a region of text (say, between two markers) from org-mode
markup into html and then paste the resulting html into another buffer
where I am building a full page. I need to do this from a lisp
program. It says that org-export-as-html will export an active region
but I tried it and it doesn't work in a temp-buffer where
(buffer-file-name) is nil. Anyway, would it be hard to expose a
function like the following?

(defun org-export-region-to-html (beg end)
  "Convert region between BEG and END into HTML, placing the result
  into a new buffer. The new buffer is returned."
  ...
  ...
      

-- 
David O'Toole 
[EMAIL PROTECTED]
http://dto.freeshell.org/notebook/


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] M-x lifesnap (and an itty bitty org-agenda problem i'm having)

2007-04-06 Thread David O'Toole

Hi Pete,

Like I said, there are bugs. I just started coding yesterday morning.
I'll work on it and see if I can fix the problem. Within a few days I
should have a "real" alpha release with a bit of documentation so
maybe it would be best to wait till then. It will also support proper
window configurations then, so that you can have vertical splits etc.

My themes page is http://dto.freeshell.org/notebook/ColorThemes.html .
The right one is color-theme-cl-frame and it includes Org faces.

I will keep you posted.

On 4/6/07, Pete Phillips <[EMAIL PROTECTED]> wrote:

Hi David

That seems cool. What about adding:

- mh-e plugin to show the no of unread mails, and total no of mails in
  certain named mailboxes (I use an +action mailbox where I file mails
  which I need to do something with, plus a +waiting mailbox. This
  enables me to get my +inbox to zero as per GTD). By all means, support
  other emacs mailers :-)

However, I have installed the linkd and lifesnap files, loaded them up,
but when I run lifesnap nothing happens!   (the linkd stuff works for me
though). Any ideas ?

Finally, do mind me asking how you get that colour scheme ? Nice.

Pete

>>>>> "David" == David O'Toole <[EMAIL PROTECTED]> writes:

David> Hello everyone. I'm working on a very small (but very useful
David> to me) piece of software called Lifesnap. It is compatible
David> with org-mode and potentially of interest to org-people so I
David> am mentioning it here.

David> The idea is to get a single-key overview of the output of
David> various Emacs packages I use to keep myself organized. This
David> way I can more easily "get in sync" with my information.

David> the webpage (with screenshot) is here:
David> http://dto.freeshell.org/notebook/LifeSnap.html

David> It's currently very tiny and with some bugs, but I already
David> find it useful. Eventually I would like it to behave much
David> like the Evolution Summary page, showing RSS feeds, weather,
David> mail messages, and so on.  But it also can support any kind
David> of custom "emacs feed" you can think up. So org-agenda is one
David> of the "plugins".

David> Speaking of which, there is a slight problem with
David> org-agenda when I switch weeks in the agenda week view,
David> it clobbers the nice window configuration. Is there any way
David> to prevent this? I'm not sure why changing weeks should alter
David> the windows.

David> Anyway, I'm interested in hearing your feedback on lifesnap
David> and seeing what ideas/suggestions people may have.

David> -David


David> ___ Emacs-orgmode
David> mailing list Emacs-orgmode@gnu.org
David> http://lists.gnu.org/mailman/listinfo/emacs-orgmode






___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] M-x lifesnap (and an itty bitty org-agenda problem i'm having)

2007-04-06 Thread David O'Toole

Hello everyone. I'm working on a very small (but very useful to me)
piece of software called Lifesnap. It is compatible with org-mode and
potentially of interest to org-people so I am mentioning it here.

The idea is to get a single-key overview of the output of various
Emacs packages I use to keep myself organized. This way I can more
easily "get in sync" with my information.

the webpage (with screenshot) is here:
http://dto.freeshell.org/notebook/LifeSnap.html

It's currently very tiny and with some bugs, but I already find it
useful. Eventually I would like it to behave much like the Evolution
Summary page, showing RSS feeds, weather, mail messages, and so on.
But it also can support any kind of custom "emacs feed" you can think
up. So org-agenda is one of the "plugins".

Speaking of which, there is a slight problem with org-agenda when
I switch weeks in the agenda week view, it clobbers the nice window
configuration. Is there any way to prevent this? I'm not sure why
changing weeks should alter the windows.

Anyway, I'm interested in hearing your feedback on lifesnap and seeing
what ideas/suggestions people may have.

-David


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Idea: Agenda Search publish?

2007-04-05 Thread David O'Toole

I think this means being able to publish static HTML from the various
views given by the agenda. So for example you could set up a timer to
publish your agenda each day (assuming you run emacs for months like I
do) and then if you are away from home, check your website to see the
HTML agenda. Might require some changes in org-publish, if so I'd be
happy to make them. I regret being a bit "out of touch" with the org
community these last few months and I'd like to be more involved
again. Org is Great :-)

On 4/5/07, Carsten Dominik <[EMAIL PROTECTED]> wrote:


On Apr 5, 2007, at 12:03, Leo wrote:

> On 2007-04-05, Bastien said:
>
>> "Tim O'Callaghan" <[EMAIL PROTECTED]> writes:
>>
>>> Hi, i have been playing with org-agenda-custom-commands, and it got
>>> me thinking.
>>>
>>> What about adding the generated searches as a publishable source?
>>
>> Yes, i also think that would be useful.
>
> I also like this.

Obviously everyone except me understands exactly what Tim is proposing.
Would someone like to explain it to me :-) 

- Carsten



___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode




___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Org-mode with color-theme.el

2007-04-05 Thread David O'Toole

I'm sorry, that 2nd link should be

http://dto.freeshell.org/e/color-theme-cl-frame.el

On 4/5/07, David O'Toole <[EMAIL PROTECTED]> wrote:

Hello org folks!

I've posted a screen shot of my color theme called "CL-FRAME" and it
includes org-mode faces.

shot: http://dto.freeshell.org/images/org-faces-shot.png
lisp: http://dto.freeshell.org/e/color-theme-cl-frame.png

On 4/5/07, Bastien <[EMAIL PROTECTED]> wrote:
> Bastien <[EMAIL PROTECTED]> writes:
>
> > Carsten Dominik <[EMAIL PROTECTED]> writes:
> >
> >> Maybe we can have a competition here for the best color scheme for
> >> Org-mode, making use of color-theme as the vehicle to install these.
> >
> > There is several ways to contribute to color-theme.el with relevant
> > org-mode faces :
>
> I've set up a page to gather contributions :
>  http://www.cognition.ens.fr/~guerry/org-color-themes.html
>
> Feel free to submit your code/screenshots !
>
> --
> Bastien
>
>
> ___
> Emacs-orgmode mailing list
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>




___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Org-mode with color-theme.el

2007-04-05 Thread David O'Toole

Hello org folks!

I've posted a screen shot of my color theme called "CL-FRAME" and it
includes org-mode faces.

shot: http://dto.freeshell.org/images/org-faces-shot.png
lisp: http://dto.freeshell.org/e/color-theme-cl-frame.png

On 4/5/07, Bastien <[EMAIL PROTECTED]> wrote:

Bastien <[EMAIL PROTECTED]> writes:

> Carsten Dominik <[EMAIL PROTECTED]> writes:
>
>> Maybe we can have a competition here for the best color scheme for
>> Org-mode, making use of color-theme as the vehicle to install these.
>
> There is several ways to contribute to color-theme.el with relevant
> org-mode faces :

I've set up a page to gather contributions :
 http://www.cognition.ens.fr/~guerry/org-color-themes.html

Feel free to submit your code/screenshots !

--
Bastien


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode




___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] org-publish.el 1.80

2007-03-21 Thread David O'Toole

I'm pleased to announce a bugfix release of org-publish.el. 

http://dto.freeshell.org/e/org-publish.el

Changes: 
  + Save window configuration when publishing
  + Create subdirectories of org-publish-timestamp-directory

Some people mailed in feature requests; I will explore those
suggestions and keep you posted on what changes I will make. 

-- 
David O'Toole 
[EMAIL PROTECTED]
http://dto.freeshell.org/notebook/


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Org-mode version 4.68

2007-03-17 Thread David O'Toole

Hi everyone, 

I'll set aside some time this week to straighten out these
problems. Sorry I haven't been too vocal on the orgmode list lately, I
have been working on other things.

Is there anything else people want me to add/fix in org-publish while
I am at it? 

Carsten Dominik <[EMAIL PROTECTED]> writes:

> On Mar 16, 2007, at 12:11, Bastien wrote:
>> * org-publish issues
>>
>>   C-c C-e A (org-publish-all) won't save the window configuration,
>>   depending on what buffers are to be saved and published.
>>
>>   Using timestamps for org-publish is *very convenient*.  But forcing
>>   re-publication of all the pages (C-u C-c C-e a), makes emacs
>> complains
>>   about missing directories in ~/.org-timestamps when a project has not
>>   been normally published first (with C-c C-e P or C-c C-e A).  I think
>>   forced re-publication should create these directories itself.
>
> I have forwarded this mail to David O'Toole, to find out if he still
> feels responsible for changes in org-publish.  Lets wait if he responds.

-- 
David O'Toole 
[EMAIL PROTECTED]
http://dto.freeshell.org/notebook/


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Basic RSS support for org-blog

2006-10-25 Thread David O'Toole

Org-blog is still pretty basic, but it now produces valid RSS 2.0
feeds. See http://dto.freeshell.org/e/org-blog.el for the code, 
and http://dto.freeshell.org/blog/blog.xml for the results!

-- 
David O'Toole 
[EMAIL PROTECTED]
http://dto.freeshell.org/notebook/


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] "Invalid function" error with org-publish-project-alist

2006-09-14 Thread David O'Toole

I think the example is missing some parentheses. I will fix it. 

In the meantime i can get this to parse just fine:

(setq org-publish-project-alist
'(("org" :base-directory "~/notebook/org/"
   :base-extension "org"
   :publishing-directory "~/public_html/notebook/"
   :publishing-function org-publish-org-to-html
   :headline-levels 2
   :with-section-numbers nil
   :table-of-contents nil
   :style ""
   :auto-preamble t
   :auto-postamble nil)
 ("img" :base-directory "~/notebook/img/"
:base-extension "jpg\\|gif\\|png"
:publishing-directory "~/public_html/img/"
:publishing-function org-publish-attachment)))

Andrew Laing <[EMAIL PROTECTED]> writes:

> Hi list,
>
> I am just learning org-mode and org-publish and have rarely felt so
> exited about software. :)
>
> Many props and thanks to Carsten, David, et al!
>
> But I have been having a problem I can't figure out. I have org.el
> v4.49, which includes org-publish.el v1.77. I load my org-config.el from
> my .emacs.el which has org-publish configuration which I copied out of
> the org-publish file's comments:
>
> ;; 
> ;; org-config.el
> ;;
>
> (add-to-list 'load-path "~/Emacs/org-4.49")
> (require 'org-install) 
>
>
> (add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
> (define-key global-map "\C-cl" 'org-store-link)
> (define-key global-map "\C-ca" 'org-agenda)
> (setq org-log-done t)
>
> (setq org-publish-project-alist
>(list
> '("org" :base-directory "~/notebook/org/"
>  :base-extension "org"
>  :publishing-directory "~/public_html/notebook/"
>  :publishing-function org-publish-org-to-html
>  :headline-levels 2
>:with-section-numbers nil
>  :table-of-contents nil
>  :style " type=\"text/css\">"
>  :auto-preamble t
>  :auto-postamble nil)
>  ("img" :base-directory "~/notebook/img/"
>   :base-extension "jpg\\|gif\\|png"
>   :publishing-directory "~/public_html/img/"
>   :publishing-function org-publish-attachment)
> ; ("css"  :base-directory "~/notebook/css/"
> ;  :base-extension "css"
> ;  :publishing-directory "~/public_html/"
> ;  :publishing-function org-publish-attachment)
> ; ("website" :components ("org" "img" "css"))
> ))
>
> ;; load cdlatex for frags
> (autoload 'cdlatex-mode "cdlatex" "CDLaTeX Mode" t)
> (autoload 'turn-on-cdlatex "cdlatex" "CDLaTeX Mode" nil)
> (add-hook 'org-mode-hook 'turn-on-org-cdlatex)
>
> ;;
> ;; end org-config.el
> ;; 
>
>
> Loading this file returns the following error:
>
> Invalid function: "img"
>
> Any thoughts?
>
> I can't seem to figure this one out. Any pointers would be very much
> appreciated.
>
> Cheers, Andrew
>
> -- 
> Andrew Laing <[EMAIL PROTECTED]>
>   Adam met Eve and turned over a new leaf.
>
>
> ___
> Emacs-orgmode mailing list
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>

-- 
David O'Toole 
[EMAIL PROTECTED]
http://dto.freeshell.org/notebook/


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Org-mode usage and concept mapping.

2006-09-10 Thread David O'Toole

Alex Bochannek <[EMAIL PROTECTED]> writes:

> It seems to me that there is a fair amount of GTD, task scheduling,
> and project tracking usage. Some mention of note taking and very
> little of traditional outlining, it seems.

I use the outlining heavily to outline and structure documents and
projects with many parts. Few of my TODOs are first-level headings.
headings... they're always two or three or four stars in. But I have a
friend who makes big files with TODOs all as first-level
headings. There are many ways to use org-mode :-)

I also use Carsten's outline-magic.el (which feels like org-mode with
its visibility cycling) to organize and get overviews of source code
in my emacs lisp projects.

Side question: Carsten, did you get a chance to integrate my bugfix
into the version of outline-magic available on your site? I still use
a locally fixed version, but i think others might like to have their
source code cycle like orgmode buffers do. 

> Concept1
> |Link1
> |Concept2
> ||Link2
> ||Concept4
> |Concept3
> ||Link3
> ||Concept5
> ||Concept4

Interesting. 

Couldn't the links be modeled with org-mode tags and just make
everything headings? Um, it'd be postfix notation but at least it
could work I think... see below. This could possibly be processed and
exported into a map, or even a diagram for GNU Pic or something. 

---
Concept1
Concept2:link1:
Concept 4   :link2:
Concept3:link1:
Concept5:link3:
Concept4    :link3:    
---

-- 
David O'Toole 
[EMAIL PROTECTED]
http://dto.freeshell.org/notebook/


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] org-publish.el v1.78

2006-09-10 Thread David O'Toole

I've released org-publish.el v1.78.

It is available from http://dto.freeshell.org/e/org-publish.el

Changes:
- allow list of functions for :publishing-function.
  each is called on the file in question, one by one.

I wanted to publish both my source .org files and their .html exported
versions, so now i just write in my project definition:

  :publishing-function (org-publish-org-to-html org-publish-attachment)
  

-- 
David O'Toole 
[EMAIL PROTECTED]
http://dto.freeshell.org/notebook/


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] org-publish.el version 1.77: now with preparation-function feature

2006-09-07 Thread David O'Toole

I've added a small new feature to org-publish.el version 1.77,
available from http://dto.freeshell.org/e/org-publish.el

There is a new project keyword called :preparation-function. Its value
should be a function with no arguments, which will be called to
"prepare" a project for publishing. An example usage is to call GNU
Make to update files that need processing, before publishing the
resultant files. 

I use this to publish tarballs on my website. Here is the project
definition I use to make that happen:

>'("packages"
> :base-directory "~/packages/"
> :base-extension "gz"
> :publishing-directory "/ssh:[EMAIL PROTECTED]:~/html/packages/"
> :publishing-function org-publish-attachment
> :preparation-function (lambda ()
>(call-process "make" nil nil nil
>  "--makefile"
>  "/home/dto/packages/Makefile")))

This causes the *.gz to be updated when neccessary (according to the
makefile) and then any updated *.gz are uploaded to the web server.

-- 
David O'Toole 
[EMAIL PROTECTED]
http://dto.freeshell.org/notebook/


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Updated org-publish.el

2006-09-06 Thread David O'Toole

Hello folks, 

the new version is available at my site.

http://dto.freeshell.org/e/org-publish.el

This is a bugfix release:

 - Emacs 21 compatibility fix for timestamps.
 - Bugfix for problem with projects getting assigned to files wrong. 

-- 
David O'Toole 
[EMAIL PROTECTED]
http://dto.freeshell.org/notebook/


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: [Emacs-orgmode] Problem with org-publish-get-plists

2006-09-06 Thread David O'Toole

Sorry for the late reply. 

I have incorporated your bugfix into the latest version of
org-publish.el and will publish the updated code on my website
shortly. 

Thanks so much for your debugging!

"Ed Hirgelt" <[EMAIL PROTECTED]> writes:

> I was having problems publishing with 2 projects in the project list.
> I tracked it down to the org-publish-files hash table.  All the files
> from both projects were mapped to the same project, the last one.
> This was caused by org-publish-get-plists.  Below is the modified
> version that seems to work nicely for me.
>
> The trick as that plists was getting appended to each time through the
> loop which is great for the return value, but the loop over the
> content of plists assumed that project applied to all.  This change
> uses single to be the current element in plists. The return value
> remains the same.
>
> Hope this helps.
>
> Thanks,
> Ed
> -
>
> (defun org-publish-get-plists (&optional project-name)
>  "Return a list of property lists for project PROJECT-NAME.
> When argument is not given, return all property lists for all projects."
>  (let ((alist (if project-name
>  (list (assoc project-name org-publish-project-alist))
>org-publish-project-alist))
>   (project nil)
>   (plists nil)
>   (single nil)
>   (components nil))
>
>;;
>;;
>(while (setq project (pop alist))
>  ;; what kind of project is it?
>  (if (setq components (plist-get (cdr project) :components))
> ;; meta project. annotate each plist with name of enclosing project
> (setq single
>   (apply 'append
>  (mapcar 'org-publish-get-plists components)))
>   ;; normal project
>   (setq single (list (cdr project
>  ;;
>  (setq plists (append plists single))
>  (dolist (p single)
>   (let* ((exclude (plist-get p :exclude))
>  (files (org-publish-get-base-files p exclude)))
> (dolist (f files)
>   (puthash (file-truename f) (car project) org-publish-files)
>plists))
>
>
> -- 
> Ed Hirgelt
>
> Discovery consists of seeing what everybody has seen
> and thinking what nobody has thought.
>
>
> ___
> Emacs-orgmode mailing list
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>

-- 
David O'Toole 
[EMAIL PROTECTED]
http://dto.freeshell.org/notebook/


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Emacs-orgmode] org-publish error

2006-06-22 Thread David O'Toole

Looking at the backtrace, I'd say the error occurs inside
org.el. Carsten, perhaps you could look at this? 

Leon <[EMAIL PROTECTED]> writes:

> Hi all,
>
> org 4.38
>
> When I delete the published html file, sequent publish will fail with
> error. Here is the backbrace.
>
> Debugger entered--Lisp error: (error "File ~/Desktop/studyplan.html no longer 
> exists!")
>   signal(error ("File ~/Desktop/studyplan.html no longer exists!"))
>   error("File %s no longer exists!" "~/Desktop/studyplan.html")
>   find-file-noselect("./studyplan.html")
>   (let* ((opt-plist ...) (style ...) (link-validate ...) valid (odd 
> org-odd-levels-only) (region-p ...) (region ...) (all_lines ...) (lines ...) 
> (level 0) (line "") (origline "") txt todo (umax nil) (filename ...) 
> (current-dir ...) (buffer ...) (levels-open ...) (date ...) (time ...) 
> (author ...) (title ...) (quote-re0 ...) (quote-re ...) (inquote nil) 
> (infixed nil) (in-local-list nil) (local-list-num nil) (local-list-indent 
> nil) (llt org-plain-list-ordered-item-terminator) (email ...) (language ...) 
> (text ...) (lang-words nil) (target-alist nil) tg (head-count 0) cnt (start 
> 0) (coding-system ...) (coding-system-for-write ...) 
> (save-buffer-coding-system ...) (charset ...) table-open type table-buffer 
> table-orig-buffer ind start-is-num ...) (message "Exporting...") (setq 
> org-last-level 1) (org-init-section-numbers) (setq lang-words (or ... ...)) 
> (if (or hidden ...) (set-buffer buffer) (switch-to-buffer-other-window 
> buffer)) (erase-buffer) (fundamental-mode) (let (... ...) (mapcar ... 
> org-export-plist-vars) (setq umax ...) (insert ...) (insert ...) (when ... 
> ... ...) (if org-export-with-toc ...) (setq head-count 0) 
> (org-init-section-numbers) (while ... ...) (when inquote ...) (when 
> in-local-list ... ...) (org-html-level-start 1 nil umax ... head-count) (when 
> ... ... ...) (if org-export-html-with-timestamp ...) (insert ...) (insert 
> "\n\n") (normal-mode) (goto-char ...) (while ... ...) 
> (goto-char ...) (while ... ...) (save-buffer) (goto-char ...)))
>   org-export-as-html(nil)
>   call-interactively(org-export-as-html)
>   (if (setq ass (assq r2 cmds)) (call-interactively (cdr ass)) (error "No 
> command associated with key %c" r1))
>   (let ((help "[t]   insert the export option template\n[v]   limit export to 
> visible part of outline tree\n\n[a] export as ASCII\n[h] export as HTML\n[b] 
> export as HTML and browse immediately\n[x] export as XOXO\n\n[i] export 
> current file as iCalendar file\n[I] export all agenda files as iCalendar 
> files\n[c] export agenda files into combined iCalendar file\n\n[F] publish 
> current file\n[P] publish current project\n[X] publish... (project will be 
> prompted for)\n[A] publish all projects") (cmds ...) r1 r2 ass) 
> (save-window-excursion (delete-other-windows) (with-output-to-temp-buffer 
> "*Org Export/Publishing Help*" ...) (message "Select command: ") (setq r1 
> ...)) (setq r2 (if ... ... r1)) (if (setq ass ...) (call-interactively ...) 
> (error "No command associated with key %c" r1)))
>   org-export()
>   call-interactively(org-export)
>
> -- 
> Leon
>
>
>
> ___
> Emacs-orgmode mailing list
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

-- 
David O'Toole 
[EMAIL PROTECTED]
http://dto.freeshell.org/notebook/


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Emacs-orgmode] org-publish v1.71

2006-06-10 Thread David O'Toole

Tranforming the filenames/paths during publishing is a nontrivial
problem. This would require changes to both org-publish and org
itself. One way of solving it would be to pass an association list
mapping input filenames to output filenames, this would let you bypass
the normal :publishing-directory setting and set things on a per-file
basis. 

Carsten, what do you think? 

"Chris wallace" <[EMAIL PROTECTED]> writes:

> On 08/06/06, David O'Toole <[EMAIL PROTECTED]> wrote:
>>
>>
>> Bugfix release. Should now allow absolute filenames in the :include
>> directive.
>>
>>
> Thanks.  It works.  Just one more request, so I can use this with my files
> spread across many directories.
>
> When I have
>
> (setq org-publish-project-alist
>  (list
>   '("bright" . (:base-directory "~/bright"
> :base-extension "org"
> :include ("/home/chris/bright/chr5/cng/Readme.org"
> "/home/chris/bright/chr5/phase2/Readme.org")
> :publishing-directory "~/public_html/org"
>
> The two Readme.org files both get published as
> ~/public_html/org/Readme.org.  I would really like them to be
> ~/public_html/org/chr5_cng_Readme.html and
> ~/public_html/org/chr5_phase2_Readme.org.  Ie with the directory relative to
> :base-directory included in the file name.  Is this possible?
>
> My working situation is that under project bright, important directories
> have a Readme.org file containing notes relating to that sub-directory.
> It's handy for writing the notes for the filename to always be Readme.org,
> but less handy for publishing so that my colleagues can see where I'm up to.
>
> Thanks, Chris.

-- 
David O'Toole -- Independent Consultant
[EMAIL PROTECTED]


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Emacs-orgmode] org-publish v1.71

2006-06-08 Thread David O'Toole

Bugfix release. Should now allow absolute filenames in the :include
directive. 

--- Begin Message ---
Hi David,

you can use

(setq allfiles (cons (expand-file-name inc dir) allfiles))

which will cover both absolute and relative file names.

Thanks!

- Carsten

On Jun 7, 2006, at 17:25, David O'Toole wrote:

>
> I will look into this and get back to you.
>
> "Chris wallace" <[EMAIL PROTECTED]> writes:
>
>> On 07/06/06, Carsten Dominik <[EMAIL PROTECTED]> wrote:
>>>
>>>
>>> On Jun 6, 2006, at 18:02, Chris wallace wrote:
>>>
>>>>
>>>> PS. On the subject of org-publish (sort of), one of the things I 
>>>> like
>>>> most about org-mode is that I can have Readme.org files scattered 
>>>> over
>>>> a number of directories and have them all included in the agenda.
>>>> However, org-publish assumes all org files for a single project 
>>>> reside
>>>> in a single directory. I wonder if I am the only one who has several
>>>> directories per project?
>>>
>>> I think you can already use the :include parameter to do this - at
>>> least I hope that you can give absolute path names there.  If not, i
>>> would consider this a bug.
>>
>>
>> So either this is a bug or I'm mis-using the :include parameter.  I 
>> have
>> org-publish-project-alist set as follows:
>>
>> org-publish-project-alist is a variable defined in `org-publish.el'.
>> Its value is
>> (("bright" :base-directory "~/bright"
>>  :base-extension "org"
>>  :include ("/home/chris/bright/chr5/cng/Readme.org"
>> "/home/chris/bright/chr5/phase2/Readme.org")
>>  :publishing-directory "~/public_html/org"
>>  :with-section-numbers nil
>>  :table-of-contents t
>>  :style "> type=\"text/css\">"))
>>
>> When I do M-x org-publish bright the *.org files in ~/bright are 
>> published,
>> but the included files are not.  I also tried with filenames relative 
>> to
>> ~/public/org; same result.  How should I be setting :include?
>>
>> This is with org v. 4.36, org-publish v. 1.70, emacs v. 22.0.50.2
>>
>> Chris.
>>
>>
>>
>> - Carsten
>>>
>>>
>> ___________
>> Emacs-orgmode mailing list
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
> -- 
> David O'Toole -- Independent Consultant
> [EMAIL PROTECTED]
>
>
> ___
> Emacs-orgmode mailing list
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>

--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477


--- End Message ---


-- 
David O'Toole -- Independent Consultant
[EMAIL PROTECTED]
___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Emacs-orgmode] Re: [David O'Toole] Fwd: Re: org-publish future ?

2006-06-07 Thread David O'Toole

I will look into this and get back to you. 

"Chris wallace" <[EMAIL PROTECTED]> writes:

> On 07/06/06, Carsten Dominik <[EMAIL PROTECTED]> wrote:
>>
>>
>> On Jun 6, 2006, at 18:02, Chris wallace wrote:
>>
>> >
>> > PS. On the subject of org-publish (sort of), one of the things I like
>> > most about org-mode is that I can have Readme.org files scattered over
>> > a number of directories and have them all included in the agenda.
>> > However, org-publish assumes all org files for a single project reside
>> > in a single directory. I wonder if I am the only one who has several
>> > directories per project?
>>
>> I think you can already use the :include parameter to do this - at
>> least I hope that you can give absolute path names there.  If not, i
>> would consider this a bug.
>
>
> So either this is a bug or I'm mis-using the :include parameter.  I have
> org-publish-project-alist set as follows:
>
> org-publish-project-alist is a variable defined in `org-publish.el'.
> Its value is
> (("bright" :base-directory "~/bright"
>  :base-extension "org"
>  :include ("/home/chris/bright/chr5/cng/Readme.org"
> "/home/chris/bright/chr5/phase2/Readme.org")
>  :publishing-directory "~/public_html/org"
>  :with-section-numbers nil
>  :table-of-contents t
>  :style " type=\"text/css\">"))
>
> When I do M-x org-publish bright the *.org files in ~/bright are published,
> but the included files are not.  I also tried with filenames relative to
> ~/public/org; same result.  How should I be setting :include?
>
> This is with org v. 4.36, org-publish v. 1.70, emacs v. 22.0.50.2
>
> Chris.
>
>
>
> - Carsten
>>
>>
> ___
> Emacs-orgmode mailing list
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

-- 
David O'Toole -- Independent Consultant
[EMAIL PROTECTED]


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Emacs-orgmode] org-publish.el v1.70

2006-06-07 Thread David O'Toole

I've released org-publish.el v1.70 at 

http://dto.freeshell.org/e/org-publish.el

News for this release: the new function (org-publish-validate-link)
should allow org.el to filter out links to files that aren't actually
published, during conversion to HTML. Something like this was
originally requested by Austin Frank (hi austin!)

Be advised, this feature is in its early stages, and could be totally
wrong :-)


-- 
David O'Toole -- Independent Consultant
[EMAIL PROTECTED]


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [David O'Toole] Fwd: Re: [Emacs-orgmode] org-publish future ?

2006-06-06 Thread David O'Toole

I tend to agree... I wasn't that hot about this possibility myself,
but thought it would be prudent to ask. 

Carsten Dominik <[EMAIL PROTECTED]> writes:

> On Jun 5, 2006, at 23:19, David O'Toole wrote:
>>
>> On a related note, Carsten are you reading? Something came up in IRC
>> discussion, about making it easier to convert org documents to other
>> formats. Although I am a bit resistant to the idea, especially since
>> it would take things in a more muse-ish direction, I remember you had
>> mentioned making a "cleaned up" publishing function that produces an
>> intermediate format (s-expressions?) that could be transformed into
>> something else. Are you still thinking about this?
>
> My interest in exporting Org-mode to more formats is quite limited.  I
> am not using Org-mode to write books.  And if I want to produce a
> book, moving away from the fantastic toolset for LaTeX available under
> Emacs to something that limits my possibilities to a subset of LaTeX
> is a loss, not a gain.
>
> Personally, I am not often in a situation where I need to produce many
> different output formats of a document.  The only major application
> for this is documentation, for example of computer programs produce
> documentation.  There are many systems that can do this, for example
> POD (developed for the perl documentation), TeXInfo, muse.  I don't
> see why Org-mode needs to be able to do the same.
>
> The one thing I would be interested in is indeed to produce one very
> general format that would allow people to do with it whatever they
> want.  My feeling is that such a format could be based on the current
> HTML exporter because it does a complete structural analysis of an
> Org-mode document, and the output could be some kind of semantic-only
> HTML, or XML, or whatever.  I have not taken any steps toward
> implementing this, and right now I don't see it happening.
>
> - Carsten
>
>

-- 
Dave O'Toole
[EMAIL PROTECTED]


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


  1   2   >