ffi-magic -- Fix #'magic:find-file-noselect unbound 'coding'
authorSteve Youngs <steve@sxemacs.org>
Thu, 8 Apr 2021 01:02:14 +0000 (11:02 +1000)
committerSteve Youngs <steve@sxemacs.org>
Thu, 8 Apr 2021 01:02:14 +0000 (11:02 +1000)
commit6fe0649ee196109f4de628bb511496a6e2c247d6
tree587c2ca320051887f84415e5cc261ece4a92fe27
parenta354e1072e286842e4da39da58f0ed5e2d26b110
ffi-magic -- Fix #'magic:find-file-noselect unbound 'coding'

If you tried to open a file from a buffer where the coding system had
been set via file-local variable ("Local variables:" section or
cookie) it would result in a void variable error.  This change fixes
that.

* lisp/ffi/ffi-magic.el (magic:find-file-noselect): let-bind
'coding' inside the #'with-current-buffer instead of outside.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
lisp/ffi/ffi-magic.el