emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [WORG] Re: 0e6cdacc publish.sh: never publish the archive/ subdirectory
@ 2022-12-31 12:33 Ihor Radchenko
  2023-01-02 15:05 ` Bastien
  0 siblings, 1 reply; 2+ messages in thread
From: Ihor Radchenko @ 2022-12-31 12:33 UTC (permalink / raw)
  To: emacs-orgmode


-(dolist (org-file (directory-files-recursively default-directory "\\.org$"))
+(dolist (org-file (directory-files-recursively
+		   default-directory "\\.org$"
+		   nil (lambda (n) (not (string-match-p "archive" n)))))

Won't it also discard all the files with word "archive" in them?
We don't have any now, but I imagine someone writing
org-archive-tips.org at some point - it will be ignored.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [WORG] Re: 0e6cdacc publish.sh: never publish the archive/ subdirectory
  2022-12-31 12:33 [WORG] Re: 0e6cdacc publish.sh: never publish the archive/ subdirectory Ihor Radchenko
@ 2023-01-02 15:05 ` Bastien
  0 siblings, 0 replies; 2+ messages in thread
From: Bastien @ 2023-01-02 15:05 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: emacs-orgmode

Ihor Radchenko <yantar92@posteo.net> writes:

> -(dolist (org-file (directory-files-recursively default-directory "\\.org$"))
> +(dolist (org-file (directory-files-recursively
> +		   default-directory "\\.org$"
> +		   nil (lambda (n) (not (string-match-p "archive" n)))))
>
> Won't it also discard all the files with word "archive" in them?

Yes, you're right, hopefully this is better:
https://git.sr.ht/~bzg/worg/commit/a0f10380

Thanks!

-- 
 Bastien


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-01-02 15:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-31 12:33 [WORG] Re: 0e6cdacc publish.sh: never publish the archive/ subdirectory Ihor Radchenko
2023-01-02 15:05 ` Bastien

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).