From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: arthur miller Newsgroups: gmane.emacs.help Subject: Sv: Install orgmode using its git repository. Date: Mon, 28 Dec 2020 08:08:07 +0000 Message-ID: References: , Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-9" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6046"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Hongyi Zhao , Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 28 09:08:46 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ktnaA-0001SA-7A for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 28 Dec 2020 09:08:46 +0100 Original-Received: from localhost ([::1]:33188 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ktna9-0005n1-9n for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 28 Dec 2020 03:08:45 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57220) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktnZg-0005mp-6w for help-gnu-emacs@gnu.org; Mon, 28 Dec 2020 03:08:16 -0500 Original-Received: from mail-oln040092074104.outbound.protection.outlook.com ([40.92.74.104]:25951 helo=EUR04-DB3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktnZb-0001cp-Aj for help-gnu-emacs@gnu.org; Mon, 28 Dec 2020 03:08:15 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f43JvQ3dRnmHhbAG4goUjZq5l5sNWFV7bxwCS7//+nSF4/zxJ94qWeHIXe/Hq4TdE6t/ND9kbBOYikFLqovJwDM+NrIsOrSP/jJej+JwYg8GTGjxGgqQURlw4O7snaNBSXgQQ/lSMD/PDJX/PHAt7PcA9/3Gv7jeXkgmsQHdi9nkpbocmfDyGLSoTJvQft5NsOFTCvg90qpPPqY5ubN3WgxVq55rTSIemytM+jnYc+JJfSXXXDr1EZTYnhBZuoTKPEMUkuA0mOy5u8AZg1fQSk9zskFqPHsa5X3zvOxIdmsnaxOIBaFRCUOX1LIEmRGlHmlUw0yhAghHoCjrA4LP2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MO4A/6u22fQ0QHPO+Xuj2RQmi6qah1mMR8E8XkWJUeI=; b=TDMXMjQcciMHxz5GzXEM3DUwXqVQANvgfVtpL1NP54NOkRMjwh7lqx5YVzchcmxVHd3qB1uZ6Wb7x3v91LaiT5Fc/7dmCevTWCLnWU+885x7JX9HWmIFa4GQzK8GBbfj+vOtIMNlh+sD1Vfen8sWnqHkEHzhUTplK9/CqJmUh4cQDE8xcHhS5Ak9R5IXp4PxGmQROjykStbMb4Sov/nCKJEctoFTm0OfLv+2h+bAhk2/haU/krBuNtn7NBdb2f3bhFGWC1/dTRELh0fkgOmHcCOwep7ud7ZmPbI9veTQPB1BmeP8KbTWBxet6RbriULZwimU8+B0/WQqxqBVonPQbg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MO4A/6u22fQ0QHPO+Xuj2RQmi6qah1mMR8E8XkWJUeI=; b=cQz/ABuJM9C1K5fzpC1mZV7ZgMMZKSjkMPnvKFJ1e8nT8ezHI1csuSCnvxpK+b0eo8KDIffqA5TeISenGbOhawD2/ExHCHwK5lFr0+oRW7uy3aegZ/8Jz9pf1OFbqSo7YMO0YONCvwPgS3rkuB7LYwUVZTCRPpfCph3x0XvShUIp2rOZg8VD/ZsQzZlAbMnMr16BGI+Plh5n6Rwf9z6kcbdKGct5oMlLaJ7ahCoi0Y6EotxQpyp7nnx94C3Up197H9yOM7MojRPv2QeZ3EkHtHLNJ2iRsRa89Su0c962wBB+TCMql4NH8Y17vOGJVII8mD8gHa0vrKXR0HWN6a3ArA== Original-Received: from VI1EUR04FT041.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0e::4d) by VI1EUR04HT062.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0e::285) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3700.27; Mon, 28 Dec 2020 08:08:07 +0000 Original-Received: from AM0PR06MB6577.eurprd06.prod.outlook.com (2a01:111:e400:7e0e::49) by VI1EUR04FT041.mail.protection.outlook.com (2a01:111:e400:7e0e::346) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3700.27 via Frontend Transport; Mon, 28 Dec 2020 08:08:07 +0000 Original-Received: from AM0PR06MB6577.eurprd06.prod.outlook.com ([fe80::9487:8c7d:da00:4993]) by AM0PR06MB6577.eurprd06.prod.outlook.com ([fe80::9487:8c7d:da00:4993%7]) with mapi id 15.20.3700.031; Mon, 28 Dec 2020 08:08:07 +0000 Thread-Topic: Install orgmode using its git repository. Thread-Index: AQHW3Bjaznl7J3VjC0Grm64qcoLuoKoLH4fAgACEnQCAAFZsZIAABSEAgAAnFGE= In-Reply-To: Accept-Language: sv-SE, en-US Content-Language: sv-SE x-incomingtopheadermarker: OriginalChecksum:8E4D2FADF72D81D23DB30EB19ABEF48D0C5B70A0F78FE8BE10717AD620F2EB88; UpperCasedChecksum:FCF9B34BC8E561B96FBB0E3CE72E688C48AFCC1D5A7DFA16A8E40D418BCD84CE; SizeAsReceived:7179; Count:45 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [t2QB1bERghnqqn6RX0RiqHNdMtXfZ6rn] x-ms-publictraffictype: Email x-incomingheadercount: 45 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: 18c2c12b-597e-458f-ae9d-08d8ab07b5e1 x-ms-traffictypediagnostic: VI1EUR04HT062: x-ms-exchange-minimumurldomainage: stackexchange.com#4217 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: q185QeG5xHJ9NneRdpK9nvQMQqAa/IPQm1Y0Y3IrWjng+7d8ZOvlThijwDTLPmXmcHR8gAYpmhjcHKA5pMl0+p5dIYO/bDK9O1YK5ttUoLVsEY90ictGLHLbZND09d/3nIYyssFxhTGHY2HJrXF0iNxdd9vdHd/vvRw/5sKK/IWobQUKjhdQGR5zLODTzDbeP1XdYuPT/emD9cV7vfSIgwRVxmeySL2rCgSFPcrpVwLJj770X1OaX68oDmmLJVeXRA575svoDsqDZ8d4UCe61FzqVOtVFGRCN7Ms4T3xyW0= x-ms-exchange-antispam-messagedata: tucY4RSRdMrWVznyx8E2S3nnLGg+To7QvliYpJQvkJfjDR4FLgE1sdOiK108+5gty0RgCypz+ycYFUoA9KBccWcsIRHpgv2e4VCWVQgU6e7ft00H4cD2lrS0IdhugUXLQnft9Hu+0IzqE/i0x4Z4kQ== x-ms-exchange-transport-forked: True X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-AuthSource: VI1EUR04FT041.eop-eur04.prod.protection.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 18c2c12b-597e-458f-ae9d-08d8ab07b5e1 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Dec 2020 08:08:07.7183 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1EUR04HT062 Received-SPF: pass client-ip=40.92.74.104; envelope-from=arthur.miller@live.com; helo=EUR04-DB3-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:126841 Archived-At: I don't think it is very safe practice to install random Joe's code directl= y from some git repo. We have not yet seen malicious code (not what I know) in Emacs community, but Emacs in that respect is as bad as MS Office from time when VBA scripts (and viruses) were shared wildly around, or a web browserwith JS that can do anything. Remember time when JS was off by defau= lt in all browsers? Elisp can do whatever on your computer, so you should be careful what you install. Installing from random git repos can open you for more security problems then needed. I do clone lots from gitlab/github, but I always look at the code myself before I ever run it. Another point is that installing from git and different branches as it is p= ossible with straight.el or quelpa (is what OP actually wants) can eventually lea= d to incompatibility between code that might be much harder to detect. I persona= lly don't want to bother with latest-latest of all latest because eventually i= t could become a spagheti code of possible incompatibility and clashes. ________________________________ Fr=E5n: help-gnu-emacs f=F6r Hongyi Zhao Skickat: den 28 december 2020 06:40 Till: Stefan Monnier Kopia: help-gnu-emacs =C4mne: Re: Install orgmode using its git repository. On Mon, Dec 28, 2020 at 1:21 PM Stefan Monnier w= rote: > > >> BTW, you can also install the latest code from Git via package.el: > >> > >> M-x url-handler-mode RET ;; Assuming it's not already enable= d > >> C-x C-f https://elpa.gnu.org/devel/org.tar RET > >> M-x package-install-from-buffer RET > > > > If I want to implement the above codes as a package-install-from-repo > > function with the pakcage's URL as the argument, then how should I > > rewrite the above code? > > Not sure what you're asking. Such a function would be a welcome > addition to package.el, if that's what you mean. I just noticed that this question has been discussed on stackexchange: https://emacs.stackexchange.com/questions/51586/is-there-a-package-manager-= for-emacs-that-can-use-git-repositories-directly also, by the author of straight.el: https://github.com/raxod502/straight.el#comparison-to-other-package-manager= s Regards -- Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Polytechnic University of Science and Technology engineering NO. 552 North Gangtie Road, Xingtai, China