branch: externals/greader
commit d1c3e08484d3f3d93838fe543adeef19310d0533
Author: Michelangelo Rodriguez <michelangelo.rodrig...@gmail.com>
Commit: Michelangelo Rodriguez <michelangelo.rodrig...@gmail.com>

    greader version 0.11.2
    
    Now the string associated with a particular mode in the variable
    `greader-audiobook-modes' is interpreted as a regular expression.
    The default value of the variable `greader-audiobook-modes' reflects
    this change, to avoid empty blocks to be incorporated in the resulting
    audiobook.
---
 greader-audiobook.el | 4 ++--
 greader.el           | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/greader-audiobook.el b/greader-audiobook.el
index a7258353be..b154507c97 100644
--- a/greader-audiobook.el
+++ b/greader-audiobook.el
@@ -107,7 +107,7 @@ this variable will be ignored to honor the mode specified in
   :type '(choice (natnum :tag "size in characters") (string :tag "size
   in minutes")))
 
-(defcustom greader-audiobook-modes '((ereader-mode . ""))
+(defcustom greader-audiobook-modes '((ereader-mode . "\\W*"))
   "Different treatment of block based on the current major mode.
 Instead of numerical block size, use a string to determine the end of
 each block."
@@ -161,7 +161,7 @@ Return a cons with start and end of the block or nil if at 
end of the buffer."
          (end (point-max)))
       (if (assq major-mode greader-audiobook-modes)
          (progn
-           (search-forward
+           (re-search-forward
             (cdr (assq major-mode greader-audiobook-modes))
             nil t 1)
            (setq end (point)))
diff --git a/greader.el b/greader.el
index 2b45f4ec70..730a96c4d0 100644
--- a/greader.el
+++ b/greader.el
@@ -7,7 +7,7 @@
 ;; Keywords: tools, accessibility
 ;; URL: https://www.gitlab.com/michelangelo-rodriguez/greader
 ;; package-requires: ((google-translate))
-;; Version: 0.11.1
+;; Version: 0.11.2
 
 ;; 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

Reply via email to