Ensure #'magic:find-file-noselect creates unique buffers
authorSteve Youngs <steve@sxemacs.org>
Tue, 17 Mar 2020 04:08:18 +0000 (14:08 +1000)
committerSteve Youngs <steve@sxemacs.org>
Tue, 17 Mar 2020 04:08:18 +0000 (14:08 +1000)
commitc273570a7d78e3580eb3476f0521148d8993efa3
tree80eeee58f06ce610afeaf98634bae167f23c1844
parent296f6c0cefc2dcb6c11d8adf050ef3143eced75a
Ensure #'magic:find-file-noselect creates unique buffers

Having `magic:find-file-magic-alist-enable' features turned on, the
following scenario could eventuate...

  C-x C-f /path/one/to/a/file/called/Wanda

  C-x C-f /path/two/to/another/file/called/Wanda

would result in the *same* buffer being used for *both* files.
Imagine the fun, especially when both paths are writable for you.

This change fixes that.

* lisp/ffi/ffi-magic.el (magic:find-file-noselect): Use
#'create-file-buffer, not #'get-buffer-create. Gah! What was I
thinking?!

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