From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: dalanicolai Newsgroups: gmane.emacs.devel Subject: Re: Why 'define-package' marked obsolete? Date: Tue, 21 Mar 2023 10:10:02 +0100 Message-ID: References: <83zg87739o.fsf@gnu.org> <87jzzbp6bn.fsf@posteo.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000004ac54305f7656968" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22679"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , emacs-devel@gnu.org To: Philip Kaludercic Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Mar 21 10:11:29 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 1peY1h-0005lK-Cf for ged-emacs-devel@m.gmane-mx.org; Tue, 21 Mar 2023 10:11:29 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1peY0Z-0006xf-JI; Tue, 21 Mar 2023 05:10:19 -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 1peY0X-0006vk-V6 for emacs-devel@gnu.org; Tue, 21 Mar 2023 05:10:17 -0400 Original-Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1peY0W-0005gY-Aw; Tue, 21 Mar 2023 05:10:17 -0400 Original-Received: by mail-wm1-x32f.google.com with SMTP id p34so4042169wms.3; Tue, 21 Mar 2023 02:10:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679389814; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=dTZIDBvpFcpQOpQEDgmpc5Q/qzIYpYrveJj5eHHxDic=; b=kEp6qpxj0YkwofSGlWVv9Zrh8dp9EsKf1amRWpRL04NphlCi6SVwACTD0MyU2sBsZF kZ7n5j6GXzJUNRS/AUQflhNn8nSrZ2QZd4l/kdIvKsQNiG2pRAFhyOLF2X1z7so68m+D CmYg0KWmw+oIqmG8urb0jvWuBVdcFSXzWl5zLqOXvVsamOr9x9fWBD2/HjgF8YG/5vNE E4ET+ec/LyCR4vug//67dUceAtZeJwyBse/PfKp+EILmls9+6yD3off+SMWgsguaXIMG r0u8TCycj5B+cLeU7iV01y/+oMLQ/EVz71FaVqcEfZfEUOFAzYQJntO2sBxGj76kLGqV b0zA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679389814; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=dTZIDBvpFcpQOpQEDgmpc5Q/qzIYpYrveJj5eHHxDic=; b=G7iYI1ovPXQilJCQfsTazlQizn193ioRrYn/zDujLE5QP6hAwssd+qv/rvuI3roDV/ Cp1oXf/cddjXWlPvVHNF3lwJXcP18IM2e/Y1meOd7NF3ZOFwbdsDrs7TmZu1A7IkFPhM 8NFwToqy9Ppn2uDHygIWNtkUlvw73zSzW8JHOppNUVX5QM40YDeAcrV2809N4LJVglEi m63Bl8o6D2cUKe8hwV3erX+JRUCApDP5Igr1KHj92ViK9BkVQC3Eh6mZFiccjmn7YzSf ATM8BNUVtc1zEeWD/Oy1FUI115x2COpNJZFr+XCfMg5pPUlI0J4mhFPws3/Auuor9VXM xZFg== X-Gm-Message-State: AO0yUKU93FGrQTAWr0mP5bLBZnj2g35MpJaFMAp0SJZNldVjw7EZS/5C txvfZ/IE8a0ihxS5XSE5nVyLfj77KJ4Tqh8a+BUR/yYbheM8og== X-Google-Smtp-Source: AK7set/mPmp2PNYSrXJRSM3LJ/PMf7OQORmAoLJCxsIepNyrAR28qQcbmwGApn+fdvjFtmRyN0LayX5L3P3Txd5a3yk= X-Received: by 2002:a05:600c:220c:b0:3ed:7664:6d82 with SMTP id z12-20020a05600c220c00b003ed76646d82mr572281wml.1.1679389813817; Tue, 21 Mar 2023 02:10:13 -0700 (PDT) In-Reply-To: <87jzzbp6bn.fsf@posteo.net> Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=dalanicolai@gmail.com; helo=mail-wm1-x32f.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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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:304631 Archived-At: --0000000000004ac54305f7656968 Content-Type: text/plain; charset="UTF-8" Ah okay, I see. So I assume that this means that as a function 'define-package' was redundant, but we should still include a 'define-package' in the -pkg.el file of a multi file package? The initial comment of 'package.el' mentions that the -pkg.el file should consist of 'a call to' define-package. I would say this formulation is somewhat confusing/misleading then? Or is the -pkg.el file just outdated? And did I miss the news about it? On Mon, 20 Mar 2023 at 20:32, Philip Kaludercic wrote: > Eli Zaretskii writes: > > >> From: dalanicolai > >> Date: Mon, 20 Mar 2023 17:21:04 +0100 > >> > >> Can I ask why 'define-package' was marked obsolete? > > > > It never did anything useful. Its original implementation just > > signaled an error. > > I just looked up the definition from when package.el was merged[0], and it > did stuff, mainly modifying `package-alist'. > > [0] > https://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/emacs-lisp/package.el?id=44198b6ee97bcb0ac88a5cadd1bf9b62048d0156#n513 > > -- > Philip Kaludercic > --0000000000004ac54305f7656968 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Ah okay, I see.

So I assume that th= is means that as a function 'define-package' was
redundant, but = we should still include a 'define-package' in the
-pkg.el file o= f a multi file package?

The initial comment of 'package.el' = mentions that the -pkg.el file
should consist of 'a call to' def= ine-package. I would say this
formulation is somewhat confusing/misleadi= ng then?

Or is the -pkg.el file just outdated? And= did I miss the news about it?

On Mon, 20 Mar 2023 at 20:32, Phili= p Kaludercic <philipk@posteo.net> wrote:
El= i Zaretskii <eliz@gnu.= org> writes:

>> From: dalanicolai <dalanicolai@gmail.com>
>> Date: Mon, 20 Mar 2023 17:21:04 +0100
>>
>> Can I ask why 'define-package' was marked obsolete?
>
> It never did anything useful.=C2=A0 Its original implementation just > signaled an error.

I just looked up the definition from when package.el was merged[0], and it<= br> did stuff, mainly modifying `package-alist'.

[0] https://git.savannah.gnu.org/cgit/emacs.git/t= ree/lisp/emacs-lisp/package.el?id=3D44198b6ee97bcb0ac88a5cadd1bf9b62048d015= 6#n513

--
Philip Kaludercic
--0000000000004ac54305f7656968--