From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id qK10MIW5ul86AwAA0tVLHw (envelope-from ) for ; Sun, 22 Nov 2020 19:18:29 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id ADdRLIW5ul+PJwAA1q6Kng (envelope-from ) for ; Sun, 22 Nov 2020 19:18:29 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 742479402D6 for ; Sun, 22 Nov 2020 19:18:29 +0000 (UTC) Received: from localhost ([::1]:33712 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kgusV-0000ud-Bi for larch@yhetil.org; Sun, 22 Nov 2020 14:18:28 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33908) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kgurA-0000rt-E6 for emacs-orgmode@gnu.org; Sun, 22 Nov 2020 14:17:05 -0500 Received: from static.rcdrun.com ([95.85.24.50]:51935) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kgur8-0002rB-JS for emacs-orgmode@gnu.org; Sun, 22 Nov 2020 14:17:04 -0500 Received: from localhost ([::ffff:41.202.241.56]) (AUTH: PLAIN admin, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by static.rcdrun.com with ESMTPSA id 00000000002C1AEC.000000005FBAB90C.00004B3A; Sun, 22 Nov 2020 19:16:27 +0000 Date: Sun, 22 Nov 2020 22:15:44 +0300 From: Jean Louis To: Gerardo Moro Subject: Re: Bring up a screen giving option to open a series of orgmode files Message-ID: References: <169441F9-83D6-4D0F-8A23-1923B44F7C0A@health.ucsd.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.0 (3d08634) (2020-11-07) Received-SPF: pass client-ip=95.85.24.50; envelope-from=bugs@gnu.support; helo=static.rcdrun.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Berry, Charles" , emacs-orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -0.51 X-TUID: XXB8GYRL6Lyg * Gerardo Moro [2020-11-22 22:04]: > Thanks to both of you, > > find Documents/Org/ -type f -iname "*.org" -exec echo " * [[file:`realpath > {}`][{}]]" > meta-org.org \; > > Instead of "Documents/Org/" you should put there your own top > directory where you keep Org files. > > Then open meta-org.org > > > I am confused. I don't understand the syntax. The line "find Documents/Org/ > -type f -iname "*.org" -exec echo " * [[file:`realpath {}`][{}]]" > > meta-org.org \;" should be a function of its own? That was shell command. Like in bash, dash, zsh and similar. > M-x find-dired RET Documents/Org/ RET -iname "*.org" RET > > Once I press "RET", what does -iname mean? I am new in Emacs. You mean, > this is just using find-dired to browse the org files? For Emacs function it is like this one here: ;; setup here your main subtree (setq my-org-dir "~/Documents/Org") (defun my-meta-org () "Opens my meta-org.org on the fly with hyperlinks to other Org files." (interactive) (let ((org-files (directory-files my-org-dir t ".org")) (meta-buffer "meta-org.org")) (with-temp-buffer-window meta-buffer nil nil (switch-to-buffer meta-buffer) (org-mode) (dolist (file org-files) (insert (format "- [[%s][%s]]\n" file (file-name-base file))))))) then run: M-x my-meta-org