From 26f9176e11f816ebfcc38d0ab7b95e96f1518fac Mon Sep 17 00:00:00 2001 From: Steve Purcell Date: Fri, 19 Dec 2014 21:50:04 +0000 Subject: [PATCH] "Version" headers are case-insensitive --- package-build.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package-build.el b/package-build.el index 99cb65aa..52dda4af 100644 --- a/package-build.el +++ b/package-build.el @@ -689,7 +689,8 @@ Optionally PRETTY-PRINT the data." (defun pb/update-or-insert-version (version) "Ensure current buffer has a \"Version: VERSION\" header." (goto-char (point-min)) - (if (re-search-forward "^;+* *Version *: *" nil t) + (if (let ((case-fold-search t)) + (re-search-forward "^;+* *Version *: *" nil t)) (progn (move-beginning-of-line nil) (search-forward "V" nil t)