emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] emacs-25 5293d1b: Avoid byte-compiler warning in todo-mode


From: Stephen Berman
Subject: [Emacs-diffs] emacs-25 5293d1b: Avoid byte-compiler warning in todo-mode (bug#21953)
Date: Thu, 21 Jan 2016 11:01:23 +0000

branch: emacs-25
commit 5293d1bdb3e665a565af032a163004c976328cc2
Author: Stephen Berman <address@hidden>
Commit: Stephen Berman <address@hidden>

    Avoid byte-compiler warning in todo-mode (bug#21953)
    
    * todo-mode.el (todo-convert-legacy-files): Add limit argument
    to looking-back to comply with advertised-calling-convention.
---
 lisp/calendar/todo-mode.el |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/lisp/calendar/todo-mode.el b/lisp/calendar/todo-mode.el
index ebf0a82..29d8dfc 100644
--- a/lisp/calendar/todo-mode.el
+++ b/lisp/calendar/todo-mode.el
@@ -4654,13 +4654,15 @@ name in `todo-directory'.  See also the documentation 
string of
                    (goto-char (match-beginning 0))
                  (goto-char (point-max)))
                (backward-char)
-               (when (looking-back "\\[\\([^][]+\\)\\]")
+               (when (looking-back "\\[\\([^][]+\\)\\]"
+                                    (line-beginning-position))
                  (setq cat (match-string 1))
                  (goto-char (match-beginning 0))
                  (replace-match ""))
                ;; If the item ends with a non-comment parenthesis not
                ;; followed by a period, we lose (but we inherit that
                ;; problem from the legacy code).
+                ;; FIXME: fails on multiline comment
                (when (looking-back "(\\(.*\\)) " (line-beginning-position))
                  (setq comment (match-string 1))
                  (replace-match "")



reply via email to

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