This MR is a quick fix for an issue I'm facing with pet-mode.
In some cases, there we can have temporary/special buffers with python-mode that doesn't visit a file (buffer-file-name is nil). In these cases, the current pet-mode gets called and cause an error.
This has been observed in mmm-mode when python-mode is used as a sub-mode, although, it can happen in other situations.
Hello and thank you for this package.
This MR is a quick fix for an issue I'm facing with
pet-mode
.In some cases, there we can have temporary/special buffers with
python-mode
that doesn't visit a file (buffer-file-name
is nil). In these cases, the currentpet-mode
gets called and cause an error.This has been observed in
mmm-mode
whenpython-mode
is used as a sub-mode, although, it can happen in other situations.