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: How to develop a local fork of a package? Date: Sat, 03 Sep 2022 13:12:12 +0200 Message-ID: <87k06kk8od.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9439"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.8.9; emacs 29.0.50 To: gnu-emacs-help@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 03 13:19:40 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 1oURBb-0002Jo-Gq for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 03 Sep 2022 13:19:39 +0200 Original-Received: from localhost ([::1]:41900 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oURBa-00054v-0R for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 03 Sep 2022 07:19:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59464) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oURAl-000536-Pm for help-gnu-emacs@gnu.org; Sat, 03 Sep 2022 07:18:47 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50114) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oURAl-0002TB-DK for help-gnu-emacs@gnu.org; Sat, 03 Sep 2022 07:18:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41280) by fencepost.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oURAk-0001Rc-RW for gnu-emacs-help@gnu.org; Sat, 03 Sep 2022 07:18:46 -0400 Original-Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]:42659) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oURAj-0002Sl-7I for gnu-emacs-help@gnu.org; Sat, 03 Sep 2022 07:18:46 -0400 Original-Received: by mail-ej1-x62e.google.com with SMTP id p16so8349309ejb.9 for ; Sat, 03 Sep 2022 04:18:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:subject:to:from:user-agent:from:to:cc :subject:date; bh=Jlh4P7aM6pA2ZsSRX5ZdgPZ+8m6fsHiZ89HPgRbX3fk=; b=iNEY4VuAWjbQ8zmEIhxqkFOLSCNu3pIUb68Gx0vlpksXyIUI87VYDhhfT6WG+uElsK nVG5z/bqmNMG64XACDpYiOnqnTp7ibQA/O/rku4vyvK35KGY0/Y82vHEzQc58DTgh8bb bofrFivJmxiR3DdgUJWuTlxGwMQgDAD2UzWfN5MLMLM5FRgxUEeShKeVfXvMrTF7FIbs TbqmaHfybdfiN4fqp7POi5VQKJYSSSn+EyjUTDwcaePslT/vIO0ZZsBT7ziCF7fe8lPA hDV/Fk+v3V7apasw6pTJYwcsFIoE8aQYksTAKtGViMovDcerDGti3z1JiV0GOlWwgLbO o7ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:subject:to:from:user-agent :x-gm-message-state:from:to:cc:subject:date; bh=Jlh4P7aM6pA2ZsSRX5ZdgPZ+8m6fsHiZ89HPgRbX3fk=; b=Ww9pgOpt8t6P4HLdROEE+PTZzfxh090B94iUpYnqJeqi5YUalPot9sD3Wm8qrgm3Kq xyVVlZSn1GfMpfegDDc3o31VpfvnswakuTHrxv5ZXXtOQAw5+QXesPPiM3upwPd2dbrc OY9ldXWTS7kJcol7PdulE+5QyTpm48fxJvgnKdiy6qwDQA3krQ7rTqMQps+Z8LNckAMb 1fCSMEBbrq+1FIR796sdiYxor5+uapWuEsQhj24krTuYcuepxMKqnqrmo26htfShieNF DrBEpbVfBnk/MgRlFnZWhyhZ5OmAdOO7r6GNoq4ICcxvEp0lvcbcn45cbbrxKSvKYVTI Pizg== X-Gm-Message-State: ACgBeo1rpiG2x8yb6P/r/YXZMvMjG0bRNmFPNZ39fMeG3c/3VIAp0uBR 7zqcgRbX2dA18YHRDsLTZTMO6Nw667U= X-Google-Smtp-Source: AA6agR7gPgVZvt+jL2f7iuYje13k3pzNIlRmqHdz9/j7UieOhHkE6f93kx1nXa90a3NdYzmHnCqU1g== X-Received: by 2002:a17:907:7b94:b0:731:1b11:c241 with SMTP id ne20-20020a1709077b9400b007311b11c241mr30899643ejc.676.1662203923413; Sat, 03 Sep 2022 04:18:43 -0700 (PDT) Original-Received: from commodoroII (2-235-154-9.ip228.fastwebnet.it. [2.235.154.9]) by smtp.gmail.com with ESMTPSA id o21-20020a170906769500b0073c1e339a37sm1182373ejm.149.2022.09.03.04.18.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Sep 2022 04:18:43 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::62e; envelope-from=alessandro.bertulli96@gmail.com; helo=mail-ej1-x62e.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:139223 Archived-At: Hi all! Pretty much the title. I want to experiment a bit in modifying org-ref. I have installed it using the package manager. Then I cloned the repository on my local machine (in a directory "~/.emacs.d/git_packages/org-ref/"). Then I had to instruct Emacs to use the local version, and not the "~/.emacs.d/elpa/" one. How can I do that? For now, my Google-fu lead to this: (add-to-list 'load-path (expand-file-name "git_packages/org-ref/")) (delete "/home/alessandro/.emacs.d/elpa/org-ref-20220830.1210" load-path) (package-initialize) But then, no matter which one of these I use (require 'org-ref) (load "~/.emacs.d/git_packages/org-ref/org-ref") (use-package org-ref :ensure nil :load-path "~/.emacs.d/git_packages/org-ref/org-ref.el") I always get errors. - What am I doing wrong? - Or maybe, this process is completely non idiomatic, and there is a better way? Alessandro