# HG changeset patch # User Richard M. Stallman # Date 780216911 0 # Node ID 6616ea991c4acb02287ab145138586450d7df174 # Parent 06a5ceb0fb21a97da5901528b3530ff511dcfd34 (rmail-summary-goto-msg): Simply the regexp for finding the message number. Check that a non-digit follows it. diff -r 06a5ceb0fb21 -r 6616ea991c4a lisp/mail/rmailsum.el --- a/lisp/mail/rmailsum.el Thu Sep 22 06:42:30 1994 +0000 +++ b/lisp/mail/rmailsum.el Thu Sep 22 06:55:11 1994 +0000 @@ -807,7 +807,7 @@ (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)