unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: [elpa] externals/csharp-mode 7d7bf8895b 3/3: Merge pull request #264 from emacs-csharp/feature/non-eask-test
       [not found] ` <20220817105730.54666C09BFD@vcs2.savannah.gnu.org>
@ 2022-08-17 11:58   ` Stefan Monnier
  2022-08-17 18:15     ` Jostein Kjønigsen
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Monnier @ 2022-08-17 11:58 UTC (permalink / raw)
  To: Jostein Kjønigsen; +Cc: emacs-devel

> +;; development only packages, not declared as a package-dependency
> +;; FIXME: loading a .el file from `load-path' should not change user's settings
> +;; like that.  It can happen without the user explicitly requesting it!
> +(package-initialize)
> +(add-to-list 'package-archives '("melpa" . "https://stable.melpa.org/packages/"))

Thanks for the FIXME :-)

BTW, the standard way to fix this problem is to wrap that code inside
a function (say `csharp-mode-tests-setup`) and then instead of:

> -	$(EASK) test ert csharp-mode-tests.el
> +	$(EMACS) -Q -batch -L . -l csharp-mode-tests.el -f ert-run-tests-batch-and-exit

you do something like:

	$(EMACS) -Q -batch -L . -l csharp-mode-tests.el \
	         -f csharp-mode-tests-setup             \
	         -f ert-run-tests-batch-and-exit

Tho of course, you can also move some of that code to the new function
so that instead you might end up with something like:

	$(EMACS) -Q -batch -l csharp-mode-tests.el -f csharp-mode-tests-run


-- Stefan




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [elpa] externals/csharp-mode 7d7bf8895b 3/3: Merge pull request #264 from emacs-csharp/feature/non-eask-test
  2022-08-17 11:58   ` [elpa] externals/csharp-mode 7d7bf8895b 3/3: Merge pull request #264 from emacs-csharp/feature/non-eask-test Stefan Monnier
@ 2022-08-17 18:15     ` Jostein Kjønigsen
  0 siblings, 0 replies; 2+ messages in thread
From: Jostein Kjønigsen @ 2022-08-17 18:15 UTC (permalink / raw)
  To: Stefan Monnier, Jostein Kjønigsen; +Cc: emacs-devel

On 17.08.2022 13:58, Stefan Monnier wrote:
>
> BTW, the standard way to fix this problem is to wrap that code inside
> a function (say `csharp-mode-tests-setup`) and then instead of:
>
>> -	$(EASK) test ert csharp-mode-tests.el
>> +	$(EMACS) -Q -batch -L . -l csharp-mode-tests.el -f ert-run-tests-batch-and-exit
> you do something like:
>
> 	$(EMACS) -Q -batch -L . -l csharp-mode-tests.el \
> 	         -f csharp-mode-tests-setup             \
> 	         -f ert-run-tests-batch-and-exit
>
Thanks. That's a good suggestion. Consider it done!

-- 
Jostein



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-08-17 18:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <166073384771.26766.589535001122139292@vcs2.savannah.gnu.org>
     [not found] ` <20220817105730.54666C09BFD@vcs2.savannah.gnu.org>
2022-08-17 11:58   ` [elpa] externals/csharp-mode 7d7bf8895b 3/3: Merge pull request #264 from emacs-csharp/feature/non-eask-test Stefan Monnier
2022-08-17 18:15     ` Jostein Kjønigsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).