Re: [O] The Org Package

2014-04-12 Thread Jacek Generowicz

David Masterson dsmaster...@gmail.com writes:

 [ELPA's] minus is that it moves the package setup *somewhat* out of
 .emacs and into the after-init area.

This point is recognized and addressed by el-get:

  https://github.com/dimitri/el-get



Re: [O] Shortcut to file

2014-04-12 Thread Chris Henderson
C-u C-c C-l solves all problems. Now I can link any file (PDF etc.) from
anywhere within org and with tab completion. Thanks.


On Sat, Apr 12, 2014 at 1:58 PM, Nick Dokos ndo...@gmail.com wrote:

 Chris Henderson henders...@gmail.com writes:

  Looks like org-insert-link doesn't have any tab completion feature to
 list files on the
  system. How do I get that?
 
  I can tab complete file+sys: but then can't do ~/directory/file.txt
 
  Thanks.
 
  On Sun, Mar 16, 2014 at 3:31 PM, Eric Abrahamsen 
 e...@ericabrahamsen.net wrote:
 
  Chris Henderson henders...@gmail.com writes:
 
   Is there any way to quickly add a file's location rather than
 typing
   the whole file://path/to/location. The files are mostly freemind or
   libreoffice calc/ word files.
  
   If the file or the directory is not there, it can also be created
   from within org easily.
  
   Thanks
 
  Are these links to files? You can use `org-insert-link' with a prefix
  argument, to get the usual find-file interface, and a link inserted
 once
  you've found it.

 You must have missed the prefix argument part of Eric's answer: C-u C-c
 C-l

 --
 Nick





Re: [O] [PATCH] ob-scheme.el: Fix scheme code blocks execution error in batch mode

2014-04-12 Thread KDr2
HI, Eric

You are right, I remove the usage of advice now, and use the method you
(nearly) gave, only 1 little change:
I found the code:

(defun t1 () (message abc))
;;(symbol-function 't1)

(let ((hold #'t1))
  (defun t1 () (message def))
  (setq t1 hold))
;;(symbol-function 't1)


did recover the t1 function after it executed, so I use this way:

(defun t1 () (message abc))
;;(symbol-function 't1)

(let ((hold (symbol-function 't1)))
  (defun t1 () (message def))
  (fset 't1 hold))

;;(symbol-function 't1)


And the new patch is attached.

BTW: I received a PDF assignment form from FSF, but the developer name and
the target program on it were wrong (It's for another person who
contributes to GCC, I think), so I reply that mail for a new PDF assignment
form, I 'll tell you after these things done.

Thanks.


On Sat, Apr 12, 2014 at 3:18 AM, Eric Schulte schulte.e...@gmail.comwrote:

 Hmmm,

 Not to be overly nitpicky here, but I see two issues.

 1. You should use unwind-protect, to ensure that (ad-unadvise #'message)
is run even if @body throws an error, and

 2. This will remove any advise which the user has placed on #'message.

 How about something shaped like the following.

 (defmacro with-weird-message (rest body)
   `(let ((hold #'message)
  current-message)
  (unwind-protect
  (progn
(defun message (rest args)
  (setq current-message (apply #'format args)))
,@body
current-message)
(setq message hold

 Best,

 P.S. I know this is a lot of process for a small patch, but from this
  point forward once you have the FSF assignment you can much more
  easily contribute to ob-scheme and org in general

 KDr2 killy.d...@gmail.com writes:

  Hi, Eric
 
  I'm sorry for that I used `flet' in the patch, It's a easy way to let
  function `current-message' work in batch mode, so I used it even I saw
 that
  emacs says `flet' is obsolete, I'm sorry for that.
 
  And I made a new patch(attachment) using `defadvice' for `message' to
  capture the message in batch mode, after the message being captured, the
  advice function is removed. Is this way OK?
 
  And I also sent a request email to ass...@gnu.org, and now waiting the
  reply.
 
  Thanks.
 
 
  On Fri, Apr 11, 2014 at 10:45 AM, Eric Schulte schulte.e...@gmail.com
 wrote:
 
  We can no longer use `flet' in the Org-mode code base, please re-work
  this patch w/o flet.
 
  Also, I don't see your name in the list of contributors, and (I believe)
  this patch is too large to apply w/o FSF assignment.  See the following
  page on how to contribute to Org-mode.
 
http://orgmode.org/worg/org-contribute.html
 
  KDr2 killy.d...@gmail.com writes:
 
   The bug:
   write file ~/scheme-test.org with the content below:
   ---8--
   #+BEGIN_SRC scheme :exports results :results output raw
 (display Hello Scheme in OrgMode)
   #+END_SRC
   ---8--
  
   and run:
  
   emacs --batch --eval='(load ~/.emacs.d/init.el)' ~/scheme-test.org-f
   org-html-export-to-html
  
   you will find the bug:
  
   `org-babel-scheme-execute-with-geiser' uses `current-message' to get
 the
   results of scheme code blocks, but `current-message' always returns
 nil
  in
   batch mode, and this patch fixes this.
  
   --
 
  --
  Eric Schulte
  https://cs.unm.edu/~eschulte
  PGP: 0x614CA05D
 
 
 
 
  --
  --
 
  KDr2, http://kdr2.com
 
  From fe5549f3f48acf9b51aeb3706eb8dd3d76ab18c1 Mon Sep 17 00:00:00 2001
  From: KDr2 killy.d...@gmail.com
  Date: Fri, 11 Apr 2014 12:56:24 +0800
  Subject: [PATCH] lisp/ob-scheme.el: Fix scheme code blocks execution
 error in
   batch mode
 
  * lisp/ob-scheme.el (org-babel-scheme-capture-current-message,
 org-babel-scheme-execute-with-geiser): Capture scheme code results via
 current-message both in interactive mode and noninteractive mode.
 
  `org-babel-scheme-execute-with-geiser' uses `current-message' to get the
 results of scheme code blocks, but `current-message' always returns nil in
 batch mode, and this patch fixes this.
 
  Modified from a patch proposal by KDr2(killy.d...@gmail.com)
  ---
   lisp/ob-scheme.el | 20 +---
   1 file changed, 17 insertions(+), 3 deletions(-)
 
  diff --git a/lisp/ob-scheme.el b/lisp/ob-scheme.el
  index b7117e9..6b82c6e 100644
  --- a/lisp/ob-scheme.el
  +++ b/lisp/ob-scheme.el
  @@ -118,6 +118,19 @@ org-babel-scheme-execute-with-geiser will use a
 temporary session.
   (name
   result))
 
  +(defmacro org-babel-scheme-capture-current-message (rest body)
  +  Capture current message in both interactive and noninteractive mode
  +  `(if noninteractive
  +   (let ((current-message nil))
  + (defadvice message (after capture-current-message activate)
  +   (setq current-message ad-return-value))
  + ,@body
  + (ad-unadvise #'message)
  + current-message)
  + 

Re: [O] [RFC] Properly handle keyword + COMMENT keyword

2014-04-12 Thread Nicolas Goaziou
Bastien b...@altern.org writes:

 I know, but the users should not have to guess this.
 Maybe a note about the allowed structure here in the
 manual would be useful.

Done in e84c1d8442b857f9275e86bb34f12811f49fcdd6.


Regards,

-- 
Nicolas Goaziou



[O] tiny patch for org-expiry

2014-04-12 Thread Alan Schmitt
Hello,

I'm trying to write some code to schedule reviews of projects, and I'm
basing it on org-expiry. I found a couple of tiny bugs with it, which
may be fixed with this patch.

Best,

Alan

From f38fe30c5c6115d33755a1c9f052cb01d1434d79 Mon Sep 17 00:00:00 2001
From: Alan Schmitt alan.schm...@polytechnique.org
Date: Sat, 12 Apr 2014 12:32:42 +0200
Subject: [PATCH] Org-expiry: make code and doc consistent

* contrib/lisp/org-expiry.el (org-expiry-expired-p): make code and doc
string consistent.
---
 contrib/lisp/org-expiry.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/contrib/lisp/org-expiry.el b/contrib/lisp/org-expiry.el
index d58043f..33f8ea1 100644
--- a/contrib/lisp/org-expiry.el
+++ b/contrib/lisp/org-expiry.el
@@ -218,11 +218,12 @@ Return nil if the entry is not expired.  Otherwise return the
 amount of time between today and the expiry date.
 
 If there is no creation date, use `org-expiry-created-date'.
-If there is no expiry date, use `org-expiry-expiry-date'.
+If there is no expiry date, use `org-expiry-wait'.
   (let* ((ex-prop org-expiry-expiry-property-name)
 	 (cr-prop org-expiry-created-property-name)
 	 (ct (current-time))
-	 (cr (org-read-date nil t (or (org-entry-get (point) cr-prop t) +0d)))
+	 (cr (org-read-date nil t (or (org-entry-get (point) cr-prop t) 
+  org-expiry-created-date)))
 	 (ex-field (or (org-entry-get (point) ex-prop t) org-expiry-wait))
 	 (ex (if (string-match ^[ \t]?[+-] ex-field)
 		 (time-add cr (time-subtract (org-read-date nil t ex-field) ct))
-- 
1.8.5.3



Re: [O] Bad footnotes when including org files

2014-04-12 Thread Nicolas Goaziou
Hello,

Xavier Garrido xavier.garr...@gmail.com writes:

 Applied, tested and it works like a charm. I still have some issues
 with a very big book I am writing but at least on the small example
 I sent it solves the issues.

I applied the patch to master.


Regards,

-- 
Nicolas Goaziou



Re: [O] Org-Agenda doesn't work

2014-04-12 Thread Nick Dokos
David Masterson dsmaster...@gmail.com writes:

 I got most of Org working again, but then the following error came up in
 org-agenda.  I removed the ELC files to try to make the error more
 clear.  Anyone know what the problem is?

 Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil)
   put-text-property(23003 nil org-effort 15)
   ...
   org-refresh-properties(Effort org-effort)
   ...
   org-agenda-prepare(TODO)
   ...
   org-todo-list(nil)
   call-interactively(org-todo-list)
   ...

It's the same error that Ken Mankoff encountered:

 http://thread.gmane.org/gmane.emacs.orgmode/84826

I believe there was one more instance of this but I couldn't find it
in gmane.

Try this patch:

--8---cut here---start-8---
diff --git a/lisp/org.el b/lisp/org.el
index f8615a2..bd9c05e 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -9393,7 +9393,7 @@ property to set.
   (save-excursion
 (org-back-to-heading t)
 (put-text-property
- (point-at-bol) (outline-next-heading) tprop p
+ (point-at-bol) (or (outline-next-heading) (point-max)) tprop 
p
 
 
  Link Stuff
--8---cut here---end---8---


Untested and based on some assumptionts that I have not verified: that
outline-next-heading returns a buffer position, except when there is no
next heading, in which case it returns nil. put-text-property wants
buffer positions though, so in that case we return the end-of-buffer
position.

-- 
Nick




Re: [O] Org-Agenda doesn't work

2014-04-12 Thread Nick Dokos
Nick Dokos ndo...@gmail.com writes:

 David Masterson dsmaster...@gmail.com writes:

 I got most of Org working again, but then the following error came up in
 org-agenda.  I removed the ELC files to try to make the error more
 clear.  Anyone know what the problem is?

 Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil)
   put-text-property(23003 nil org-effort 15)
   ...
   org-refresh-properties(Effort org-effort)
   ...
   org-agenda-prepare(TODO)
   ...
   org-todo-list(nil)
   call-interactively(org-todo-list)
   ...

 It's the same error that Ken Mankoff encountered:

  http://thread.gmane.org/gmane.emacs.orgmode/84826

 I believe there was one more instance of this but I couldn't find it
 in gmane.


Found it and Bastien has apparently already fixed it the bug:

  http://thread.gmane.org/gmane.emacs.orgmode/84700

-- 
Nick




Re: [O] Patch for testing `org-open-at-point'

2014-04-12 Thread York Zhao
Hi Bastien,

Sorry that I didn't know this was a known issue and I appreciate that you are
willing to fix it.

While I agree with Nicolas that it is more appropriate to keep org schedule line
from being a headline property, I also think it is totally legitimate to have an
org link as headline property. Sure we can always move org links out of headline
properties, but I'm sure there are times we don't want to see some of the links
all the time, we really want to hide them inside the property tree. For example,
when we put a person's information as properties, like the following:

* Peter
:PROPERTIES:
:ADDRESS: xxx xxx  
:HOME_PHONE: xxx xxx xxx
:WORK_PHONE: xxx xxx xxx
:URL: www.foo.bar
:END:

We hope we don't have to always move the link (the URL line in the properties
tree) out, i.e., we don't want to see the link all the time.

 Let's add tests when they don't fail :)

Fair enough, just make sure it will not be forgotten.

Thanks

On Fri, Apr 11, 2014 at 6:25 AM, Bastien b...@gnu.org wrote:
 Hi York,

 York Zhao gtdplatf...@gmail.com writes:

 I found a bug that `org-open-at-point' doesn't work if the link is a
 heading property.

 This is a known issue and we will address it soon.

 This used to work and was broken recently. I have written a test for
 this. The test is suppose to fail in current org-mode version. Please find
 attached my patch for the test. Hopefully I I didn't place the test in the 
 wrong
 file.

 Let's add tests when they don't fail :)

 --
  Bastien



Re: [O] [PATCH] ob-scheme.el: Fix scheme code blocks execution error in batch mode

2014-04-12 Thread Eric Schulte
KDr2 killy.d...@gmail.com writes:

 HI, Eric

 You are right, I remove the usage of advice now, and use the method you
 (nearly) gave, only 1 little change:
 I found the code:
 
 (defun t1 () (message abc))
 ;;(symbol-function 't1)

 (let ((hold #'t1))
   (defun t1 () (message def))
   (setq t1 hold))
 ;;(symbol-function 't1)
 

 did recover the t1 function after it executed, so I use this way:
 
 (defun t1 () (message abc))
 ;;(symbol-function 't1)

 (let ((hold (symbol-function 't1)))
   (defun t1 () (message def))
   (fset 't1 hold))

 ;;(symbol-function 't1)
 


Using fset is more readable than my proposal.  Very nice.


 And the new patch is attached.


Thanks, however unwind-protect is not used correctly.  Make sure that
the value of message is reset in the unwindforms portion of
unwind-protect.


 BTW: I received a PDF assignment form from FSF, but the developer name and
 the target program on it were wrong (It's for another person who
 contributes to GCC, I think), so I reply that mail for a new PDF assignment
 form, I 'll tell you after these things done.


Great, let Bastien and myself know when this comes through and he'll add
you to the contributors list and I'll apply the patch.

Best,


 Thanks.


 On Sat, Apr 12, 2014 at 3:18 AM, Eric Schulte schulte.e...@gmail.comwrote:

 Hmmm,

 Not to be overly nitpicky here, but I see two issues.

 1. You should use unwind-protect, to ensure that (ad-unadvise #'message)
is run even if @body throws an error, and

 2. This will remove any advise which the user has placed on #'message.

 How about something shaped like the following.

 (defmacro with-weird-message (rest body)
   `(let ((hold #'message)
  current-message)
  (unwind-protect
  (progn
(defun message (rest args)
  (setq current-message (apply #'format args)))
,@body
current-message)
(setq message hold

 Best,

 P.S. I know this is a lot of process for a small patch, but from this
  point forward once you have the FSF assignment you can much more
  easily contribute to ob-scheme and org in general

 KDr2 killy.d...@gmail.com writes:

  Hi, Eric
 
  I'm sorry for that I used `flet' in the patch, It's a easy way to let
  function `current-message' work in batch mode, so I used it even I saw
 that
  emacs says `flet' is obsolete, I'm sorry for that.
 
  And I made a new patch(attachment) using `defadvice' for `message' to
  capture the message in batch mode, after the message being captured, the
  advice function is removed. Is this way OK?
 
  And I also sent a request email to ass...@gnu.org, and now waiting the
  reply.
 
  Thanks.
 
 
  On Fri, Apr 11, 2014 at 10:45 AM, Eric Schulte schulte.e...@gmail.com
 wrote:
 
  We can no longer use `flet' in the Org-mode code base, please re-work
  this patch w/o flet.
 
  Also, I don't see your name in the list of contributors, and (I believe)
  this patch is too large to apply w/o FSF assignment.  See the following
  page on how to contribute to Org-mode.
 
http://orgmode.org/worg/org-contribute.html
 
  KDr2 killy.d...@gmail.com writes:
 
   The bug:
   write file ~/scheme-test.org with the content below:
   ---8--
   #+BEGIN_SRC scheme :exports results :results output raw
 (display Hello Scheme in OrgMode)
   #+END_SRC
   ---8--
  
   and run:
  
   emacs --batch --eval='(load ~/.emacs.d/init.el)' ~/scheme-test.org-f
   org-html-export-to-html
  
   you will find the bug:
  
   `org-babel-scheme-execute-with-geiser' uses `current-message' to get
 the
   results of scheme code blocks, but `current-message' always returns
 nil
  in
   batch mode, and this patch fixes this.
  
   --
 
  --
  Eric Schulte
  https://cs.unm.edu/~eschulte
  PGP: 0x614CA05D
 
 
 
 
  --
  --
 
  KDr2, http://kdr2.com
 
  From fe5549f3f48acf9b51aeb3706eb8dd3d76ab18c1 Mon Sep 17 00:00:00 2001
  From: KDr2 killy.d...@gmail.com
  Date: Fri, 11 Apr 2014 12:56:24 +0800
  Subject: [PATCH] lisp/ob-scheme.el: Fix scheme code blocks execution
 error in
   batch mode
 
  * lisp/ob-scheme.el (org-babel-scheme-capture-current-message,
 org-babel-scheme-execute-with-geiser): Capture scheme code results via
 current-message both in interactive mode and noninteractive mode.
 
  `org-babel-scheme-execute-with-geiser' uses `current-message' to get the
 results of scheme code blocks, but `current-message' always returns nil in
 batch mode, and this patch fixes this.
 
  Modified from a patch proposal by KDr2(killy.d...@gmail.com)
  ---
   lisp/ob-scheme.el | 20 +---
   1 file changed, 17 insertions(+), 3 deletions(-)
 
  diff --git a/lisp/ob-scheme.el b/lisp/ob-scheme.el
  index b7117e9..6b82c6e 100644
  --- a/lisp/ob-scheme.el
  +++ b/lisp/ob-scheme.el
  @@ -118,6 +118,19 @@ org-babel-scheme-execute-with-geiser will use a
 temporary session.
   (name
   result))
 
  

[O] org-table-copy-down incrementor

2014-04-12 Thread Stacey Marshall
Hi,

I've been using org-mode for a little over a year, wish I had been using it for 
far longer.
I am not a member of this list...  I discovered it via 
http://orgmode.org/org.html#Feedback, a link to the list there would be 
helpful.

I discovered org-table-copy-down and its ability to increment dates.  I would 
like to be able to specify the number to increment, and then ideally increment 
by that number again.  For example lets say I want to create a table of 
Mondays

| [2014-05-19 Mon] |   |   |   |   |   |   |   |
| [2014-05-26 Mon] |   |   |   |   |   |   |   |
| [2014-06-02 Mon] |   |   |   |   |   |   |   |
| [2014-06-09 Mon] |   |   |   |   |   |   |   |

Firstly, should I be using #+TBLFM: to fill in the table above...  I think that 
would only work if I was writing across columns, and would require a 
calculation for each field... is that right?  Hmm, is their a repeat 
keyword.

I wonder if a simple solution might be to add a couple of custom variables, say 
org-table-copy-inc-count to hold the count, and for the time specific 
org-table-copy-inc-by to specify what is being incremented, i.e. days, hours, 
mins.

For my use a simple integer would have sufficed, but a time element would be 
more suitable for others uses.


*** /opt/local/share/emacs/site-lisp/org/org-table.el   Tue May 14 15:13:53 2013
--- /var/folders/6f/qt_5cdl91051fz5tbwrf8yy0gn/T/ediff275HnRSat Apr 
12 12:52:12 2014
***
*** 224,229 
--- 224,250 
:group 'org-table-calculation
:type 'boolean)
  
+ (defcustom org-table-copy-inc-count 1
+   Increment value used to increment field following copy by 
\\[org-table-copy-down].
+   :group 'org-table-calculation
+   :type 'integer)
+ 
+ (defcustom org-table-copy-inc-by 'day
+   Measure in which to increment org-table-copy-inc-count value by  
\\[org-table-copy-down].
+ Possible values are:
+ day
+ month
+ year
+ minute
+ second
+   :group 'org-table-calculation
+   :type '(choice
+ (const :tag day day)
+ (const :tag month month)
+ (const :tag year year)
+ (const :tag minute minute)
+ (const :tag second second)))
+ 
  (defcustom org-calc-default-modes
'(calc-internal-prec 12
   calc-float-format  (float 8)
***
*** 1150,1156 
  (insert txt)
  (org-move-to-column col)
  (if (and org-table-copy-increment (org-at-timestamp-p t))
! (org-timestamp-up-day)
(org-table-maybe-recalculate-line))
  (org-table-align)
  (org-move-to-column col))
--- 1171,1178 
  (insert txt)
  (org-move-to-column col)
  (if (and org-table-copy-increment (org-at-timestamp-p t))
! (org-timestamp-change org-table-copy-inc-count 
org-table-copy-inc-by)
! ;   (org-timestamp-up-day)
(org-table-maybe-recalculate-line))
  (org-table-align)
  (org-move-to-column col))

The above works for my needs, but perhaps someone has a more elegant solution...


Yours sincerely,

Stacey






Re: [O] The Org Package

2014-04-12 Thread John Hendy
On Fri, Apr 11, 2014 at 11:10 PM, David Masterson dsmaster...@gmail.com wrote:
 John Hendy writes:

 On Fri, Apr 11, 2014 at 9:32 PM, David Masterson wrote:

 I still need more understanding of the Emacs packaging system.
 Something doesn't seem right and I'm sure I'm missing some key in
 understanding how its supposed to work.  What I see right now seems like
 something doesn't match up -- particularly with the Org package:

 1. Most modern Emacs have Org pre-installed.
 2. Unfortunately, that Org is not up-to-date (24.3 has 7.9.3f).
 3. Therefore, installing the latest Org package seems natural.
 4. However, this does not uninstall the built-in Org package.
 5. Packages are not initialized until after .emacs is run.
 6. Therefore, any of the latest variables are not defined yet.
 7. Therefore, setting a hook may not do what you think.
 8. The documentation for Org suggests hooks (etc.) to set.
 9. I've run into times when org-version was still 7.9.3f.

 Do you see where I'm heading?  Does anyone else run into this
 problem?  Or do most people ignore the Org package and install the
 latest from GitHub in a more manual process (a la Bernt Hansen's
 paper)?  Do we need more concrete documentation on setting up the Org
 Package?

 I learned emacs /for/ Org-mode, so keep that in mind as I'm pretty
 ignorant of emacs in genera. I *think* that packages for emacs are
 sort of a recent thing, and since I was already using git, I've never
 bothered to switch my setup. I find git ridiculously easy and have
 never had a reason to do anything else.

 Basically, I'm used to your style here, but let it not be said that I
 didn't, at least, try to be more modern.  ;-)

 Once ever:

 #+begin_src sh
 mkdir ~/.elisp/
 cd ~/.elisp
 git clone [orgmode git path] org.git  # I like adding the .git so I
 know it's a git repo
 cd org.git
 make clean  make
 #+end_src

 How do you find the value of [orgmode git path]?

Sorry, I was lazy and didn't take time to look it up. Org has
documented this very well. It's right on the main page:
- http://orgmode.org/

That is: ~$ git clone git://orgmode.org/org-mode.git

It's also in the instructions just a bit down on Staying on the
bleeding edge (Worg):
- http://orgmode.org/worg/org-faq.html#keeping-current-with-Org-mode-development

That is:

$ git clone git://orgmode.org/org-mode.git# standard repo
$ git clone git://repo.or.cz/org-mode.git# alternate repo
$ git clone http://orgmode.org/org-mode.git  # if you can't use git:// (like me)
$ git clone http://repo.or.cz/r/org-mode.git  # alternate http


 Then put in config:

 #+begin_src .emacs
 (add-to-list 'load-path ~/.elisp/org.git/lisp/)
 (add-to-list 'load-path ~/.elisp/org.git/contrib/lisp)
 #+end_src

 Where does /lisp and /contrib/lisp come from?  What do they contain?

Not sure exactly what you mean... lisp/ and contrib/lisp/ are simply,
from what I know, where all the .el files for any emacs thingy reside.
You need to tell emacs about the contents of both of those. lisp/
contains the core Org stuff, and there are contributed functions in
contrib/lisp that are being evaluated or for whatever reason just not
incorporated into Org yet (I want to say that this might house things
that people who haven't signed FSF legal documents reside, or things
that just aren't quite ready yet).


 That's it. Anywhere between once a week and once every three months, I
 do:

 #+begin_src sh
 cd ~/.elisp/org.git
 git pull
 make clean  make
 #+end_src

 Do you run into any problems where something is picked up out of the
 built-in Org because of overlapping requires?

Not that I know of, but I never really got a definitive answer (at
least that sunk in my head as the final verdict on this thread:
- https://lists.gnu.org/archive/html/emacs-orgmode/2013-09/msg00175.html

Achim and I went back and forth a bit. My understanding from that time
(and from just now re-skimming it) is that as long as `M-x
org-version` shows what you'd expect (a git version) and you don't get
any errors, you're [probably/almost certainly?] safe. My current
output as an example:

M-x org-version
Org-mode version 8.2.5h (release_8.2.5h-881-g957177 @
/home/jwhendy/.elisp/org.git/lisp/)


 Is this more difficult than packages? What is the advantage of ELPA
 vs. this? I could see it if I had a lot of these sorts of things, but
 I really just use Org + ESS, so I'm not constantly
 updating/installing/removing emacs add-ons other than those two.

 It's not more difficult and you could probably easily expand on this for
 any number of packages by simply expanding your last shell to walk thru
 all the interesting packages and pull the latest version in.

 As far as I can see, ELPA's plus is the GUI for pulling in new versions
 of packages, but its minus is that it moves the package setup *somewhat*
 out of .emacs and into the after-init area.  For instance, I'm
 installing org-toodledo which hasn't been packagized yet, so, when you
 (require 'org-toodledo) in your .emacs, the org 

Re: [O] tiny patch for org-expiry

2014-04-12 Thread Bastien
Hi Alan,

Alan Schmitt alan.schm...@polytechnique.org writes:

 I'm trying to write some code to schedule reviews of projects, and I'm
 basing it on org-expiry. I found a couple of tiny bugs with it, which
 may be fixed with this patch.

I Now Pronounce You Maintainer of Org Expiry :)

Joke aside, I haven't touch the code since long, so please go ahead
with bugfixes by committing them directly, unless there is something
you're unsure about.

Thanks!

-- 
 Bastien



Re: [O] Org-Agenda doesn't work

2014-04-12 Thread David Masterson
Nick Dokos ndo...@gmail.com writes:

 David Masterson dsmaster...@gmail.com writes:

 I got most of Org working again, but then the following error came up in
 org-agenda.  I removed the ELC files to try to make the error more
 clear.  Anyone know what the problem is?

 Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil)
   put-text-property(23003 nil org-effort 15)
   ...
   org-refresh-properties(Effort org-effort)
   ...
   org-agenda-prepare(TODO)
   ...
   org-todo-list(nil)
   call-interactively(org-todo-list)
   ...

 Try this patch:

 diff --git a/lisp/org.el b/lisp/org.el
 index f8615a2..bd9c05e 100644
 --- a/lisp/org.el
 +++ b/lisp/org.el
 @@ -9393,7 +9393,7 @@ property to set.
  (save-excursion
(org-back-to-heading t)
(put-text-property
 -   (point-at-bol) (outline-next-heading) tprop p
 +   (point-at-bol) (or (outline-next-heading) (point-max)) tprop 
 p
  
  
   Link Stuff


This works for me -- thanks.
-- 
David Masterson




[O] Spacing after sorting a heading

2014-04-12 Thread Kyle Meyer
Hi,

I prefer to have a blank line before headings (and have set
`org-blank-before-new-entry' for this effect), but I can't figure out
how to preserve this spacing when sorting trees.

,
| * First heading
|
| ** 
|
| btext
|
| ** 
|
| atext
|
| * Second heading
`

If First heading is sorted alphabetically, the blank line before
 is lost.

,
| * First heading
|
| ** 
|
| atext
| ** 
|
| btext
|
|
| * Second heading
`

(I don't think this behavior has changed recently, but my current Org
version is release_8.2.5h-909-ge24f33 just in case.)

Does anyone have suggestions for maintaining a space before headings
after sorting?

Thanks

--
Kyle



Re: [O] The Org Package

2014-04-12 Thread Grant Rettke
On Fri, Apr 11, 2014 at 9:32 PM, David Masterson dsmaster...@gmail.com wrote:
 Do you see where I'm heading?

Yes. As stated above, Worg has nice instructions. My experience has
been that once you
start using org you end up wanting different lots of different
packages, and some that are very up to date. I ended up using Cask.
There are many options, and that is one of them, and I do like it.

I just keep a Cask configuration file and that deals with obtaining
and loading the right stuff.

Grant Rettke | AAAS, ACM, AMA, COG, FSF, IEEE, 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