GNU bug report logs -
#12791
24.2; An option to load user init file with -batch
Previous Next
Reported by: Leo <sdl.web <at> gmail.com>
Date: Sat, 3 Nov 2012 07:58:01 UTC
Severity: wishlist
Tags: wontfix
Found in version 24.2
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 12791 in the body.
You can then email your comments to 12791 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org:
bug#12791; Package
emacs.
(Sat, 03 Nov 2012 07:58:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Leo <sdl.web <at> gmail.com>:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org.
(Sat, 03 Nov 2012 07:58:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
-batch implies -q and I cannot find an option to negate it. For example,
I want to add some tests to my emacs init files and be able to run
`ert-run-tests-batch' in batch mode.
Any objection if I add an option such as '--load-init-file'?
Leo
Information forwarded
to
bug-gnu-emacs <at> gnu.org:
bug#12791; Package
emacs.
(Sat, 03 Nov 2012 10:07:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 12791 <at> debbugs.gnu.org (full text, mbox):
> From: Leo <sdl.web <at> gmail.com>
> Date: Sat, 03 Nov 2012 15:54:44 +0800
>
> -batch implies -q and I cannot find an option to negate it. For example,
> I want to add some tests to my emacs init files and be able to run
> `ert-run-tests-batch' in batch mode.
>
> Any objection if I add an option such as '--load-init-file'?
What's wrong with "-l ~/.emacs"? The difference in the loading order
is a non-issue in batch mode anyway.
Information forwarded
to
bug-gnu-emacs <at> gnu.org:
bug#12791; Package
emacs.
(Sat, 03 Nov 2012 14:45:02 GMT)
Full text and
rfc822 format available.
Message #11 received at submit <at> debbugs.gnu.org (full text, mbox):
On 2012-11-03 18:02 +0800, Eli Zaretskii wrote:
> What's wrong with "-l ~/.emacs"? The difference in the loading order
> is a non-issue in batch mode anyway.
not portable.
Leo
Information forwarded
to
bug-gnu-emacs <at> gnu.org:
bug#12791; Package
emacs.
(Sat, 03 Nov 2012 15:37:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 12791 <at> debbugs.gnu.org (full text, mbox):
> From: Leo <sdl.web <at> gmail.com>
> Date: Sat, 03 Nov 2012 22:41:41 +0800
>
> On 2012-11-03 18:02 +0800, Eli Zaretskii wrote:
> > What's wrong with "-l ~/.emacs"? The difference in the loading order
> > is a non-issue in batch mode anyway.
>
> not portable.
Sorry, I don't understand. Please elaborate: when does it not work
and why?
Information forwarded
to
bug-gnu-emacs <at> gnu.org:
bug#12791; Package
emacs.
(Sat, 03 Nov 2012 19:05:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 12791 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii wrote:
>> > What's wrong with "-l ~/.emacs"? The difference in the loading
>> > order is a non-issue in batch mode anyway.
>>
>> not portable.
>
> Sorry, I don't understand. Please elaborate: when does it not work
> and why?
One possibility: maybe the init file is actually ~/.emacs.el, or
~/.emacs.d/init.el, etc. So the caller would have to do (a small amount
of) actual work to locate it, rather than just letting Emacs handle it
transparently as normal.
(It sure would waste less time if reports were less vague, particularly
when asking for new features to be implemented.)
Information forwarded
to
bug-gnu-emacs <at> gnu.org:
bug#12791; Package
emacs.
(Sun, 04 Nov 2012 17:22:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 12791 <at> debbugs.gnu.org (full text, mbox):
On Sat, Nov 3, 2012 at 8:54 AM, Leo <sdl.web <at> gmail.com> wrote:
> -batch implies -q and I cannot find an option to negate it. For example,
> I want to add some tests to my emacs init files and be able to run
> `ert-run-tests-batch' in batch mode.
Another small difference between runing an interactive emacs and doing
"emacs -batch" and loading your .emacs is that under "emacs -batch" it
is possible that the directory pointed out by user-emacs-directory
does not exist, and locate-user-emacs-file quite deliberately takes
steps not to create it (because otherwise you'll end with .emacs.d/
directories at unexpected places, while bootstrapping,etc.)
Juanma
Information forwarded
to
bug-gnu-emacs <at> gnu.org:
bug#12791; Package
emacs.
(Sat, 04 Dec 2021 04:50:01 GMT)
Full text and
rfc822 format available.
Message #23 received at 12791 <at> debbugs.gnu.org (full text, mbox):
Leo <sdl.web <at> gmail.com> writes:
> On 2012-11-03 18:02 +0800, Eli Zaretskii wrote:
>> What's wrong with "-l ~/.emacs"? The difference in the loading order
>> is a non-issue in batch mode anyway.
>
> not portable.
(I'm going through old bug reports that unfortunately weren't resolved
at the time.)
I think people know where their ~/.emacs files are, so "-Q -l ~/.emacs"
covers virtually all use cases. I don't think adding a --load-init-file
option would be sufficiently useful as a feature (and it's ambiguous
what init file we're referring to), so I'm closing this bug report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Added tag(s) wontfix.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org.
(Sat, 04 Dec 2021 04:51:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
12791 <at> debbugs.gnu.org and Leo <sdl.web <at> gmail.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org.
(Sat, 04 Dec 2021 04:51:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org.
(Sat, 01 Jan 2022 12:24:09 GMT)
Full text and
rfc822 format available.
This bug report was last modified 4 years and 1 day ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.