Re: [O] Trouble with capture template and prompt

2016-09-14 Thread Bart Bunting
Adam,

I sort of had already narrowed it down but am unsure of how to debug
further.

Removing %^{Todo}  from the template and everything works.

Of course the thing that doesn't work is that org no longer prompts me
for the title of the task to create which makes me sad :).

Any suggestions on how to dig into this further?

Here is the output when debug-on-error is set to t:

Debugger entered--Lisp error: (error "Capture abort: (error Key sequence C-c ! 
starts with non-prefix key C-c)")
  signal(error ("Capture abort: (error Key sequence C-c ! starts with 
non-prefix key C-c)"))
  error("Capture abort: %s" (error "Key sequence C-c ! starts with non-prefix 
key C-c"))
  org-capture(nil)
  #(org-capture nil)
  apply(# org-capture nil)
  ad-Advice-funcall-interactively(# org-capture nil)
  apply(ad-Advice-funcall-interactively # 
(org-capture nil))
  funcall-interactively(org-capture nil)
  #(org-capture nil nil)
  ad-Advice-call-interactively(# org-capture nil nil)
  apply(ad-Advice-call-interactively # (org-capture 
nil nil))
  call-interactively(org-capture nil nil)
  command-execute(org-capture)

I have some other bits of org config in my main config file but not sure
that they would cause breakage like this.

The other thing is that I use emacspeak which is probably the advice
calls shown in the debug above.  Hard for me to test without it though
as then I can't use emacs.

Could try ripping out almost all of the org config and see if that
helps.

I could also try an earlier version of emacspeak in case the error is
being caused by the advice in some strange way.


Kind regards

Bart

Adam Porter  writes:

> Bart Bunting  writes:
>
>> Several of the entries I do not use but thought I should include the
>> entire variable.
>
> Hi Bart,
>
> Well, that looks okay to me.  Going back to the original error message
> you provided, isn't C-c ! bound to insert an inactive org timestamp by
> default?  It's strange that it would be involved here.
>
> I think that whatever is the problem, it's not in the capture templates,
> but somewhere else in your Org config.  But I would suggest, as a first
> step, trying to reduce the problematic capture template to the bare
> minimum, item by item, to see if you can make it work without the error.
> If you can, whatever you remove that's causing it should point you
> toward the problem.
>
> One other thing, you said that that code is from .customize.  Is there
> anything related to the capture templates in your other config files?
>
>
Bart
-- 

Bart Bunting



Re: [O] Trouble with capture template and prompt

2016-09-13 Thread Bart Bunting
Adam,

Here it is from .customize.

Several of the entries I do not use but thought I should include the
entire variable.

 '(org-capture-templates
   (quote
(("t" "todo" entry
  (file "~/.org/refile.org")
  "* TODO %^{Todo} 
%u
%a
%?" :clock-in t :clock-resume t)
 ("r" "respond" entry
  (file "~/.org/refile.org")
  "* NEXT Respond to %:from on %:subject
SCHEDULED: %t
%U
%a
" :immediate-finish t :clock-in t :clock-resume t)
 ("n" "note" entry
  (file "~/.org/refile.org")
  "* %? :NOTE:
%U
%a
" :clock-in t :clock-resume t)
 ("j" "Journal" entry
  (file+datetree "~/.org/diary.org")
  "* %?
%U
" :clock-in t :clock-resume t)
 ("w" "org-protocol" entry
  (file "~/.org/refile.org")
  "* TODO Review %c
%U
" :immediate-finish t)
 ("m" "Meeting" entry
  (file "~/.org/refile.org")
  "* MEETING with %? :MEETING:
%U" :clock-in t :clock-resume t)
 ("p" "password" entry
  (file "~/filing/p/passwords.gpg")
  "* %^{Title}
   %^{USERNAME}p %^{PASSWORD}p")
 ("P" "Phone call" entry
  (file "~/.org/refile.org")
  "* PHONE %? :PHONE:
%U" :clock-in t :clock-resume t)
 ("h" "Habit" entry
  (file "~/.org/refile.org")
  "* NEXT %?
%U
%a
SCHEDULED: %(format-time-string \"<%Y-%m-%d %a .+1d/3d>\")
:PROPERTIES:
:STYLE: habit
:REPEAT_TO_STATE: NEXT
:END:
"


Kind regards
Adam Porter  writes:

> Bart Bunting  writes:
>
>> The error that is shown in the messages buffer is:
>>
>> Template key: 
>> Capture abort: (error Key sequence C-c ! starts with non-prefix key C-c) 
>
> I think this means that you have tried to specify the capture template
> key incorrectly.  It would be helpful if you could show us the elisp
> code that defines the template rather than the customize-option screen.
> :)  e.g.:
>
> #+BEGIN_SRC elisp
> '(("a" "Appointment" entry
>(file+datetree+prompt
> (concat org-directory "/calendar.org")
> "Calendar")
>"* %^{Description} %T %^G\n\n%U %?" :clock-in t :clock-resume t)
>   ("t" "Task" entry
>(file "")
>"* TODO %^{Description}%^G\n\n%U %?" :clock-in t :clock-resume t))
> #+END_SRC
>
>
Bart
-- 

Bart Bunting



[O] Trouble with capture template and prompt

2016-09-12 Thread Bart Bunting

Hi,

Tried to send this to the list a few days back but don't think it made
it.

Sorry if it is duplicated.

-

Hi,

I have the following capture template defined in the customize
interface.

It used to work ok but now gives a cryptic (well at least to me) error:

I think I've narrowed down the part that is breaking to the title prompt
definition.

Can anyone point out what I'm doing wrong.

I'm running org-mode from master compiled this morning.

This is not a new problem it's been around for a while I just haven't
tried to chase it down.

Here is the custom definition:

INS DEL Choice: Value Menu Template entry:
Keys   : t
Description: todo
Capture Type   : Value Menu Org entry
Target location: Value Menu File:
Filename   : Value Menu Literal: ~/.org/refile.org
Template   : Value Menu String: * TODO %^{Todo} 
%u
%a
%?
Plist:
[ ] Key: :prepend t
[ ] Key: :immediate-finish t
[ ] Key: :jump-to-captured t
[ ] Key: :empty-lines 1
[ ] Key: :empty-lines-before 1
[ ] Key: :empty-lines-after 1
[X] Key: :clock-in t
[ ] Key: :clock-keep t
[X] Key: :clock-resume t
[ ] Key: :unnarrowed t
[ ] Key: :table-line-pos t
[ ] Key: :kill-buffer t
INS

The error that is shown in the messages buffer is:

Template key: 
Capture abort: (error Key sequence C-c ! starts with non-prefix key C-c) 

Any help would be appreciated.

Kind regards
Bart
Kind regards
Bart
-- 

Bart Bunting



[O] Trouble with capture template and prompt

2016-09-06 Thread Bart Bunting

Hi,

I have the following capture template defined in the customize
interface.

It used to work ok but now gives a cryptic (well at least to me) error:

I've narrowed down the bit that is breaking to the title prompt
definition.

Can anyone point out what I'm doing wrong.

I'm running org-mode from master compiled this morning.

This is not a new problem it's been around for a while I just haven't
tried to chase it down.

Here is the custom definition:

INS DEL Choice: Value Menu Template entry:
Keys   : t
Description: todo
Capture Type   : Value Menu Org entry
Target location: Value Menu File:
Filename   : Value Menu Literal: ~/.org/refile.org
Template   : Value Menu String: * TODO %^{Todo} 
%u
%a
%?
Plist:
[ ] Key: :prepend t
[ ] Key: :immediate-finish t
[ ] Key: :jump-to-captured t
[ ] Key: :empty-lines 1
[ ] Key: :empty-lines-before 1
[ ] Key: :empty-lines-after 1
[X] Key: :clock-in t
[ ] Key: :clock-keep t
[X] Key: :clock-resume t
[ ] Key: :unnarrowed t
[ ] Key: :table-line-pos t
[ ] Key: :kill-buffer t
INS


The error that is shown in the messages buffer is:

Template key: 
Capture abort: (error Key sequence C-c ! starts with non-prefix key C-c) 

Any help would be appreciated.

Kind regards
Bart
-- 

Bart Bunting



[O] org-store-link dired and files with spaces

2014-04-28 Thread Bart Bunting
Hi everyone,

I'm having an issue with storing links to files with spaces in their
names.

If I visit a dired buffer, use c-c l to store the link of the file under
point and then in an org buffer c-c c-l to insert it.

I find that the file can not be opened from within the org buffer as org
appears to not recognize spaces in the file name and only sees the
filename as the part up until the first space.

An example of a link that does not work:

[[file:resumes/Sandeep%20Salwan%20Satellite%20network%20engineer%20Cover%20Letter.doc][file:resumes/Sandeep
 Salwan Satellite network engineer Cover Letter.doc]]

I don't quite understand why the first part of the link (the
description) is url encoded but not the latter part?

Kind regards
Bart
-- 

Bart Bunting



[O] orgstruct-mode and strange keybindings

2014-02-20 Thread Bart Bunting
Good morning,

I have just started to use orgstruct-mode and have a very strange thing
happening.

I have built from the org-mode git repo as of just now.

Org-struct mode works but appears to have taken over the m and c keys.
Stranger than that it looks like meta and control is a prefix.  I mean
as in typing meta space space. gives this error:

OrgStruct mode enabled
 m e t a SPACE  is undefined

I can't find anything in my config that suggests I'm binding any keys in
a strange way.  In fact I can't find any reference to orgstruct in my
.emacs customize.

Has anyone seen this and or can suggest how I should go about tracking
it down?



Kind regards

Bart
-- 


Kind regards

Bart



Re: [O] Moving by block in the block agenda

2014-02-05 Thread Bart Bunting
Thanks!
Works wonderland wonderfully.


Kind regards
Bart

Bastien  writes:

> Hi Bart,
>
> "Bart Bunting"  writes:
>
>> I have a block agenda defined which is mostly taken from Bernt Hansen's
>> org-mode.org.
>>
>> Some of the blocks contain many entries.  I am trying to find out if
>> there is a simple way to navigate between agenda blocks.
>>
>> The most likely thing I found was org-agenda-goto-block-beginning but it
>> doesn't appear to do that.
>>
>> What am I missing?
>
> Nothing -- I just pushed a change in master which remap
> `backward-paragraph' and `forward-paragraph' to the new commands
> `org-agenda-backward-block' and `org-agenda-forward-block'.
>
> Let me know if it does what you want and thanks for raising this.
>
> Thanks,
>
> -- 
>  Bastien
Bart
-- 


Kind regards

Bart



[O] Moving by block in the block agenda

2014-02-04 Thread Bart Bunting
Hi,

I have a block agenda defined which is mostly taken from Bernt Hansen's
org-mode.org.

Some of the blocks contain many entries.  I am trying to find out if
there is a simple way to navigate between agenda blocks.

The most likely thing I found was org-agenda-goto-block-beginning but it
doesn't appear to do that.

What am I missing?

-- 


Kind regards

Bart



[O] Typo in manual

2013-07-23 Thread Bart Bunting
A trivial typo in the manual. Not sure where else to report this.

12.13 Advanced configuration

   Three arguments must be provided to a fiter: the code being changed,

Guess it should be filter.

Kind regards

Bart



Re: [O] Some advice on how to use babel to generate cisco configs

2013-02-01 Thread Bart Bunting
Thomas,

Thanks!  That is pretty much what I was struggling with.

Thanks for putting it together for me.  

The only other question I have is, is there a way to prevent the results
from appending each time?


Cheers

Bart


"Thomas S. Dye"  writes:

> Aloha Bart,
> "Bart Bunting"  writes:
>
>> Good morning,
>>
>> I have been trying to figure out without much luck how to use babel to
>> generate some cisco configs.
>>
>>
>> What I would like to achieve is to have a table containing a few values,
>> e.g. ip address vlan number etc.
>>
>> Then have a cisco config in the org file with markers where the
>> substitutions are to be inserted.
>> Run through the table and create a node in the org file one for each row
>> of the table.
>>
>> The end result should be a set of cisco configs with the substitutions
>> made.  I was hoping to also use shell to call pwgen to generate a
>> random password to insert.
>>   
>> Hope that ramble made some sort of sence.
>
> I don't know a Cisco config from a fig newton, but here is my sense of
> what you wrote, in case it is helpful.
>
> #+name: cisco-table
> | 1 | one   | two  |
> | 2 | three | four |
> | 3 | five  | six  |
>
> #+header: :results output raw
> #+header: :var x=cisco-table
> #+begin_src python
>   for y in x:
>   s = "* Cisco %s \nTwiddle %s, poke %s \n\n" % tuple(y)
>   print s,
> #+end_src
>
> #+results:
> * Cisco 1 
> Twiddle one, poke two 
>
> * Cisco 2 
> Twiddle three, poke four 
>
> * Cisco 3 
> Twiddle five, poke six 
>
> -- 
> Thomas S. Dye
> http://www.tsdye.com
Bart
-- 


Kind regards

Bart



[O] Some advice on how to use babel to generate cisco configs

2013-01-30 Thread Bart Bunting
Good morning,

I have been trying to figure out without much luck how to use babel to
generate some cisco configs.


What I would like to achieve is to have a table containing a few values,
e.g. ip address vlan number etc.

Then have a cisco config in the org file with markers where the
substitutions are to be inserted.
Run through the table and create a node in the org file one for each row
of the table.

The end result should be a set of cisco configs with the substitutions
made.  I was hoping to also use shell to call pwgen to generate a
random password to insert.
  
Hope that ramble made some sort of sence.

Can someone give me some ideas on how to put this together?

I tried to use an org source block and a shell function to parse it.  I
couldn't quite tie together how to get the output to work correctly or
how to be able to parse each line


Kind regards

Bart
-- 


Kind regards

Bart



[O] org-mime and linked files

2012-08-22 Thread Bart Bunting
Good morning,

I am trying to setup org-mime to send html email.

In the simple case it appears to work very well.
However I am struggling when I try and include a link to a file in the email.

When I hit send I get the following error:
mm-insert-file-contents: Opening input file: No such file or directory,
/var/folders/t6/_1lpjhbj45d10st5clmr5zzhgn/T/file:/tmp/netplan-yearly-graphs.png

The contents of the email is below.  Can anyone give me an idea as to
what might be going wrong here?

-

- Another graph

Lets link to it:

[[file:/tmp/netplan-yearly-graphs.png]]

and it should be there
-

Kind regards

Bart
-- 


Kind regards

Bart



Re: [O] [GSoC] Org-sync

2012-07-16 Thread Bart Bunting
Hi,

Great work!

I would be very interested in a redmine backend.

Cheers

Bart


On Mon, 16 Jul 2012 22:39:34 +0200, Aurélien Aptel 
 wrote:
> Hi all,
> 
> I'm still working on Org-sync, the tool to synchronize external
> services with org-documents. The current focus is still on bug
> trackers. Right now you can test the github and the bitbucket backend.
> I've worked on a cache system that minimize what needs to be
> transfered at each synchronization and I've written Org-sync
> documentation (usage, code & backend programming). You can find more
> on my repo [1].
> 
> There is a simple tutorial on worg [2] with screenshots and all which
> covers the basic usage of the tool. If you read it, feel free to post
> some feedback on this thread.
> 
> There are still some things that need to be fixed before working on
> other backends. Currently, conflicting merge are not handled properly.
> 
> I plan on writing backends for Redmine, Bugzilla, Google Code, Google
> Task, Toodledo, Remember the milk.
> But I may not have the time to do them all. What backends would you
> like me to implement first? Something not in this list?
> 
> 1: http://orgmode.org/w/?p=org-sync.git
> 2: 
> http://orgmode.org/worg/org-contrib/gsoc2012/student-projects/org-sync/tutorial/
> 
Bart
-- 


Kind regards

Bart



Re: [O] calculation question

2011-07-18 Thread Bart Bunting
Hi Bastien,

I presume Jude is using emacspeak with org-mode.

I also use emacspeak.

I have noticed that emacspeak does not read anything done using
overlays.  I am presuming the column and row labels are done this way.

It also means that we can't use column view either as far as I know.

This as I understand it is not really an issue for org-mode but a
current emacspeak limitation.

I'm sure like all things emacs that this can be fixed given enough elisp
knowledge.  Perhaps it's worth Jude or I asking on the emacspeak list
for some advice as to how to solve this problem.


Kind regards

Bart

 

On Tue, 19 Jul 2011 01:10:09 +0200, Bastien  wrote:
> Hi Jude,
> 
> Please type C-c } on a table -- it displays coordinates of the 
> cells so that you can more easily refer to the right one.
> 
> HTH,
> 
> -- 
>  Bastien
> 



Re: [Orgmode] Org support for the notmuch mail client"

2011-02-11 Thread Bart Bunting
+1 from me also.

Bart


On Wed, 09 Feb 2011 20:42:44 +, Andreas Amann  wrote:
> Hi Bastien,
> 
> > I'm not using notmuch myself and I would welcome feedback from notmuch
> > Org users.  I would happily add it to org-mode/contrib/lisp if this is
> > proves useful to several people around.
> 
> Just to say that I use Matthieu's code to do my daily "email to
> todolist" conversion. Nothing spectacular but works reliably as
> advertised. In my opinion it would be a useful addition to org-mode.
> 
> Andreas
> 
> 
> 
> ___
> 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

-- 

Bart Bunting

URSYS Pty. Ltd 
461 Parramatta Rd. Leichhardt NSW  2040  Australia
Ph.   +61 2 8745 2811
Fax  +61 2 8745 2828

___
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: Introducing gnugol - an org-mode-output web search client

2011-01-04 Thread Bart Bunting
Hi Achim,

I had made the silly mistake of not remembering to run ldconfig.  Once
this was done the janson libraries were found and gnugol started working
for me.

Apollogies I didn't get around to posting the fix/thing to remember
earlier.

Thank you very much though for the information, it has taught me several
things I didn't know about tracing things like this.

Cheers


Bart



On Tue, 04 Jan 2011 11:06:38 +0100, Achim Gratz  wrote:
> Bart Bunting  writes:
> > Running into a few issues at the moment:  I did download and build the
> > jansson library which is installed in /usr/local 
> >
> > However when I run gnugol I'm seeing the following error:
> >
> > Errors: google(1): ../engines/google.so: cannot open shared object file: No 
> > such file or directory
> > google: failed to acquire shared lib
> >
> > Warnings:google(1): Not in default location, error: libjansson.so.0: cannot 
> > open shared object file: No such file or directory
> 
> You will either need to set up the DT_RUNPATH section in the executable
> to point to where the library is installed or set up the LD_LIBRARY_PATH
> environment variable to include the correct location.  The first option
> requires to edit the linker invocation in the makefile, while the latter
> is best done via a wrapper script that then calls the executable.
> 
> > I have the *.so files from gnugol in the default place that the makefile
> > puts them, /var/lib/gnugol.  I also tried simlinking them into
> > /usr/local/lib but this doesn't appear to make any difference.
> >
> > The error also suggests that the janson library isn't being found.
> >
> > Although the ldd output doesn't appear to list it?
> 
> Try 'ldd -v', if that also doesn't show anything, then most likely the
> program itself dynamically loads new libraries at runtime (probably
> after a fork).  Setting LD_TRACE_LOADED_OBJECTS (preferrably in a
> wrapper script) to something non-empty should then give some ldd-like
> output.
> 
> 
> Achim.
> -- 
> +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
> 
> Wavetables for the Waldorf Blofeld:
> http://Synth.Stromeko.net/Downloads.html#BlofeldUserWavetables
> 
> 
> ___
> 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

-- 

Bart Bunting

URSYS Pty. Ltd 
13 Burwood Rd.  Burwood  NSW  2134  Australia
Ph.   +61 2 8745 2811
Fax  +61 2 8745 2828

___
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] Introducing gnugol - an org-mode-output web search client

2011-01-03 Thread Bart Bunting
ch for
> 
> In Emacs, esc-x gnugol phrase to look for
> 
> Example output:
> 
> # note, wrapped by my mail client, not gnugol
> d...@cruithne:~/src/gnugol$ gnugol org-mode search engine
> 
> ** [[http://orgmode.org/worg/blorgit.php][Blorgit: Org-Mode based, git
> amenable, blogging engine]]
>Blorgit is a blogging engine which uses Org-Mode for markup, runs on
> the Search The search bar compares your search terms as a perl-style
> regular
> **
> [[http://orgmode.org/worg/org-tutorials/advanced-searching.php][Advanced
> searching - Org-Mode]]
>For querying a collection of org files, Org-mode includes a powerful
> built
> ** [[http://orgmode.org/worg/org-contrib/org-mac-maillink.php][Org Link
> -- create Org-mode hyperlinks to Entourage mail messages]]
>The default is "copy-org-link". Then enter the exact key combination
> that
> **
> [[http://metajack.im/2009/01/01/journaling-with-emacs-orgmode/][Journaling
> with Emacs OrgMode]]
>Jan 1, 2009 (interactive) (switch-to-buffer (find-file
> org-journal-file)) (widen) (let (( today a real-time search engine for
> the Web, and Chesspark,
> ** [[http://www.emacswiki.org/emacs/OrgMode][EmacsWiki: Org Mode]]
>Aug 9, 2010 Lisp:org-mairix.el integrates Org mode with mairix email
> search. outline-magic. el Google's Code Hosting feature has a new wiki
> engine.
> 
> ... Submitted in the hope that this might be useful and interesting... enjoy
> 
> --
> Dave Taht
> http://nex-6.taht.net
> 
> ___
> 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

-- 

Bart Bunting

URSYS Pty. Ltd 
13 Burwood Rd.  Burwood  NSW  2134  Australia
Ph.   +61 2 8745 2811
Fax  +61 2 8745 2828

___
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] Business process diagrams in org-mode

2010-11-15 Thread Bart Bunting
Hi Eric,

Thanks very much for the suggestion!

I'm not familiar with dot but will invest some time to see if I can get
my head around it.  

This sounds like a good solution.  Perhaps just writing directly in dot
will solve my problem.

Cheers

Bart

  On Mon, 15 Nov 2010 11:25:12 +, Eric S Fraga  wrote:
> Bart Bunting  writes:
> 
> > Hi All,
> >
> > This is a little bit of a vague question but was hopeing that someone
> > may have some pointers.
> >
> > I am trying to create some business processes with both textual
> > descriptions of the process in a table format with step numbers and
> > descriptions etc.  I was hopeing to be able to automagicaly convert the
> > tabular format into a business process diagram.
> >
> > I was wondering if anyone has done this in the past using org-mode and
> > bable some how?
> >
> > As I am blind I can't successfully create such diagrams using drawing
> > software.  It occurred to me though that it should (could) be possible
> > to create diagrams from sufficient information in a table structure.
> >
> > The diagrams are the usual flow chart style of thing with steps and 
> > descision
> > points causing the flow to branch to another point.  I thought that if
> > we had something like the following it may be possible to generate a
> > diagram.
> >
> >
> >
> > | Step| Description 
> > | Next Steps   |
> > |-+-+--|
> > | Begin   | Begin the process   
> > | Choice1  |
> > | Choice1 | Decide if we are big or small.  
> > | Big,Small|
> > | Big | If we are big then do big things
> > | End  |
> > | Small   | If we are small then figure out if we are really small or 
> > possibly big. | ReallySmall, Big |
> > | ReallySmall | Yes we are really small 
> > | End  |
> > | End | The end.
> > |  |
> > |-+-+--|
> >
> >
> > This would represent a process where we start, make a choice if we are big 
> > or small.  If we are big we do big things and end.  If we are small we make 
> >  a choice if we are really small or actually big.  If we decide we are 
> > actualy big then we go back to the big step.  If not we go on to the end.
> >
> >
> > Anyway just thought I'd ask in case someone had a suggestion how this could 
> > be done using org-mode.
> >
> > Cheers
> >
> > Bart
> >
> > ___
> > 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
> 
> Bart,
> 
> others have already pointed you to some code I wrote to convert tables
> into GANTT charts using tikz in LaTeX.  For this problem, however, I
> would suggest that converting a table to dot format (cf. graphviz [1])
> might be more appropriate.  dot will generate quite nice graphs or
> trees.  tikz can do it as well but you might find it easier with dot.
> 
> The one issue will be parsing your /Next Steps/ column.  You might find
> it easier to have next steps be a variable number of columns, one for
> each step for a particular step with empty entries for those that don't
> have many next steps.  I hope that makes some sort of sense...
> 
> The table above would be converted to something like:
> 
> #+begin_src dot
> digraph process {
>   begin [label="Begin the process"];
>   choice1 [label="Decide if we are big or small"];
> 
>   begin -> choice1;
> 
>   ...
> }
> #+end_src
> 
> I can't help with this at the moment (swamped at work) unfortunately but
> have a look at my GANTT code and see if that can give you a start.  I'll
> have more time in a couple of weeks hopefully.
> 
> HTH,
> eric
> 
> Footnotes: 
> [1]  http://www.graphviz.org/
> 
> -- 
> : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
> : using Org-mode version 7.3 (release_7.3.78.ge04ba)

-- 

Bart Bunting

URSYS Pty. Ltd 
13 Burwood Rd.  Burwood  NSW  2134  Australia
Ph.   +61 2 8745 2811
Fax  +61 2 8745 2828

___
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] Business process diagrams in org-mode

2010-11-13 Thread Bart Bunting
Hi All,

This is a little bit of a vague question but was hopeing that someone
may have some pointers.

I am trying to create some business processes with both textual
descriptions of the process in a table format with step numbers and
descriptions etc.  I was hopeing to be able to automagicaly convert the
tabular format into a business process diagram.

I was wondering if anyone has done this in the past using org-mode and
bable some how?

As I am blind I can't successfully create such diagrams using drawing
software.  It occurred to me though that it should (could) be possible
to create diagrams from sufficient information in a table structure.

The diagrams are the usual flow chart style of thing with steps and descision
points causing the flow to branch to another point.  I thought that if
we had something like the following it may be possible to generate a
diagram.



| Step| Description 
| Next Steps   |
|-+-+--|
| Begin   | Begin the process   
| Choice1  |
| Choice1 | Decide if we are big or small.  
| Big,Small|
| Big | If we are big then do big things
| End  |
| Small   | If we are small then figure out if we are really small or 
possibly big. | ReallySmall, Big |
| ReallySmall | Yes we are really small 
| End  |
| End | The end.
|  |
|-+-+--|


This would represent a process where we start, make a choice if we are big or 
small.  If we are big we do big things and end.  If we are small we make  a 
choice if we are really small or actually big.  If we decide we are actualy big 
then we go back to the big step.  If not we go on to the end.


Anyway just thought I'd ask in case someone had a suggestion how this could be 
done using org-mode.

Cheers

Bart

___
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: help with tables and code blocks?

2010-08-08 Thread Bart Bunting
On Sun, 08 Aug 2010 15:34:02 -0400, Dan Davison  wrote:
Dan,

Thank you very much for that explanation! 

This makes the whole thing much clearer.

Do you know where the sbe call is documented in the manual?  I couldn't
find it my self.

Thanks again.

Bart


> Bart Bunting  writes:
> 
> > Hi everyone,
> >
> > I'm trying to get my head around babel and getting info back into a
> > table.
> >
> > The below org file tracks expenses and the perl code simply sums them
> > up.
> >
> > The code is working but I now want to get the total back into another 
> > table.  What I have is not
> > working can someone tell me what I'm doing wrong here?
> >
> > Cheers
> >
> > Bart
> >
> > * Expenses
> >
> > #+tblname: expenses
> > |+---+|
> > |   Date | What  | Amount |
> > |+---+|
> > | 2010-07-26 | Breakfast |  5 |
> > | 2010-07-26 | groceries |8.5 |
> > | 2010-07-26 | butchers - chicken|5.5 |
> > | 2010-07-27 | umart - video card, kvm, speakers |136 |
> >
> > * Code
> >
> > #+srcname: totals 
> > #+begin_src perl  :var details=expenses[1:-1]
> >   my $total = 0;
> >   foreach my $row  (@$details) {
> >   $total += @$row[2];
> >   }
> >   
> > return $total;
> > #+end_src
> >
> > #+results: totals
> > : 155
> >
> >
> >
> > * Totals
> >
> > | Total | #ERROR |
> >   #+TBLFM: $2=#+call: totals(details=expenses)
> 
> Hi Bart,
> 
> You've mixed up #+call and sbe there. sbe is what you want to use in a
> table formula; #+call and #+lob are for standalone lines. Here are a few
> examples of different ways to do what you're doing. Hopefully they make
> things clear.
> 
> Dan
> 
> --8<---cut here---start->8---
> 
> * Totals
> ** Using a table formula
> 
> *** Relying on default argument to totals block
> | Total | 155 |
> #+TBLFM: $2='(sbe "totals")
> 
> *** Providing argument explicitly
> 
> The dots are a bug. We'll fix it.
> 
>  version 1
> | Total | 155... |
> #+TBLFM: $2='(sbe "totals(details=expenses[1:-1])")
> 
>  version 2
> | Total | 155... |
> #+TBLFM: $2='(sbe "totals" (details "expenses[1:-1]"))
> 
> 
> ** Using call/lob
> 
> #+call and #+lob are synonyms
> 
> *** Relying on default argument to totals block
> 
> #+call: totals()
> 
> #+results: totals()
> : 155
> 
> or equivalently (it outputs into the same results block):
> 
> #+lob: totals()
> 
> *** Providing argument explicitly
> #+call: totals(details=expenses[1:-1])
> 
> #+results: totals(details=expenses[1:-1])
> : 155
> 
> --8<---cut here---end--->8---
> 
> 
> 
> 
> >
> > ___
> > 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

-- 

Bart Bunting

URSYS Pty. Ltd 
13 Burwood Rd.  Burwood  NSW  2134  Australia
Ph.   +61 2 8745 2811
Fax  +61 2 8745 2828

___
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: help with tables and code blocks?

2010-08-08 Thread Bart Bunting

Hi everyone,

I'm trying to get my head around babel and getting info back into a
table.

The below org file tracks expenses and the perl code simply sums them
up.

The code is working but I now want to get the total back into another table.  
What I have is not
working can someone tell me what I'm doing wrong here?

Cheers

Bart

* Expenses

#+tblname: expenses
|+---+|
|   Date | What  | Amount |
|+---+|
| 2010-07-26 | Breakfast |  5 |
| 2010-07-26 | groceries |8.5 |
| 2010-07-26 | butchers - chicken|5.5 |
| 2010-07-27 | umart - video card, kvm, speakers |136 |

* Code

#+srcname: totals 
#+begin_src perl  :var details=expenses[1:-1]
  my $total = 0;
  foreach my $row  (@$details) {
  $total += @$row[2];
  }
  
return $total;
#+end_src

#+results: totals
: 155



* Totals

| Total | #ERROR |
  #+TBLFM: $2=#+call: totals(details=expenses)

___
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] LaTeX table export issue

2010-07-22 Thread Bart Bunting
Hi all,

I have found what is possibly a bug in the LaTeX export in org-mode but
I'm not totally sure.

I am no LaTeX expert, in fact I know very little about it.  I have used
a process of ilimination to try and produce the simplest case I can to
demonstrate the issue.

What happens is that if I have a table at the top of my document before
a heading line and use the  #+ATTR_LaTeX: setting it appears that the
settings used in that #+ATTR_LaTeX: line are then used for all
subsequent tables and other #+ATTR_LaTeX: lines are ignored.

If I add a heading line before the first #+ATTR_LaTeX: line then each
table works as expected.

To demonstrate the issue I have created the small org-mode file below. 

Steps to reproduce:

- copy the below text into a .org file.
- remove the "Section One" heading.
- export to pdf.

You will see that the second table inherits the settings from the first.

Next:
- Put the "Section One" heading back.
- Export to pdf again.

You will see that now each table has it's own correct settings.

I hope this makes sense to someone :)

Regards

Bart

--- Sample org file ---
  

* Section One
#+ATTR_LaTeX: align=|p{50mm}|p{50mm}|
|---+--+--|
|   | Reference   | 333 |
|---+--+--|
|   | Document Name:   | wibble   |
|---+--+--|


* Section Two

#+ATTR_LaTeX: align=|p{50mm}|p{40mm}|p{30mm}|
|---++---|
| Plan  | Contention | Monthly   |
|---++---|
| 512/256Kbps   |   16:1 | $565.00   |
|---++---|



___
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] OT: Help making LaTex export

2009-09-11 Thread Bart Bunting
Hi all,

 

This may be a little off topic but I wasn't sure where else to ask so here
goes.

 

I use org mode all the time for work.  I would like to use it more for
producing documents e.g. proposals, statements of work etc.  The issue I
have is that we have a specific word template that my bosses insist on
using.  This is really just a logo and specific title page headers and
footer etc.  They are concerned about the look of the document, producing
pdfs would be fine.

 

My problem is this:

I am blind so it's difficult to get the layout and style of the document
correct when working with LaTeX.  I was hoping there may be someone willing
to take a look at the template and see if it would be possible to write some
LaTeX so that when I export my documents from org they look the same as our
standard template.  There isn't anyone else at my work who knows LaTeX that
can do this so I thought maybe someone out there would possibly be
interested.

 

I of course would be willing to pay for the effort involved.

 

If anyone is able to assist if they would like to contact me off list that
would be great!

 

b...@ursys.com.au

 

Thanks in advance and apologies for the off topic message.

 

Regards

 

Bart

 

___
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-search-view and files without headlines

2009-05-23 Thread Bart Bunting
Carsten,

No worries, these are old files and there are a lot of them I just thought
if it was easy to add.  I can just write a script to add a headline to the
top of each file.  

Cheers

Bart


-Original Message-
From: emacs-orgmode-bounces+bart=bunting.net...@gnu.org
[mailto:emacs-orgmode-bounces+bart=bunting.net...@gnu.org] On Behalf Of
Carsten Dominik
Sent: Sunday, 24 May 2009 5:51 AM
To: Bart Bunting
Cc: emacs-orgmode@gnu.org
Subject: Re: [Orgmode] org-search-view and files without headlines


On May 22, 2009, at 12:34 AM, Bart Bunting wrote:

> Hi,
>
> I have been experimenting using org-search-view to search my large  
> amount of notes files.
>
> Some of these are org files and others are just text without any  
> headings.
>
> I have found that if there is a match in one of the text files that  
> does not contain an org headline then org-mode ignores it.
>
> Would it be possible to have a generic entry created for the agenda  
> view, perhaps with just the filename of the match?

This is non-trivial, why don't you get into the habit to always add a  
headline
in notes files ?

- CarstenD

>
> If there is a way of doing this already that I'm missing I'd  
> appreciate any pointers.
>
> Thanks for an invaluable emacs mode!
>
> Bart
>
> ___
> 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

No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.5.339 / Virus Database: 270.12.37/2130 - Release Date: 05/23/09
07:00:00



___
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-search-view and files without headlines

2009-05-23 Thread Bart Bunting
Hi,

 

I have been experimenting using org-search-view to search my large amount of
notes files.  

 

Some of these are org files and others are just text without any headings.

 

I have found that if there is a match in one of the text files that does not
contain an org headline then org-mode ignores it.

 

Would it be possible to have a generic entry created for the agenda view,
perhaps with just the filename of the match?

 

If there is a way of doing this already that I'm missing I'd appreciate any
pointers.

 

Thanks for an invaluable emacs mode!

 

Bart

 

___
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