branch: externals/greader commit 197b4f780ac55d13e5fb5a21d16dbdfbab07b99b Author: Michelangelo Rodriguez <michelangelo.rodrig...@gmail.com> Commit: Michelangelo Rodriguez <michelangelo.rodrig...@gmail.com>
greader version 0.11.7 Now the conversion status now includes the percentage of the buffer already converted. --- greader-audiobook.el | 9 ++++++--- greader.el | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/greader-audiobook.el b/greader-audiobook.el index 83421f5ce5..922bca81e4 100644 --- a/greader-audiobook.el +++ b/greader-audiobook.el @@ -160,7 +160,8 @@ Only the final report will be printed." (defun greader-audiobook--percentage () "Return the percentage read of the buffer." - + (let ((unit (/ (point-max) 100))) + (/ (point) unit))) (defun greader-audiobook--get-block () "Get a block of text in current buffer. This function uses `greader-audiobook-block-size' to determine the @@ -353,9 +354,11 @@ buffer without the extension, if any." (greader-audiobook--calculate-file-name output-file-counter total-blocks)) (unless greader-audiobook-buffer-quietly - (message "converting block %d of %d" + (message "converting block %d of %d \(%s\)" output-file-counter - total-blocks)) + total-blocks (concat (number-to-string + (greader-audiobook--percentage)) + "\%"))) (setq output-file-name (greader-audiobook-convert-block output-file-name)) (if output-file-name diff --git a/greader.el b/greader.el index 07bcb2748f..7b0e198921 100644 --- a/greader.el +++ b/greader.el @@ -7,7 +7,7 @@ ;; Keywords: tools, accessibility ;; URL: https://gitlab.com/michelangelo-rodriguez/greader -;; Version: 0.11.6 +;; Version: 0.11.7 ;; This program is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by