Skip to content

org-refile does not work. org-copy-subtree: Invalid function: org-preserve-local-variables #11801

@Lchyang

Description

@Lchyang

Description
org-refile does not work.

Reproduction guide 🐞
Start Emacs
Open an .org file
Go to a headline and try to refile by , R
select a target
Observed behaviour: 👀 💔
I get the following message:
Getting targets...done
Copied: Subtree(s) with 22 characters
org-copy-subtree: Invalid function: org-preserve-local-variables

Expected behaviour: ❤️ 😄
refile could be used

System Info 💻

  • OS: darwin
  • Emacs: 25.3.1
  • Spacemacs: 0.200.13
  • Spacemacs branch: master (rev. c7a103a)
  • Graphic display: t
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
    ‘‘‘elisp
    (markdown
    (ibuffer :variables ibuffer-group-buffers-by ’projects)
    (chinese :variables chinese-enable-youdao-dict t)
    auto-completion emacs-lisp
    (python :variables python-sort-imports-on-save t python-enable-yapf-format-on-save t)
    django org syntax-checking)
    ‘‘‘

my org config:

(with-eval-after-load 'org

  (setq org-agenda-files '("~/org/gtd/inbox.org"
                          "~/org/gtd/gtd.org"
                          "~/org/gtd/tickler.org"))

  (setq org-capture-templates '(("t" "Todo [inbox]" entry
                                (file+headline "~/org/gtd/inbox.org" "Tasks")
                                "* TODO %i%?")
                                ("T" "Tickler" entry
                                (file+headline "~/org/gtd/tickler.org" "Tickler")
                                "* %i%? \n %U")))


  (setq org-refile-targets
          '((nil :maxlevel . 3)
          (org-agenda-files :maxlevel . 3)))

  (setq org-refile-use-outline-path 'file)

  (setq org-outline-path-complete-in-steps nil)

  (setq org-todo-keywords '((sequence "TODO(t)" "WAITING(w)" "|" "DONE(d)" "CANCELLED(c)")))

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions