Re: [O] Automatically encrypt on save, decrypt on open?

2015-08-14 Thread Sebastien Vauban
Hello John,

> Here is the setup I have that worked when I tried it last ;)
>
> ;; encryption
> (require 'epa-file)
> (unless (memq epa-file-handler file-name-handler-alist)
>   (epa-file-enable))

Do you remember what are those 2 lines for?

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] Add version header to org.el

2015-08-14 Thread Rasmus
Achim Gratz  writes:

> Yes, we don't want to have to commit this nonsense when we have a proper
> VCS.  Now, instead of simply tagging a release you're back to having to
> remember that you have to jump through some burning hoops first in a
> particular oder, then commit it and then maybe you can tag the release.

I don't really see the issue...  Can we add a proper Version headers in
the make process for ELPA packages.

> I can think of some "latent" problems with how Emacs handles versions,
> too.

That seems orthogonal to the issue at hand.

Rasmus

-- 
I almost cut my hair, it happened just the other day




Re: [O] Automatically encrypt on save, decrypt on open?

2015-08-14 Thread John Kitchin
They are basically copied from thetop of
http://orgmode.org/worg/org-tutorials/encrypting-files.html

The first line loads epa-file (epa-file.el --- the EasyPG Assistant,
transparent file encryption )

The second line looks like a way to call epa-file-enable if it hasn't been
enabled. You can just call epa-file-enable, and it does the check too, but
this probably avoids a minibuffer message when it is already loaded. I
think this function provides a handler for files ending in .gpg which need
to be en/decrypted by gpg.

John

---
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu


On Fri, Aug 14, 2015 at 4:01 AM, Sebastien Vauban 
wrote:

> Hello John,
>
> > Here is the setup I have that worked when I tried it last ;)
> >
> > ;; encryption
> > (require 'epa-file)
> > (unless (memq epa-file-handler file-name-handler-alist)
> >   (epa-file-enable))
>
> Do you remember what are those 2 lines for?
>
> Best regards,
>   Seb
>
> --
> Sebastien Vauban
>
>
>


Re: [O] Pass options to \columns{} environment in beamer export

2015-08-14 Thread Suvayu Ali
Hi John,

On Thu, Aug 13, 2015 at 06:41:45PM -0500, John Hendy wrote:
> 
> I would not have guessed that from Worg, that's for sure. Thanks much for
> chiming in.

In the tutorial under "Special environments"[1], I see the following
paragraph:

  All contiguous environments are automatically wrapped in a columns
  environment, although it can be forced at any point by setting the
  BEAMER_env property to columns. This might be handy if you want to
  pass special options.

Do you think it could be worded more clearly?  When I wrote the article
(which is quite a while back :-p), I was trying to be complete without
being too verbose.  While working on your project, if you think of
improvements to the article, please feel free to make the changes.  The
article is in desperate need of updates.  I have a long list of
additions, if only I could find the time.

Cheers,


Footnotes:

[1] http://orgmode.org/worg/exporters/beamer/ox-beamer.html#special-environments

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] Automatically encrypt on save, decrypt on open?

2015-08-14 Thread Sebastien Vauban
Hello John,

