Hi Thomas, Thanks for the tip! I though I had fixed local.mk to use Emacs.app, but I'll check again. I do think the error shows up also with non-compiled .el files... Ole "Thomas S. Dye" wrote: Aloha Ole, Something is wrong with your setup. See the message about org-loaddefs.el not being found. I don't pretend to understand the Org build system, but using Org from git on my Mac I had to modify local.mk to ensure that the old emacs that ships with the Mac wasn't found when Org was building. I mention this because one of the symptoms of my incorrect build was the message that you are getting. I haven't seen it since I pointed the build to my emacs 24.2 installation. hth, Tom Ole Myren Rohne writes: > Hi, > > I expect to be able to C-c C-w, select some node a few levels down inside another file, and my node should land there. Instead I get the message "Please save the buffer to a file before refiling", and the target file is not updated. > > I've configured at least two refile-variables that might be relevant, > org-refile-targets > org-refile-use-outline-path > see below for details. > > Many thanks, Ole > > Emacs : GNU Emacs 24.2.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) > of 2012-08-27 on bob.porkrind.org > Package: Org-mode version 7.9.2 (release_7.9.2-561-g6b6330-git @ org-loaddefs.el can not be found!) > > current state: > ============== > (setq > org-export-preprocess-before-selecting-backend-code-hook '(org-beamer-select-beamer-code) > org-tab-first-hook '(org-hide-block-toggle-maybe > org-src-native-tab-command-maybe > org-babel-hide-result-toggle-maybe > org-babel-header-arg-expand) > org-goto-interface 'outline-path-completion > org-speed-command-hook '(org-speed-command-default-hook > org-babel-speed-command-hook) > org-agenda-cleanup-fancy-diary-hook '((lambda nil (goto-char (point-min)) > (save-excursion > (while > (re-search-forward "^[a-z]" nil t) > (goto-char (match-beginning 0)) > (insert "0:00-24:00 ")) > ) > (while > (re-search-forward "^ [a-z]" nil t) > (goto-char (match-beginning 0)) > (save-excursion > (re-search-backward > "^[0-9]+:[0-9]+-[0-9]+:[0-9]+ " nil > t) > ) > (insert (match-string 0))) > ) > ) > org-occur-hook '(org-first-headline-recenter) > org-metaup-hook '(org-babel-load-in-session-maybe) > org-clock-into-drawer "LOGBOOK" > org-export-preprocess-before-normalizing-links-hook '(org-remove-file-link-modifiers) > org-confirm-shell-link-function 'yes-or-no-p > org-goto-max-level 3 > org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc > org-beamer-auto-fragile-frames > org-beamer-place-default-actions-for-lists) > org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars) > org-agenda-custom-commands '(("I" "Import diary from iCal" agenda "" > ((org-agenda-mode-hook > (lambda nil (org-mac-iCal))) > ) > ) > ("n" "Agenda and all TODO's" > ((agenda "") (alltodo))) > ) > org-default-notes-file "~/Documents/Projects/notes.org" > org-capture-templates '(("t" "Task" entry (file+headline "" "Tasks") > "* TODO %?\n :LOGBOOK:\n - Started on %U\n :END:\n %a") > ("j" "Journal" entry > (file+datetree "~/Documents/Projects/journal.org") > "* %?\n %u\n %i\n %a") > ) > org-agenda-include-diary t > org-after-todo-state-change-hook '(org-clock-out-if-current) > org-from-is-user-regexp "\\" > org-src-mode-hook '(org-src-babel-configure-edit-buffer > org-src-mode-configure-edit-buffer) > org-agenda-before-write-hook '(org-agenda-add-entry-text) > org-babel-pre-tangle-hook '(save-buffer) > org-mode-hook '((lambda nil > (org-add-hook (quote change-major-mode-hook) > (quote org-show-block-all) (quote append) (quote local)) > ) > (lambda nil > (org-add-hook (quote change-major-mode-hook) > (quote org-babel-show-result-all) (quote append) > (quote local)) > ) > org-babel-result-hide-spec org-babel-hide-all-hashes > turn-on-font-lock turn-on-flyspell) > org-export-allow-BIND t > org-refile-targets '((org-agenda-files :level . 2) (nil :maxlevel . 3)) > org-agenda-todo-list-sublevels nil > org-use-speed-commands t > org-export-latex-default-packages-alist '(("T1" "fontenc" t) > ("" "fixltx2e" nil) > ("" "graphicx" t) > ("" "longtable" nil) > ("" "float" nil) ("" "wrapfig" nil) > ("" "soul" t) ("" "textcomp" t) > ("" "marvosym" t) ("" "wasysym" t) > ("" "latexsym" t) ("" "amssymb" t) > ("" "hyperref" nil) > "\\tolerance=1000") > org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point > org-babel-execute-safely-maybe) > org-refile-use-outline-path 'file > org-directory "~/Documents/Projects/" > org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers > org-cycle-hide-inline-tasks org-cycle-show-empty-lines > org-optimize-window-after-visibility-change) > org-export-latex-format-toc-function 'org-export-latex-format-toc-default > org-log-refile 'time > org-mobile-encryption-tempfile "~/Dropbox/Projects/orgtmpcrypt" > org-export-first-hook '(org-beamer-initialize-open-trackers) > org-export-latex-image-default-option "width=.99\\linewidth" > org-export-preprocess-hook '(org-export-bibtex-preprocess) > org-refile-allow-creating-parent-nodes 'confirm > org-todo-keywords '((sequence "TODO(t!/!)" "NEXT(n!/!)" "STARTED(s!/!)" "|" > "DONE(d!/!)") > (sequence "WAITING(w@/!)" "SOMEDAY(S!)" "|" > "CANCELLED(c@/!)" "PHONE") > (sequence "OPEN(O!)" "|" "CLOSED(C!)")) > org-mac-grab-Skim-app-p t > org-timer-default-timer 25 > org-beamer-environments-extra '(("tikzpicture" "p" "\\begin{tikzpicture}" > "\\end{tikzpicture}") > ) > org-babel-tangle-lang-exts '(("lisp" . "lisp") ("maxima" . "mac") > ("emacs-lisp" . "el")) > org-confirm-elisp-link-function 'yes-or-no-p > org-metadown-hook '(org-babel-pop-to-session-maybe) > org-log-into-drawer t > org-export-preprocess-after-include-files-hook '(org-beamer-set-text-properties) > org-mobile-directory "~/Dropbox/Projects/" > org-babel-load-languages '((emacs-lisp . t) (sh . t) (maxima . t) > (gnuplot . t)) > org-clock-in-hook '((lambda nil (org-timer-set-timer))) > org-agenda-files '("~/Documents/Projects/") > org-clock-out-hook '(org-clock-remove-empty-clock-drawer) > org-confirm-babel-evaluate nil > org-mobile-inbox-for-pull "~/Dropbox/Projects/from-mobile.org" > ) > > > -- Thomas S. Dye http://www.tsdye.com