* unable to upgrade from emacs 27 to emacs 28
@ 2022-05-09 20:55 John Covici
2022-05-09 21:26 ` Stefan Monnier
` (2 more replies)
0 siblings, 3 replies; 12+ messages in thread
From: John Covici @ 2022-05-09 20:55 UTC (permalink / raw)
To: emacs-devel
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?
Thanks in advance for any suggestions.
--
Your life is like a penny. You're going to lose it. The question is:
How do
you spend it?
John Covici wb2una
covici@ccs.covici.com
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: unable to upgrade from emacs 27 to emacs 28
2022-05-09 20:55 unable to upgrade from emacs 27 to emacs 28 John Covici
@ 2022-05-09 21:26 ` Stefan Monnier
2022-05-09 22:13 ` John Covici
2022-05-09 22:27 ` Óscar Fuentes
2022-05-09 23:35 ` Tim Cross
2 siblings, 1 reply; 12+ messages in thread
From: Stefan Monnier @ 2022-05-09 21:26 UTC (permalink / raw)
To: John Covici; +Cc: emacs-devel
> Hi. I tried to upgrade my emacs from 27 to 28, but I get lots of
> errors in my .emacs file.
Should I report a bug against Gnus for now being able to guess the
errors you saw?
Stefan
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: unable to upgrade from emacs 27 to emacs 28
2022-05-09 21:26 ` Stefan Monnier
@ 2022-05-09 22:13 ` John Covici
0 siblings, 0 replies; 12+ messages in thread
From: John Covici @ 2022-05-09 22:13 UTC (permalink / raw)
To: Stefan Monnier; +Cc: emacs-devel
Not using gnus, using wanderlust for mail, gnus for news.
On Mon, 09 May 2022 17:26:44 -0400,
Stefan Monnier wrote:
>
> > Hi. I tried to upgrade my emacs from 27 to 28, but I get lots of
> > errors in my .emacs file.
>
> Should I report a bug against Gnus for now being able to guess the
> errors you saw?
>
>
> Stefan
>
--
Your life is like a penny. You're going to lose it. The question is:
How do
you spend it?
John Covici wb2una
covici@ccs.covici.com
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: unable to upgrade from emacs 27 to emacs 28
2022-05-09 20:55 unable to upgrade from emacs 27 to emacs 28 John Covici
2022-05-09 21:26 ` Stefan Monnier
@ 2022-05-09 22:27 ` Óscar Fuentes
2022-05-10 6:11 ` John Covici
2022-05-09 23:35 ` Tim Cross
2 siblings, 1 reply; 12+ messages in thread
From: Óscar Fuentes @ 2022-05-09 22:27 UTC (permalink / raw)
To: emacs-devel
John Covici <covici@ccs.covici.com> writes:
> Thanks in advance for any suggestions.
My suggestion is to post the errors ;-)
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: unable to upgrade from emacs 27 to emacs 28
2022-05-09 22:27 ` Óscar Fuentes
@ 2022-05-10 6:11 ` John Covici
2022-05-10 12:14 ` Eli Zaretskii
2022-05-10 13:47 ` Tim Cross
0 siblings, 2 replies; 12+ messages in thread
From: John Covici @ 2022-05-10 6:11 UTC (permalink / raw)
To: Óscar Fuentes; +Cc: emacs-devel
OK, here is the error message, did not seem to be that helpful .
Debugger entered--Lisp error: (invalid-read-syntax "Invalid byte-code
object")
read(get-file-char)
(use-package mime-play :config (setq
mime-play-find-every-situations nil
mime-play-delete-file-immediately nil))
eval-buffer(#<buffer *load*> nil "/home/covici/.emacs" nil t)
; Reading at buffer position 1261
load-with-code-conversion("/home/covici/.emacs"
"/home/covici/.emacs" t t)
load("~/.emacs" noerror nomessage)
startup--load-user-init-file(#f(compiled-function ()
#<bytecode 0x11083400636d167e>) #f(compiled-function ()
#<bytecode -0x1f3c686ddc0def75>) t)
command-line()
normal-top-level()
On Mon, 09 May 2022 18:27:44 -0400,
Óscar Fuentes wrote:
>
> John Covici <covici@ccs.covici.com> writes:
>
> > Thanks in advance for any suggestions.
>
> My suggestion is to post the errors ;-)
>
>
--
Your life is like a penny. You're going to lose it. The question is:
How do
you spend it?
John Covici wb2una
covici@ccs.covici.com
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: unable to upgrade from emacs 27 to emacs 28
2022-05-10 6:11 ` John Covici
@ 2022-05-10 12:14 ` Eli Zaretskii
2022-05-10 14:30 ` John Covici
2022-05-10 13:47 ` Tim Cross
1 sibling, 1 reply; 12+ messages in thread
From: Eli Zaretskii @ 2022-05-10 12:14 UTC (permalink / raw)
To: covici; +Cc: ofv, emacs-devel
> Date: Tue, 10 May 2022 02:11:30 -0400
> From: John Covici <covici@ccs.covici.com>
> Cc: emacs-devel@gnu.org
>
> OK, here is the error message, did not seem to be that helpful .
>
> Debugger entered--Lisp error: (invalid-read-syntax "Invalid byte-code
> object")
> read(get-file-char)
> (use-package mime-play :config (setq
> mime-play-find-every-situations nil
> mime-play-delete-file-immediately nil))
> eval-buffer(#<buffer *load*> nil "/home/covici/.emacs" nil t)
What is this mime-play package?
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: unable to upgrade from emacs 27 to emacs 28
2022-05-10 12:14 ` Eli Zaretskii
@ 2022-05-10 14:30 ` John Covici
0 siblings, 0 replies; 12+ messages in thread
From: John Covici @ 2022-05-10 14:30 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: ofv, emacs-devel
mime-play seems to be a part of the wanderlust mailer, so I will see
what they have to say.
On Tue, 10 May 2022 08:14:16 -0400,
Eli Zaretskii wrote:
>
> > Date: Tue, 10 May 2022 02:11:30 -0400
> > From: John Covici <covici@ccs.covici.com>
> > Cc: emacs-devel@gnu.org
> >
> > OK, here is the error message, did not seem to be that helpful .
> >
> > Debugger entered--Lisp error: (invalid-read-syntax "Invalid byte-code
> > object")
> > read(get-file-char)
> > (use-package mime-play :config (setq
> > mime-play-find-every-situations nil
> > mime-play-delete-file-immediately nil))
> > eval-buffer(#<buffer *load*> nil "/home/covici/.emacs" nil t)
>
> What is this mime-play package?
--
Your life is like a penny. You're going to lose it. The question is:
How do
you spend it?
John Covici wb2una
covici@ccs.covici.com
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: unable to upgrade from emacs 27 to emacs 28
2022-05-10 6:11 ` John Covici
2022-05-10 12:14 ` Eli Zaretskii
@ 2022-05-10 13:47 ` Tim Cross
1 sibling, 0 replies; 12+ messages in thread
From: Tim Cross @ 2022-05-10 13:47 UTC (permalink / raw)
To: emacs-devel
John Covici <covici@ccs.covici.com> writes:
> OK, here is the error message, did not seem to be that helpful .
>
> Debugger entered--Lisp error: (invalid-read-syntax "Invalid byte-code
> object")
> read(get-file-char)
> (use-package mime-play :config (setq
> mime-play-find-every-situations nil
> mime-play-delete-file-immediately nil))
> eval-buffer(#<buffer *load*> nil "/home/covici/.emacs" nil t)
> ; Reading at buffer position 1261
> load-with-code-conversion("/home/covici/.emacs"
> "/home/covici/.emacs" t t)
> load("~/.emacs" noerror nomessage)
> startup--load-user-init-file(#f(compiled-function ()
> #<bytecode 0x11083400636d167e>) #f(compiled-function ()
> #<bytecode -0x1f3c686ddc0def75>) t)
> command-line()
> normal-top-level()
> On Mon, 09 May 2022 18:27:44 -0400,
That error message is telling you there is something in your init file
(or one of the files it loads) which Emacs is unable to parse correctly.
From the error message, it looks like the issue may be with the
mime-play package. I have no idea what this package does as it is not a
part of Emacs. Quite likely the package needs to be updated to work with
Emacs 28.
Note that it could also be some other error in your init file which is
confusing the parser as it tries to read your init file. I would start
by commenting out the section relating to mime-play and see if Emacs is
then able to start. If it does, then you probably need to raise an issue
with the mime-play maintainers (or check there isn't an update for Emacs
28).
If commetning out mime-play still fails to get Emacs to start, then the
error is likely somewhere else in your init file. In this case, you may
need to use the init file bisect technique - comment out the last half
of your init file and start Emacs. If it start, you know the issue in
the second half of your file, if it still doesn't start, you know it is
in the first half.
Proceed with commenting and uncommenting bits of your init file until
you narrow down the problem to the specific point where the failure
occurs and then invesitgate the reason.
It is also a good idea to read through the NEWS file for Emacs 28. Each
new version of Emacs adds new features and sometimes introduces
new or altered functionality which may require updating/changing your
init file. The NEWS file can help narrow down the search space when you
encounter problems.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: unable to upgrade from emacs 27 to emacs 28
2022-05-09 20:55 unable to upgrade from emacs 27 to emacs 28 John Covici
2022-05-09 21:26 ` Stefan Monnier
2022-05-09 22:27 ` Óscar Fuentes
@ 2022-05-09 23:35 ` Tim Cross
2022-05-10 2:01 ` Stefan Monnier
2 siblings, 1 reply; 12+ messages in thread
From: Tim Cross @ 2022-05-09 23:35 UTC (permalink / raw)
To: emacs-devel
John Covici <covici@ccs.covici.com> 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.
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2022-05-10 15:01 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-09 20:55 unable to upgrade from emacs 27 to emacs 28 John Covici
2022-05-09 21:26 ` Stefan Monnier
2022-05-09 22:13 ` John Covici
2022-05-09 22:27 ` Óscar Fuentes
2022-05-10 6:11 ` John Covici
2022-05-10 12:14 ` Eli Zaretskii
2022-05-10 14:30 ` John Covici
2022-05-10 13:47 ` Tim Cross
2022-05-09 23:35 ` Tim Cross
2022-05-10 2:01 ` Stefan Monnier
2022-05-10 2:49 ` Tim Cross
2022-05-10 15:01 ` [External] : " Drew Adams
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.