From: Francesco Potortì Date: Mon, 10 Jul 1995 14:46:00 +0000 (+0000) Subject: * mailalias.el (build-mail-aliases): Fixed the regexp for "^group". X-Git-Tag: emacs-19.34~3343 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d9817d8cd78d8fcc82bc6576cc42978d07bd35df;p=emacs.git * mailalias.el (build-mail-aliases): Fixed the regexp for "^group". --- diff --git a/lisp/mail/mailalias.el b/lisp/mail/mailalias.el index c7ce5e51541..77630023099 100644 --- a/lisp/mail/mailalias.el +++ b/lisp/mail/mailalias.el @@ -146,10 +146,9 @@ By default, this is the file specified by `mail-personal-alias-file'." (beginning-of-line)) (t (setq file nil)))) (goto-char (point-min)) - (while (or (re-search-forward "^a\\(lias\\|\\)[ \t]+" nil t) - (re-search-forward "^g\\(roup\\|\\)[ \t]+" nil t)) - (re-search-forward "[^ \t]+") - (let* ((name (buffer-substring (match-beginning 0) (match-end 0))) + (while (re-search-forward + "^\\(a\\|alias\\|g\\|group\\)[ \t]+\\([^ \t]+\\)" nil t) + (let* ((name (match-string 2)) (start (progn (skip-chars-forward " \t") (point)))) (end-of-line) (define-mail-alias