emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* M-x org-publish in 8.3.1 results in error "org-check-agenda-file: Wrong type argument: stringp, nil"
@ 2015-08-15  6:51 Omid
  2015-08-15  7:28 ` Kyle Meyer
  0 siblings, 1 reply; 6+ messages in thread
From: Omid @ 2015-08-15  6:51 UTC (permalink / raw)
  To: emacs-org

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: M-x org-publish in 8.3.1 results in error "org-check-agenda-file: Wrong type argument: stringp, nil"
  2015-08-15  6:51 M-x org-publish in 8.3.1 results in error "org-check-agenda-file: Wrong type argument: stringp, nil" Omid
@ 2015-08-15  7:28 ` Kyle Meyer
  2015-08-15 21:37   ` Omid
  0 siblings, 1 reply; 6+ messages in thread
From: Kyle Meyer @ 2015-08-15  7:28 UTC (permalink / raw)
  To: Omid; +Cc: emacs-org

Omid <omidlink@gmail.com> writes:

> 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"

I believe this is the same issue as below and should be fixed as of
44c8cd7 ("org-map-entries: Fix org-agenda-prepare-buffers call",
2015-08-10).

http://permalink.gmane.org/gmane.emacs.orgmode/99779

--
Kyle

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: M-x org-publish in 8.3.1 results in error "org-check-agenda-file: Wrong type argument: stringp, nil"
  2015-08-15  7:28 ` Kyle Meyer
@ 2015-08-15 21:37   ` Omid
  2015-08-16  6:52     ` Kyle Meyer
  2015-08-18 16:38     ` Bastien
  0 siblings, 2 replies; 6+ messages in thread
From: Omid @ 2015-08-15 21:37 UTC (permalink / raw)
  To: emacs-org

Thank you Kyle for your quick reply.

I confirm that, as you said, the error I reported is fixed in the
latest maint (release_8.3.1-93-g69b0db), but now a new error arises
upon M-x org-publish:

user-error: No language for src block: (unnamed)

Again, this did not happen with 8.2.10 that ships with Emacs 24.5.1.

--
Omid

On 08/15/2015 03:28 AM, Kyle Meyer wrote:
> Omid <omidlink@gmail.com> writes:
> 
>> 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"
> 
> I believe this is the same issue as below and should be fixed as of
> 44c8cd7 ("org-map-entries: Fix org-agenda-prepare-buffers call",
> 2015-08-10).
> 
> http://permalink.gmane.org/gmane.emacs.orgmode/99779
> 
> --
> Kyle
> 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: M-x org-publish in 8.3.1 results in error "org-check-agenda-file: Wrong type argument: stringp, nil"
  2015-08-15 21:37   ` Omid
@ 2015-08-16  6:52     ` Kyle Meyer
  2015-08-18 16:38     ` Bastien
  1 sibling, 0 replies; 6+ messages in thread
From: Kyle Meyer @ 2015-08-16  6:52 UTC (permalink / raw)
  To: Omid; +Cc: emacs-org

Omid <omidlink@gmail.com> writes:

> but now a new error arises upon M-x org-publish:
>
> user-error: No language for src block: (unnamed)

Are you using source blocks without a language specified?

    #+BEGIN_SRC
      ...
    #+END_SRC

Here is the post that lead to the change:
http://thread.gmane.org/gmane.emacs.orgmode/95920

--
Kyle

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: M-x org-publish in 8.3.1 results in error "org-check-agenda-file: Wrong type argument: stringp, nil"
  2015-08-15 21:37   ` Omid
  2015-08-16  6:52     ` Kyle Meyer
@ 2015-08-18 16:38     ` Bastien
  2015-08-19  9:52       ` Sebastien Vauban
  1 sibling, 1 reply; 6+ messages in thread
From: Bastien @ 2015-08-18 16:38 UTC (permalink / raw)
  To: Omid; +Cc: emacs-org

Omid <omidlink@gmail.com> writes:

> user-error: No language for src block: (unnamed)

This suggests to look for a #+begin_src block with no language name.

-- 
 Bastien

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: M-x org-publish in 8.3.1 results in error "org-check-agenda-file: Wrong type argument: stringp, nil"
  2015-08-18 16:38     ` Bastien
@ 2015-08-19  9:52       ` Sebastien Vauban
  0 siblings, 0 replies; 6+ messages in thread
From: Sebastien Vauban @ 2015-08-19  9:52 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Bastien <bzg-mXXj517/zsQ@public.gmane.org> writes:
> Omid <omidlink-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
>
>> user-error: No language for src block: (unnamed)
>
> This suggests to look for a #+begin_src block with no language name.

Use the function `my-src-block-check' [1] to find where it's missing.

Best regards,
  Seb

[1] https://lists.gnu.org/archive/html/emacs-orgmode/2014-11/msg00776.html

-- 
Sebastien Vauban

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-08-19  9:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-15  6:51 M-x org-publish in 8.3.1 results in error "org-check-agenda-file: Wrong type argument: stringp, nil" Omid
2015-08-15  7:28 ` Kyle Meyer
2015-08-15 21:37   ` Omid
2015-08-16  6:52     ` Kyle Meyer
2015-08-18 16:38     ` Bastien
2015-08-19  9:52       ` Sebastien Vauban

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).