>> > Here is the setup I have that worked when I tried it last ;)
>> >
>> > ;; encryption
>> > (require 'epa-file)
>> > (unless (memq epa-file-handler file-name-handler-alist)
>> >   (epa-file-enable))
>>
>> Do you remember what are those 2 lines for?
>
> They are basically copied from thetop of
> http://orgmode.org/worg/org-tutorials/encrypting-files.html
>
> The first line loads epa-file (epa-file.el --- the EasyPG Assistant,
> transparent file encryption )
>
> The second line looks like a way to call epa-file-enable if it hasn't been
> enabled. You can just call epa-file-enable, and it does the check too, but
> this probably avoids a minibuffer message when it is already loaded. I
> think this function provides a handler for files ending in .gpg which need
> to be en/decrypted by gpg.

It simply because it Just Works (TM) with those 3 lines which I have in
my .emacs file:

--8<---cut here---start->8---
  ;; EasyPG Assistant
  (with-eval-after-load "epa-file"
(setq epa-file-encrypt-to "j...@doe.com")
(setq epa-file-cache-passphrase-for-symmetric-encryption t))
--8<---cut here---end--->8---

Best regards,
  Seb

--
Sebastien Vauban




Re: [O] [PATCH] Re: Annoying positioning of point when writing footnotes

2015-08-14 Thread Nicolas Goaziou
Gerald Wildgruber  writes:

> One thing though: if I insert a new footnote in a region of text that
> already has footnotes before and after, the auto adjust mechanism is
> triggered by "C-c C-x f", but in this case point is set NOT near the NEW
> footnote marker but always at the marker of the LAST footnote!
>
> Can this be fixed as well?

Fixed. Thank you.

Regards,



Re: [O] org-bbdb-birthday reminder

2015-08-14 Thread Matt Lundin
Nick Dokos  writes:

> Here's a quick implementation of the method I described earlier
> in the thread:

This works great. Thanks! Perhaps we could integrate something like this
into org-bbdb.el...

Matt



Re: [O] [bug] org-cycle changed behavior in orgstruct-mode

2015-08-14 Thread Nicolas Goaziou
Rasmus  writes:

> Great.  The bad commit seems to be:
>
> commit 898cfbcac0560d1d742d939a62c5a8253fe9b66f
> Author: Nicolas Goaziou 
> Date:   Mon Aug 10 13:34:07 2015 +0200
>
> Implement faster `show-children' function
>
> * lisp/org.el (org-show-children): New function.
> (org-cycle-internal-local):
> (org-set-visibility-according-to-property):
> (org-content):
> (org-move-subtree-down):
> (orgstruct-setup):
> (org-show-set-visibility):
> * contrib/lisp/org-toc.el (org-toc-cycle-subtree):
> (org-toc-restore-config):
> * lisp/org-agenda.el (org-agenda-show-1):
> * lisp/org-feed.el (org-feed-update): Use new function.
>
> * etc/ORG-NEWS: Document new function.
>
> Suggested-by: Samuel Wales 
> 
>
> I guess I will have to dissect it more to figure out what broke.

`org-cycle-internal-local' calls `org-show-children', which is the Org
specific implementation of `show-children'.

I don't think orgstruct details should leak into `org-show-children', so
I suggest to plug orgstruct stuff, i.e., make sure `show-children' is
called instead of `org-show-children', elsewhere. 

One possibility is to use a hook in `org-cycle', not sure which one
though. `orgstruct-mode' could also assume its kludge status and use
something like `add-function'.

WDYT?

Regards,



[O] [ANN] Syntax checker now in master

2015-08-14 Thread Nicolas Goaziou
Hello,

I just merged `wip-lint' branch with `master'.  It is now possible to
check syntax in a document using 

  M-x org-lint


Regards,

-- 
Nicolas Goaziou0x80A93738



Re: [O] Better inline image scrolling

2015-08-14 Thread Grant Rettke
On Tue, May 5, 2015 at 9:11 AM, Leo Ufimtsev  wrote:
> Making (displayed) inline images use multiple lines sounds like a great idea.

Just to be overly clear: you are saying that it is a great idea add
the sliced-image utilization Org-Mode using
existing EMACS functionality for sliced images?



Re: [O] re-search-forward hang in org-link-search

2015-08-14 Thread Pip Cet
Hi Nicolas,

On Thu, Aug 13, 2015 at 11:37 PM, Nicolas Goaziou
 wrote:
> Hello,
>
> Pip Cet  writes:
>
>> Can you try this patch? That appears to fix the issue here, at least
>> for this one file, at the cost of yet another shy group added to the
>> regular expression.
>
> Thanks for the patch.
>
> Would you mind providing a proper commit message and send it again using
> "git format-patch"?

Of course, here we go. Please let me know if there's anything wrong
with it still. (I don't think gmail copy-and-paste preserves tabs, so
this is sent as an attachment. Is that okay, for future reference?)

It would be great if README_contribute could be updated no longer to
refer to ChangeLog files, and instead refer to the Emacs CONTRIBUTE
file (it would also be great if the special git commit messages could
be generated as easily as C-x 4 a does for ChangeLog entries. What do
people use for that?); I've attached a patch to change that as well,
but I'm not sure whether it's still properly a TINYCHANGE. Again, it
would be great if you could let me know if there's anything wrong with
it so I can avoid making the same mistake for future contributions.

Thanks!
Pip
From 4dac047849bdb44b631f0b8d7013eb0e15a0f512 Mon Sep 17 00:00:00 2001
From: Philip 
Date: Thu, 13 Aug 2015 18:49:56 +
Subject: [PATCH 1/2] org.el: fix recursive regular expression backtracking

	* org.el (org-link-search): Avoid recursive regexp
	backtracking behaviour when following search links.

	

	TINYCHANGE
---
 lisp/org.el | 8 
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index a908d9e..7f46687 100755
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -11128,18 +11128,18 @@ of matched result, with is either `dedicated' or `fuzzy'."
   "\\[[0-9]*\\(?:%\\|/[0-9]*\\)\\]"
   wspaceopt
   "\\)"))
