emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Raymond Zeitler" <zeitra@yahoo.com>
To: 'org-mode mailing list' <emacs-orgmode@gnu.org>
Subject: refile workflow -- move to same heading in different file?
Date: Wed, 2 Aug 2017 11:11:17 -0400	[thread overview]
Message-ID: <004901d30ba1$977df190$c679d4b0$@yahoo.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1570 bytes --]

How do I customize org to refile from one file to another?  I am baffled
that org-refile is not set up to do this out-of-the-box.

 

versions:

Org mode version 9.0.9 (9.0.9-30-g796a78-elpa @
c:/Users/rayz/AppData/Roaming/RZHOME/.emacs.d/elpa/org-20170703/)

GNU Emacs 25.2.1 (x86_64-w64-mingw32) of 2017-04-24

Windows 7 SP1

user is a member of the local administrator group

 

Details.

C-c C-w cannot seem to recognize any of my agenda files, even though
org-refile-targets is set to (in custom-set-variables):

(org-refile-targets (quote ((org-agenda-files :regexp . "Tasks"))))

 

Suppose org-agenda-files contains "~/proj1.org" "~/proj2.org" "~/proj3.org"
"~/todo.org".

 

My expectation is that when I press C-c C-w with point on a subheading of
Tasks in todo.org, I can specify, say proj1.org and get the subheading moved
to proj1.org under Tasks.  However, org-refile responds [No Match], even if
I provide the file as ~/proj1.org.  And Emacs is visiting proj1.org in
another buffer.

 

So I now do this manually:

 

Visit todo.org

For Each subheading of Tasks related to proj1.

    Place point at the start of subheading

    Invoke set-mark-command at end of subheading

    ; and BTW this is very tricky business, I guess due to narrowing

    kill

    switch buffer to proj1.org

    place point as close to column 1 under the Tasks line

    ; again very tricky business

    yank

    switch buffer back to todo.org

Next

 

(Sorry for posting pseudocode that resembles Vi$ual Ba$ic!  The org-babel
question for *that* is in queue.)

 

- Ray


[-- Attachment #2: Type: text/html, Size: 4399 bytes --]

             reply	other threads:[~2017-08-02 15:11 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-02 15:11 Raymond Zeitler [this message]
2017-08-03 10:07 ` refile workflow -- move to same heading in different file? Adam Porter
  -- strict thread matches above, loose matches on Subject: below --
2017-08-03 18:52 Raymond Zeitler
2017-08-04  1:51 ` Adam Porter
2017-08-04  4:14 Raymond Zeitler
2017-08-04 10:21 ` Adam Porter
2017-08-04 10:53   ` Joost Kremers
2017-08-05  2:35     ` Adam Porter
2017-08-04 15:02 Raymond Zeitler
2017-08-05  2:31 ` Adam Porter
2017-08-05 12:41   ` Raymond Zeitler
2017-08-06  4:12     ` Raymond Zeitler
2017-08-06 10:23       ` Adam Porter
2017-08-06 19:52         ` Raymond Zeitler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='004901d30ba1$977df190$c679d4b0$@yahoo.com' \
    --to=zeitra@yahoo.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).