emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "‪sunlin7@yahoo.com‬" <sunlin7@yahoo.com>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Fw:[PATCH] org.el: Make sure (org-agenda-files) search relative file\r
 paths in org-directory
Date: Thu, 29 Apr 2021 05:19:29 +0800	[thread overview]
Message-ID: <-w9lncygonme43m0sze-cgipqvtqa59xba1dkb-9s6iow-1jwatt-3hz5vwf8wcdfl5u0m4-ip4yyr-vkcvwsslzu2b-xenrk3-bmbspd-c5oaql-vf2cyn-vf9hrjk74zcrm3qrt2-a5zdg1-cru4zsu3uucr.1619644769119@email.android.com> (raw)
In-Reply-To: <1282662860.5259786.1619091670864@mail.yahoo.com>

[-- Attachment #1: Type: text/html, Size: 796 bytes --]

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-org.el-Fix-org-agenda-files-search-files-in-org-dire.patch --]
[-- Type: text/x-patch; name="0001-org.el-Fix-org-agenda-files-search-files-in-org-dire.patch", Size: 779 bytes --]

From: Lin Sun <lin.sun@zoom.us>
Date: Thu, 22 Apr 2021 04:26:47 +0000
Subject: [PATCH] org.el: Make sure (org-agenda-files) search relative file paths in org-directory

* lisp/org.el (org-agenda-files): Make sure org-agenda-files work with relative
file paths.

TINYCHANGE
---
 lisp/org.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/org.el b/org.el
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -15322,7 +15322,7 @@ used by the agenda files.  If ARCHIVE is `ifmode', do this only if
 				 (if (file-directory-p f)
 				     (directory-files
 				      f t org-agenda-file-regexp)
-				   (list f)))
+				   (list (expand-file-name f org-directory))))
 			       files)))
     (when org-agenda-skip-unavailable-files
       (setq files (delq nil
-- 
2.7.0


  reply	other threads:[~2021-04-28 21:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1282662860.5259786.1619091670864.ref@mail.yahoo.com>
2021-04-22 11:41 ` [PATCH] " Sun Lin
2021-04-28 21:19   ` ‪sunlin7@yahoo.com‬ [this message]
2021-05-13  9:57   ` Sun Lin
2021-05-21  2:30     ` Sun Lin
2021-05-21 16:31       ` Nicolas Goaziou
2021-05-22  1:18         ` ‪sunlin7@yahoo.com‬

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=-w9lncygonme43m0sze-cgipqvtqa59xba1dkb-9s6iow-1jwatt-3hz5vwf8wcdfl5u0m4-ip4yyr-vkcvwsslzu2b-xenrk3-bmbspd-c5oaql-vf2cyn-vf9hrjk74zcrm3qrt2-a5zdg1-cru4zsu3uucr.1619644769119@email.android.com \
    --to=sunlin7@yahoo.com \
    --cc=emacs-orgmode@gnu.org \
    --subject='Re: Fw:[PATCH] org.el: Make sure (org-agenda-files) search relative file\r
 paths in org-directory' \
    /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

Code repositories for project(s) associated with this 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).