Skip to content

Commit

Permalink
simplify age inhibit for scrypt-p
Browse files Browse the repository at this point in the history
  • Loading branch information
anticomputer committed Jan 2, 2023
1 parent 3cf03ea commit 036884c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions age.el
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,7 @@ question, and the callback data (if any)."
(when (file-exists-p (expand-file-name file))
(with-temp-buffer
;; disable age file handling for this insert, we just want to grab a header
(let ((file-name-handler-alist (remq age-file-handler file-name-handler-alist))
(auto-mode-alist (remq age-file-auto-mode-alist-entry auto-mode-alist)))
(let ((age-inhibit t))
(insert-file-contents-literally file nil 0 100))
(let ((lines
;; grab the first two lines
Expand Down

0 comments on commit 036884c

Please sign in to comment.