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 0CrYHQPGz17XDAAA0tVLHw (envelope-from ) for ; Thu, 28 May 2020 14:09:07 +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 mDTiGQPGz15vZwAA1q6Kng (envelope-from ) for ; Thu, 28 May 2020 14:09:07 +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 B396D940C04 for ; Thu, 28 May 2020 14:09:06 +0000 (UTC) Received: from localhost ([::1]:33906 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jeJDU-0006ni-GU for larch@yhetil.org; Thu, 28 May 2020 10:09:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48048) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jeJDA-0006nb-4w for emacs-orgmode@gnu.org; Thu, 28 May 2020 10:08:44 -0400 Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]:40579) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jeJD6-0007Kq-8P for emacs-orgmode@gnu.org; Thu, 28 May 2020 10:08:43 -0400 Received: by mail-pf1-x434.google.com with SMTP id v2so8504527pfv.7 for ; Thu, 28 May 2020 07:08:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=0NyUjrU7DxOj5931jQVFFQPLroJIoCJKCISOx6jIz7M=; b=H/EdeTOLQE71DQ3mp9xZ62tbVSA6xAJwTSNOpXCO2FTekX/bTE9TrBHadoyOhy2eBF 6J6EnU58oOGXsMq46GfIs9uDhPE4fYWQgnt2hcb/1IpbWven4ZKhW+oEzZBxb4Lsnz05 /L6AaU/youE3hE09qMrjbV8rJxaA4dO6OnaTcwIbseWKCaPlbWuMzKZChYAWfFX0OwZG YHe80gTxiYG/XwpKF/eHT7maf9heJ/bwhAHVb4ddGJn2bIXznShvJ7e3iLsNcYnmbJ+E TGM0fDDnjMbvyR9NKgQuaZhGQ350K5dqs8x/lrwsGRmoJppgpsZzyuPuFY7gw6GrloVz 045A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=0NyUjrU7DxOj5931jQVFFQPLroJIoCJKCISOx6jIz7M=; b=tW8PEaN1Ljfk8/Q5xaDVQCZp/bfujK1EAgFeB1lOnmgGqIiDcFWJn7tAqDYkiR3z4C N1yIWdDCxu3ncdEVsUReOQAQEn2XW063VIo8Xrm+pMW2EIn5M6oOHbEg0GMVmjI78RaU KMrj6oExXkL+ARx/Y1olm3KKklxqp0k/banukyqqQpxjUZtCYCF/iJ08faO9yTBrFN7y hELqIr7a3WQctzQxaG8/tsxkrfk7xKaZ63uVT+pPI9KKVdKHc87tZ2Y25fO/4utWS3Wd lZBLf5sHzmtJNhtYqwMuwgTNgodhB1ah7/U35uYVV2EkHUtUL8HN0tE7so5SvtIHMIgA J4Bg== X-Gm-Message-State: AOAM530ge6ZmRLqPNeFzdngXlCU6WoWqd6sUhMKcbffSYjPlhcOqLcIY aGwU1knEh96k3ZS2TaVdnG4= X-Google-Smtp-Source: ABdhPJwbjrg3wpVqjGuSvMZTxLObpgSZ7hVKKsXDB5IUPRKRob42+Nrb+7mAQT2Q/amGZv6dExs/Sg== X-Received: by 2002:a63:7052:: with SMTP id a18mr3101097pgn.39.1590674918184; Thu, 28 May 2020 07:08:38 -0700 (PDT) Received: from localhost ([210.3.160.230]) by smtp.gmail.com with ESMTPSA id r13sm3786574pgv.50.2020.05.28.07.08.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 May 2020 07:08:37 -0700 (PDT) From: Ihor Radchenko To: numbchild@gmail.com Subject: Re: [Feature] add a new org-attach dispatcher command to offline save web page In-Reply-To: <875zcgd0lx.fsf@gmail.com> References: <87sgflu2gw.fsf@gmail.com> <87r1v4wyy4.fsf@fastmail.fm> <87r1v4bodg.fsf@localhost> <875zcgd0lx.fsf@gmail.com> Date: Thu, 28 May 2020 22:03:57 +0800 Message-ID: <878shcupf6.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::434; envelope-from=yantar92@gmail.com; helo=mail-pf1-x434.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN 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: Matthew Lundin , Org Mode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=H/EdeTOL; 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.21 X-TUID: Ll7lTZ76InQ7 > If have better solution, I totally agree with that. In the current state, your patch will be pretty much useless for users without technical background. url-retrieve-synchronously + save-buffer should be a better default. It will be available for all users. Ideally, there should be several customisation options. Something like: - url-retrieve-synchronously - curl - wget - monolith Also, it would be great if you provide some description about each customisation in the docstring. For example, a link to github page of monolith and a brief description how it is different from other url retrieval methods should be useful for general user. Best, Ihor stardiviner writes: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > > Ihor Radchenko writes: > >>> This looks helpful, but I think this should be an add-on rather than >>> integrated into the org-attach. I'm glad to learn about monolith, but >>> far fewer users are likely to have it installed than have wget or curl >>> installed. You might also want to check out org-board, which has similar >>> functionality: >> >> It does not mean that attaching URL directly is not worth including into >> org. This sounds pretty common use case, especially considering the number >> of packages providing similar feature. You mentioned org-board, but >> there is also org-download and org-web-tools. > > That's right, this phenomenon represents an obviously situation, Org Mode should > have this functionality. > >> >> I agree that monolith is completely uncommon tool and I would not expect >> the majority of users to have it installed, but the same functionality >> utilising built-in url.el (as a default) should be acceptable. > > If have better solution, I totally agree with that. > >> >> Best, >> Ihor >> >> >> Matthew Lundin writes: >> >>> stardiviner writes: >>> >>>> I attached the patch. >>>> >>>> I think this feature will be helpful for use who archive web page data usually >>>> like me. To be more portable, I also added an defcustom option for other >>>> external command. And use an if condition to detect whether external command >>>> available, else warning user. >>> >>> This looks helpful, but I think this should be an add-on rather than >>> integrated into the org-attach. I'm glad to learn about monolith, but >>> far fewer users are likely to have it installed than have wget or curl >>> installed. You might also want to check out org-board, which has similar >>> functionality: >>> >>> https://github.com/scallywag/org-board >>> >>> Best, >>> >>> Matt >>> > > > - -- > [ stardiviner ] > I try to make every word tell the meaning that I want to express. > > Blog: https://stardiviner.github.io/ > IRC(freenode): stardiviner, Matrix: stardiviner > GPG: F09F650D7D674819892591401B5DF1C95AE89AC3 > > -----BEGIN PGP SIGNATURE----- > > iQFIBAEBCAAyFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAl7PXKoUHG51bWJjaGls > ZEBnbWFpbC5jb20ACgkQG13xyVromsOiMQf9EY7ES42hWxdjgFqiN0UqPGssRd+l > fcvhb+yiT5/71TYA8YbQOF0Pa2SpUBgGUw+hcHUd9aDXxAP+4ucmP4bZ/vx29UTN > T7YpOvuc5ZkafiN5bWghij1dLYhfi2CMDGGduU9rvjSleaRMhoX12wo8OM2qBHDm > 2bqWHrZsGVPsNlAK3ymN3PdmwOtxktRVUxWZOug3ZF6LYnEHWRp/rb6lvS2BF3Ej > qNazerYVcpfDsOiCWTSrjos2gnITT2pSlnxmrQFO69Pvex+T2dEJL7raNyuXi3Qd > jn5uayrnHn4ZeUwSfmAQiqvq2TsFZ5zvtH0nKM+4tp/6gSgEuTw9gYaoBQ== > =qrFy > -----END PGP SIGNATURE----- > -- Ihor Radchenko, PhD, Center for Advancing Materials Performance from the Nanoscale (CAMP-nano) State Key Laboratory for Mechanical Behavior of Materials, Xi'an Jiaotong University, Xi'an, China Email: yantar92@gmail.com, ihor_radchenko@alumni.sutd.edu.sg