emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/doc-toc 977bec00d8 74/84: Tiny bug fix in toc--tablist-


From: ELPA Syncer
Subject: [elpa] externals/doc-toc 977bec00d8 74/84: Tiny bug fix in toc--tablist-to-handyoutliner
Date: Mon, 26 Sep 2022 13:58:39 -0400 (EDT)

branch: externals/doc-toc
commit 977bec00d8d448ad2a5e2e4c17b9c9ba3e194ec2
Author: Daniel Nicolai <dalanicolai@gmail.com>
Commit: Daniel Nicolai <dalanicolai@gmail.com>

    Tiny bug fix in toc--tablist-to-handyoutliner
---
 toc-mode.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/toc-mode.el b/toc-mode.el
index cc0ba7f38c..e647df2f37 100644
--- a/toc-mode.el
+++ b/toc-mode.el
@@ -949,7 +949,7 @@ to `pdfoutline' shell command."
     (while (not (eobp))
       (let* ((v (tabulated-list-get-entry))
              (tabs (make-string (string-to-number (aref v 0)) ?\t)))
-        (setq text (concat text (format "%s %s %s\n" tabs (aref v 1) (aref v 
2))))
+        (setq text (concat text (format "%s%s %s\n" tabs (aref v 1) (aref v 
2))))
         (forward-line 1)))
     (switch-to-buffer (find-file "contents.txt"))
     (erase-buffer)
@@ -958,7 +958,8 @@ to `pdfoutline' shell command."
       (setq-local doc-buffer source-buffer))
     (insert text))
   (save-buffer)
-  (when (and toc-handyoutliner-path toc-file-browser-command)
+  (if (not (and toc-handyoutliner-path toc-file-browser-command))
+      (message "Path to handyoutliner or file browser command not defined")
     (toc--open-handy-outliner)
     (toc--open-filepath-in-file-browser)))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]