Open fm4d opened 8 years ago
That's actually a nice idea. pandoc-mode
needs a file name, since some output format require an output file. But it's easy to create a file name based on the buffer name.
With this fix, a buffer that's not visiting a file can be processed in the normal way. If an output file is created, it gets the name of the buffer (plus relevant extension).
Hmm, I'm just thinking, there's a nicer way to do this. Stay tuned.
Done: dd1152f. Now, when pandoc
is run on a buffer not visiting a file, messages display the buffer name instead of the (bogus) file name constructed from it.
Please let me know if you run into problems.
It would be nice to allow conversion of non-file buffers like
scratch
which is now impossible due to:in
pandoc--call-external
which fails because(buffer-file-name #scratch)
==>nil
.