From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Lic. Federico G. Stilman" Newsgroups: gmane.emacs.devel Subject: Best (or common) pratices on package development workflow Date: Thu, 1 Jun 2023 20:11:13 -0300 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40014"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jun 02 01:12:20 2023 Return-path: Envelope-to: ged-emacs-devel@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 1q4rSt-000ADC-Bq for ged-emacs-devel@m.gmane-mx.org; Fri, 02 Jun 2023 01:12:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q4rS7-00077V-Ql; Thu, 01 Jun 2023 19:11:31 -0400 Original-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 1q4rS5-00077J-TF for emacs-devel@gnu.org; Thu, 01 Jun 2023 19:11:29 -0400 Original-Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q4rS3-0005Gt-Vb for emacs-devel@gnu.org; Thu, 01 Jun 2023 19:11:29 -0400 Original-Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-1b01d912924so13698485ad.1 for ; Thu, 01 Jun 2023 16:11:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685661085; x=1688253085; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=sT3HjNvhnZR38UgdwqiSLq2hgaqy3czYZhNE985i1Vo=; b=K6lylzT1SN6P90qUMJQeLiEIB8k55x2sF+0DkqEz/hut0EygLo/EGOi1OADRuYtNpn x2dd5uLv0fQHCLrJmL78ricZiueP+p3eSBkRlpvBnpkKbc9tHAa8GACzth4on1mRsEVz VjrYWb8RjqQFVesoszAl++PkvN/iL3GS8Oq3Tz1cxynYkJbs/N+xbaB9Gw8we1690AzF Qt7QpOEatg8S8LASuEF9GvD+EHX7e15zDm6lU99v8RdHvIAJF9UuvjVmEc5QR9jXMit6 Ni2fMjq3jSUuuKLBKrgpkPJIGEl4pfaL2O6OAayjV8BN6SJ/Tf19N5+T+YhHdZ2tFolP +MKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685661085; x=1688253085; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=sT3HjNvhnZR38UgdwqiSLq2hgaqy3czYZhNE985i1Vo=; b=LCLG0TwL9AZ5bfAP49e/f+3zZ2puYbNQXOzYDTLGoUgL0D5/oMwt+B0Yc2x6eEVEW8 wTJ67lpA5M5F/O5I/qoBY96UDqVQXlP2eVln+yabYBxqVzykOMyapZoKHczgVtsz5/Fq wLJkaXdDDTEZpMk/8kgsMJPf0YxwNIxXVWhi/00vdTKp0O6C3TD6PRmHelgDh21vfW5Z hi01NXsHRHlGQCqAyE/JmY/nMF01VZfE5V/iICpYxLG62lUKmVH/R9/HHpXN4EgQ9zaM BBJrjFBFWiWzcXyWFLYj5CiV1upu6BLDWkCUzFwgEUzjriFYEBJBkZAHu+3lxNx05s55 fOUQ== X-Gm-Message-State: AC+VfDw2gMhHdClyu1Ipo/sbdb4f2Z1oZTgyUxrURjz4qBp0qsUWwdJH PDl474IevPj1HwW++M06XkbRZcFJ6zKjKH5VH8Ul0nbU4E8= X-Google-Smtp-Source: ACHHUZ52p8MUfgMeqxTpGvLf5gBH3JVu+x8PmtLGe1gJEsc8gRgaDLJYtMIumj2EnjvhBR0L1AHjvZbzzbfNqNg67As= X-Received: by 2002:a17:903:484:b0:1b0:637e:e25a with SMTP id jj4-20020a170903048400b001b0637ee25amr496263plb.67.1685661084679; Thu, 01 Jun 2023 16:11:24 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::631; envelope-from=fstilman@gmail.com; helo=mail-pl1-x631.google.com 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, 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: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:306531 Archived-At: Hi all, First things first. I started development with Emacs Lisp a few weeks ago after using for more than 20 years Emacs for my daily work. So I am a newbie on the Emacs Lisp development side. I am currently writing a simple Emacs package consisting of one .el file. I have a couple of defcustom declarations that initialize some variables with a default value. And this is the source of my question. Every time I make a change to the init value of the defcustom declaration, I have to unload the feature provided by the package, with something like: (unload-feature 'my-package) and after that, reload the library with something like (load-library "my-package") If not, the customization framework doesn't account for the change on the default value of the custom variables. My question is: which is the workflow you use when developing a package for Emacs, for easily "reloading" the package for any kind of changes by taken into account? Re-evaluating the entire, or loading the file, works for reloading functions. But - as far as I know - does not work for reloading defcustom initialization values. My package is for now something very simple consisting of one .el file. I wonder how do you manage this when a package consists of many .el files. Thank you all, Federico