X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=vm;h=6b4b1fba9e18422160119e4364593b775a9298f0;hb=441cfbec35f5863a7ceff69f1f5d3cf75e5a9c34;hp=0f4a218b6f372e895646a8c3d8ac99f771b5cb6d;hpb=40f205380c5c7665513bae29ad0b8a785afbcc66;p=elisp.git diff --git a/vm b/vm index 0f4a218..6b4b1fb 100644 --- a/vm +++ b/vm @@ -662,7 +662,8 @@ instance, someone in bbdb named \"Paul Smith\" would generate an alias (email (car (elt record 6))) (alias (downcase (replace-regexp-in-string "\\([a-zA-Z]?\\)[^- ]*[- ]*" "\\1" name)))) - (if (and (> (length alias) 1) + (if (and email + (> (length alias) 1) ;; Do not overwrite an existing alias (not (and mail-abbrevs (intern-soft alias mail-abbrevs)))) (define-mail-abbrev alias email))