buffer contains at least 2 characters.
+2000-08-29 Gerd Moellmann <gerd@gnu.org>
+
+ * progmodes/executable.el
+ (executable-make-buffer-file-executable-if-script-p): Check that
+ buffer contains at least 2 characters.
+
2000-08-29 Eli Zaretskii <eliz@is.elta.co.il>
* help.el (help-make-xrefs, help-xref-mule-regexp): Doc fix.
"Make file executable according to umask if not already executable.
If file already has any execute bits set at all, do not change existing
file modes."
- (and (save-restriction
+ (and (>= (buffer-size) 2)
+ (save-restriction
(widen)
(string= "#!" (buffer-substring 1 3)))
(let* ((current-mode (file-modes (buffer-file-name)))