-		  (sep (concat "\\(?:" wspace "+\\|" cookie "+\\)"))
+		  (sep (concat "\\(?:\\(?:" wspace "\\|" cookie "\\)+\\)"))
 		  (re (concat
 			   org-outline-regexp-bol
 			   "\\(?:" org-todo-regexp "[ \t]+\\)?"
 			   "\\(?:\\[#.\\][ \t]+\\)?"
 			   "\\(?:" org-comment-string "[ \t]+\\)?"
-			   sep "*"
+			   sep "?"
 			   (let ((title (mapconcat #'regexp-quote
 		   words
-		   (concat sep "+"
+		   sep)))
 			 (if starred (substring title 1) title))
-			   sep "*"
+			   sep "?"
 			   (org-re "\\(?:[ \t]+:[[:alnum:]_@#%%:]+:\\)?")
 			   "[ \t]*$")))
 		 (goto-char (point-min))
-- 
2.5.0

From f52f2e428d5d981ad6db43cd8c73724c8d62b037 Mon Sep 17 00:00:00 2001
From: Philip 
Date: Fri, 14 Aug 2015 16:42:02 +
Subject: [PATCH 2/2] 	Remove references to ChangeLog.

	* README_contribute: remove references to ChangeLog.  Instead,
	reference the Emacs `CONTRIBUTE' file which documents how to
	format git commit messages.

TINYCHANGE
---
 README_contribute | 8 
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/README_contribute b/README_contribute
index 3e1ef6d..63ed0bd 100644
--- a/README_contribute
+++ b/README_contribute
@@ -58,10 +58,10 @@ development.
  new mechanism to make sure all changes end up in the right
  place.
 
-   - Creating and pushing a change to the Org-mode core requires
- you also to provide ChangeLog entries.  Just press `C-x 4 a'
- in each function or variable you have modified and describe
- the change you made in the ChangeLog buffer/file.
+   - Org-mode no longer uses ChangeLog entries to document
+ changes. Instead, special commit messages are used, as
+ described in the `CONTRIBUTE' file in the main Emacs
+ repository.
 
- Among other things, Org-mode is widely appreciated because
  of its simplicity, cleanness and consistency.  We should try
-- 
2.5.0



Re: [O] Automatically encrypt on save, decrypt on open?

2015-08-14 Thread Jorge A. Alfaro-Murillo

Peter Davis writes:

I'd like to store information in an org page that gets 
automatically encrypted when I save it, and decrypted when I 
open it. Is there some built-in functionality or hooks for this?


You could save the file as .gpg, and put as its first line

# -*- mode: org-mode -*-

By the way if you want to store passwords, take a look at 
org-passwords in /contrib


Best,
--
Jorge.




Re: [O] Add version header to org.el

2015-08-14 Thread Achim Gratz
Rasmus writes:
> I don't really see the issue...  Can we add a proper Version headers in
> the make process for ELPA packages.

We don't generate org.el; while it would not be impossible to do, I
don't really see why we should just to drop some comment in there.
Besides, it would be perfectly possible to just install the .elc files
(not with package manager, but some Linux distributions actually do
this) and then where do you look for the version comments again?


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

Factory and User Sound Singles for Waldorf Q+, Q and microQ:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds




Re: [O] Automatically encrypt on save, decrypt on open?

2015-08-14 Thread Marcin Borkowski

On 2015-08-14, at 19:54, Jorge A. Alfaro-Murillo 
 wrote:

> Peter Davis writes:
>
>> I'd like to store information in an org page that gets 
>> automatically encrypted when I save it, and decrypted when I 
>> open it. Is there some built-in functionality or hooks for this?
>
> You could save the file as .gpg, and put as its first line
>
> # -*- mode: org-mode -*-

In my setup (and I didn't do anything special, just installed gpg from
Ubuntu repos), it is enough to name the file foo.org.gpg (of course,
I have this: (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))).
 
> Best,

Hth,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



Re: [O] re-search-forward hang in org-link-search

2015-08-14 Thread Nicolas Goaziou
Pip Cet  writes:

> Of course, here we go. Please let me know if there's anything wrong
> with it still. (I don't think gmail copy-and-paste preserves tabs, so
> this is sent as an attachment. Is that okay, for future reference?)
>
> It would be great if README_contribute could be updated no longer to
> refer to ChangeLog files, and instead refer to the Emacs CONTRIBUTE
> file (it would also be great if the special git commit messages could
> be generated as easily as C-x 4 a does for ChangeLog entries. What do
> people use for that?); I've attached a patch to change that as well,
> but I'm not sure whether it's still properly a TINYCHANGE. Again, it
> would be great if you could let me know if there's anything wrong with
> it so I can avoid making the same mistake for future contributions.

Thanks for your patches. They look good. I applied them with very minor
tweaks, explained below.

> Subject: [PATCH 1/2] org.el: fix recursive regular expression backtracking

"Fix" needs to be capitalized.

>
>   * org.el (org-link-search): Avoid recursive regexp
>   backtracking behaviour when following search links.

Emacs uses American spelling: "behavior".

> Subject: [PATCH 2/2]  Remove references to ChangeLog.

No full stop at the end of the commit summary.

>   * README_contribute: remove references to ChangeLog.  Instead,

"Remove"

> +   - Org-mode no longer uses ChangeLog entries to document

We try to change "Org-mode" into "Org mode" whenever we can.

> + changes. Instead, special commit messages are used, as

Sentences are separated with two spaces.


Regards,



Re: [O] 8.3 hangs

2015-08-14 Thread Samuel Wales
i am still getting a lot of hangs in 8.3.  most often, it is when i do
a subtree sort.

i keep trying element debug mode, but it has magical bug preventing abilities.

org-show-entry is another place where the bug occurs.  it is part of
recreating a more folded state after undoing a sort.

once it was like

Debugger entered--Lisp error: (quit)
  org-element--cache-compare
  avl-tree--do-delete
  avl-tree--do-delete
  avl-tree--do-delete
  avl-tree--do-delete
  avl-tree--do-delete
  avl-tree-delete
  org-element--cache-process-request
  org-element--cache-sync(# 31756)
  org-element-at-point()
  org-cycle-hide-drawers(children)
  org-show-entry()

anybody else getting these hangs?



Re: [O] 8.3 hangs

2015-08-14 Thread Samuel Wales
it might not be sorting itself.  after i sort, i do org-show-entry as
part of a sequence to try to make things a little more folded after a
sort.



Re: [O] [ANN] Syntax checker now in master

2015-08-14 Thread Rasmus
Nicolas Goaziou  writes:

> Hello,
>
> I just merged `wip-lint' branch with `master'.  It is now possible to
> check syntax in a document using 
>
>   M-x org-lint

