From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#63236: 29.0.90; loaddefs-generate not 100% backwards compatible Date: Tue, 02 May 2023 19:06:14 +0200 Message-ID: <87cz3ill2x.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7651"; mail-complaints-to="usenet@ciao.gmane.io" To: 63236@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 02 19:07:24 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1pttTI-0001hb-3t for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 02 May 2023 19:07:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pttSy-00068A-PH; Tue, 02 May 2023 13:07:04 -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 1pttSw-00067u-PJ for bug-gnu-emacs@gnu.org; Tue, 02 May 2023 13:07:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pttSw-0007eS-Af for bug-gnu-emacs@gnu.org; Tue, 02 May 2023 13:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pttSv-0002SA-OE for bug-gnu-emacs@gnu.org; Tue, 02 May 2023 13:07:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 02 May 2023 17:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 63236 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16830471879375 (code B ref -1); Tue, 02 May 2023 17:07:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 May 2023 17:06:27 +0000 Original-Received: from localhost ([127.0.0.1]:44917 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pttSN-0002R9-26 for submit@debbugs.gnu.org; Tue, 02 May 2023 13:06:27 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:40214) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pttSJ-0002Qz-BU for submit@debbugs.gnu.org; Tue, 02 May 2023 13:06:25 -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 1pttSI-0005wA-Qv for bug-gnu-emacs@gnu.org; Tue, 02 May 2023 13:06:23 -0400 Original-Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pttSE-0007Yq-Bw for bug-gnu-emacs@gnu.org; Tue, 02 May 2023 13:06:22 -0400 Original-Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-2f55ffdbaedso2489343f8f.2 for ; Tue, 02 May 2023 10:06:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683047175; x=1685639175; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=+vmDGOAAMDZE6V866AtxthQr0O7roM8PyWD0Wa2H9bU=; b=JX64BsawrKHjFsBR/yWO6s+fVLKowa63qTg/QgKDG1Pqs67RfscD7Cr+P3hSkMYmk4 CjxgcsNh2w1QZy5DojAQ93o/p1l3YvAKFzqut55GDtEp67mouSKXnzjoiB9GbcfoaNLy XaYqkZEi1AwlHh1gRh+Lyn5cgAkNv7Jzc65CMjhZyoNp5+hwPjJ2jGRHv9FBiVLw9isX t1/B5mFhINbb6WIi7uqHpnyDnDbUoXqr8EbpA+GTtOIbOrVPSVFlQxMQa+XVlieQpxhw BeruAhGE/n25MuoCO7LgWuxfV3qhN5bLBdOXEYHVUHeJwur/a7a43vvsz+OHMAAyObfz fbEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683047175; x=1685639175; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=+vmDGOAAMDZE6V866AtxthQr0O7roM8PyWD0Wa2H9bU=; b=ZtOQ610A3SOZfBofY/hsBqjKIQIZaSorPjw5NCB724cTvFg00Ke/z5gET7ks5Ti+7G ULs4Di+7QflWgNIUjC0XwI8E6WGPUDbrvH842U3QsyDTJC3PNSyfIa1lsRWso3SYEVwM mgXCMddWrGLjQGh5QeNGcfeX26wXjRfj/we5CiiKEffrJZ2LBonhfDEjkz6YOWF3S5ej McAB0i5lW4lCqsiY/I+KWiniVnlbx2TDRnI1nvfOFbp5rzgF0n3aJJ5PyEJZXpspryaE x+W1o6BZtIVIUj+Zj84RJDHFgocZqeocBF30KN398f1vZeBi4zsMQtAYEpaQknsqQzcR Xsag== X-Gm-Message-State: AC+VfDxEXfZtsc2MrYjQnQJF8h0nGnXg0qN7AJSJGV3qBMQa2YpT2HVO whBBIn8hZKTi2tYIu/liCEBPEXz68/U= X-Google-Smtp-Source: ACHHUZ7hUvyaKIza3PDtZGEeE1P2haY2vl7DS7SwprqqAt3gh9dwTeV2db0AV9ZgotGofaB1g37VNA== X-Received: by 2002:adf:e689:0:b0:304:760c:6474 with SMTP id r9-20020adfe689000000b00304760c6474mr13734670wrm.10.1683047175274; Tue, 02 May 2023 10:06:15 -0700 (PDT) Original-Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id w23-20020a05600c099700b003f17af4c4e0sm39239874wmp.9.2023.05.02.10.06.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 May 2023 10:06:14 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=rpluim@gmail.com; helo=mail-wr1-x42d.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:260946 Archived-At: I attempted to upgrade my packages today using `list-packages', which errored out when regenerating the autoloads for vlf-write.el: Debugger entered--Lisp error: (search-failed "\n\f\n;;;") search-forward("\n\f\n;;;") loaddefs-generate("/home/rpluim/.emacs.d/elpa/vlf-20191126.2250" "/home/r= pluim/.emacs.d/elpa/vlf-20191126.2250/vlf-a..." nil "(add-to-list 'load-pat= h (or (and load-file-name (f...") package-generate-autoloads(vlf "/home/rpluim/.emacs.d/elpa/vlf-20191126.2= 250") The vlf-autoloads.el file ends like this: --begin-- ;;; Generated autoloads from vlf-tune.el (register-definition-prefixes "vlf-tune" '("vlf-")) ;;; Generated autoloads from vlf-write.el (register-definition-prefixes "vlf-write" '("vlf-")) ;; Local Variables: ;; version-control: never ;; no-byte-compile: t ;; no-update-autoloads: t ;; coding: utf-8 ;; End: ;;; vlf-autoloads.el ends here --end-- which doesn=CA=BCt contain "\n\f\n;;;" after the vlf-write entry. The code in question from loaddefs-gen.el:629 is (when (file-exists-p loaddefs-file) ;; If we're updating an old loaddefs file, then see if ;; there's a section here for this file already. (goto-char (point-min)) (if (not (search-forward head nil t)) ;; It's a new file; put the data at the end. (progn (goto-char (point-max)) (search-backward "\f\n" nil t)) ;; Delete the old version of the section. (delete-region (match-beginning 0) (and (search-forward "\n\f\n;;;") (match-beginning 0))) (forward-line -2))) So it=CA=BCs assuming that the entry ends with ";;;" This is a really old package, and it=CA=BCs probably somewhat obsolete, but perhaps we should support such an old format without erroring anyway. In GNU Emacs 29.0.90 (build 8, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) of 2023-05-02 built on rltb Repository revision: 16ecbf5af6d4fcb500941ede4d029cffd8eac757 Repository branch: emacs-29 Windowing system distributor 'The X.Org Foundation', version 11.0.12009000 System Description: Debian GNU/Linux 11 (bullseye)