all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* What to use after #'define-package is now obsolete?
@ 2023-04-12  9:40 Chen Zhaoyang
  2023-04-12  9:53 ` Ruijie Yu via Emacs development discussions.
  2023-04-12 12:07 ` Philip Kaludercic
  0 siblings, 2 replies; 4+ messages in thread
From: Chen Zhaoyang @ 2023-04-12  9:40 UTC (permalink / raw)
  To: emacs-devel

Dear Friends,

It seems that #'define-package is now obsolete (or has been for a while,
https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=ade7a212a882540178d9504e7e0bd3be3bf1fd41):

    (defun define-package ( _name-string _version-string
                            &optional _docstring _requirements
                            &rest _extra-properties)
      "[...]"
      (declare (obsolete nil "29.1") (indent defun))
      (error "Don't call me!"))

Does that mean from now on we just use the constructor
#'package-desc-create in `foobar-pkg.el' files?

-- 
Chen Zhaoyang <zc23@illinois.edu>




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

* Re: What to use after #'define-package is now obsolete?
  2023-04-12  9:40 What to use after #'define-package is now obsolete? Chen Zhaoyang
@ 2023-04-12  9:53 ` Ruijie Yu via Emacs development discussions.
  2023-04-12 12:07 ` Philip Kaludercic
  1 sibling, 0 replies; 4+ messages in thread
From: Ruijie Yu via Emacs development discussions. @ 2023-04-12  9:53 UTC (permalink / raw)
  To: Chen Zhaoyang; +Cc: emacs-devel

Hi,

Chen Zhaoyang <chenzhauyang@gmail.com> writes:

> Dear Friends,
>
> It seems that #'define-package is now obsolete (or has been for a while,
> https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=ade7a212a882540178d9504e7e0bd3be3bf1fd41):
>
>     (defun define-package ( _name-string _version-string
>                             &optional _docstring _requirements
>                             &rest _extra-properties)
>       "[...]"
>       (declare (obsolete nil "29.1") (indent defun))
>       (error "Don't call me!"))
>
> Does that mean from now on we just use the constructor
> #'package-desc-create in `foobar-pkg.el' files?

Please find some discussion on this topic in this thread:
https://lists.gnu.org/archive/html/emacs-devel/2023-03/msg00735.html.

-- 
Best,


RY



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

* Re: What to use after #'define-package is now obsolete?
  2023-04-12  9:40 What to use after #'define-package is now obsolete? Chen Zhaoyang
  2023-04-12  9:53 ` Ruijie Yu via Emacs development discussions.
@ 2023-04-12 12:07 ` Philip Kaludercic
  2023-04-12 12:26   ` Chen Zhaoyang
  1 sibling, 1 reply; 4+ messages in thread
From: Philip Kaludercic @ 2023-04-12 12:07 UTC (permalink / raw)
  To: Chen Zhaoyang; +Cc: emacs-devel

Chen Zhaoyang <chenzhauyang@gmail.com> writes:

> Dear Friends,
>
> It seems that #'define-package is now obsolete (or has been for a while,
> https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=ade7a212a882540178d9504e7e0bd3be3bf1fd41):
>
>     (defun define-package ( _name-string _version-string
>                             &optional _docstring _requirements
>                             &rest _extra-properties)
>       "[...]"
>       (declare (obsolete nil "29.1") (indent defun))
>       (error "Don't call me!"))
>
> Does that mean from now on we just use the constructor
> #'package-desc-create in `foobar-pkg.el' files?

What are you trying to do?  It might be that there are some
misconceptions to the point of the -pkg.el file.  In general, you don't
need to write these files yourself, as they are either generated by a
package archive or a package manager.



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

* Re: What to use after #'define-package is now obsolete?
  2023-04-12 12:07 ` Philip Kaludercic
@ 2023-04-12 12:26   ` Chen Zhaoyang
  0 siblings, 0 replies; 4+ messages in thread
From: Chen Zhaoyang @ 2023-04-12 12:26 UTC (permalink / raw)
  To: Philip Kaludercic; +Cc: emacs-devel

Philip Kaludercic <philipk@posteo.net> writes:

> In general, you don't need to write these files yourself, as they are
> either generated by a package archive or a package manager.

I see. I thought such file (`-pkg.el') was to be hand-rolled.

-- 
Chen Zhaoyang <zc23@illinois.edu>



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

end of thread, other threads:[~2023-04-12 12:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-12  9:40 What to use after #'define-package is now obsolete? Chen Zhaoyang
2023-04-12  9:53 ` Ruijie Yu via Emacs development discussions.
2023-04-12 12:07 ` Philip Kaludercic
2023-04-12 12:26   ` Chen Zhaoyang

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.