bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#40148: 26.3; Custom package header checked out from GIT in Windows w


From: Noam Postavsky
Subject: bug#40148: 26.3; Custom package header checked out from GIT in Windows will not parse
Date: Fri, 20 Mar 2020 10:25:11 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (windows-nt)

Eli Zaretskii <address@hidden> writes:

> It may be the case that package.el should be more tolerant in this
> case, but that's just the tip of an iceberg, because there are files
> out there where LF to CR-LF conversions are a no-no (just one example:
> Unix shell scripts).  Just say no to this "feature", and Bob's your
> uncle.

The problem happens without git conversion as well (because Emacs
defaults to "dos" encoding on windows-nt systems):

emacs -Q -f toggle-debug-on-error
C-x C-f test-package.el ;; (visit a non-existing file)

insert the following text

    ;;; michael-theme.el --- Emacs theme with a dark background and bright 
colors for use with a projector.

    ;; Author: Michael
    ;; Version: 0.1
    ;; Keywords: michael theme

    ;;; michael-theme.el ends here

C-x C-s
M-x package-install-file test-package.el RET

Debugger entered--Lisp error: (error "Package lacks a \"Version\" or 
\"Package-Version\" header")
  signal(error ("Package lacks a \"Version\" or \"Package-Version\" header"))
  error("Package lacks a \"Version\" or \"Package-Version\" header")
  package-buffer-info()
  package-install-from-buffer()
  package-install-file("~/test-package.el")
  funcall-interactively(package-install-file "~/test-package.el")





reply via email to

[Prev in Thread] Current Thread [Next in Thread]