Cool.  Thanks!

-- 
Vote for Dick Taid in an election near you!




Re: [O] org-element approach to modify or add ID to every headline

2015-08-14 Thread Samuel W. Flint
Grant Rettke  writes:

> On Sun, Aug 9, 2015 at 2:44 AM, Nicolas Goaziou  
> wrote:
>> Anyway, the following should do:
>
> That works perfectly. Thank you.
>
> Tempted to run it in a on-save hook just to ensure that the document
> *always* has IDs. At least for tangle comments.
>

You might try setting `org-id-link-to-org-use-id' to either t or
'create-if-interactive.  I believe I have it set to t, and I get ids
generated when I tangle.

HTH,

Sam

-- 
Samuel W. Flint
4096R/266596F4
  (9477 D23E 389E 40C5 2F10  DE19 68E5 318E 2665 96F4)
(λs.s s) λs.s s


signature.asc
Description: PGP signature


Re: [O] Pass options to \columns{} environment in beamer export

2015-08-14 Thread John Hendy
On Fri, Aug 14, 2015 at 6:25 AM, Suvayu Ali  wrote:
>
> Hi John,
>
> On Thu, Aug 13, 2015 at 06:41:45PM -0500, John Hendy wrote:
> >
> > I would not have guessed that from Worg, that's for sure. Thanks much for
> > chiming in.
>
> In the tutorial under "Special environments"[1], I see the following
> paragraph:
>
>   All contiguous environments are automatically wrapped in a columns
>   environment, although it can be forced at any point by setting the
>   BEAMER_env property to columns. This might be handy if you want to
>   pass special options.
>

I indeed saw said paragraph (it's quoted it in my initial email to the
list). I highly suspected it contained what I needed, I just didn't
know how to apply it practically.

> Do you think it could be worded more clearly?  When I wrote the article
> (which is quite a while back :-p), I was trying to be complete without
> being too verbose.  While working on your project, if you think of
> improvements to the article, please feel free to make the changes.  The
> article is in desperate need of updates.  I have a long list of
> additions, if only I could find the time.


Definitely, and I can take a stab at it now that I understand how it
works. I think what didn't register was the meaning of "contiguous
environments." I'm not really sure how to parse that.
- What is an "environment" (as in any of the b_xxx properties causes
it to be in a columns env. as well)?

- What is "contiguous" (I think I now understand this to mean
"nested.")? I guess I tend to think of contiguous as "of the same
part," which didn't immediately register as "parent/child." That said,
I think I *did* try putting the columns env property on my first level
headline, but that didn't work. I needed:

* Top
** Columns property
*** actual column 1
*** actual column 2


John

>
>
> Cheers,
>
>
> Footnotes:
>
> [1] 
> http://orgmode.org/worg/exporters/beamer/ox-beamer.html#special-environments
>
> --
> Suvayu
>
> Open source is the future. It sets us free.
>



Re: [O] [gnorb] completion for `gnorb-gnus-incoming-do-todo'

