From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id SIxKJ3r7V2AebwAA0tVLHw (envelope-from ) for ; Mon, 22 Mar 2021 02:05:46 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id gKoWI3r7V2BVMQAAbx9fmQ (envelope-from ) for ; Mon, 22 Mar 2021 02:05:46 +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 9C64C2B825 for ; Mon, 22 Mar 2021 03:05:45 +0100 (CET) Received: from localhost ([::1]:35502 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lO9wt-0002ei-NW for larch@yhetil.org; Sun, 21 Mar 2021 22:05:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50384) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lO9q3-0002eP-2i for emacs-orgmode@gnu.org; Sun, 21 Mar 2021 21:58:39 -0400 Received: from mail-eopbgr30127.outbound.protection.outlook.com ([40.107.3.127]:36834 helo=EUR03-AM5-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 1lO9q0-0004HR-9D for emacs-orgmode@gnu.org; Sun, 21 Mar 2021 21:58:38 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lfLM+oqWEJNM15dujaDyMCJX/P2hfYWU/blS1doB80vsComZ/y1ncQ/A5U2a448QqHGXEg+tEkm0JSqzdg5jDEjsyta0z+rsFJ/ewD08RixHthQCoprArf4Be7HW79ET73t3hul3px+vuI8nW/at0qV35MurJssgZiRvNZ6yHt6sEFAt9hOk7FkFPDhaOwoqAiZ/2keiUCBGUHMwAnJz/FBwjNaGnlsJqP+PVbB7XDq5WJsTmo93UrFLJbDy0eLIJrASlOOMRsljgrEt2Hi5zdzjVfJJycHUwm44jrnn/vjzCejahxlztSROb+z3nf7C4u8VLRnZid/MQJScXxXbbg== 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=eXugmN9elhhl4d8qYeM6XmOJUCoXo/Cr61tRYrJFpCw=; b=e8Gw7eddMU+u+xYV1DxlzCxKZVv1ZTopMoZwKxHUQwe1oTcUGpWXRtSqV6c4SaFxOORQEq3OCxuCAwBYsnsfcQpAjUV7j65+GvT/CQRTC6bBb246mlnVWB7e8unSufjLUjP1fru0xHUPTTD0t/g7at+2mWcfXSmM4KX97YbM5r1ahWjAmLzNbHS7+fmN4ArP1zANUG3N5+RYJRH0JM7iB3T9C5Tjp/2u+Nf/kNStTklHR2BP0RRu4kK8HF2cORo2fKYVo2tLNI86THuhRHQ3n/dpoHZHfRYKCJDd4tLYhLtHMOiHQpBg59azabxPGHUWbExCBLDennoA/0B/ijgAzw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=whil.se; dmarc=pass action=none header.from=whil.se; dkim=pass header.d=whil.se; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Wikstrom.onmicrosoft.com; s=selector2-Wikstrom-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=eXugmN9elhhl4d8qYeM6XmOJUCoXo/Cr61tRYrJFpCw=; b=bq98ezpMTEgaoZ5+1crd2VTCjgMtBFdKZBpnv5snyApiGJPgkqHstGK3PNyCJEzFVGGsbhUnlvfShq7O+WPAzzxHRq3RqXS8tb42vb+HFCRLqW31HOdp8LNShRISSQlBMmggo5OhIYaG43/G6vgIsqlsfQM/v0kjvcE+mpdNYxw= Received: from HE1PR02MB3177.eurprd02.prod.outlook.com (2603:10a6:7:2e::26) by HE1PR0201MB2170.eurprd02.prod.outlook.com (2603:10a6:3:2c::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3955.18; Mon, 22 Mar 2021 01:43:29 +0000 Received: from HE1PR02MB3177.eurprd02.prod.outlook.com ([fe80::f00c:fde0:c18b:31d2]) by HE1PR02MB3177.eurprd02.prod.outlook.com ([fe80::f00c:fde0:c18b:31d2%6]) with mapi id 15.20.3955.027; Mon, 22 Mar 2021 01:43:29 +0000 From: =?iso-8859-1?Q?Gustav_Wikstr=F6m?= To: Tim Cross , "emacs-orgmode@gnu.org" Subject: Re: trivial software engineering'ish question: switching org's Thread-Topic: trivial software engineering'ish question: switching org's Thread-Index: AQHXHnoiHg913y+9p0qoD6oJFcItoaqO9yMAgABFDSA= Date: Mon, 22 Mar 2021 01:43:29 +0000 Message-ID: References: <705757.1616348671@apollo2.minshall.org>, <87mtuwkw3y.fsf@gmail.com> In-Reply-To: <87mtuwkw3y.fsf@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [158.174.57.165] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 1de7d226-3bd0-4e97-1178-08d8ecd3e4be x-ms-traffictypediagnostic: HE1PR0201MB2170: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6790; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ZIuoTbyn4gT5StFauNtrA8xOFMAPzr0PUcOof9PbHWG0jpS77kYGR89tNBxZIjhRibTQiMQbhsfM+gSkhFLqsVNu3wdN3v/JgdbX4F5tj0eodh6OdekUHayUOxhDGfBMXDUjsthG1zWuccCuQOJT9puPB+MSVsmzu+beswoCtvP30Z1t5f0eHPBgoo7uoxtlqXc6jZQgioq3EPIhYIB4Zx6KQrthaH73I5iqbh4kfnY5yeyRLtaUYD/BMaSSEQteW6Bc26i1FIwWMNwTbZ/cjWM/a+/8QyfzPVp1MVfu1U1dMrVTymyBMlNQ64WrdzFKaW0v9PrNwFB9XMbu8rFa2gxlVdtuX3UKQNK4YGmR3GkIkWMBH7ZG4rzltFbtZ2ecsdmKwbUgmurqtiuMS/fqhgEqAry7uM4KAk9cyTkaNQsuVY/kTXuPGPhE17mL5uOFyCkrVoxENejJdfDoVJCYfWKcuk8FIj3ijNKn9MqdNwTUBsj2ZvffQ0EPS9G7WW3uborUU6kv9buuepqU7YvOkKBywG+9FrwRSaKtQ+Gjve8At5V/ngX1XbHa2nIJlCJHOPfgMsBgSOcbvZySsenbW8F+iMQ8QLIJ6GVrKFNaBGZNcA6k+IFbAYMec3MxRNWmJOKSTgpOZx6hLcECZjLMhQgnSY1w6bhNaGmGMOtdZKJsCqX8tCb0o2JBMuteDep5MaXDZTNTfQxiC/5ozgoolfqksFUpdBK5LLLaMKhKDDc= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:HE1PR02MB3177.eurprd02.prod.outlook.com; PTR:; CAT:NONE; SFS:(396003)(366004)(376002)(136003)(346002)(39830400003)(9686003)(8936002)(38100700001)(478600001)(45080400002)(55016002)(83380400001)(5660300002)(52536014)(166002)(8676002)(2906002)(110136005)(316002)(33656002)(71200400001)(7696005)(6506007)(26005)(53546011)(186003)(66446008)(66556008)(66476007)(66946007)(64756008)(76116006)(86362001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: =?iso-8859-1?Q?GpjPDohwW61oTHkEzyllYraO6YbAc38LVZ9frxreOy5BWUhujv8I7lCkok?= =?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mMueSaKrHyn+pNLRJXe3BHe/4eb?= =?iso-8859-1?Q?jFjo5KLxXNwbcS+7qOb+Fa+lXrKXlzJPPIQW7HPn5l1lqE1ueb+B7XX1NG?= =?iso-8859-1?Q?/UEYzdNqnXfuh0a1x1/2/Z6TbCbWLIj85Tb3Uth8NcOvszMTssLAlEx3uQ?= =?iso-8859-1?Q?T/BVk/qj02ibvG6Pfytju/6K4NlrnSeuEgJq4NpSYrJo84VXVBtqWD64pF?= =?iso-8859-1?Q?Bmmy8cuPJ/dNq36ikgdfyaUQP/V7vb8ha8TE4JpzchuqPz5Rr39+HGr27f?= =?iso-8859-1?Q?AetVDNNw5f1PG9t08smG+6DiYjysovFtR+2VWIJiTVcnvM82fs7uuhGYvH?= =?iso-8859-1?Q?BMBuVN9kk1Ul1Z9Ud4xcZhmyao36or56i7+zp8JabOvcajT44/2spu3yKG?= =?iso-8859-1?Q?Aw2PlXQxFZHRBNo9ylKKQq01xlA0Gb7aQrYSEVjQjAG4JMjQZDwk3CaZsq?= =?iso-8859-1?Q?geUOWGNLi4qjCvr8+9ys7vTsreY7nRwg=3D=3D?= x-ms-exchange-transport-forked: True Content-Type: multipart/alternative; boundary="_000_HE1PR02MB3177E7DD75C19EC0F54DE09CDA659HE1PR02MB3177eurp_" MIME-Version: 1.0 X-OriginatorOrg: whil.se X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: HE1PR02MB3177.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1de7d226-3bd0-4e97-1178-08d8ecd3e4be X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Mar 2021 01:43:29.0762 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3f6cdb11-323f-43c4-adf3-a2c5097674cd X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: JmbNMS3yD64KpxwChdXedQVnJj1YR7b5Q+8StWZr5OoGEaxT73ymgyi4pEg9C6MB X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0201MB2170 Received-SPF: pass client-ip=40.107.3.127; envelope-from=gustav@whil.se; helo=EUR03-AM5-obe.outbound.protection.outlook.com X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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-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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1616378745; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=eXugmN9elhhl4d8qYeM6XmOJUCoXo/Cr61tRYrJFpCw=; b=f7qk0yVS8nmcKD3rjBZqzAJqtYHNO3aVq1zO5tmfHtT0BDluXG3BqCn3E+5NNpFc7hZmZb S/XXFTKIpmNlXxVB1JvrY9Bcs98dFdNhKgZTmsaFzBIanpZKw0+Za7Je1eAz0w8daol193 VAwy3A0O/PZQ2Zf0YWFt8wmJSFkxLAYHFeqvpuzKN2lPCuxztxMXpNZQS5ZGIGwqAGaqbt I3JMYImm0H6TDuG1Z0HKYixunhcaynv2kqN9muQTQ+lqJSIq//C/Q1UkvmtNnI6//MHXRI yAcax6/zKk2W12x0/iDMXtrNhpOyr/q/s2LUixAeLhI5XwGAwpuQNVlD+iL28g== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1616378745; a=rsa-sha256; cv=pass; b=uOgYapMpthmLuhq273jDeLylfPzfQsDO5af/LHnP/XvLwX1/sNKN8UlTMfojgDpiMNooci S031L2e/rXAyTaIL4Bsq0ZgiyZdO3QNzJbVMf/sL9PLzkIXsA8QJRGyUN1gqBK0jSEfzwJ kJ9oGJYH6Cno5SXJkDOPBpjrrovwPK/bS96mVFFnLUAbCLbXNfyoYs3dQitfsl5wF0djMs gMMlgD+89tas8+EDSsVOkgaIt2zZKhBZV2KlfID5uDMto86grybHcBH9iM9n5KOYOUQlP7 vDAUa3PIEOaL/8JgO8f1+HrdqG8zttT8RMNPeOVO/2WZh7h2seIfAhehFY//Xw== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=Wikstrom.onmicrosoft.com header.s=selector2-Wikstrom-onmicrosoft-com header.b=bq98ezpM; arc=pass ("microsoft.com:s=arcselector9901:i=1"); 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-Migadu-Spam-Score: -3.62 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=Wikstrom.onmicrosoft.com header.s=selector2-Wikstrom-onmicrosoft-com header.b=bq98ezpM; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=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-Migadu-Queue-Id: 9C64C2B825 X-Spam-Score: -3.62 X-Migadu-Scanner: scn0.migadu.com X-TUID: Isq0s9wp1oIT --_000_HE1PR02MB3177E7DD75C19EC0F54DE09CDA659HE1PR02MB3177eurp_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Straight.el is worth looking into for this. Has served me well for similar = use cases. BR Gustav Get Outlook for iOS ________________________________ From: Emacs-orgmode on beh= alf of Tim Cross Sent: Sunday, March 21, 2021 10:35:00 PM To: emacs-orgmode@gnu.org Subject: Re: trivial software engineering'ish question: switching org's Greg Minshall writes: > hi. i occasionally want to switch from the org package to a git > version, then back again. and, i want to avoid the dread "mixed > installation". > > i'm wondering is there a way people do this other than simply > installing/deleting the package version? > As I understand it, the critical part is when Emacs compiles the org files to get the *.elc versions. Provided you do not have any org functionality loaded during that compilation process, everything should be OK. The 'mixed' versions problem arises because you go to compile a different version and Emacs includes definitions already loaded from another version, generating *.elc files with mixed versions. Once org is compiled, the critical part is having the org version you want show up first in the load-path, so the problem becomes one of just managing the load-path entries appropriately. You could just ensure the version you want is higher in the load-path or you could go the 'paranoid' route and have code which removes the version you don't want from the load-path. In the past, what I've done is have the git version of org in a specific directory which I build with a separate process from the command line using the make recipes in the repository - essentially just configuring and running make. I then have some code in my init.el file which sets that version at the start of my load-path when I want to run it and which I comment out when I just want to run the version installed by package.el. I also use the use-package macro to load my org configuration and have two different blocks for that - one loading the git repo version and one loading the org-plus-contrib version I normally use. I just comment out the one I don't want to use. I probably could write some elisp to automate this, but to be honest, I switch between org versions so rarely, commenting/uncommenting parts of my init.el file is easy enough. I don't do any of that at the moment as I've not needed to run from the git repo since I switched to spacemacs and the spacemacs setup already has the necessary workflow to ensure new versions of org are compiled in a clean environment. Have not yet thought about how I will need to add git based org when using spacemacs. Suspect All I'll need to do is adjust the load-path as part of the init to reference the git sources before any org functionality is loaded. -- Tim Cross --_000_HE1PR02MB3177E7DD75C19EC0F54DE09CDA659HE1PR02MB3177eurp_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Straight.el is worth looking into for this. Has served me well for similar = use cases.

BR
Gustav


From: Emacs-orgmode <ema= cs-orgmode-bounces+gustav=3Dwhil.se@gnu.org> on behalf of Tim Cross <= theophilusx@gmail.com>
Sent: Sunday, March 21, 2021 10:35:00 PM
To: emacs-orgmode@gnu.org <emacs-orgmode@gnu.org>
Subject: Re: trivial software engineering'ish question: switching or= g's
 

Greg Minshall <minshall@umich.edu> writes:

> hi.  i occasionally want to switch from the org package to a git<= br> > version, then back again.  and, i want to avoid the dread "m= ixed
> installation".
>
> i'm wondering is there a way people do this other than simply
> installing/deleting the package version?
>

As I understand it, the critical part is when Emacs compiles the org
files to get the *.elc versions. Provided you do not have any org
functionality loaded during that compilation process, everything should
be OK. The 'mixed' versions problem arises because you go to compile a
different version and Emacs includes definitions already loaded from
another version, generating *.elc files with mixed versions.

Once org is compiled, the critical part is having the org version you
want show up first in the load-path, so the problem becomes one of just
managing the load-path entries appropriately. You could just ensure the
version you want is higher in the load-path or you could go the
'paranoid' route and have code which removes the version you don't want
from the load-path.

In the past, what I've done is have the git version of org in a specific directory which I build with a separate process from the command line
using the make recipes in the repository - essentially just configuring
and running make. I then have some code in my init.el file which sets
that version at the start of my load-path when I want to run it and
which I comment out when I just want to run the version installed by
package.el. I also use the use-package macro to load my org
configuration and have two different blocks for that - one loading the
git repo version and one loading the org-plus-contrib  version I
normally use. I just comment out the one I don't want to use. I probably could write some elisp to automate this, but to be honest, I switch
between org versions so rarely, commenting/uncommenting parts of my
init.el file is easy enough.

I don't do any of that at the moment as I've not needed to run from the
git repo since I switched to spacemacs and the spacemacs setup already
has the necessary workflow to ensure new versions of org are compiled in a clean environment. Have not yet thought about how I will need to add
git based org when using spacemacs. Suspect All I'll need to do is
adjust the load-path as part of the init to reference the git sources
before any org functionality is loaded.

--
Tim Cross

--_000_HE1PR02MB3177E7DD75C19EC0F54DE09CDA659HE1PR02MB3177eurp_--