Commit 4dc7e43b authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(rmail-summary-goto-msg): Simply the regexp

for finding the message number.  Check that a non-digit follows it.
parent 6696af65
......@@ -807,7 +807,7 @@ Commands for sorting the summary:
(goto-char (point-max))
(rmail-summary-goto-msg)))
(goto-char (point-min))
(if (not (re-search-forward (concat "^ *" (int-to-string n)) nil t))
(if (not (re-search-forward (format "^%4d[^0-9]" n) nil t))
(progn (or nowarn (message "Message %d not found" n))
(setq n curmsg)
(setq message-not-found t)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment