From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#26490: 25.1; package-buffer-info is incorrectly case-insensitive Date: Sat, 24 Aug 2019 07:57:06 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="0000000000006b2bf60590d69890" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="110095"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 26490@debbugs.gnu.org, Steve Purcell To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 24 07:58:10 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i1P3y-000SXS-GM for geb-bug-gnu-emacs@m.gmane.org; Sat, 24 Aug 2019 07:58:10 +0200 Original-Received: from localhost ([::1]:36010 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i1P3w-0008EY-Qe for geb-bug-gnu-emacs@m.gmane.org; Sat, 24 Aug 2019 01:58:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55124) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i1P3r-0008ES-0n for bug-gnu-emacs@gnu.org; Sat, 24 Aug 2019 01:58:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i1P3q-0005qx-0e for bug-gnu-emacs@gnu.org; Sat, 24 Aug 2019 01:58:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60912) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i1P3p-0005qr-U5 for bug-gnu-emacs@gnu.org; Sat, 24 Aug 2019 01:58:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i1P3p-00028E-Rj for bug-gnu-emacs@gnu.org; Sat, 24 Aug 2019 01:58:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 24 Aug 2019 05:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26490 X-GNU-PR-Package: emacs Original-Received: via spool by 26490-submit@debbugs.gnu.org id=B26490.15666262468147 (code B ref 26490); Sat, 24 Aug 2019 05:58:01 +0000 Original-Received: (at 26490) by debbugs.gnu.org; 24 Aug 2019 05:57:26 +0000 Original-Received: from localhost ([127.0.0.1]:41500 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i1P3F-00027L-QA for submit@debbugs.gnu.org; Sat, 24 Aug 2019 01:57:26 -0400 Original-Received: from mail-pg1-f171.google.com ([209.85.215.171]:38423) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i1P3E-000279-2X for 26490@debbugs.gnu.org; Sat, 24 Aug 2019 01:57:24 -0400 Original-Received: by mail-pg1-f171.google.com with SMTP id e11so7041846pga.5 for <26490@debbugs.gnu.org>; Fri, 23 Aug 2019 22:57:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=DT8skMPZsP6F1e2xy5hnIUmeFN0avkCEE0vlwu6Eji0=; b=jIP99yt1d+MRASSCFSka+Ns4O4/HApxdwZsjkV1p3+pRVJaxb99ptfMly9A0HI7jSx Gmc8zvZg1jLpZ0s4Zen7cL3SzlWEGNKOge6yG6sSUuIp7nybCLFxC4BOIbRzzbIRkPhc GKR2/v09v5xP8UQmQiKb29nIssjuY6L9/vyMAGAgyENoIBbjEUfQ0HYYpLBny+9V40ds xxaTZTa+0LEHJqytp9BvPiKJUnuVY27Q4imNyxHIP+Zr6+/Yew3SdFBNruqCSVDtZnMG zJ9BJD0JG2aPzcDqxONG2jFWsvNeumczeTSZRlo+TVDYKszkb6G8jf0XaMfi8rqwH15c JosA== X-Gm-Message-State: APjAAAWEzTjKoNqWuBqgr5E0meiiKpGxse7vTPxVDbsAK8Ibw6TwxFHn lbKq2IDmuj3OuLFjA5YqEtpehGfjgJ7d4YNgujU= X-Google-Smtp-Source: APXvYqwqdeEut/Gjf6aSg0gNsv6N3azvsPkJloJmaVQxygzgl3U8XyJljntJKsbFrIwHGIoCVDKO+IMVtSwxqqR0PIg= X-Received: by 2002:a63:4c5c:: with SMTP id m28mr7362064pgl.333.1566626238103; Fri, 23 Aug 2019 22:57:18 -0700 (PDT) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:165746 Archived-At: --0000000000006b2bf60590d69890 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Glenn Morris writes: > Why does it care at all? > I thought the "filename ends here" was an ancient way of identifying > files that might have been truncated in transit. It doesn't seem > relevant in this day and age. I agree; this is an ancient ritual from times long past. I suggest that we get rid of this requirement to consider a package valid. I think this requirement, while not the most important thing in the world, just looks Very Old (TM) to new developers looking to get started in Emacs Lisp. And since it indeed hardly plays an important role anymore, we have little to lose by getting rid of it, AFAIU. Steve Purcell writes: > Nonetheless, it has been part of the format expected by package.el for ye= ars. > > Making package.el more permissive over time can lead to problems with pac= kages > in older Emacsen, a prime example being the recently-added > backwards-incompatible support for version-less dependencies in the > `Package-Requires` header: authors check their packages in a recent Emacs= and > then find that an older otherwise-compatible Emacs can=E2=80=99t even par= se their > package metadata. Sure, that can be a problem. I think that means that we should not (yet) encourage package developers to not use them in their packages. But if we don't take a first step, we can never get rid of it. At the end of the day, it's the job of package developers to maintain backwards compatibility. I don't see why this change would be any different in that respect from the many other changes that we make between releases. I have attached a tentative patch to remove this requirement from package.el. Comments are more than welcome. Thanks, Stefan Kangas --0000000000006b2bf60590d69890 Content-Type: application/octet-stream; name="0001-Don-t-require-ending-comment-to-consider-a-package-v.patch" Content-Disposition: attachment; filename="0001-Don-t-require-ending-comment-to-consider-a-package-v.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_jzp4j5qx0 RnJvbSBiMWJhMjQ3N2JlOTg1NTk1YmYyN2E1NjkwODdmYWJjM2JkYmExNThkIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBTdGVmYW4gS2FuZ2FzIDxzdGVmYW5rYW5nYXNAZ21haWwuY29t PgpEYXRlOiBTYXQsIDI0IEF1ZyAyMDE5IDA3OjQ0OjAwICswMjAwClN1YmplY3Q6IFtQQVRDSF0g RG9uJ3QgcmVxdWlyZSBlbmRpbmcgY29tbWVudCB0byBjb25zaWRlciBhIHBhY2thZ2UgdmFsaWQK CiogbGlzcC9lbWFjcy1saXNwL3BhY2thZ2UuZWwgKHBhY2thZ2UtYnVmZmVyLWluZm8pOiBEb24n dCByZXF1aXJlCnRoZSBlbmRpbmcgY29tbWVudCAiOzs7IGZvby1wYWNrYWdlLmVsIGVuZHMgaGVy ZSIuICAoQnVnIzI2NDkwKQotLS0KIGxpc3AvZW1hY3MtbGlzcC9wYWNrYWdlLmVsIHwgNCAtLS0t CiAxIGZpbGUgY2hhbm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