diff options
| -rw-r--r-- | lisp/mail/mailalias.el | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/mail/mailalias.el b/lisp/mail/mailalias.el index 56882f04eb5..48f3494a0e6 100644 --- a/lisp/mail/mailalias.el +++ b/lisp/mail/mailalias.el | |||
| @@ -262,6 +262,12 @@ By default, this is the file specified by `mail-personal-alias-file'." | |||
| 262 | ((file-exists-p (setq file (concat "~/" file))) | 262 | ((file-exists-p (setq file (concat "~/" file))) |
| 263 | (insert-file-contents file)) | 263 | (insert-file-contents file)) |
| 264 | (t (setq file nil))) | 264 | (t (setq file nil))) |
| 265 | (goto-char (point-min)) | ||
| 266 | ;; Delete comments from the contents. | ||
| 267 | (while (search-forward "# " nil t) | ||
| 268 | (let ((p (- (point) 2))) | ||
| 269 | (end-of-line) | ||
| 270 | (delete-region p (point)))) | ||
| 265 | ;; Don't lose if no final newline. | 271 | ;; Don't lose if no final newline. |
| 266 | (goto-char (point-max)) | 272 | (goto-char (point-max)) |
| 267 | (or (eq (preceding-char) ?\n) (newline)) | 273 | (or (eq (preceding-char) ?\n) (newline)) |