Set modes and run appropriate hooks when visiting a file via magic
authorSteve Youngs <steve@sxemacs.org>
Fri, 28 Feb 2020 08:34:48 +0000 (18:34 +1000)
committerSteve Youngs <steve@sxemacs.org>
Fri, 28 Feb 2020 08:34:48 +0000 (18:34 +1000)
commit537a0b719dffc95fe9338bc1c30faf7a5ab71277
tree62f4d90d682d27d26f4eaaeeb0073da3f905e812
parent16294576c497d6a20be9a5ac7b45cedc742fe78a
Set modes and run appropriate hooks when visiting a file via magic

This little change makes a big difference and now it should be quite
safe to add `(magic:find-file-magic-files-alist)' into your init.el.

* lisp/ffi/ffi-magic.el (magic:find-file-noselect):
  Call #'after-find-file to ensure modes and hooks are done
  right.

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