From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alessandro Bertulli Newsgroups: gmane.emacs.help Subject: Re: How to develop a local fork of a package? Date: Mon, 05 Sep 2022 00:40:25 +0200 Message-ID: <878rmyyd4l.fsf@gmail.com> References: <87k06kk8od.fsf@gmail.com> <87r10s8u79.fsf@dataswamp.org> <87tu5nkgf3.fsf@disroot.org> <443fb46d2c9b2384869ade5fd0764611c0e0fe66bc5b546d7118a24832e90579@mu.id> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27699"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.8.9; emacs 29.0.50 Cc: Akib Azmain Turja , help-gnu-emacs@gnu.org To: Alessandro Bertulli Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 05 00:43:59 2022 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 1oUyLP-00076J-9v for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 05 Sep 2022 00:43:59 +0200 Original-Received: from localhost ([::1]:35402 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oUyLN-0003LT-Nt for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 04 Sep 2022 18:43:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53434) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oUyKt-0003L6-Cw for help-gnu-emacs@gnu.org; Sun, 04 Sep 2022 18:43:27 -0400 Original-Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]:45054) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oUyKr-0005vj-Ty for help-gnu-emacs@gnu.org; Sun, 04 Sep 2022 18:43:27 -0400 Original-Received: by mail-ed1-x532.google.com with SMTP id t5so9167042edc.11 for ; Sun, 04 Sep 2022 15:43:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:from:to:cc:subject:date; bh=gb5IvVhnJGeToGonvFRBw0oeW9LlqHabS20oLAWjAc8=; b=Th5DyNNYK7QSCRGSt3pshTE+lc5kJ96rIYBH4cxojNNv6QAPZOi+Z78yCuQeXRl3Qj BGrY85t7EcmLtDoDX+E0Ihbr0FtglHeTW3j3G7oGMU9yfTICM/4w94C5Pve6IWuK+KKW mT6qdnhUGAZoipNeGTY922r0mRGMU3755HgtCjW3YA1PneKzoP1jbLZ3epXT5F7/onSN Vf17DDrTv0vpT/xMflraD5sXlq5Ru8hbNF5+zKtEjVazd0pYcbX0oFVSg13D5GGWa0/v bejf0n9VoN3V/nys30pVNvxAPquJvQMeE3/25n8NAI+OOn8nHAKHJMtlvhr9lZZ46n9N 6jVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:x-gm-message-state:from:to:cc:subject:date; bh=gb5IvVhnJGeToGonvFRBw0oeW9LlqHabS20oLAWjAc8=; b=MgG8ktIJ4wGcsNL4rXkhj+kNKKYBVXOK2NFriMuDTaTi+w1CoH5xGJLxFa1+6CF1HR AyimA0Xvr8WmP0kyTaQvAJlFvMnVFaBgWYbiTGSdeTAtr31obSrLtUroysXEoCp7jaO8 dEs7T2KJJR6/0VGwSN/MlF1Yxt17PWpfZ2kMvKbRL7OzyE6sOyL0urD672jqVCPHZAAU MiSnplG47F6FRIFofb1NNxzvpXqH3Of6GYsSp/55ow9aPh2B57VmoElTfabk39fkVeys VFQMDctdjKiD1vlwuofPCDrsBNYf5osYlH0IGzK/CQI5IxhvQxWPKiZnwBEH7Og3Xxvz 9epg== X-Gm-Message-State: ACgBeo1lDb4iLfvvgcjkK48AnQ9KNpq5YRrvdjHtENMbNyreTGhhApWz 7u6+hQ96LNA5X+G0AtrgHWWKj7Dkve0= X-Google-Smtp-Source: AA6agR5Bw+28QHPtHSG8K9RZS6IkP8xGGdvO1cbnn3++TJ7R70+TUiJVy7MtUw3PVjY9F5A30U0/iA== X-Received: by 2002:a05:6402:27c8:b0:44c:f08e:4244 with SMTP id c8-20020a05640227c800b0044cf08e4244mr10995941ede.307.1662331404178; Sun, 04 Sep 2022 15:43:24 -0700 (PDT) Original-Received: from commodoroII (2-235-154-9.ip228.fastwebnet.it. [2.235.154.9]) by smtp.gmail.com with ESMTPSA id v6-20020a170906b00600b007306a4bc9b4sm4255262ejy.38.2022.09.04.15.43.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Sep 2022 15:43:23 -0700 (PDT) In-reply-to: <443fb46d2c9b2384869ade5fd0764611c0e0fe66bc5b546d7118a24832e90579@mu.id> Received-SPF: pass client-ip=2a00:1450:4864:20::532; envelope-from=alessandro.bertulli96@gmail.com; helo=mail-ed1-x532.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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:139242 Archived-At: It works! The trick was to first modify the load-path, then to call (package-initialize). That way, calling (require 'org-ref) loaded the git local version of the package. Now the only point left is that, as you said, the delete call will break when the package gets updated. I'll turn it into a regex version when I have time. Anyway, thanks to you and to Emanuel! Alessandro