From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tim Cross Newsgroups: gmane.emacs.devel Subject: Re: unable to upgrade from emacs 27 to emacs 28 Date: Tue, 10 May 2022 09:35:40 +1000 Message-ID: <875ymeb717.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36038"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.7.18; emacs 29.0.50 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue May 10 01:51:18 2022 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 1noD9q-0009BM-M7 for ged-emacs-devel@m.gmane-mx.org; Tue, 10 May 2022 01:51:18 +0200 Original-Received: from localhost ([::1]:48458 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1noD9p-0002kh-5B for ged-emacs-devel@m.gmane-mx.org; Mon, 09 May 2022 19:51:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48596) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1noD8e-00024n-Ej for emacs-devel@gnu.org; Mon, 09 May 2022 19:50:05 -0400 Original-Received: from mail-pg1-x530.google.com ([2607:f8b0:4864:20::530]:37514) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1noD8c-0003BP-2q for emacs-devel@gnu.org; Mon, 09 May 2022 19:50:03 -0400 Original-Received: by mail-pg1-x530.google.com with SMTP id 15so13296240pgf.4 for ; Mon, 09 May 2022 16:50:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=references:user-agent:from:to:subject:date:in-reply-to:message-id :mime-version; bh=i1mD3KvrelBJSw6TKKnmKvCJpeAtDsD0nZxfX5idYEw=; b=CJuY1IaHgiSAmnI/eJLehRMiTQSg+8QtSyOJhkoAU0SLXRuJUkwGeHMTTWkPod/lxu YxuzsEJJaeGUgU1cuNW4EkmUoDfYHWhyOrQfuOKGbFon17vHN0sNUCGSvsEX27lUUg2D GFYS1BZzGH6R+dlNmFpN0Iwds3e5VYqB2sCV/JnXPgxOkbkROKbUqMYsLWiw8Xi5SXIL su9K84R+vPIIqkgq7gHJKosWXpLzVaOZjx1xY1KpTByLQqX5pJH2JMSLhHtz+oi5hnVn 1STQYRYnYoTLf3URFvlGkrsy6vrAP+m7VH+yRa00luHQhIFgcCKvNcqre+bzDuKCcdc+ mh7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:references:user-agent:from:to:subject:date :in-reply-to:message-id:mime-version; bh=i1mD3KvrelBJSw6TKKnmKvCJpeAtDsD0nZxfX5idYEw=; b=CP6qU5L8bo/zQL9reoEsC+aPToA0dRSmFQBFpGYke6fWWfpkjFu3e3aZQtNG4BKhEm xiBBMC/PAPfGMxqJgGv0ytUKyFL6I4hnH6eGIfns9DQnxtX+PPhn+awpTPaq7v/WlC/9 bPlWNRfn6vm06bIuH5DEhnWATPcx55fPLfgc0kpVNQuKAB74+GqpL4VoRSSz5nLAjK/Q uTDo4u4NEH2Q2ea0t25s3xY4Kv+zP7UOXSTXbzHdixGmIlyFLr+fzTXxd9smN1t2BWkN Rzqo813Wkm7U9GazZQ5klX/+pCDCCBtTR0AdUTQGkDx5nhgfIRvI5BtZTr80Kaq37pGB 3d/g== X-Gm-Message-State: AOAM533a0/Qdt0HuXGvUM+qR6vgTuHNFSidFfMzmB8ZVgrmgkV/d0q/d VTRwVpEqNrxSHTC7e8HXRVWfvM8TIXU= X-Google-Smtp-Source: ABdhPJyPjim7vqK3dIX+fpSHBXCUP1HWU5XRSo59GcygbEYYbP0SLb2EwR18fnmJnQEpdZ4AKOrXew== X-Received: by 2002:a05:6a00:10cc:b0:4fe:3f1c:2d1 with SMTP id d12-20020a056a0010cc00b004fe3f1c02d1mr18381933pfu.0.1652140200131; Mon, 09 May 2022 16:50:00 -0700 (PDT) Original-Received: from dingbat (220-235-29-41.dyn.iinet.net.au. [220.235.29.41]) by smtp.gmail.com with ESMTPSA id n15-20020a170902d2cf00b0015ee60ef65bsm406615plc.260.2022.05.09.16.49.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 16:49:59 -0700 (PDT) In-reply-to: Received-SPF: pass client-ip=2607:f8b0:4864:20::530; envelope-from=theophilusx@gmail.com; helo=mail-pg1-x530.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: 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" Xref: news.gmane.io gmane.emacs.devel:289561 Archived-At: John Covici writes: > Hi. I tried to upgrade my emacs from 27 to 28, but I get lots of > errors in my .emacs file. > > The errors seems to be around these lines: > > (require 'package) > (add-to-list 'package-archives > '("melpa" . "http://melpa.org/packages/") > (when (< emacs-major-version 24) > ;; For important compatibility libraries like cl-lib > (add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/")))) > (package-initialize) > (setq max-specpdl-size 22000) > (add-to-list 'load-path "~/.emacs.d/el-get/el-get") > > (unless (require 'el-get nil 'noerror) > (with-current-buffer > (url-retrieve-synchronously > "https://raw.githubusercontent.com/dimitri/el-get/master/el-get-install.el") > (goto-char (point-max)) > (eval-print-last-sexp))) > > (add-to-list 'el-get-recipe-path "~/.emacs.d/el-get-user/recipes") > ;(el-get 'sync) > > (defconst user-cache-directory "~/.cache/emacs/") > (make-directory user-cache-directory t) > > (use-package mime-play > :config ;https://www.emacswiki.org/emacs/WlFaq#toc42 > (setq mime-play-find-every-situations nil > mime-play-delete-file-immediately nil)) > > (use-package mime-view > :init > (add-hook 'wl-summary-mode-hook > (lambda () > (local-set-key "\C-c\C-o" 'wl-summary-view-html))) > :config (setq mime-view-text/html-previewer 'shr > mime-situation-examples-file (concat user-cache-directory "mime") > ;https://www.emacswiki.org/emacs/WlFaq#toc42 > mime-view-mailcap-files (concat user-cache-directory "mailcap")) > > ;; Functions > ;; Reading HTML mail > (defun wl-summary-view-html () > (interactive) > (save-excursion > (wl-message-select-buffer wl-message-buffer) > (let ((done nil) > (mime-preview-over-to-next-method-alist > `((wl-original-message-mode . (lambda () > (setq done t))))) > type subtype) > (while (not done) > (setq type (cdr (assq 'type (get-text-property (point) 'mime-view-situation)))) > (setq subtype (cdr (assq 'subtype (get-text-property (point) 'mime-view-situation)))) > (if (and (eq type 'text) > (eq subtype 'html)) > (progn > (setq done t) > (mime-preview-play-curjrent-entity)) > (mime-preview-move-to-next))))))) > > > The first error was the use-package line. > > Is there some further upgrade tasks I need to do to get this working? > Yes - how about actually including the error messages so we have some clue? Based on available information, my assessment is the upgrade failed because your socks were the wrong colour. On a serious note, I would go through the NEWS and PROBLEMS files for Emacs 28 to see if that gives some guidance. If the errors are associated with the parts of your init you have posted, it would indicate all are related to externally maintained packages which are not part of Emacs. It could be these packages need to be updated to be compatible with Emacs 28 or it could simply be that failures early (especially around el-get) are causing installation of other external packages to fail. Again, without knowing what the errors were, we have no clue.