From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Raymond Zeitler" Subject: refile workflow -- move to same heading in different file? Date: Wed, 2 Aug 2017 11:11:17 -0400 Message-ID: <004901d30ba1$977df190$c679d4b0$@yahoo.com> Reply-To: zeitra@yahoo.com Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_004A_01D30B80.106EC290" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47209) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dcvIy-0002En-6d for emacs-orgmode@gnu.org; Wed, 02 Aug 2017 11:11:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dcvIu-00046v-3h for emacs-orgmode@gnu.org; Wed, 02 Aug 2017 11:11:24 -0400 Received: from nm1-vm6.bullet.mail.ne1.yahoo.com ([98.138.91.253]:57803) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1dcvIt-00046a-Ny for emacs-orgmode@gnu.org; Wed, 02 Aug 2017 11:11:20 -0400 Content-Language: en-us 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" To: 'org-mode mailing list' This is a multipart message in MIME format. ------=_NextPart_000_004A_01D30B80.106EC290 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 ------=_NextPart_000_004A_01D30B80.106EC290 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

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

------=_NextPart_000_004A_01D30B80.106EC290--