2015-08-14 Thread Eric Abrahamsen
Thomas Holst  writes:

> Hi Eric,
>
> · Eric Abrahamsen  wrote:
>
>>> thanks for the gnorb package! I started using it and I like it a lot!
>>>
>>> When I call `gnorb-gnus-incoming-do-todo' from gnus I'm prompted for a
>>> headline. But completion is not working. Neither  nor M-j does
>>> anything.
>>>
>>> How can I get completion working? Completion is working for org-refile.
>>>
>>> I have no settings customized. Only key bindings as suggested.
>>>
>>> Thank you for looking into this!
>>
>> Hi Thomas,
>>
>> Glad to hear you're liking Gnorb! Can you tell me a few things about
>> your setup?
>>
>> 1. What versions of the packages are you using? Org and Gnorb?
>
> I use most recent git versions:
>
> Org-mode version 8.3.1 (release_8.3.1-56-g046110 @
> /home/thommy/git-emacs/org-mode/lisp/)
>
> gnorb: most recent git version
>
>> 2. Are you using any special completion packages (ido, iswitchb,
>> helm)?
>
> I mostly use helm. But for refile I use following settings since I
> found helm not really working here:
>
> #+begin_src emacs_lisp
>   ;; 
> -
>   ;; settings fr org-refile
>   ;; 
> -
>   (setq org-refile-use-outline-path 'file)
>   (setq org-refile-targets
> '((org-agenda-files :maxlevel . 3)
>   (org-agenda-text-search-extra-files . (:maxlevel . 3))
>   (nil :maxlevel . 5)))
>
>   ; Allow refile to create parent tasks with confirmation
>   (setq org-refile-allow-creating-parent-nodes (quote confirm))
> #+end_src
>
>> 3. Can you confirm that the prompt where you're seeing failure is
>>"Trigger heading:"?
>
> I see: "Trigger heading (default Reparaturen):"
>>
>> I assume that putting point after this sexp and running "C-x C-e" gets
>> you a fully functional completion prompt, is that true?
>>
>> (org-refile-get-location "Trigger heading" nil t)
>
> Yes with helm interface. But again completion is not functional.
>
> Now when I press `g' at the begin of a headline I get:
>
> "Refile subtree "Erträge" to (default Reperaturen):"
>
> With regular (no helm) completion ( completes) working.

