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 <a...@alphapapa.net> writes:

> Bart Bunting <b...@bunting.net.au> 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 <a...@alphapapa.net> writes:

> Bart Bunting <b...@bunting.net.au> 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



Re: [O] [PATCH] ob-java.el: Add `:var' variables import

2014-07-31 Thread Bart Post
Hi Bastien,

On Mon, Jul 28, 2014 at 4:25 PM, Bastien b...@gnu.org wrote:

 Bart Post bart.p...@gmail.com writes:

  Thanks for your reply! I already started the copyright assignment
  process, for now I need to wait for a disclaimer form from my
  employer, but I will notify you as soon as there is progress.

 Did you get this sorted out?


Not yet, sorry. But I'm on it!

 While discussing the patch with a roommate, we came to the conclusion
  that a java class which implements, extends or throws, may not
  compile correctly with the added data. So the patch will need some
  rework, or documentation about (im-)possible usage situations.

 Thanks for letting us know -- thanks!


No problem, I hope to be able to help out there, too.

Best,
Bart


Re: [O] [PATCH] ob-java.el: Add `:var' variables import

2014-06-25 Thread Bart Post
Hi Bastien,

Thanks for your reply! I already started the copyright assignment process,
for now I need to wait for a disclaimer form from my employer, but I will
notify you as soon as there is progress.

While discussing the patch with a roommate, we came to the conclusion that
a java class which implements, extends or throws, may not compile correctly
with the added data. So the patch will need some rework, or documentation
about (im-)possible usage situations.

In any way, there will be more!

Regards,
Bart


On Wed, Jun 25, 2014 at 10:44 AM, Bastien b...@gnu.org wrote:

 Hi Bart,

 Thanks for the patch.  It is larger than what we can apply into Org's
 core without a copyright assignment.  You can start the process of
 signing by filling this form:

 http://orgmode.org/cgit.cgi/org-mode.git/plain/request-assign-future.txt

 In the meantime, if someone who speaks java can review the patch,
 that'd be great!

 Thanks,

 --
  Bastien



