From: Michael Heerdegen <michael_heerdegen@web.de>
To: emacs-devel@gnu.org
Subject: Re: Best (or common) pratices on package development workflow
Date: Fri, 02 Jun 2023 01:56:36 +0200 [thread overview]
Message-ID: <87h6rqspmz.fsf@web.de> (raw)
In-Reply-To: CAL4zx3O+_WGh5vWUzwUKWGoK1088TCVYamUERKt4J4M9xVuC0A@mail.gmail.com
"Lic. Federico G. Stilman" <fstilman@gmail.com> writes:
> 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.
In simple cases, you can follow this advice:
| When you evaluate a top-level ‘defvar’ form with ‘C-M-x’
| (‘eval-defun’) or with ‘C-x C-e’ (‘eval-last-sexp’) in Emacs Lisp
| mode, a special feature of these two commands arranges to set the
| variable unconditionally, without testing whether its value is
| void.
(info "(elisp) Defining Variables")
If you changed a lot of `defvar's, unloading might be the cleaner way
(note that if you do not unload, declared variables are still special
and bound, and you might miss places in your code that still depend on
such an actually already removed variable).
If you work intensively on a certain library, it might be better to do
the coding in one instance and test the code in another instance that
you restart regularly.
Michael.
next prev parent reply other threads:[~2023-06-01 23:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-01 23:11 Best (or common) pratices on package development workflow Lic. Federico G. Stilman
2023-06-01 23:51 ` Ruijie Yu via Emacs development discussions.
2023-06-02 1:08 ` Lic. Federico G. Stilman
2023-06-01 23:56 ` Michael Heerdegen [this message]
2023-06-02 1:09 ` Lic. Federico G. Stilman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87h6rqspmz.fsf@web.de \
--to=michael_heerdegen@web.de \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.