Re: [O] new to drawers

2014-05-11 Thread Achim Gratz
Steven Arntson writes:
 Okay, I see--I thought you could just arbitrarily title them. Which
 would be a nice feature, IMHO!

This is already implemented, but you need to use the latest Org version.


Regards,
Achim.
-- 
+[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

SD adaptation for Waldorf rackAttack V1.04R1:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




[O] tab completion for org-contacts not working for me in emacs 24

2014-05-11 Thread Andreas Reuleaux
I have just downloaded org-contacts.el

load it in my .emacs/init.el like this


 (setq load-path (cons ~/cfg/emacs/el/org load-path))
(require 'org-contacts)
(setq org-contact-files (list
 ~/work/org/contacts.org
 ))


and have a minimal ~/work/org/contacts.org file as described
in the manual

  https://julien.danjou.info/projects/emacs-packages#org-contacts

Now in gnus, in a new message that I am creating if I type +tab in the
To: field, something is happening:

I get a message:

  Updating Org Contacts Database...done

and my curser moves a tab, leaving me with

  To: +curser here

just no contacts / tags are found!?

I *am* using emacs24, a recent one in fact: 24.4.50.1

(I saw some similar messages of people having difficultis of
getting org-contacts to work nicely with gnus together, who were
using using emacs 23, and that turned out to be the problem, not in my
case).

Thanks.

-Andreas




Re: [O] new to drawers

2014-05-11 Thread Nick Dokos
Achim Gratz strom...@nexgo.de writes:

 Steven Arntson writes:
 Okay, I see--I thought you could just arbitrarily title them. Which
 would be a nice feature, IMHO!

 This is already implemented, but you need to use the latest Org version.


I thought so too, but when I tried it, I got the same result as Steven.
I'll try to dig down a bit more.

-- 
Nick




Re: [O] An org password manager

2014-05-11 Thread Colin Baxter

Hi,

You can ensure a gpg buffer doesn't leave any traces by using a
minor-mode called sensitive which disables backups and auto-save. The code is
available on the Internet, but I'll post it here if anyone is
interested.

Best wishes,

Colin.


 Dear Jorge,

 Neat!! Thanks for providing the details.

 I've been using a somewhat similar approach with a lot less functionality
 for a few years, but as I reported in the org email list, something I find
 unsettling is that if an encrypted buffer is killed right when it is being
 opened (when you just typed the password ---sure, low probability, but not
 zero), part of the contents of the encrypted buffer are left, as plain
 text, in other buffer(s).

 I reported this here

 http://lists.gnu.org/archive/html/emacs-orgmode/2011-12/msg00841.html

 and I still experience the problem (I just try it not to happen). Is
 this not affecting you at all? I'd have thought it would, since you are
 also using a timer to kill the buffer, and it could fire right after you
 enter the password.


 Best,


 R.


 On Sun, 11-05-2014, at 07:21, Jorge A. Alfaro-Murillo
 jorge.a.alf...@gmail.com wrote:
 Hi! I have been using org for managing passwords for a some time now. In
 case someone is interested, the code is in:
 https://bitbucket.org/alfaromurillo/org-passwords.el

 To consult the database, the code provides a function to open the Org
 file with the passwords in Read-Only mode, sets a timer after which the
 buffer is killed and provides functions for copying the password without
 it getting into the kill-ring. It also provides two types of functions
 for generating passwords: strings of random characters, and random words
 of the correcthorsebatterystaple-type. The README file in bitbucket has
 detailed information about the usage.

 If there is interest from the community this can also go to /contrib.

 Best,

 Jorge.

-- 
Colin Baxter
http://www.colin-baxter.com




Re: [O] new to drawers

2014-05-11 Thread Dieter Schön


On 11. Mai 2014 14:02:13 MESZ, Nick Dokos ndo...@gmail.com wrote:
Achim Gratz strom...@nexgo.de writes:

 Steven Arntson writes:
 Okay, I see--I thought you could just arbitrarily title them. Which
 would be a nice feature, IMHO!

 This is already implemented, but you need to use the latest Org
version.


I thought so too, but when I tried it, I got the same result as Steven.
I'll try to dig down a bit more.

-- 
Nick

There is also a variable with a regex,
which you can use. I do not remember the exact name,
but you can find it on the help page of org-drawers.

Dieter

-- 
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.

Re: [O] new to drawers

2014-05-11 Thread Dieter Schön


On 11. Mai 2014 14:02:13 MESZ, Nick Dokos ndo...@gmail.com wrote:
Achim Gratz strom...@nexgo.de writes:

 Steven Arntson writes:
 Okay, I see--I thought you could just arbitrarily title them. Which
 would be a nice feature, IMHO!

 This is already implemented, but you need to use the latest Org
version.


I thought so too, but when I tried it, I got the same result as Steven.
I'll try to dig down a bit more.

-- 
Nick

There is also a variable with a regex,
which you can use. I do not remember the exact name,
but you can find it on the help page of org-drawers.

Dieter

-- 
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.

Re: [O] tab completion for org-contacts not working for me in emacs 24

2014-05-11 Thread Alexander Baier
Hello Andreas,

On 2014-05-11 13:07 Andreas Reuleaux wrote:
  (setq load-path (cons ~/cfg/emacs/el/org load-path))
 (require 'org-contacts)
 (setq org-contact-files (list

~/work/org/contacts.org
))

For me this is org-contacts-files, maybe that is the problem?

HTH,
-- 
Alexander Baier



Re: [O] tab completion for org-contacts not working for me in emacs 24

2014-05-11 Thread Andreas Reuleaux
Alexander,

that was it, thanks a lot.


-Andreas


Alexander Baier alexander.ba...@mailbox.org writes:

 (setq org-contact-files (list
 


 For me this is org-contacts-files, maybe that is the problem?

 HTH,




Re: [O] [PATCH] org.el (org-offer-links-in-entry): Remove code duplication

2014-05-11 Thread Albert Krewinkel
Hi Bastien,

Bastien b...@gnu.org writes:
 Albert Krewinkel tar...@moltkeplatz.de writes:

 * org.el (org-offer-links-in-entry): Use `org-any-link-re' to avoid
   code duplication.

 This is not really code duplication, as the output of `org-any-link-re'
 is different from the output of the current sexp in the code.

I'm not exactly sure what you mean, are you referring to the variables'
different representation in the source?  I double checked that

(string-equal re org-any-link-re) = t

when `re' is set to the old value (as of commit 7c8559e).

 That said, the change looks good anyway.  Can you double-check there
 cannot be any problem with the value of `org-any-link-re'?

The variable is only ever changed when calling `org-make-link-regexps',
so I'm quite positive that the change does not have any unintended side
effects.  The test suite passes, too.

 This is a TINYCHANGE.

 (TINYCHANGE should stand alone on the line.)

Done.  As an aside: I did sign the copyright assignment papers to be
able to contrivute to Gnus, but that probably wouldn't help much, as
Org is a different project.  Is that correct?

 Thanks!

No, thank you all for all the work you put into this!  It is truly
amazing!

Albert Krewinkel (1):
  org.el (org-offer-links-in-entry): Reuse global variable

 lisp/org.el | 7 ++-
 1 file changed, 2 insertions(+), 5 deletions(-)

-- 
2.0.0.rc0




[O] [PATCH] org.el (org-offer-links-in-entry): Reuse global variable

2014-05-11 Thread Albert Krewinkel
* org.el (org-offer-links-in-entry): Use global variable
  `org-any-link-re' instead of defining a string-equal local variable.

The `re' variable defined in function `org-offer-links-in-entry' is
string-equal to `org-any-link-re' and is hence replaced by the latter.

TINYCHANGE
---
 lisp/org.el | 7 ++-
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index c16fab0..40d6972 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -10709,10 +10709,7 @@ there is one, return it.
   (save-restriction
(widen)
(goto-char marker)
-   (let ((re (concat \\( org-bracket-link-regexp \\)\\|
- \\( org-angle-link-re \\)\\|
- \\( org-plain-link-re \\)))
- (cnt ?0)
+   (let ((cnt ?0)
  (in-emacs (if (integerp nth) nil nth))
  have-zero end links link c)
  (when (and (stringp zero) (string-match org-bracket-link-regexp zero))
@@ -10721,7 +10718,7 @@ there is one, return it.
  (save-excursion
(org-back-to-heading t)
(setq end (save-excursion (outline-next-heading) (point)))
-   (while (re-search-forward re end t)
+   (while (re-search-forward org-any-link-re end t)
  (push (match-string 0) links))
(setq links (org-uniquify (reverse links
  (cond
-- 
2.0.0.rc0




Re: [O] An org password manager

2014-05-11 Thread Jorge A. Alfaro-Murillo
Thanks Ramon,

Regarding your question, probably the bug is related to running a for
with all the buffers that are open. To get what you want you can try
something creating a minor mode for gpg files and adding a hook that
adds the buffer name of the gpg file that you open to a list of buffers
to kill:

  #+BEGIN_SRC emacs-lisp
(define-minor-mode gpg-killing-mode
  A mode to kill gpg files
  :after-hook 
  (add-to-list 'gpg-buffers (buffer-name)))

(add-to-list 'auto-mode-alist '(\\.gpg$ . gpg-killing-mode))

(setq gpg-buffers nil)

(run-at-time t 120 '(lambda () 
 (mapcar 'kill-buffer gpg-buffers)
 (setq gpg-buffers nil)))
  
  #+END_SRC

Instead killing all at the same time, I would probably kill each one
after a certain time, to avoid opening a file and have it right away
killed it was close to the end of the 2 min cycle:

  #+BEGIN_SRC emacs-lisp
(define-minor-mode gpg-killing-mode
  A mode to kill gpg files
  :after-hook 
  (progn
(setq gpg-buffers (append gpg-buffers (list (buffer-name
(run-at-time 120 nil '(lambda () 
(kill-buffer (car gpg-buffers))
(setq gpg-buffers (cdr gpg-buffers))

(add-to-list 'auto-mode-alist '(\\.gpg$ . gpg-killing-mode))  

(setq gpg-buffers nil)
  #+END_SRC

Best,

Jorge.




Re: [O] An org password manager

2014-05-11 Thread Jorge A. Alfaro-Murillo
jorge.a.alf...@gmail.com (Jorge A. Alfaro-Murillo) writes:

I forgot to mention that what org-passwords.el does is to set a timer
each time that the password file is opened (analogous to the second
option in my previous message) rather than having just one timer with
repeat.

Jorge.

 Thanks Ramon,

 Regarding your question, probably the bug is related to running a for
 with all the buffers that are open. To get what you want you can try
 something creating a minor mode for gpg files and adding a hook that
 adds the buffer name of the gpg file that you open to a list of buffers
 to kill:

   #+BEGIN_SRC emacs-lisp
 (define-minor-mode gpg-killing-mode
   A mode to kill gpg files
   :after-hook 
   (add-to-list 'gpg-buffers (buffer-name)))

 (add-to-list 'auto-mode-alist '(\\.gpg$ . gpg-killing-mode))

 (setq gpg-buffers nil)

 (run-at-time t 120 '(lambda () 
  (mapcar 'kill-buffer gpg-buffers)
  (setq gpg-buffers nil)))
   
   #+END_SRC

 Instead killing all at the same time, I would probably kill each one
 after a certain time, to avoid opening a file and have it right away
 killed it was close to the end of the 2 min cycle:

   #+BEGIN_SRC emacs-lisp
 (define-minor-mode gpg-killing-mode
   A mode to kill gpg files
   :after-hook 
   (progn
 (setq gpg-buffers (append gpg-buffers (list (buffer-name
 (run-at-time 120 nil '(lambda () 
 (kill-buffer (car gpg-buffers))
 (setq gpg-buffers (cdr gpg-buffers))

 (add-to-list 'auto-mode-alist '(\\.gpg$ . gpg-killing-mode))  

 (setq gpg-buffers nil)
   #+END_SRC

 Best,

 Jorge.




Re: [O] Questions about mail, MIME, etc.

2014-05-11 Thread Peter Davis
On Sun, May 11, 2014 at 11:05:30AM +0800, Eric Abrahamsen wrote:
 Peter Davis p...@pfdstudio.com writes:
 
  One more follow-on question. When I run org-mime-org-buffer-htmlize, I get 
  a buffer in message mode with a nice MIME message almost ready to
  go. I have not specified org-mime-library, so it defaults to mml, as 
  expected for gnus. But when I type C-c C-c to send the message, I get
  prompted for via with three options (which I don't remember offhand, but 
  it was something like 'transport', 'sendmail' and 'smtp'.
 
  However, if I had previously run and quit gnus in that session, it just 
  sends the message, badda-boom-badda-bing.
 
  Is there some minimal configuration I can add to .emacs to have the effect 
  of running and quitting gnus to messages will send? I realize
  this is not so much an org-mode question, but it's related.
 
 I have these variables set, I'll bet it's one or the other that makes
 the difference (probably the second).
 
 (setq mail-user-agent 'gnus-user-agent)
 (setq message-send-mail-function 'message-send-mail-with-sendmail)
 

Ah! Using these lines, or even just the first one, did get rid of the via: 
prompt, but the messages never got delivered, even though emacs
said they had been sent.

Then it occurred to me ... D'oh! I just added

(load-file ~/.gnus.el)

That worked! Sorry for the oversight.

Thanks!

-pd


-- 

Peter Davis
The Tech Curmudgeon
www.techcurmudgeon.com



Re: [O] org-ref code

2014-05-11 Thread John Kitchin
On Sat, May 10, 2014 at 10:44 AM, Eric S Fraga e.fr...@ucl.ac.uk wrote:

 On Thursday,  1 May 2014 at 13:07, John Kitchin wrote:
  I implemented some of this partially. I made it so you can specify the
  default cite link in a user variable, with a default of cite. When you
 type
  C-c ], this format will automatically be used. If you want to choose
  another format, type C-u C-c ] which will prompt you for a type, and then

 Hi John,

 I am having problems with org-ref and am obviously missing something
 trivial.  I downloaded the latest version yesterday (Friday).  You don't
 say, in the above, what function you actually bound to C-c ] but I bound
 org-ref-insert-cite-link and that doesn't seem to work:


C-c ] should be bound by default to org-ref-insert-cite-link. It is defined
in a hook function in line 104 of org-ref.org.

I made a custom variable to store the key-binding, but I realized it
probably doesn't help, since the binding



 1. C-u on it does not give me a choice of citation method


If you type C-u M-x  org-ref-insert-cite-link

do you get a choice?

I just tried this on a fresh pull and it does work for me. I am not sure
why this wouldn't work for you.  Do you tangle the .el file from the .org
file? I have this code somewhere else to build it when needed:
(if (or
 (not (file-exists-p org-ref.el))
 ( (float-time (nth 5 (file-attributes org-ref.el)))
(float-time (nth 5 (file-attributes org-ref.org)
(progn
  (org-babel-tangle-file (expand-file-name org-ref.org
starter-kit-dir))
  (load-file (expand-file-name org-ref.el starter-kit-dir)))
  (require 'org-ref))

That retangles the org file if the org-file is newer than the el file.


 2. the link inserted looks like a link (it's blue) but there are
  actually no [[...]] characters surrounding it.


There are no [[...]]. The links work fine without them for me. Are they
necessary for some reason? I can add them, but since they do not do
anything but disappear in this case, I leave them out.  That is actually
not totally true, if you write your link as [[cite:key][page 23]] the page
23 gets formatted in latex as \cite[page23]{key}.



 What am I missing?  Am I expected to type the [[]] or use C-c C-l?

 I don't think you need the [[]], and you do not have to use C-c C-l. The
only thing that C-c C-l offers is autocompletion on bibtex keys for the
cite link (I have not figured out a way to avoid a lot of cut and paste
code for the other types, and I rarely use this feature, but I am leaving
it in so I do not forget how I did it ;). I guess C-c C-l might help
entering the description too.



 I would like to C-u C-c ], choose autocite and my refs and have your
 code insert [[autocite:blah-2001,joe-2010,moe-2014]] into my org
 buffer.  I know I can change the default citation link type through
 org-ref-default-citation-link but I want the C-u functionality.


You should be able to do all those things. The C-u functionality works
independently of the default type, and it should let you get something
other than the default.



 Finally, looking at the code, it would appear that appending new
 citations will only work for cite: links as the cite: is hard-coded
 into the code?


This is correct in the version you have. The current workaround is to use
C-u C-c ], and select the A format, which will output a leading comma and
your selections. I have pushed a fix for this, that adds a requirement of
dash.el and checks of the link is in a list of cite types defined in
org-ref. Thanks for making me think of a solution to that!


 thanks again,
 eric

 PS - I'm a fellow Chemical Engineer but unfortunately have not yet had
 the opportunity to cite any of your papers but look forward to doing so
 sometime soon using org-ref ;-)


That would be great! I hope the comments above help!


 --
 : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-923-g233c11



Re: [O] [PATCH] org.el (org-offer-links-in-entry): Remove code duplication

2014-05-11 Thread Achim Gratz
Albert Krewinkel writes:
 Done.  As an aside: I did sign the copyright assignment papers to be
 able to contrivute to Gnus, but that probably wouldn't help much, as
 Org is a different project.  Is that correct?

If you assigned copyright just for Gnus, then you'd have to do it again
for Org.  If instead you've assigned it for Emacs, then everything
is already OK, just let Bastien know and perhaps give him the number of
your assignment so it's easier for him to check.


Regards,
Achim.
-- 
+[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

Waldorf MIDI Implementation  additional documentation:
http://Synth.Stromeko.net/Downloads.html#WaldorfDocs




[O] LaTeX style command re-use but for within org-mode documents?

2014-05-11 Thread Grant Rettke
Hi,

Today we are working on an org-document that contains a quote that
will re-appear multiple times within
the same document. Coming from LaTeX, my initial reaction is to create
a new command with \newcommand.
Trying to find something like that within org-mode set me down two paths.

The first was to consider utilize literate programming. This would be
a fine approach if I were publishing the tangled document, but I am
not. Additionally, it is not code, just human readable text (a quote).

The second thought was to learn about export filters. Stuff like using
\rarr works just fine no matter where you export, so I wondered if I
should follow a similar approach. I didn't pursue this further though,
I wanted to get some feedback first.

What is the standard approach for doing stuff like this?

Regards,

Grant Rettke | AAAS, ACM, ASA, FSF, IEEE, SIAM, Sigma Xi
gret...@acm.org | http://www.wisdomandwonder.com/
“Wisdom begins in wonder.” --Socrates
((λ (x) (x x)) (λ (x) (x x)))
“Life has become immeasurably better since I have been forced to stop
taking it seriously.” --Thompson



Re: [O] LaTeX style command re-use but for within org-mode documents?

2014-05-11 Thread Thomas S. Dye
Aloha Grant,

Perhaps a macro?  Macro expansion takes place during export.

All the best,
Tom

Grant Rettke g...@wisdomandwonder.com writes:

 Hi,

 Today we are working on an org-document that contains a quote that
 will re-appear multiple times within
 the same document. Coming from LaTeX, my initial reaction is to create
 a new command with \newcommand.
 Trying to find something like that within org-mode set me down two paths.

 The first was to consider utilize literate programming. This would be
 a fine approach if I were publishing the tangled document, but I am
 not. Additionally, it is not code, just human readable text (a quote).

 The second thought was to learn about export filters. Stuff like using
 \rarr works just fine no matter where you export, so I wondered if I
 should follow a similar approach. I didn't pursue this further though,
 I wanted to get some feedback first.

 What is the standard approach for doing stuff like this?

 Regards,

 Grant Rettke | AAAS, ACM, ASA, FSF, IEEE, SIAM, Sigma Xi
 gret...@acm.org | http://www.wisdomandwonder.com/
 “Wisdom begins in wonder.” --Socrates
 ((λ (x) (x x)) (λ (x) (x x)))
 “Life has become immeasurably better since I have been forced to stop
 taking it seriously.” --Thompson



-- 
Thomas S. Dye
http://www.tsdye.com



Re: [O] LaTeX style command re-use but for within org-mode documents?

2014-05-11 Thread Suvayu Ali
On Sun, May 11, 2014 at 09:51:18AM -1000, Thomas S. Dye wrote:
 Aloha Grant,
 
 Perhaps a macro?  Macro expansion takes place during export.

(info (org) Macro Replacement)

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] [RFC] [PATCH] ob-core.el: allow the auto-generation of output file names for src blocks.

2014-05-11 Thread Aaron Ecay
Hi Eric, Bastien, Achim, et al.,

Thanks again for the feedback.  I just pushed the revised patch to master.

2014ko maiatzak 4an, Eric Schulte-ek idatzi zuen:

[...]

 One option might be to borrow naming behavior from the comment
 functionality in ob-tangle which looks like the following (from line 426
 in ob-tangle.el).

 (let (...
 (source-name
 (intern (or (nth 4 info)   ; explicit #+name:
 (format %s:%d; constructed from header and position
 (or (ignore-errors (nth 4 (org-heading-components)))
 No heading)
 block-counter
 ...))

 I’m not sure I like this approach.  It relies on counting source
 blocks, so an addition/deletion of a block could change the index.
 I’m worried that this can lead to the accumulation of many output
 files: heading:1.ext, heading:2.ext, ... all with no clear indication
 of what block they were spawned by.  It would also be possible for
 the result links in the buffer to become inconsistent with the actual
 block:auto-generated name mapping.

 I think I would prefer the code in this patch to do nothing in this case
 (not create a :file value), but for language-specific code that needs a
 :file to raise an error to prompt the user to add a name.


 Fair enough, especially given that this default will be applied to *all*
 code blocks, this seems like a reasonable approach.

I went ahead with my suggested approach here.

[...]

 Achim raises a backwards compatibility concern.  I am not sure how
 serious it is: the default settings (no :output-dir) are backwards
 compatible, and if users set that arg we ought to just give them what
 they ask for.

 Nonetheless, the new version of the patch conservatively obeys Achim’s
 suggestion.  I can change this to your suggestion, if that is the
 consensus.


 Please do make this change, I'd then be happy to apply the resulting
 patch.

Done, as you and Bastien suggested.

Thanks,

--
Aaron Ecay



[O] Warehouse Management System

2014-05-11 Thread Esben Stien
Does org-mode have some kind of warehouse management system?

Like how many items foo and how many items bar and when you remove x
amount of item bar, where did it go?

One way to hack it would be to use a heading for each item, then use
clock-in and clock-out, like +1 and -1;) to somehow track taking stuff
out of the warehouse and putting something in there;)

..or some org-invoice hack..

This is probably doable, but does org-mode have some other way to do this?

-- 
Esben Stien is b0ef@e s  a 
 http://www. s tn m
  irc://irc.  b  -  i  .   e/%23contact
   sip:b0ef@   e e 
   jid:b0ef@n n



Re: [O] LaTeX style command re-use but for within org-mode documents?

2014-05-11 Thread Grant Rettke
Thanks folks.
Grant Rettke | AAAS, ACM, ASA, FSF, IEEE, SIAM, Sigma Xi
gret...@acm.org | http://www.wisdomandwonder.com/
“Wisdom begins in wonder.” --Socrates
((λ (x) (x x)) (λ (x) (x x)))
“Life has become immeasurably better since I have been forced to stop
taking it seriously.” --Thompson


On Sun, May 11, 2014 at 3:06 PM, Suvayu Ali fatkasuvayu+li...@gmail.com wrote:
 On Sun, May 11, 2014 at 09:51:18AM -1000, Thomas S. Dye wrote:
 Aloha Grant,

 Perhaps a macro?  Macro expansion takes place during export.

 (info (org) Macro Replacement)

 --
 Suvayu

 Open source is the future. It sets us free.




Re: [O] Warehouse Management System

2014-05-11 Thread Eric Abrahamsen
Esben Stien b...@esben-stien.name writes:

 Does org-mode have some kind of warehouse management system?

 Like how many items foo and how many items bar and when you remove x
 amount of item bar, where did it go?

 One way to hack it would be to use a heading for each item, then use
 clock-in and clock-out, like +1 and -1;) to somehow track taking stuff
 out of the warehouse and putting something in there;)

 ..or some org-invoice hack..

 This is probably doable, but does org-mode have some other way to do this?

You might look at ledger, a pretty awesome accounting system. I think
people have hacked together some cross-support between ledger and org --
ie org link ids on ledger transactions, etc. It looks like worg has a
couple of pages on using them together.

Eric

1. http://ledger-cli.org/
2. http://orgmode.org/worg/org-tutorials/weaving-a-budget.html
3. http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-ledger.html




Re: [O] Questions about mail, MIME, etc.

2014-05-11 Thread Eric Abrahamsen
Peter Davis p...@pfdstudio.com writes:

 On Sun, May 11, 2014 at 11:05:30AM +0800, Eric Abrahamsen wrote:
 Peter Davis p...@pfdstudio.com writes:
 
  One more follow-on question. When I run org-mime-org-buffer-htmlize, I get 
  a buffer in message mode with a nice MIME message almost ready to
  go. I have not specified org-mime-library, so it defaults to mml, as 
  expected for gnus. But when I type C-c C-c to send the message, I get
  prompted for via with three options (which I don't remember offhand, but 
  it was something like 'transport', 'sendmail' and 'smtp'.
 
  However, if I had previously run and quit gnus in that session, it just 
  sends the message, badda-boom-badda-bing.
 
  Is there some minimal configuration I can add to .emacs to have the effect 
  of running and quitting gnus to messages will send? I realize
  this is not so much an org-mode question, but it's related.
 
 I have these variables set, I'll bet it's one or the other that makes
 the difference (probably the second).
 
 (setq mail-user-agent 'gnus-user-agent)
 (setq message-send-mail-function 'message-send-mail-with-sendmail)
 

 Ah! Using these lines, or even just the first one, did get rid of the via: 
 prompt, but the messages never got delivered, even though emacs
 said they had been sent.

 Then it occurred to me ... D'oh! I just added

 (load-file ~/.gnus.el)

 That worked! Sorry for the oversight.

Glad you've got it working!




Re: [O] Warehouse Management System

2014-05-11 Thread Eric Abrahamsen
Esben Stien b...@esben-stien.name writes:

 Does org-mode have some kind of warehouse management system?

 Like how many items foo and how many items bar and when you remove x
 amount of item bar, where did it go?

 One way to hack it would be to use a heading for each item, then use
 clock-in and clock-out, like +1 and -1;) to somehow track taking stuff
 out of the warehouse and putting something in there;)

 ..or some org-invoice hack..

 This is probably doable, but does org-mode have some other way to do this?

Hmm, I got curious about this, and googled a bit, and found your thread
on the ledger list asking about org links in ledger files. So I guess
I'm not telling you anything you don't already know :)