[O] [PATCH] ob-java.el: Add `:var' variables import

2014-06-22 Thread Bart Post

* lisp/ob-java.el: (org-babel-execute:java): Inject a private static
class inside the Java class designated by
`:classname'.
(org-babel-variable-assignments:java): Assign the header variables to
static fields in a private static class
`Data'.
(org-babel-java-var-to-java): Translate string to String, list to
java.util.List, float to double and others to int.
---
 lisp/ob-java.el | 39 ++-
 1 file changed, 38 insertions(+), 1 deletion(-)

diff --git a/lisp/ob-java.el b/lisp/ob-java.el
index 8c64171..a2a1f40 100644
--- a/lisp/ob-java.el
+++ b/lisp/ob-java.el
@@ -58,7 +58,13 @@ parameters may be used, like javac -verbose
 (src-file (concat classname .java))
 (cmpflag (or (cdr (assoc :cmpflag params)) ))
 (cmdline (or (cdr (assoc :cmdline params)) ))
-(full-body (org-babel-expand-body:generic body params))
+(split-body
+ (split-string body (concat classname [\n\t ]*{)))
+(full-body
+ (org-babel-expand-body:generic
+  (concat (car split-body) (concat classname  {\n) 
(org-babel-variable-assignments:java params)
+  (mapconcat 'identity (cdr split-body) (concat classname  
{)))
+  params))
 (compile
  (progn (with-temp-file src-file (insert full-body))
 (org-babel-eval
@@ -80,6 +86,37 @@ parameters may be used, like javac -verbose
(org-babel-pick-name
 (cdr (assoc :rowname-names params)) (cdr (assoc :rownames params)))
 
+(defun org-babel-variable-assignments:java (params)
+  Return an internal Java class assigning the block's variables.
+  (concat private static class Data {\n
+ (mapconcat 'identity
+(mapcar
+ (lambda (pair)
+   (format public static %s %s = %s;
+   (cond
+((stringp (cdr pair)) String)
+((listp (cdr pair)) java.util.List)
+((floatp (cdr pair)) double)
+(t int))
+   (car pair)
+   (org-babel-java-var-to-java (cdr pair
+ (mapcar #'cdr (org-babel-get-header params :var)))
+\n)
+ \n})
+  )
+
+(defun org-babel-java-var-to-java (var)
+  Convert an elisp value to a java string.
+Convert an elisp value, VAR, into a string of Java source code
+specifying a variable of the same value.
+  (if (listp var)
+  (concat java.util.Arrays.asList( (mapconcat 
#'org-babel-java-var-to-java var , ) ))
+(if (equal var 'hline)
+   null
+  (format
+   (if (and (stringp var) (string-match [\n\r] var)) \\%S\\ %S)
+   var
+
 (provide 'ob-java)
 
 
-- 
1.9.1




[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 b...@gnu.org writes:

 Hi Bart,

 Bart Bunting b...@bunting.net.au 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 t...@tsdye.com writes:

 Aloha Bart,
 Bart Bunting b...@bunting.net.au 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 
aurelien.aptel+em...@gmail.com 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



[O] Hyperlink to Lotus Notes documents

2011-10-05 Thread bart
Hi all,

Is there a way how to create external link to Lotus Notes document? Links
work fine in MS Office, in internet browser, but I haven't found any way,
how to make it work in Org mode in Emacs... The sample links are as follows:

Notes://BBMCZH1/C125771B00548CB1/CCBFC5B4442395E0C12570C4004563E1/049B02105C555056C12578EA003ACADA

notes://BBMCZH1@BBMCZ
@BBRAUN/__C125789A0054D94A.nsf/0/3A8D40C8D67679F5C12578BC004B064A?OpenDocument

These are sample links to documents in Lotus Notes. These links work in MS
Word (and browser as well), but I just cannot use it in Emacs. I know, that
there is some way, how to program new hyperlink type, but I'm just a basic
user...

Thanks for help

Rgds,
David


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 b...@altern.org 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 a.am...@ucc.ie 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 strom...@nexgo.de wrote:
 Bart Bunting b...@ursys.com.au 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
Hi Dave,

I have tried to download the git source of gnugol and compile it.

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

b...@zig:~/src/Gnugol$ 

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?

$ which gnugol
/usr/local/bin/gnugol
b...@zig:~/src/Gnugol$ ldd /usr/local/bin/gnugol
linux-vdso.so.1 =  (0x7fffab5ff000)
libcurl-gnutls.so.4 = /usr/lib/libcurl-gnutls.so.4 (0x7f8c9eccc000)
libdl.so.2 = /lib/libdl.so.2 (0x7f8c9eac8000)
libc.so.6 = /lib/libc.so.6 (0x7f8c9e744000)
libidn.so.11 = /usr/lib/libidn.so.11 (0x7f8c9e511000)
liblber-2.4.so.2 = /usr/lib/liblber-2.4.so.2 (0x7f8c9e303000)
libldap_r-2.4.so.2 = /usr/lib/libldap_r-2.4.so.2 (0x7f8c9e0b7000)
librt.so.1 = /lib/librt.so.1 (0x7f8c9deae000)
libgssapi_krb5.so.2 = /usr/lib/libgssapi_krb5.so.2 (0x7f8c9dc79000)
libz.so.1 = /lib/libz.so.1 (0x7f8c9da6)
libgnutls.so.26 = /usr/lib/libgnutls.so.26 (0x7f8c9d7bf000)
libgcrypt.so.11 = /lib/libgcrypt.so.11 (0x7f8c9d545000)
/lib64/ld-linux-x86-64.so.2 (0x7f8c9ef44000)
libresolv.so.2 = /lib/libresolv.so.2 (0x7f8c9d329000)
libsasl2.so.2 = /usr/lib/libsasl2.so.2 (0x7f8c9d10f000)
libpthread.so.0 = /lib/libpthread.so.0 (0x7f8c9cef1000)
libkrb5.so.3 = /usr/lib/libkrb5.so.3 (0x7f8c9cc2c000)
libk5crypto.so.3 = /usr/lib/libk5crypto.so.3 (0x7f8c9ca05000)
libcom_err.so.2 = /lib/libcom_err.so.2 (0x7f8c9c801000)
libkrb5support.so.0 = /usr/lib/libkrb5support.so.0 (0x7f8c9c5f8000)
libtasn1.so.3 = /usr/lib/libtasn1.so.3 (0x7f8c9c3e7000)
libgpg-error.so.0 = /lib/libgpg-error.so.0 (0x7f8c9c1e3000)
libkeyutils.so.1 = /lib/libkeyutils.so.1 (0x7f8c9bfdf000)
b...@zig:~/src/Gnugol$ 


I'm running the current unstable ubuntu branch natty.  It also appears
to have no package for janson.

Any suggestions would be welcome.

Cheers

Bart
 
On Sun, 02 Jan 2011 15:28:00 -0800, Dave Taht d...@teklibre.org wrote:
 I have been an avid user of org-mode for over 2 years now.
 
 It has grown increasingly painful to exit emacs to use anything else!
 Recently I found that making the jump to web-search-space was bothering
 me...
 
 So over the holiday I wrote a command line web search client with an
 emacs interface and called it gnugol. It uses the google json and bing
 json APIs to search the web, and outputs the results in plain text, in
 whatever format you're working in, notably, org, so you can navigate the
 results in the mind-set you're in.
 
 Gnugol is small, fast, simple, and growing more useful by the day. (I
 wrote the doc (http://gnugol.taht.net) for it in org-mode, too)
 
 It's not fully baked yet, but it's usable/reliable enough to have
 plausible promise for other org-mode users, so I'm announcing it today,
 here, in the hope I'll get comments, criticism, and patches.(especially,
 patches! I'm not much of an elisp hacker, and a full on in-org interface
 is thus far beyond me)
 
 Installation instructions:
 
 gnugol compiles on various linuxen (tested on debian/ubuntu x86, arm,
 x86_64) and OSX
 
 If you are using debian, you should be able to obtain almost all the
 dependencies by doing a:
 
 sudo apt-get install curl-dev
 
 Regrettably, the json library jansson does not have a debian package yet
 (at least on my distro), so you need to download and build it
 separately. The git version has API changes that I haven't grokked yet,
 so get version 1.3 from:
 
 http://www.digip.org/jansson/
 
 And go through the standard ./configure  make  make install # process
 
 And for gnugol itself:
 
 git clone git://github.com/dtaht/Gnugol.git
 cd Gnugol
 make; sudo make install
 
 Copy the src/lisp/gnugol.el into your ~/.emacs.d directory and put a
 (require 'gnugol) into your .emacs...
 
 At the command line:
 
 $ gnugol keywords to search for
 
 In Emacs, esc-x gnugolret 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

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 ucec...@ucl.ac.uk wrote:
 Bart Bunting b...@bunting.net.au 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] 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] 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 davi...@stats.ox.ac.uk 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 b...@bunting.net.au 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] 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-24 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


Re: [Orgmode] Problem searching CLOSED and DEADLINE properties

2009-01-09 Thread Bart Parliman

On Fri, 9 Jan 2009, Carsten Dominik wrote:



On Jan 7, 2009, at 9:24 PM, Bart Parliman wrote:

When the example file below is added to the agenda file list, and I perform 
an agenda property search (C-c C-a m), I can't seem to locate any CLOSED 
items if I use the date matching format, for example these don't work...


CLOSED=2009-01-01


This one works fine for me.



CLOSED=2009-01-07


This one does not, because the CLOSED time stamp
in the example also contains a time, while you comparison value is taken to 
be at midnight.



... but a regexp search like this...

CLOSED={2009}

... works fine.  For DEADLINE, an exact date matches fails...

DEADLINE=2009-01-28


For me it works fine.

- Carsten




... but an inequality match succeeds...

DEADLINE=2009-01-28

FWIW I'm using version 6.17b.  Am I just using this format incorrectly?


My apologies.  I recently installed 6.17b, but to the wrong lisp 
target directory (i.e. so I was effectively using an older 
version of the code, 6.12b I think).  After installing it in the 
proper directory this works fine.


Bart



Thanks,
Bart

 file start 
#+SEQ_TODO: NEXT WAITING | DONE
#+STARTUP: overview

* DONE Test1
CLOSED: [2009-01-07 Wed 12:26]

* NEXT Test2
DEADLINE: 2009-01-28 Wed

* Test3

  file end  


___
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


Re: [Orgmode] Problem searching CLOSED and DEADLINE properties

2009-01-09 Thread Bart Parliman



On Fri, 9 Jan 2009, Carsten Dominik wrote:



On Jan 9, 2009, at 5:58 PM, Bart Parliman wrote:


On Fri, 9 Jan 2009, Carsten Dominik wrote:



On Jan 7, 2009, at 9:24 PM, Bart Parliman wrote:

When the example file below is added to the agenda file list, and I 
perform an agenda property search (C-c C-a m), I can't seem to locate any 
CLOSED items if I use the date matching format, for example these don't 
work...

CLOSED=2009-01-01


This one works fine for me.


CLOSED=2009-01-07


This one does not, because the CLOSED time stamp
in the example also contains a time, while you comparison value is taken 
to be at midnight.



... but a regexp search like this...
CLOSED={2009}
... works fine.  For DEADLINE, an exact date matches fails...
DEADLINE=2009-01-28


For me it works fine.

- Carsten


... but an inequality match succeeds...
DEADLINE=2009-01-28
FWIW I'm using version 6.17b.  Am I just using this format incorrectly?


My apologies.  I recently installed 6.17b, but to the wrong lisp target 
directory (i.e. so I was effectively using an older version of the code, 
6.12b I think).  After installing it in the proper directory this works 
fine.


:-)  Yes, many problems come from running one version and reading the manual 
of another version :-)


I am glad it works.  Even though, looking at your post, I am wondering if it 
would be useful
to limit the comparison to date-only if the comparison value is a date 
without a time...


- Carsten


That's probably a good idea to avoid confusion, though I'm not 
sure how often one searches for a specific day with these.  For 
closed items I tend to use a timeline display, but was looking at 
using a range of dates instead when I noticed the problem.  The 
only reason I tried a single date was to produce another data 
point after I noticed that the '=' seemed to fail.


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


[Orgmode] Problem searching CLOSED and DEADLINE properties

2009-01-07 Thread Bart Parliman
When the example file below is added to the agenda file list, and 
I perform an agenda property search (C-c C-a m), I can't seem to 
locate any CLOSED items if I use the date matching format, for 
example these don't work...


CLOSED=2009-01-01
CLOSED=2009-01-07

... but a regexp search like this...

CLOSED={2009}

... works fine.  For DEADLINE, an exact date matches fails...

DEADLINE=2009-01-28

... but an inequality match succeeds...

DEADLINE=2009-01-28

FWIW I'm using version 6.17b.  Am I just using this format 
incorrectly?


Thanks,
Bart

 file start 
#+SEQ_TODO: NEXT WAITING | DONE
#+STARTUP: overview

* DONE Test1
  CLOSED: [2009-01-07 Wed 12:26]

* NEXT Test2
  DEADLINE: 2009-01-28 Wed

* Test3

  file end  


___
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] Problem with 6.09a org-agenda-list

2008-10-20 Thread Bart Parliman
After upgrading from 6.02 to 6.09a on emacs 22.2 I'm having 
trouble running org-agenda-list and am seeing...


  Symbol's function definition is void: adjoin

As far as I can tell, the agenda appears complete.

FWIW, my lisp knowledge is weak.  It looks like the symbol is 
defined in the common lisp area.  I'm assuming that it's not 
getting loaded and my simple attempts at trying to do that didn't 
help (not a surprise).


FWIW, some searching brought up a patch from this past July...

http://article.gmane.org/gmane.emacs.orgmode/7545

After undoing the patch it works, but I'm assuming that's 
probably not the right thing to do.


Thanks,
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


[Orgmode] Re: Line numbers with org-store-link?

2008-05-06 Thread Bart Parliman

Carsten,

This is exactly what I need.  Thanks.

Bart

On Tue, 6 May 2008, Carsten Dominik wrote:


Hi Bart,

No, this does not exist, because normally line numbers are moving around and 
therefore are not very useful as long-term search targets.


You can pretty easily hack this, though:

Lets say you want to have line numbers for links to any files in c-mode 
(because this is the programming language you are talking about).  Limiting 
it to some special files makes sure that in other file types you will still 
get links based on (somewhat) more reliable text snippets.


Then you can write a small function and add it to the hook
org-create-file-search-functions:

(defun my-link-to-line-number-in-c-mode ()
  When in c-mode, use line number as search item.
  (when (eq major-mode 'c-mode)
(number-to-string (org-current-line

(add-hook 'org-create-file-search-functions
  'my-link-to-line-number-in-c-mode)

Normally you would also have to write a function to search for the custom 
link search text and add that function to 
`org-execute-file-search-functions'.  But you are lucky:  if the search item 
is an integer number, Org already interprets it as a line number.


Hope this helps.

- Carsten

On May 5, 2008, at 11:40 PM, Bart Parliman wrote:
Is there a way to force org-store-link to store the current line number 
rather than a string to locate?


When preparing for code reviews I like to create notes with links to the 
exact source line.  FWIW, in these cases, I keep a static copy of the code 
so I know it isn't going to change.


Obviously none of those reviews involve lisp, since my first feeble attempt 
to add a hyperlink type never even came close to running. :-)


Thanks for any help,
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


[Orgmode] Line numbers with org-store-link?

2008-05-05 Thread Bart Parliman
Is there a way to force org-store-link to store the current line 
number rather than a string to locate?


When preparing for code reviews I like to create notes with links 
to the exact source line.  FWIW, in these cases, I keep a static 
copy of the code so I know it isn't going to change.


Obviously none of those reviews involve lisp, since my first 
feeble attempt to add a hyperlink type never even came close to 
running. :-)


Thanks for any help,
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