unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 108@debbugs.gnu.org, Reiner.Steib@gmx.de
Subject: bug#108: 23.0.60; Feature request: Menu item "load init files" after -q/-Q
Date: Mon, 30 Sep 2019 10:23:47 +0300	[thread overview]
Message-ID: <834l0udz7g.fsf@gnu.org> (raw)
In-Reply-To: <87blv2l46x.fsf@gnus.org> (message from Lars Ingebrigtsen on Mon,  30 Sep 2019 07:54:14 +0200)

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Date: Mon, 30 Sep 2019 07:54:14 +0200
> Cc: Reiner Steib <Reiner.Steib@gmx.de>
> 
> Reiner Steib <reinersteib+gmane@imap.cc> 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.  I'm not sure about
> > where to add it. Maybe a menu entry in the Options menu and a tool bar
> > button?
> 
> Hm...  I'm not quite sure what the use case here is.  I mean, if you say
> "-q" or "-Q", it's because you want an Emacs without any
> customisations.  So why would you then load ~/.emacs?
> 
> Hm...  OK...  I could see that it could help with debugging the init
> file, for instance.  You'd (setq debug-on-error t) or whatever and then
> hit the load button.  But...  if you're doing that, you're probably
> better off just `M-x eval-buffer' in ~/.emacs.
> 
> So I'm not sure.  Anybody got an opinion?

I can only contribute a caveat: loading (via 'load') of init files
from within a running Emacs session will not 100% reproduce what
happens when those init files are loaded during startup, so if the
purpose is to allow debugging those files, loading them from Emacs
might not recreate the problems one wants to debug.

OTOH, I thought we already have some means of debugging the init
files, no?





  reply	other threads:[~2019-09-30  7:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <v9bq4p7ild.fsf@marauder.physik.uni-ulm.de>
2019-09-30  5:54 ` bug#108: 23.0.60; Feature request: Menu item "load init files" after -q/-Q Lars Ingebrigtsen
2019-09-30  7:23   ` Eli Zaretskii [this message]
2019-09-30 13:20     ` Basil L. Contovounesios
2019-09-30 13:50       ` Eli Zaretskii
2019-09-30 14:14         ` Lars Ingebrigtsen

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=834l0udz7g.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=108@debbugs.gnu.org \
    --cc=Reiner.Steib@gmx.de \
    --cc=larsi@gnus.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).