unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Disabling asynchronous native compilation by user settings
@ 2022-04-18  6:07 Yasuhiro Kimura
  2022-04-18  7:11 ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: Yasuhiro Kimura @ 2022-04-18  6:07 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

Assuming that Emacs is built with native compilation enabled, is it
possible to disable asynchronous native compilation at run time by
user settings (for example, passing command line options, setting
enviroment variables, adding something in ~/.emacs, etc.)?

Thanks.

---
Yasuhiro Kimura



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Disabling asynchronous native compilation by user settings
  2022-04-18  6:07 Disabling asynchronous native compilation by user settings Yasuhiro Kimura
@ 2022-04-18  7:11 ` Eli Zaretskii
  2022-04-18  7:17   ` Emanuel Berg via Users list for the GNU Emacs text editor
  2022-04-18  7:32   ` Yasuhiro Kimura
  0 siblings, 2 replies; 8+ messages in thread
From: Eli Zaretskii @ 2022-04-18  7:11 UTC (permalink / raw)
  To: help-gnu-emacs

> Date: Mon, 18 Apr 2022 15:07:35 +0900 (JST)
> From: Yasuhiro Kimura <yasu@utahime.org>
> 
> Assuming that Emacs is built with native compilation enabled, is it
> possible to disable asynchronous native compilation at run time by
> user settings (for example, passing command line options, setting
> enviroment variables, adding something in ~/.emacs, etc.)?

Yes, set both native-comp-deferred-compilation and
comp-enable-subr-trampolines to the nil value.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Disabling asynchronous native compilation by user settings
  2022-04-18  7:11 ` Eli Zaretskii
@ 2022-04-18  7:17   ` Emanuel Berg via Users list for the GNU Emacs text editor
  2022-04-18  7:32   ` Yasuhiro Kimura
  1 sibling, 0 replies; 8+ messages in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2022-04-18  7:17 UTC (permalink / raw)
  To: help-gnu-emacs

Eli Zaretskii wrote:

>> Assuming that Emacs is built with native compilation
>> enabled, is it possible to disable asynchronous native
>> compilation at run time by user settings (for example,
>> passing command line options, setting enviroment variables,
>> adding something in ~/.emacs, etc.)?
>
> Yes, set both native-comp-deferred-compilation and
> comp-enable-subr-trampolines to the nil value.

Also try the more intuitive

(setq native-comp-actually-do-it nil)

-- 
underground experts united
https://dataswamp.org/~incal




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Disabling asynchronous native compilation by user settings
  2022-04-18  7:11 ` Eli Zaretskii
  2022-04-18  7:17   ` Emanuel Berg via Users list for the GNU Emacs text editor
@ 2022-04-18  7:32   ` Yasuhiro Kimura
  2022-04-18 13:50     ` Emanuel Berg via Users list for the GNU Emacs text editor
  1 sibling, 1 reply; 8+ messages in thread
From: Yasuhiro Kimura @ 2022-04-18  7:32 UTC (permalink / raw)
  To: help-gnu-emacs

From: Eli Zaretskii <eliz@gnu.org>
Subject: Re: Disabling asynchronous native compilation by user settings
Date: Mon, 18 Apr 2022 10:11:41 +0300

>> Assuming that Emacs is built with native compilation enabled, is it
>> possible to disable asynchronous native compilation at run time by
>> user settings (for example, passing command line options, setting
>> enviroment variables, adding something in ~/.emacs, etc.)?
> 
> Yes, set both native-comp-deferred-compilation and
> comp-enable-subr-trampolines to the nil value.

Thanks. I confirmed asynchronous native compilation is disabled by
setting them to nil in ~/.emacs.

---
Yasuhiro Kimura



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Disabling asynchronous native compilation by user settings
  2022-04-18  7:32   ` Yasuhiro Kimura
@ 2022-04-18 13:50     ` Emanuel Berg via Users list for the GNU Emacs text editor
  2022-04-19  5:30       ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2022-04-18 13:50 UTC (permalink / raw)
  To: help-gnu-emacs

