From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id ViS1N88zu18kfQAA0tVLHw (envelope-from ) for ; Mon, 23 Nov 2020 04:00:15 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id QJTzMs8zu1+LfgAAbx9fmQ (envelope-from ) for ; Mon, 23 Nov 2020 04:00:15 +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 49B2894051F for ; Mon, 23 Nov 2020 04:00:15 +0000 (UTC) Received: from localhost ([::1]:50214 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kh31R-0004Af-TZ for larch@yhetil.org; Sun, 22 Nov 2020 23:00:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54506) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kh312-0004AV-OX for emacs-orgmode@gnu.org; Sun, 22 Nov 2020 22:59:48 -0500 Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]:43972) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kh310-0008Ml-UB for emacs-orgmode@gnu.org; Sun, 22 Nov 2020 22:59:48 -0500 Received: by mail-lf1-x133.google.com with SMTP id d17so21818873lfq.10 for ; Sun, 22 Nov 2020 19:59:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/piCi0OIukX2qHkucXv2570C39nqvdiCd1HPupT3JqQ=; b=HjQNCPSFn9y8eGs6AYajUPXKAM/yj7c6U52hcOhuyLLHIkojRrcleMwBz7f4FyEVQw TcgiNTZvBnC+jxYhTVAdWHkQUjGHHqcYZqFsUwvBXSZdfBaC8eajFyRF/1kr6XinNn8j b2uf9vaxMkHkDE1zgD2BRQLrWvrQiII9brCWWEbqr7W04KGmOaUauEz5fKEydhKnCA0f FY1PjsR9PaRB5J5lUZWRp0Bo8xP84syRmo1dYydqtCnFn7s9+2hS59S8dwtOlBbHYPvk 6S2yPqyb1Ae9jxRxzV8Ekzg30dUsCAZDtWpp1pEMyqHsxcv7PCcZ+sUBmiNtsw55hMFg 20QA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/piCi0OIukX2qHkucXv2570C39nqvdiCd1HPupT3JqQ=; b=HnuP4ALFUHCdWFOW7BfL5Rh79ama3uGSVKfzttzqfza/qGh+TFX69I3D88yU3v5uoE 53DUgyivfW9MA2zngm8NrNWlUmi/PL3gStYd2xmMzOr6vYx7ej3TosmCEnbqveq2oGXh 9UTwAG+ykDphSYhfP69BKwHjrLGYo5jCyKCzon486B5bsqh881K4vZYGwBA4Hgxnjil/ n7c2kOSRmn45IJRpRd4w1IhxjAKQy3a9nLTrTRgeusnhrC8q1IcVIYRlEq1U8BsCSz5B RyenVeqpOcb+2PHfnBHTEQh6ysgGBHAww3zrzxvg7mw3202rsXbLLpP/fve2TqOWJ66w nK5g== X-Gm-Message-State: AOAM531IsfY+2S52oluGcMpXrkppS6orOXemMIS5fzmzmL6MRpbKYmsq Ie6YuDhE3p8w68cP0IzyhPOr7NWPsx+QvwCkyBY= X-Google-Smtp-Source: ABdhPJx77Km6/LzdAD46Mxnw6OmbRU7JffVIN1ItfQJYmwEWm9rQuzAhS/VPGyhePpe9Fr8LmD6qoFpk5HPAzDmeWGQ= X-Received: by 2002:ac2:490d:: with SMTP id n13mr13359590lfi.108.1606103984903; Sun, 22 Nov 2020 19:59:44 -0800 (PST) MIME-Version: 1.0 References: <169441F9-83D6-4D0F-8A23-1923B44F7C0A@health.ucsd.edu> In-Reply-To: From: Gerardo Moro Date: Mon, 23 Nov 2020 05:59:34 +0200 Message-ID: Subject: Re: Bring up a screen giving option to open a series of orgmode files To: Jean Louis Content-Type: multipart/alternative; boundary="0000000000007e1f2805b4be3996" Received-SPF: pass client-ip=2a00:1450:4864:20::133; envelope-from=gerardomoro37@gmail.com; helo=mail-lf1-x133.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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=pass header.d=gmail.com header.s=20161025 header.b=HjQNCPSF; dmarc=pass (policy=none) header.from=gmail.com; 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: -1.71 X-TUID: VkDvHari11ZT --0000000000007e1f2805b4be3996 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks so much, now it works when using that elisp function. One thing yet: > 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. You mean a shell command to be executed in M-x shell-command? I did so, but the output was <*.org" -exec echo " * [[file:`realpath {}`][{}]]" > meta-org.org \ Thanks, GM El dom, 22 nov 2020 a las 21:16, Jean Louis () escribi=C3= =B3: > * 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 > > --0000000000007e1f2805b4be3996 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks so much, now it works when using that elisp functio= n.
One thing yet:
= > I am confused. I don't understand the syntax. The line "find = Documents/Org/
> -type f -iname "*.org" -exec echo " * [[file= :`realpath {}`][{}]]" >
>=C2=A0meta-org.org=C2=A0\;" should be = a function of its own?

That was shell command. Like in ba= sh, dash, zsh and similar.

You mean a shel= l command to be executed in M-x shell-command? I did so, but the output was= =C2=A0

<*.org" -exec echo " * [[file:`realp= ath {}`][{}]]" > meta-org.org \=
Thanks,
GM

El dom, 22 nov 2020 a las 21:16, J= ean Louis (<bugs@gnu.support>) escribi=C3=B3:
* Gerardo Moro <gerardomoro37@gmail.com> [2= 020-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 to= p
> 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 = {}`][{}]]" >
> m= eta-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 ()
=C2=A0 "Opens my meta-org.org on the fly with hyperlinks to other Org fi= les."
=C2=A0 (interactive)
=C2=A0 (let ((org-files (directory-files my-org-dir t ".org")) =C2=A0 =C2=A0 =C2=A0 =C2=A0 (meta-buffer "meta-org.org"))
=C2=A0 =C2=A0 (with-temp-buffer-window meta-buffer nil nil
=C2=A0 =C2=A0 =C2=A0 (switch-to-buffer meta-buffer)
=C2=A0 =C2=A0 =C2=A0 (org-mode)
=C2=A0 =C2=A0 =C2=A0 (dolist (file org-files)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 (insert (format "- [[%s][%s]]\n" file= (file-name-base file)))))))

then run:

M-x my-meta-org

--0000000000007e1f2805b4be3996--