Sorry this is taking me a while...

I'm still trying to get exactly what's going on here -- you haven't been
able to use helm with org at all, so you set those refile values in
order to disable helm when refiling, but with gnorb it tries to go back
to using helm and fails, is that right?

Gnorb provides the option `gnorb-gnus-trigger-refile-targets', which is
basically exactly the same as `org-refile-targets', it just allows you
to adjust how/which headings are proposed as for the gnorb trigger
process. Maybe you can try setting that to the same value as your
current `org-refile-targets', and see if that helps?

Hmm, I should probably be doing that by default...

If I were you, though, I'd be looking more closely into why helm isn't
working with org! It's pretty useful... If you use helm with
`org-refile-get-location', do you not see any headings at all? Or you
see them but typing does nothing?

Eric




Re: [O] [PATCH] Re: Annoying positioning of point when writing footnotes

2015-08-14 Thread Gerald Wildgruber

On Fr, Aug 14 2015, Nicolas Goaziou  wrote:

> Gerald Wildgruber  writes:
>
>> One thing though: if I insert a new footnote in a region of text that
>> already has footnotes before and after, the auto adjust mechanism is
>> triggered by "C-c C-x f", but in this case point is set NOT near the NEW
>> footnote marker but always at the marker of the LAST footnote!
>>
>> Can this be fixed as well?
>
> Fixed. Thank you.

Nicolas, thanks for these amazingly fast and efficient fixes, works
perfectly now.

Gerald.



Re: [O] Pass options to \columns{} environment in beamer export

2015-08-14 Thread Suvayu Ali
Hi John,

On Fri, Aug 14, 2015 at 11:16:42PM -0500, John Hendy wrote:
> On Fri, Aug 14, 2015 at 6:25 AM, Suvayu Ali  
> wrote:
> >
> >   All contiguous environments are automatically wrapped in a columns
> >   environment, although it can be forced at any point by setting the
> >   BEAMER_env property to columns. This might be handy if you want to
> >   pass special options.

 [...]

> Definitely, and I can take a stab at it now that I understand how it
> works. I think what didn't register was the meaning of "contiguous
> environments." I'm not really sure how to parse that.
> - What is an "environment" (as in any of the b_xxx properties causes
> it to be in a columns env. as well)?

