branch: externals/doc-toc
commit e84c00c923f399f1e93fb58e9712f45c8ee7e4a3
Author: Daniel Nicolai <dalanico...@gmail.com>
Commit: Daniel Nicolai <dalanico...@gmail.com>

    Fix/remove ask for path before add TOC djvu
---
 toc-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/toc-mode.el b/toc-mode.el
index 5b5fc5d84f..b48a2cabe5 100644
--- a/toc-mode.el
+++ b/toc-mode.el
@@ -652,7 +652,7 @@ to `pdfoutline' shell command."
 (defun toc--add-to-djvu ()
   "Use buffer contents as source for adding TOC to DJVU using the shell 
program `djvused'."
   (interactive)
-  (write-file (buffer-name (current-buffer)))
+  (write-file default-directory)
   (print (format
           "djvused -s -e \"set-outline '%s'\" %s"
           (buffer-name)

Reply via email to