Commit f677562b authored by Chong Yidong's avatar Chong Yidong
Browse files

Fix package.el handling of local variables on first line.

* lisp/emacs-lisp/package.el (package-buffer-info): Avoid putting
local variables into description.
parent 3d53ee1b
2012-05-05 Chong Yidong <>
* emacs-lisp/package.el (package-buffer-info): Avoid putting local
variables into description.
2012-05-05 Stefan Monnier <>
* shell.el (shell-completion-vars): Set pcomplete-arg-quote-list like
......@@ -943,7 +943,7 @@ If the buffer does not contain a conforming package, signal an
error. If there is a package, narrow the buffer to the file's
(goto-char (point-min))
(unless (re-search-forward "^;;; \\([^ ]*\\)\\.el --- \\(.*\\)$" nil t)
(unless (re-search-forward "^;;; \\([^ ]*\\)\\.el ---[ \t]*\\(.*?\\)[ \t]*\\(-\\*-.*-\\*-[ \t]*\\)?$" nil t)
(error "Packages lacks a file header"))
(let ((file-name (match-string-no-properties 1))
(desc (match-string-no-properties 2))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment