unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Stephen J. Turnbull" <stephen@xemacs.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-pretest-bug@gnu.org, Reiner Steib <Reiner.Steib@gmx.de>
Subject: Re: 23.0.60; Feature request: Menu item "load init files" after -q/-Q
Date: Sun, 06 Apr 2008 03:46:17 +0900	[thread overview]
Message-ID: <87tzig16o6.fsf@uwakimon.sk.tsukuba.ac.jp> (raw)
In-Reply-To: <u4pahtssk.fsf@gnu.org>

Eli Zaretskii writes:

 > > when XEmacs is started with `--vanilla' or `-q', it displays an item
 > > "Load init files" in the menu bar.  The name of the command in XEmacs
 > > is `load-user-init-file'.
 > > 
 > > Maybe Emacs should do have something similar.

The common use case for this feature is a user reports a bug, we ask
them to replicate with "xemacs -vanilla", and now they have error
messages and stuff in buffers.  So they hit the "Send Mail" menu item
and get the horrible default MUA when they were expecting Gnus or VM.

An "in-your-face" button makes it easy to get these users to a
semblance of sanity, where they can comfortably compose mail, copy
buffers, make attachments, etc, in the comfort of their home
customizations.

 > If a non-trivial .emacs is loaded after Emacs starts, the effect might
 > be different from the same .emacs loaded at startup, due to the stage
 > of the startup sequence where .emacs is normally loaded. This could
 > surprise users,

You're right about the logic, but I've never heard of such a problem in
10 years of reading XEmacs lists daily.

 > unless we write a special load function that takes care of these
 > subtleties.

In XEmacs, basically the only things that happen after loading the
init files are (1) defvar'ing the user's mail address to a computed
default, (2) putting text into the scratch buffer, and (3) running
after-init-hook (these are not necessarily in order, but they're
almost certainly independent).  (Note that "load-user-init-file" is a
misnomer in that default.el gets loaded too, unless the user
suppresses it.)

If the init files tromp on the mail address when loaded out of order,
that's almost surely a good thing.  Text in the scratch buffer is not
of interest here.  So to protect the user, all you really need to do
is warn them if after-init-hook is non-nil.

YMMV; Mike Sperber has done a full-body-replacement on our startup.el,
so I suspect the resemblence to any Emacs version is now nil.





  parent reply	other threads:[~2008-04-05 18:46 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-04 14:00 23.0.60; Feature request: Menu item "load init files" after -q/-Q Reiner Steib
2008-04-04 15:33 ` Drew Adams
2008-04-04 15:47 ` Dan Nicolaescu
2008-04-04 17:48 ` Eli Zaretskii
2008-04-04 18:03   ` Lennart Borgman (gmail)
2008-04-04 18:25     ` Eli Zaretskii
2008-04-04 18:34       ` Lennart Borgman (gmail)
2008-04-04 20:25         ` Stefan Monnier
2008-04-04 22:06         ` Davis Herring
2008-04-05 18:46   ` Stephen J. Turnbull [this message]
2008-04-05 18:58     ` Eli Zaretskii
2008-04-05 23:49       ` Stephen J. Turnbull
2008-04-05 19:07     ` Stefan Monnier
2008-04-05 23:45       ` Stephen J. Turnbull
2008-04-06  2:05         ` Stefan Monnier
2008-04-06  6:06           ` Stephen J. Turnbull
2008-04-07  0:46             ` Stefan Monnier
2008-04-07  7:56               ` Stephen J. Turnbull
2008-04-07 15:57                 ` Stefan Monnier
2008-04-07 19:20                   ` Stephen J. Turnbull
2008-04-07 19:51                     ` Stefan Monnier
2008-04-07 20:17                       ` Lennart Borgman (gmail)
2008-04-07 21:05                         ` Default of send-mail-function (was: 23.0.60; Feature request: Menu item "load init files" after -q/-Q) Reiner Steib
2008-04-07 21:26                           ` Default of send-mail-function Lennart Borgman (gmail)
2008-04-07 22:21                             ` Reiner Steib
2008-04-07 22:50                               ` Jason Rumney
2008-04-08  0:50                             ` David De La Harpe Golden
2008-04-08  8:24                               ` Jason Rumney
2008-04-08 11:40                                 ` Manoj Srivastava
2008-04-08 11:50                                   ` Jason Rumney
2008-04-08 14:36                                     ` Manoj Srivastava
2008-04-08 14:55                                       ` Lennart Borgman (gmail)
2008-04-08 15:15                                         ` Jason Rumney
2008-04-08 16:06                                           ` Manoj Srivastava
2008-04-08 14:58                                     ` Lennart Borgman (gmail)
2008-04-07 21:44                           ` Default of send-mail-function (was: 23.0.60; Feature request: Menu item "load init files" after -q/-Q) Eli Zaretskii
2008-04-07 22:20                             ` Default of send-mail-function Reiner Steib
2008-04-08 18:24                               ` Eli Zaretskii
2008-04-07 22:01                           ` Manoj Srivastava
2008-04-07 21:13                         ` 23.0.60; Feature request: Menu item "load init files" after -q/-Q Stefan Monnier
2008-04-08  4:04                         ` Stephen J. Turnbull
2008-04-08  7:58                           ` Jason Rumney
2008-04-08  3:31                       ` Stephen J. Turnbull
2008-04-06  0:28       ` Lennart Borgman (gmail)
2008-04-07  5:03 ` Chong Yidong

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tzig16o6.fsf@uwakimon.sk.tsukuba.ac.jp \
    --to=stephen@xemacs.org \
    --cc=Reiner.Steib@gmx.de \
    --cc=eliz@gnu.org \
    --cc=emacs-pretest-bug@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).