Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
9a10bd0d
Commit
9a10bd0d
authored
Jan 25, 1997
by
Karl Heuer
Browse files
(rmail-get-new-mail): Fix return value to match doc.
parent
fd2d7b3d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
94 additions
and
93 deletions
+94
-93
lisp/mail/rmail.el
lisp/mail/rmail.el
+94
-93
No files found.
lisp/mail/rmail.el
View file @
9a10bd0d
...
...
@@ -916,6 +916,7 @@ It returns t if it got any new messages."
(let ((all-files (if file-name (list file-name)
rmail-inbox-list)))
(unwind-protect
(let (found)
(while all-files
(let ((opoint (point))
(new-messages 0)
...
...
@@ -998,8 +999,7 @@ It returns t if it got any new messages."
(if (= new-messages 0)
(progn (goto-char opoint)
(if (or file-name rmail-inbox-list)
(message "(No new mail has arrived)"))
nil)
(message "(No new mail has arrived)")))
(if (rmail-summary-exists)
(rmail-select-summary
(rmail-update-summary)))
...
...
@@ -1009,7 +1009,8 @@ It returns t if it got any new messages."
;; unless we have other unseen messages before it.
(rmail-show-message (rmail-first-unseen-message))
(run-hooks 'rmail-after-get-new-mail-hook)
t)))
(setq found t))))
found)
;; Don't leave the buffer screwed up if we get a disk-full error.
(rmail-show-message))))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment