From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Klein Subject: current head croaks on export since commit "Backport commit 3a5f751 from Emacs master branch" Date: Mon, 10 Aug 2015 09:04:40 +0200 Message-ID: <20150810090440.56afc9f5@pckr150.mpip-mainz.mpg.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37845) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOh8h-0000gl-ID for emacs-orgmode@gnu.org; Mon, 10 Aug 2015 03:04:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZOh8e-0007ia-B4 for emacs-orgmode@gnu.org; Mon, 10 Aug 2015 03:04:55 -0400 Received: from gate1.mpip-mainz.mpg.de ([194.95.63.248]:61874) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOh8e-0007gB-4Y for emacs-orgmode@gnu.org; Mon, 10 Aug 2015 03:04:52 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Cc: monnier@iro.umontreal.ca Hi, when I export a file with current org main I get the following error (git-bisect-identified commit below): Debugger entered--Lisp error: (wrong-type-argument stringp nil) file-exists-p(nil) org-check-agenda-file(nil) byte-code("\306=08!\203\f...... [can't paste] .b\207" [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]) org-export--prepare-file-contents("/home/theorie/kleinrob/Documents/mpipdo= cs/sysdoc/include/mpip-akte.org" nil 0 1 1 #s(hash-table size 65 test equal rehash-size 1.5 rehash-threshold 0.8 data ( ...))) org-export-expand-include-keyword() org-export-as(latex nil nil nil (:output-file "./nmrfiler.tex")) org-export-to-file(latex "./nmrfiler.tex" nil nil nil nil nil #[(file) "\301=08!\207" [file org-latex-compile] 2]) org-latex-export-to-pdf(nil nil nil nil) org-export-dispatch(nil) call-interactively(org-export-dispatch nil nil) command-execute(org-export-dispatch) it worked on friday morning; git bisect identifiesd the following commit: git bisect bad ef9637030456b153fd834f4c9202a9264d5ef18d is the first bad commit commit ef9637030456b153fd834f4c9202a9264d5ef18d Author: Stefan Monnier Date: Sat Aug 8 19:41:57 2015 -0400 Backport commit 3a5f751 from Emacs master branch =20 * lisp/org.el (org-goto-map, org-assign-fast-keys) (org-contextualize-keys, org-contextualize-validate-key) (org-notes-order-reversed-p, org-local-logging, org-map-entries) (org-find-olp, org-find-exact-heading-in-directory) (org-cycle-agenda-files, org-release-buffers, org-fill-template) (org-agenda-prepare-buffers, org-occur-in-agenda-files) (org-replace-escapes): Use dolist. (org-mode): Optimize away XEmacs-only code. (org-refile-get-targets): Remove unused var `f'. (org-fast-todo-selection): Remove unused var `e'. (org-make-tags-matcher): Use dolist. Remove unused var `term'. (org-fast-tag-selection): Use dolist. Remove unused var `e'. (org-format-latex): Use dolist. Remove unused var `e'. (org-backward-sentence, org-forward-sentence, org-meta-return) (org-kill-line): Mark arg as unused. (org-submit-bug-report): Silence compiler warning. (org-occur-in-agenda-files): Don't use add-to-list on local vars. (org-get-cursor-date): Remove unused var `tm'. (org-comment-or-uncomment-region): Use standard name `_'. (reftex-docstruct-symbol, reftex-cite-format): Declare to silence byte-compiler. (org-reftex-citation): Add `org--' prefix to dynamically scoped `rds' var. =20 org.el: Fix up some lexical scoping warnings, and use dolist 3a5f75193ed10ee5fb458e9879340947f31d5e12 Stefan Monnier Sat Aug 8 19:41:57 2015 -0400 :040000 040000 19e9e2191b96b7139dd54e2b6682783bfaabb2c4 75f021c6d8d6e92c803e0a2723cd22de5aa2c130 M lisp If the changes in the commit are Ok, there should perhaps be a check in org-check-agenda-file: (defun org-check-agenda-file (file) "Make sure FILE exists. If not, ask user what to do." (when (not (string-p file)) do something else... Any help is very much apprecieated. Thank you very much! Best regards Robert