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 KBSGM07hz17DAgAA0tVLHw (envelope-from ) for ; Thu, 28 May 2020 16:05:34 +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 EDpFL07hz15+EwAAbx9fmQ (envelope-from ) for ; Thu, 28 May 2020 16:05:34 +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 1A46D9402D1 for ; Thu, 28 May 2020 16:05:34 +0000 (UTC) Received: from localhost ([::1]:52378 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jeL2C-00049D-Gt for larch@yhetil.org; Thu, 28 May 2020 12:05:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36246) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jeKy0-0007Kk-56 for emacs-orgmode@gnu.org; Thu, 28 May 2020 12:01:12 -0400 Received: from [183.249.132.153] (port=1986 helo=localhost) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jeKxv-000189-C3 for emacs-orgmode@gnu.org; Thu, 28 May 2020 12:01:11 -0400 Received: by localhost (Postfix, from userid 1000) id 021CB241A15; Fri, 29 May 2020 00:00:47 +0800 (CST) References: <87sgflu2gw.fsf@gmail.com> <87r1v4wyy4.fsf@fastmail.fm> <87r1v4bodg.fsf@localhost> <875zcgd0lx.fsf@gmail.com> <878shcupf6.fsf@localhost> User-agent: mu4e 1.4; emacs 28.0.50 From: stardiviner To: Ihor Radchenko Subject: Re: [Feature] add a new org-attach dispatcher command to offline save web page In-reply-to: <878shcupf6.fsf@localhost> Date: Fri, 29 May 2020 00:00:44 +0800 Message-ID: <87blm8nj6b.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 183.249.132.153 (deferred) Received-SPF: softfail client-ip=183.249.132.153; envelope-from=numbchild@gmail.com; helo=localhost X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/28 12:00:48 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: 53 X-Spam_score: 5.3 X-Spam_bar: +++++ X-Spam_report: (5.3 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FROM=0.001, FSL_HELO_NON_FQDN_1=0.001, HELO_LOCALHOST=3.828, NML_ADSP_CUSTOM_MED=0.9, RDNS_NONE=0.793, SPF_SOFTFAIL=0.665, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: reject 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: , Reply-To: numbchild@gmail.com 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=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=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: 1.59 X-TUID: yUHuisU8P+iY =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Ihor Radchenko writes: >> 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. > I don't know how to implement similar functionality like monolith with url-retrieve-synchronously + save-buffer. PATCH welcome. > Ideally, there should be several customisation options. Something like: > - url-retrieve-synchronously > - curl > - wget > - monolith Of course curl and wget is alternative options, just still same problem. Do= n't know how to download web page as a single file and save it as archive file.= If use other ways, it's just another org-board. Then this patch will be unnece= ssary. > > 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. This is good solution, I will improve option description. > > 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 simil= ar >>>> functionality: >>> >>> It does not mean that attaching URL directly is not worth including into >>> org. This sounds pretty common use case, especially considering the num= ber >>> 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 Mod= e 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 dat= a usually >>>>> like me. To be more portable, I also added an defcustom option for ot= her >>>>> 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 simil= ar >>>> functionality: >>>> >>>> https://github.com/scallywag/org-board >>>> >>>> Best, >>>> >>>> Matt >>>> >> >> >> - --=20 >> [ 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 >>=20=20=20=20=20=20=20 >> -----BEGIN PGP SIGNATURE----- >> >> iQFIBAEBCAAyFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAl7PXKoUHG51bWJjaGls >> ZEBnbWFpbC5jb20ACgkQG13xyVromsOiMQf9EY7ES42hWxdjgFqiN0UqPGssRd+l >> fcvhb+yiT5/71TYA8YbQOF0Pa2SpUBgGUw+hcHUd9aDXxAP+4ucmP4bZ/vx29UTN >> T7YpOvuc5ZkafiN5bWghij1dLYhfi2CMDGGduU9rvjSleaRMhoX12wo8OM2qBHDm >> 2bqWHrZsGVPsNlAK3ymN3PdmwOtxktRVUxWZOug3ZF6LYnEHWRp/rb6lvS2BF3Ej >> qNazerYVcpfDsOiCWTSrjos2gnITT2pSlnxmrQFO69Pvex+T2dEJL7raNyuXi3Qd >> jn5uayrnHn4ZeUwSfmAQiqvq2TsFZ5zvtH0nKM+4tp/6gSgEuTw9gYaoBQ=3D=3D >> =3DqrFy >> -----END PGP SIGNATURE----- >> =2D --=20 [ 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 =20=20=20=20=20=20 =2D----BEGIN PGP SIGNATURE----- iQFIBAEBCAAyFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAl7P4CwUHG51bWJjaGls ZEBnbWFpbC5jb20ACgkQG13xyVromsMnIgf+MR3SvdlaxKofkSPZjYknvJ/MwUy4 iJOFYe0VRUXcNyjkQVGToNVVM50rWodR29LSXy8F1WbvgjDZb0arktsjOpjy+0Oq R/7JiE7Y8lXYPlmn+Gcqoijcuoo0tNNaE8ia6U9uYbhp8I1Whd0Jhx5kWiXCxlWe AMf2Yz4mw2CJc67W1MVUPM/2nq8+GhduLmY7UPw56A6ph+H2HD/AO+FzgL0dlivP lV3EKCc7j5kA5uzXqbqfWJZdylH4cUbzdHHePsW+EpWodF/tcJcGJmlIm/PUNuEX MsIkkKQt7QFLvr47vROVrJczEjT70ZdjWqjTZf5/esEsRUhb+m8uDbgc5g=3D=3D =3Dc9Pj =2D----END PGP SIGNATURE-----