Yasuhiro Kimura wrote:

>> Yes, set both native-comp-deferred-compilation and
>> comp-enable-subr-trampolines to the nil value.
>
> Thanks. I confirmed asynchronous native compilation is
> disabled by setting them to nil in ~/.emacs.

Why one has to set two variables to do one thing?

> ---
> Yasuhiro Kimura

-1

-- 
underground experts united
https://dataswamp.org/~incal




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Disabling asynchronous native compilation by user settings
  2022-04-18 13:50     ` Emanuel Berg via Users list for the GNU Emacs text editor
@ 2022-04-19  5:30       ` Eli Zaretskii
  2022-04-19 11:12         ` Emanuel Berg via Users list for the GNU Emacs text editor
  0 siblings, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2022-04-19  5:30 UTC (permalink / raw)
  To: help-gnu-emacs

> Date: Mon, 18 Apr 2022 15:50:59 +0200
> From:  Emanuel Berg via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
> 
> Yasuhiro Kimura wrote:
> 
> >> Yes, set both native-comp-deferred-compilation and
> >> comp-enable-subr-trampolines to the nil value.
> >
> > Thanks. I confirmed asynchronous native compilation is
> > disabled by setting them to nil in ~/.emacs.
> 
> Why one has to set two variables to do one thing?

Because there are two things to do, not one.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Disabling asynchronous native compilation by user settings
  2022-04-19  5:30       ` Eli Zaretskii
@ 2022-04-19 11:12         ` Emanuel Berg via Users list for the GNU Emacs text editor
  2022-04-20 17:03           ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2022-04-19 11:12 UTC (permalink / raw)
  To: help-gnu-emacs

Eli Zaretskii wrote:

>>>> Yes, set both native-comp-deferred-compilation and
>>>> comp-enable-subr-trampolines to the nil value.
>>>
>>> Thanks. I confirmed asynchronous native compilation is
>>> disabled by setting them to nil in ~/.emacs.
>> 
>> Why one has to set two variables to do one thing?
>
> Because there are two things to do, not one.

From the human perspective it is one and the interface should
be based on that, under the hood it can then set every single
Emacs variable if that's what needs to happen ...

-- 
underground experts united
https://dataswamp.org/~incal




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Disabling asynchronous native compilation by user settings
  2022-04-19 11:12         ` Emanuel Berg via Users list for the GNU Emacs text editor
@ 2022-04-20 17:03           ` Eli Zaretskii
  0 siblings, 0 replies; 8+ messages in thread
From: Eli Zaretskii @ 2022-04-20 17:03 UTC (permalink / raw)
  To: help-gnu-emacs

> Date: Tue, 19 Apr 2022 13:12:05 +0200
> From:  Emanuel Berg via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
> 
> Eli Zaretskii wrote:
> 
> >>>> Yes, set both native-comp-deferred-compilation and
> >>>> comp-enable-subr-trampolines to the nil value.
> >>>
> >>> Thanks. I confirmed asynchronous native compilation is
> >>> disabled by setting them to nil in ~/.emacs.
> >> 
> >> Why one has to set two variables to do one thing?
> >
> > Because there are two things to do, not one.
> 
> >From the human perspective it is one

It depends on the human, I guess.  It's two from my perspective.

> and the interface should be based on that, under the hood it can
> then set every single Emacs variable if that's what needs to happen
> ...

We don't intend to provide an easy interface to disable native
compilation in an Emacs that is capable of native compilation.
It's something that makes no sense to do.  I only described that
because someone asked a specific question, and I wanted to help him
without questioning his rationale.



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-04-20 17:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-18  6:07 Disabling asynchronous native compilation by user settings Yasuhiro Kimura
2022-04-18  7:11 ` Eli Zaretskii
2022-04-18  7:17   ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-04-18  7:32   ` Yasuhiro Kimura
2022-04-18 13:50     ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-04-19  5:30       ` Eli Zaretskii
2022-04-19 11:12         ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-04-20 17:03           ` Eli Zaretskii

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).