aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/time-stamp.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/time-stamp.el')
-rw-r--r--lisp/time-stamp.el13
1 files changed, 1 insertions, 12 deletions
diff --git a/lisp/time-stamp.el b/lisp/time-stamp.el
index 20b6c3f83b7..fa7621bcd46 100644
--- a/lisp/time-stamp.el
+++ b/lisp/time-stamp.el
@@ -569,7 +569,7 @@ and all `time-stamp-format' compatibility."
569 ((eq cur-char ?L) ;(undocumented alt user full name) 569 ((eq cur-char ?L) ;(undocumented alt user full name)
570 (user-full-name)) 570 (user-full-name))
571 ((eq cur-char ?h) ;mail host name 571 ((eq cur-char ?h) ;mail host name
572 (time-stamp-mail-host-name)) 572 (or mail-host-address (system-name)))
573 ((eq cur-char ?q) ;(undocumented unqual hostname) 573 ((eq cur-char ?q) ;(undocumented unqual hostname)
574 (let ((qualname (system-name))) 574 (let ((qualname (system-name)))
575 (if (string-match "\\." qualname) 575 (if (string-match "\\." qualname)
@@ -639,17 +639,6 @@ Suggests replacing OLD-FORM with NEW-FORM."
639 (insert "\"" old-form "\" -- use " new-form "\n")) 639 (insert "\"" old-form "\" -- use " new-form "\n"))
640 (display-buffer "*Time-stamp-compatibility*")))) 640 (display-buffer "*Time-stamp-compatibility*"))))
641 641
642
643
644(defun time-stamp-mail-host-name ()
645 "Return the name of the host where the user receives mail.
646This is the value of `mail-host-address' if bound and a string,
647otherwise the value of the function `system-name'."
648 (or (and (boundp 'mail-host-address)
649 (stringp mail-host-address)
650 mail-host-address)
651 (system-name)))
652
653(provide 'time-stamp) 642(provide 'time-stamp)
654 643
655;;; time-stamp.el ends here 644;;; time-stamp.el ends here