]> git.eshelyaron.com Git - emacs.git/commitdiff
mail-extr.el: Mention `mail-header-parse-address' in the doc string
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 15 Apr 2018 17:45:05 +0000 (19:45 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 15 Apr 2018 17:45:05 +0000 (19:45 +0200)
* lisp/mail/mail-extr.el (mail-extract-address-components):
Mention `mail-header-parse-address' in the doc string.

lisp/mail/mail-extr.el

index 3e8a41fb24c5b966dd2fdcd4060799b2286c3817..0175c687b263c8404ef541014c69c2d9f736c997 100644 (file)
@@ -712,7 +712,13 @@ one recipients, all but the first is ignored.
 ADDRESS may be a string or a buffer.  If it is a buffer, the visible
 \(narrowed) portion of the buffer will be interpreted as the address.
 \(This feature exists so that the clever caller might be able to avoid
-consing a string.)"
+consing a string.)
+
+This function is primarily meant for when you're displaying the
+result to the user: Many prettifications are applied to the
+result returned.  If you want to decode an address for further
+non-display use, you should probably use
+`mail-header-parse-address' instead."
   (let ((canonicalization-buffer (get-buffer-create " *canonical address*"))
        (extraction-buffer (get-buffer-create " *extract address components*"))
        value-list)