From: michael.cadilhac@lrde.org (Michaël Cadilhac)
Cc: emacs-devel@gnu.org
Subject: Re: [Proposal] Retrieve MAILADDRESS as user-mail-address default value.
Date: Thu, 20 Jul 2006 18:58:56 +0200 [thread overview]
Message-ID: <87r70gjjqn.fsf@lrde.org> (raw)
In-Reply-To: <E1G3aWk-0001Mz-Hl@fencepost.gnu.org> (Richard Stallman's message of "Thu, 20 Jul 2006 11:33:26 -0400")
[-- Attachment #1.1.1: Type: text/plain, Size: 268 bytes --]
Richard Stallman <rms@gnu.org> writes:
> Is the envvar MAILADDRESS customarily used by other mailers?
EMAIL is. At least in, for instance, Mutt, debian's reportbug binary,
darcs, yafc, ...
If you prefer this envvar, please consider the following modified
patches.
[-- Attachment #1.1.2: startup.patch --]
[-- Type: text/x-patch, Size: 2722 bytes --]
Index: lisp/ChangeLog
===================================================================
RCS file: /sources/emacs/emacs/lisp/ChangeLog,v
retrieving revision 1.9820
diff -c -0 -r1.9820 ChangeLog
*** lisp/ChangeLog 17 Jul 2006 04:07:48 -0000 1.9820
--- lisp/ChangeLog 19 Jul 2006 11:21:17 -0000
***************
*** 0 ****
--- 1,6 ----
+ 2006-07-19 Michaël Cadilhac <michael.cadilhac@lrde.org>
+
+ * startup.el (user-mail-address): Initialize with `EMAIL'
+ environment variable first. Document it.
+ (command-line): Ditto.
+
Index: lisp/startup.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/startup.el,v
retrieving revision 1.409
diff -c -r1.409 startup.el
*** lisp/startup.el 24 May 2006 13:22:12 -0000 1.409
--- lisp/startup.el 19 Jul 2006 11:44:05 -0000
***************
*** 247,260 ****
:group 'mail)
(defcustom user-mail-address (if command-line-processed
! (concat (user-login-name) "@"
! (or mail-host-address
! (system-name)))
;; Empty string means "not set yet".
"")
"*Full mailing address of this user.
! This is initialized based on `mail-host-address',
! after your init file is read, in case it sets `mail-host-address'."
:type 'string
:group 'mail)
--- 247,262 ----
:group 'mail)
(defcustom user-mail-address (if command-line-processed
! (or (getenv "EMAIL")
! (concat (user-login-name) "@"
! (or mail-host-address
! (system-name))))
;; Empty string means "not set yet".
"")
"*Full mailing address of this user.
! This is initialized with environment variable `EMAIL' or, as a
! fallback, using `mail-host-address'. This is done after your
! init file is read, in case it sets `mail-host-address'."
:type 'string
:group 'mail)
***************
*** 977,985 ****
;; Do this here in case the init file sets mail-host-address.
(if (equal user-mail-address "")
! (setq user-mail-address (concat (user-login-name) "@"
! (or mail-host-address
! (system-name)))))
;; Originally face attributes were specified via
;; `font-lock-face-attributes'. Users then changed the default
--- 979,988 ----
;; Do this here in case the init file sets mail-host-address.
(if (equal user-mail-address "")
! (setq user-mail-address (or (getenv "EMAIL")
! (concat (user-login-name) "@"
! (or mail-host-address
! (system-name))))))
;; Originally face attributes were specified via
;; `font-lock-face-attributes'. Users then changed the default
[-- Attachment #1.1.3: NEWS.patch --]
[-- Type: text/x-patch, Size: 1350 bytes --]
Index: etc/ChangeLog
===================================================================
RCS file: /sources/emacs/emacs/etc/ChangeLog,v
retrieving revision 1.430
diff -c -r1.430 ChangeLog
*** etc/ChangeLog 14 Jul 2006 15:04:08 -0000 1.430
--- etc/ChangeLog 19 Jul 2006 11:42:59 -0000
***************
*** 1,3 ****
--- 1,7 ----
+ 2006-07-19 Michaël Cadilhac <michael.cadilhac@lrde.org>
+
+ * NEWS: Document `user-mail-address' initialization.
+
2006-07-14 Kim F. Storm <storm@cua.dk>
* PROBLEMS: Emacs now requires ws2_32.dll on Windows.
Index: etc/NEWS
===================================================================
RCS file: /sources/emacs/emacs/etc/NEWS,v
retrieving revision 1.1376
diff -c -r1.1376 NEWS
*** etc/NEWS 14 Jul 2006 23:29:43 -0000 1.1376
--- etc/NEWS 19 Jul 2006 11:42:59 -0000
***************
*** 238,243 ****
--- 238,248 ----
modified buffers, it saves the abbrevs too if they have changed. It
can do this either silently or asking for confirmation first,
according to the value of `save-abbrevs'.
+
+ +++
+ ** Initialize `user-mail-address' with env variable `EMAIL' first.
+ The variable `user-mail-address' is initialized with the environment
+ variable `EMAIL' before defaulting it to `user-login-name'@host.
\f
* Incompatible Editing Changes in Emacs 22.1
[-- Attachment #1.1.4: Type: text/plain, Size: 332 bytes --]
TIA !
--
| Michaël `Micha' Cadilhac | Would someone please DTRT with this, |
| Epita/LRDE Promo 2007 | then ACK? |
| http://www.lrde.org/~cadilh_m | -- Richard Stallman |
`-- - JID: micha@amessage.be --' - --'
[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 bytes --]
[-- Attachment #2: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
prev parent reply other threads:[~2006-07-20 16:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-19 11:54 [Proposal] Retrieve MAILADDRESS as user-mail-address default value Michaël Cadilhac
2006-07-20 15:33 ` Richard Stallman
2006-07-20 15:53 ` Chong Yidong
2006-07-20 16:58 ` Michaël Cadilhac [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r70gjjqn.fsf@lrde.org \
--to=michael.cadilhac@lrde.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.