From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id +OeWAaDgpWNqMgAAbAwnHQ (envelope-from ) for ; Fri, 23 Dec 2022 18:08:48 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id yBDWAKDgpWM5RgAAG6o9tA (envelope-from ) for ; Fri, 23 Dec 2022 18:08:48 +0100 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 C26883CF4F for ; Fri, 23 Dec 2022 18:08:47 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p8lWb-0006Ct-Mi; Fri, 23 Dec 2022 12:08:01 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p8lWZ-0006Cb-DM for emacs-orgmode@gnu.org; Fri, 23 Dec 2022 12:07:59 -0500 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p8lWX-0000p5-VV for emacs-orgmode@gnu.org; Fri, 23 Dec 2022 12:07:59 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1p8lWV-0000sD-GW for emacs-orgmode@gnu.org; Fri, 23 Dec 2022 18:07:55 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Richard Kim Subject: Re: Recommended way to work on main without upgrading Org? Date: Fri, 23 Dec 2022 09:07:46 -0800 Message-ID: <87ili2m4kd.fsf@gmail.com> References: <875ye4xgzv.fsf@gmail.com> <873598xco0.fsf@gmail.com> <87ili2t7lk.fsf@gmail.com> <87r0wqm5xw.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:pKd86o/E5UHJgC8imqCt9IOvLXY= Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, FREEMAIL_REPLYTO_END_DIGIT=0.25, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: emacs18@gmail.com Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1671815327; a=rsa-sha256; cv=none; b=on7NKsF0DTTG62guTsiJE790BjgO8Q4RsNFi/tZHHVcginUJ2f5miB38FcZwAq4HgTVyCh QvH/piBF4TU/YK+9eMS2Z63aENrZT+EPxsoTE3hyM0wjciEHTADrc5Mdh+8DTcQcF+KOyk iKsMgl+bYyf3UtuXqakm9emUs/vYQXepJGBtYJSzLsAkhRHE2sqfqRkn/rxozujLUbOa4N aDMSyyPZHW1s91IcnBmYLmGtMYAK0KucLEHExfZHuEPHHsnHd7IP9Ry7HFOxtKPiZENP6F qON18rxQXmbm2WW9ua/3NvdAP8gt0kVXeMi93TfS8ZeHGphzX0le5O3TbTkifw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1671815327; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=ANzstpoEH04oMQUxF1M8v6IBmLqHZp10JSWTPznWRiQ=; b=kXybtg9WMwPIDsZPP5+ffWyx813ux/gO2KlGyXyY3eV7jJIh54NQVuSXBqpISHxpkstoH3 XeyZvfOlEd1sm406Vu5MRrChQs0Gu8kuevXNVcV8Q7DqODclYqfu/XOT0iTsFleZFwONfS ORuJQjIGh9XeTDNvfkP+rwYm6kjarixGd/VXi1z4nP4BYMJGjj8olk7bnPp2hElPyRpPgd HpK3oB3kATXbcJwNpiocgx8G6YuoJBDeh1AZX4df716xclKlcaWmnwFXDxkKo+0nJnWGJN 28vdttfCBHcpbO6KU62Dkp7kikUrPlM0ekfB7ABtZY9tsplaxR3eQ4mHPW62ow== X-Spam-Score: -0.51 X-Migadu-Queue-Id: C26883CF4F Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none) X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -0.51 X-TUID: v4qUtmvT+2/n Richard Kim writes: > Richard Kim writes: > >> Karthik Chikmagalur writes: >> >>> I can get it to work with emacs -Q as well, and this is good for testing, thank you. >>> >>> But I'm looking for a way to retain the rest of my configuration and swap out >>> Org as required. Otherwise I can't do any interactive development. Another >>> alternative is to set up a completely different init directory and run Emacs >>> with a chemacs2 profile or with the new --init-directory flag, but considering >>> the complexity/size of my configuration this would be onerous. >> >> How about specifying org version of your choice on command line like this? >> >> emacs --eval "(add-to-list 'load-path \"/path/to/org\")" >> >> So long as you don't activate another org mode package within your >> start-up files, above should work I think. > > If you want to better control where your org path end up in load-path, > then you can use one of several hooks, e.g., following delays updating > load-path till almost the very end of emacs startup process > > emacs --eval "(add-hook 'emacs-startup-hook (lambda () (add-to-list 'load-path \"/path/to/org\")) 100)" > > See [[info:elisp#Startup Summary]] for emacs startup details. An alternative is to use --init-directory with thin wrapper around your normal config, e.g., you can create arbitrary configuration which makes small tweaks to your normal configuration with something like the following: $ cat /tmp/e1/early-init.el (add-to-list 'load-path "/path/to/org") (setq user-emacs-directory "~/.emacs.d/") (load-library (expand-file-name "early-init.el" user-emacs-directory)) $ cat /tmp/e1/init.el (load-library (expand-file-name "init.el" user-emacs-directory)) $ emacs --init-directory /tmp/e1