From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Akib Azmain Turja Newsgroups: gmane.emacs.help Subject: Re: How to develop a local fork of a package? Date: Mon, 05 Sep 2022 17:40:13 +0600 Message-ID: <87v8q2t5gi.fsf@disroot.org> References: <87k06kk8od.fsf@gmail.com> <87r10s8u79.fsf@dataswamp.org> <87tu5nkgf3.fsf@disroot.org> <443fb46d2c9b2384869ade5fd0764611c0e0fe66bc5b546d7118a24832e90579@mu.id> <878rmyyd4l.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30391"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 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 14:27:12 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 1oVBC4-0007kx-3f for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 05 Sep 2022 14:27:12 +0200 Original-Received: from localhost ([::1]:39868 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oVBC2-0008GE-Vi for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 05 Sep 2022 08:27:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39162) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVAf9-0007hS-LK for help-gnu-emacs@gnu.org; Mon, 05 Sep 2022 07:53:11 -0400 Original-Received: from knopi.disroot.org ([178.21.23.139]:36692) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVAf8-0005Tg-0k for help-gnu-emacs@gnu.org; Mon, 05 Sep 2022 07:53:11 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id CAD3D4006E; Mon, 5 Sep 2022 13:53:08 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Original-Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rde9ZbuZPhKs; Mon, 5 Sep 2022 13:53:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1662378787; bh=EfB6XzQttVVKbN7EYC77E56iBp8Zu7/5xd5PjFXv4lM=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=i+QC+pAo7SvI1IRDmGfwA7suJkKemb07xkvzKqDWyuZ9at4VFwmIOSQKLbBubnDEb Oov4j9MheT41mP6/Bk8nCmjAbVkpbHrrQLIPVWlcGol0eIHNSEpW+VsO1xBcoKQD5V b60Cz5kKS49Tis4H2gdHt5U5etQojrGakD0bbsnSbkf5ylS58ua0RoOzDqykwUg2WJ uEpbyvL2xebXCO9ITABCWxEyWfzMQbYXotpVN7oZRgd+JV0xEC7LDZOlPJvRCr7/gT w72/nmmVTuDsC++CpZaqLMbNQuZZaLnIb8qKuVdX/ZKMyBGkphFFpIdKMUDIqRAPw5 jKTd0cU9ltZsg== In-Reply-To: <878rmyyd4l.fsf@gmail.com> (Alessandro Bertulli's message of "Mon, 05 Sep 2022 00:40:25 +0200") Received-SPF: pass client-ip=178.21.23.139; envelope-from=akib@disroot.org; helo=knopi.disroot.org 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, 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:139254 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Alessandro Bertulli writes: > 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. "cl-delete-if" and/or "cl-remove-if" function should help you in this regard. > > Anyway, thanks to you and to Emanuel! > > Alessandro =2D-=20 Akib Azmain Turja Find me on Mastodon at @akib@hostux.social. This message is signed by me with my GnuPG key. Its fingerprint is: 7001 8CE5 819F 17A3 BBA6 66AF E74F 0EFA 922A E7F5 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEyVTKmrtL6kNBe3FRVTX89U2IYWsFAmMV4B4ACgkQVTX89U2I YWtzyBAAkuog9jirWTRmFSSmyUB/+SIVsNWaYRUpZKXwGSN/fCpOdGGrqf2D2O3i r27yx28+58+pARQBr7WqzJKfWdP+IkYQqLGs5YmjFuDwdmRVfiDPe4Ly1Lp2Afw5 H75BFRJr/uZjtTXgUsKZKAZ8n6pbof9EKL4xaSh2JIUzbKFLNHzF+8vl2SLJBzDQ Jw3ss75yte5gdn/t+4ulDx63TuMah1IDwEIHWyfbAFzTAN0bxBmT5ucAAauwHkJh 0I7v8Mgp86xFbP4+zghEVZAqIm3D9fKrIQxWqxcztP1tY1boiTur+Xqj20BKheSV W3PRrjaXNSpNv2Uv13+Z8kUEO4joLGqdrC8M5jAIHzG8zXiDaVpucmo4Uy7qhIti McHYpcwbeGyMlHqH5nPN61v0M3J/3zqIis0f1QxNO5kRtwSIuEvr0+TuqyFciojO ykkafcRPMmmYLDGtUET2igZFgqg5O4nWgpkAWQPNxaGpwDBmkVHBfy4C+E4v5dZ9 VzxXU6E+zEo+BK1ERN9HcvxCLK58NSrn1tGrtTT7UOqzU9gMhnqbU253fchvCWOZ bCCeIAlKAD7qu55D81+Hu/8Pc5xEVM7dC93x7ufGysBYUbbNWp49/NC3SCFZd08c +K2uEoqbaSihgQaStLHAThLEdoIrlKQHi6O5ziEFg2Kyga9O0t8= =CeAJ -----END PGP SIGNATURE----- --=-=-=--