mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
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.
This commit is contained in:
parent
7bc7fd6058
commit
5293d1bdb3
1 changed files with 3 additions and 1 deletions
|
|
@ -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 "")
|
||||
|
|
|
|||
Loading…
Reference in a new issue