Environment here refers to what is exported to LaTeX.  Since the
previous paragraph was talking about "column", I mean these blocks:

  \begin{column}
  ...
  \end{column}

I think the important bit to understand (in general about the beamer
exporter), the properties are what determine the exported LaTeX
environment.  The tags are there for the convenience of the user.  The
BMCOL tag is the exception, no other tag behaves this way.  There is
another special tag, B_ignoreheading, but there the purpose is to end
the previous environment, rather than export a new one.

> - What is "contiguous" (I think I now understand this to mean
> "nested.")? I guess I tend to think of contiguous as "of the same
> part," which didn't immediately register as "parent/child." That said,

The dictionary meaning of contiguous is something that shares a
boundary, or adjacent.  Maybe a more common, but less specific, word is
easier to follow, say something like adjacent or consecutive.  Is the
meaning clearer if contiguous is changed to one of these?  

Would a more verbose explanation, maybe with an example, be better?
Either way, please feel free to make the change :).

Cheers,

-- 
Suvayu

Open source is the future. It sets us free.



[O] M-x org-publish in 8.3.1 results in error "org-check-agenda-file: Wrong type argument: stringp, nil"

2015-08-14 Thread Omid
Hello,

In Emacs 24.5.1, after updating to the latest Org mode in ELPA
(8.3.1-16-gf6aa53-elpa), org-publish results in the error

"org-check-agenda-file: Wrong type argument: stringp, nil"

on a project that used to publish without errors using the latest Org 8.2.

Here is the part of a backtrace of the error (using M-x
toggle-debug-on-error) that I believe is relevant

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  file-exists-p(nil)
  org-check-agenda-file(nil)
  byte-code("")
[file pos org-agenda-ignore-properties org-todo-keywords-for-agenda
org-todo-keywords-1 org-done-keywords-for-agenda bufferp
org-check-agenda-file org-get-agenda-file-buffer
org-set-regexps-and-options tags-only category
org-refresh-category-properties stats org-refresh-stats-properties
effort org-refresh-effort-properties appt org-refresh-properties
"APPT_WARNTIME" org-appt-warntime append copy-sequence delete-dups
org-uniquify-alist buffer-modified-p t nil ((byte-code " [modified
restore-buffer-modified-p nil] 2)) remove-text-properties
re-search-forward org-at-heading-p add-text-properties point-at-bol
org-end-of-subtree format "^\\* .*\\<%s\\>" match-data ((byte-code ""
[save-match-data-internal set-match-data evaporate] 3))
org-in-commented-heading-p 0 org-done-keywords
org-todo-keyword-alist-for-agenda org-todo-key-alist
org-tag-alist-for-agenda org-tag-alist org-tag-persistent-alist list res
org-group-tags ...] 5)
  org-agenda-prepare-buffers((nil))
  org-map-entries(#[nil "\300\301 !\207" [org-reduced-level
org-current-level] 2])
call-interactively(org-publish record nil)
  command-execute(org-publish record)
  execute-extended-command(nil "org-publish")


I had to remove the arguments of byte-code() because they contained
special characters that couldn't be pasted in email.

Searching for this error, the only instance I could find was at

https://lists.gnu.org/archive/html/emacs-orgmode/2014-11/msg00343.html

reporting a the same error message, but the solution suggested there
is already implemented in 8.3 as a fix and is not applicable in this
case.

The relevant part of org.el is


(defun org-check-agenda-file (file)
  "Make sure FILE exists.  If not, ask user what to do."
  (when (not (file-exists-p file))
(message "Non-existent agenda file %s.  [R]emove from list or [A]bort?"
 (abbreviate-file-name file))
(let ((r (downcase (read-char-exclusive
  (cond
   ((equal r ?r)
(org-remove-file file)
(throw 'nextfile t))
   (t (user-error "Abort"))


How can I solve this problem?

Thanks,

Omid