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 ANrbDVxcz16dbgAA0tVLHw (envelope-from ) for ; Thu, 28 May 2020 06:38:20 +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 cLi+CVxcz16zLQAA1q6Kng (envelope-from ) for ; Thu, 28 May 2020 06:38:20 +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 BCFD994038F for ; Thu, 28 May 2020 06:38:19 +0000 (UTC) Received: from localhost ([::1]:39912 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jeCBG-00053I-PJ for larch@yhetil.org; Thu, 28 May 2020 02:38:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43160) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jeCAx-00052r-2y for emacs-orgmode@gnu.org; Thu, 28 May 2020 02:37:59 -0400 Received: from [183.249.132.153] (port=1446 helo=localhost) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jeCAu-00068F-Gh for emacs-orgmode@gnu.org; Thu, 28 May 2020 02:37:58 -0400 Received: by localhost (Postfix, from userid 1000) id 502982413D6; Thu, 28 May 2020 14:37:32 +0800 (CST) From: stardiviner To: Matthew Lundin Subject: Re: [Feature] add a new org-attach dispatcher command to offline save web page References: <87sgflu2gw.fsf@gmail.com> <87r1v4wyy4.fsf@fastmail.fm> User-agent: mu4e 1.4; emacs 28.0.50 In-reply-to: <87r1v4wyy4.fsf@fastmail.fm> Date: Thu, 28 May 2020 14:37:28 +0800 Message-ID: <878shcd0pj.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 02:37: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: 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: 7aUlDAEhAF5/ =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Matthew Lundin writes: > stardiviner writes: > >> I attached the patch. >> >> I think this feature will be helpful for use who archive web page data u= sually >> 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 com= mand >> available, else warning user. > > This looks helpful. Yes, this is helpful. Especially for archiving modern web pages. > but I think this should be an add-on rather than integrated into the > org-attach. I more like an alternative version of [C-c C-a u] version which not downloa= ding the file, just download the web page instead. > I'm glad to learn about monolith, but far fewer users are likely to have = it > installed than have wget or curl installed. This option is not enabled by default or forced, The defcustom option will = try to find the command. It's just an option. Many Windows user also neither ha= ve wget nor curl installed. That considering will ban lots of functionality. I= did an search in Org Mode source code, I found some items like org-feed.el which using wget and curl. Like most Babel series, ob-plantuml.el etc, they all r= eply on external stuff. You might also want to check out org-board, which has similar > functionality: > > https://github.com/scallywag/org-board > I have used org-board before, but it's just not perfect for my need (well, personal experience just). There are some disadvantages, like complex opera= tion, too many steps to archive web page, many files (bad for Org directory backu= p) etc. And wget or curl is bad for archive modern web pages. They are old for= old web pages. The only disadvantage of my patch is that "monolith" is not in Emacs or Org= Mode built-in directly. Org Mode is an open source project, so it does not conta= ins not open source stuff, I agree. I don't think a line of code ~(executable-f= ind "monolith")~ is against this principle. Best regards. =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----- iQFIBAEBCAAyFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAl7PXCgUHG51bWJjaGls ZEBnbWFpbC5jb20ACgkQG13xyVromsNBgQf/TCfGrMuLzGQSx0N1zzLmd2nX+tTj 6CUJd82SWpHqwI4QZX1BNd8JLpp5OKOw8o3LZi9y5UigOIxrh8DG51vUn+sJBvl5 iaBx3ao/K6Ff1ytMFnCcs+d9ohCj9mUTD1ZSt3LYjG1tJI1uqEoPi16smd84KSUQ Q8QqYauYarotF+JityGBII3RqpY1GlH5xWYFauE/t5KVPaf8tOueYwbm9FehOWuq ZKDzmuNkDnJfLRcz7ovEMJk0wrk6mwTjIYKhnrZiPDj9vGyR7ZfrRC0yZDjYgwaG p9vDZkFwTbPeQUrE1BJOo4N/h2HNoNB0b2ojpvgm52PnlvYvQEyWJxVaLg=3D=3D =3DFsnW =2D----END PGP SIGNATURE-----