unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Compiling Emacs from source for hacking on it
@ 2022-05-31 12:07 Akib Azmain Turja
  2022-05-31 12:45 ` Po Lu
                   ` (2 more replies)
  0 siblings, 3 replies; 37+ messages in thread
From: Akib Azmain Turja @ 2022-05-31 12:07 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 1068 bytes --]


I have recently (shallow) cloned Emacs source code.  I have compiled it
by doing the following:

--8<---------------cut here---------------start------------->8---
$ mkdir build
$ cd build
$ ../configure --without-x --without-gnutls --without-modules \
    --without-sqlite3 --without-pop --without-mailutils --without-sound
$ make
--8<---------------cut here---------------end--------------->8---

If I understand correctly, running ./src/emacs should start the newly
compiled Emacs.  But it says that with-memoizaton function definition is
void, even with an empty init file (actually I commented out the whole
file).  ./src/temacs works, but says function-documention is undefined
at runtime.

Am I doing something wrong?  I'm trying to compile a minimal Emacs so
that I can hack on the terminal display code of it.  Is there any
argument to pass to configure to make even more minimal?

-- 
Akib Azmain Turja

This message is signed by me with my GnuPG key.  It's fingerprint is:

    7001 8CE5 819F 17A3 BBA6  66AF E74F 0EFA 922A E7F5

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

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

* Re: Compiling Emacs from source for hacking on it
  2022-05-31 12:07 Compiling Emacs from source for hacking on it Akib Azmain Turja
@ 2022-05-31 12:45 ` Po Lu
  2022-05-31 13:35   ` tomas
  2022-05-31 16:27   ` Akib Azmain Turja
  2022-05-31 13:06 ` Eli Zaretskii
  2022-05-31 14:17 ` Andreas Schwab
  2 siblings, 2 replies; 37+ messages in thread
From: Po Lu @ 2022-05-31 12:45 UTC (permalink / raw)
  To: Akib Azmain Turja; +Cc: emacs-devel

Akib Azmain Turja <akib@disroot.org> writes:

> I have recently (shallow) cloned Emacs source code.  I have compiled it
> by doing the following:
>
> $ mkdir build
> $ cd build
> $ ../configure --without-x --without-gnutls --without-modules \
>     --without-sqlite3 --without-pop --without-mailutils --without-sound
> $ make
>
> If I understand correctly, running ./src/emacs should start the newly
> compiled Emacs.  But it says that with-memoizaton function definition is
> void, even with an empty init file (actually I commented out the whole
> file).  ./src/temacs works, but says function-documention is undefined
> at runtime.
>
> Am I doing something wrong?

I think out of tree builds never really worked in Emacs.

If you're going to hack on Emacs, you should probably configure with
checking as well.



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

* Re: Compiling Emacs from source for hacking on it
  2022-05-31 12:07 Compiling Emacs from source for hacking on it Akib Azmain Turja
  2022-05-31 12:45 ` Po Lu
@ 2022-05-31 13:06 ` Eli Zaretskii
  2022-05-31 13:43   ` Eli Zaretskii
  2022-05-31 16:22   ` Akib Azmain Turja
  2022-05-31 14:17 ` Andreas Schwab
  2 siblings, 2 replies; 37+ messages in thread
From: Eli Zaretskii @ 2022-05-31 13:06 UTC (permalink / raw)
  To: Akib Azmain Turja; +Cc: emacs-devel

> From: Akib Azmain Turja <akib@disroot.org>
> Date: Tue, 31 May 2022 18:07:38 +0600
> 
> I have recently (shallow) cloned Emacs source code.  I have compiled it
> by doing the following:
> 
> --8<---------------cut here---------------start------------->8---
> $ mkdir build
> $ cd build
> $ ../configure --without-x --without-gnutls --without-modules \
>     --without-sqlite3 --without-pop --without-mailutils --without-sound
> $ make
> --8<---------------cut here---------------end--------------->8---
> 
> If I understand correctly, running ./src/emacs should start the newly
> compiled Emacs.  But it says that with-memoizaton function definition is
> void, even with an empty init file (actually I commented out the whole
> file).  ./src/temacs works, but says function-documention is undefined
> at runtime.

With the current master branch, I cannot reproduce this.  But:

  . I cloned the repository normally (i.e. not a "shallow" clone)
  . I built Emacs in the source tree, not in a separate build/
    sub-directory;
  . I invoked Emacs as ./src/emacs -Q

If using "-Q" doesn't help, perhaps this is some problem with building
in a separate directory, in which case you could rebuild in-place and
try again.



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

* Re: Compiling Emacs from source for hacking on it
  2022-05-31 12:45 ` Po Lu
@ 2022-05-31 13:35   ` tomas
  2022-05-31 13:42     ` Ken Brown
  2022-05-31 16:27   ` Akib Azmain Turja
  1 sibling, 1 reply; 37+ messages in thread
From: tomas @ 2022-05-31 13:35 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 1140 bytes --]

On Tue, May 31, 2022 at 08:45:06PM +0800, Po Lu wrote:
> Akib Azmain Turja <akib@disroot.org> writes:
> 
> > I have recently (shallow) cloned Emacs source code.  I have compiled it
> > by doing the following:
> >
> > $ mkdir build
> > $ cd build
> > $ ../configure --without-x --without-gnutls --without-modules \
> >     --without-sqlite3 --without-pop --without-mailutils --without-sound
> > $ make
> >
> > If I understand correctly, running ./src/emacs should start the newly
> > compiled Emacs.  But it says that with-memoizaton function definition is
> > void, even with an empty init file (actually I commented out the whole
> > file).  ./src/temacs works, but says function-documention is undefined
> > at runtime.
> >
> > Am I doing something wrong?
> 
> I think out of tree builds never really worked in Emacs.

Hm. FWIW I build regularly out-of-tree. I make sure to radically
delete the build dir, and do a "make distclean" (possibly not
needed).

The only issues I had were, from time to time, older .elc files
(thus that "double cleaning" above: that's how voodoo rituals
grow ;-)

Cheers
-- 
t

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

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

* Re: Compiling Emacs from source for hacking on it
  2022-05-31 13:35   ` tomas
@ 2022-05-31 13:42     ` Ken Brown
  2022-05-31 14:01       ` tomas
  2022-05-31 14:02       ` Óscar Fuentes
  0 siblings, 2 replies; 37+ messages in thread
From: Ken Brown @ 2022-05-31 13:42 UTC (permalink / raw)
  To: tomas, emacs-devel; +Cc: Po Lu, Akib Azmain Turja

On 5/31/2022 9:35 AM, tomas@tuxteam.de wrote:
>> I think out of tree builds never really worked in Emacs.
> 
> Hm. FWIW I build regularly out-of-tree. I make sure to radically
> delete the build dir, and do a "make distclean" (possibly not
> needed).
> 
> The only issues I had were, from time to time, older .elc files
> (thus that "double cleaning" above: that's how voodoo rituals

I also build out-of-tree and have done so for years.  I don't do any special 
cleaning between builds, and it works fine.

Ken



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

* Re: Compiling Emacs from source for hacking on it
  2022-05-31 13:06 ` Eli Zaretskii
@ 2022-05-31 13:43   ` Eli Zaretskii
  2022-05-31 16:22   ` Akib Azmain Turja
  1 sibling, 0 replies; 37+ messages in thread
From: Eli Zaretskii @ 2022-05-31 13:43 UTC (permalink / raw)
  To: akib; +Cc: emacs-devel

> Date: Tue, 31 May 2022 16:06:00 +0300
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: emacs-devel@gnu.org
> 
> With the current master branch, I cannot reproduce this.  But:
> 
>   . I cloned the repository normally (i.e. not a "shallow" clone)
>   . I built Emacs in the source tree, not in a separate build/
>     sub-directory;
>   . I invoked Emacs as ./src/emacs -Q

And now I've built in a build/ subdirectory, like you did, and I still
cannot reproduce the problem.  So I hope using -Q will solve it for
you.



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

* Re: Compiling Emacs from source for hacking on it
  2022-05-31 13:42     ` Ken Brown
@ 2022-05-31 14:01       ` tomas
  2022-05-31 14:02       ` Óscar Fuentes
  1 sibling, 0 replies; 37+ messages in thread
From: tomas @ 2022-05-31 14:01 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 427 bytes --]

On Tue, May 31, 2022 at 09:42:05AM -0400, Ken Brown wrote:
> On 5/31/2022 9:35 AM, tomas@tuxteam.de wrote:
> > > I think out of tree builds never really worked in Emacs.
> > 
> > Hm. FWIW I build regularly out-of-tree [...]

> I also build out-of-tree and have done so for years.  I don't do any special
> cleaning between builds, and it works fine.

Time to review my crude rituals, then :-)

thanks!
-- 
tomás

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

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

* Re: Compiling Emacs from source for hacking on it
  2022-05-31 13:42     ` Ken Brown
  2022-05-31 14:01       ` tomas
@ 2022-05-31 14:02       ` Óscar Fuentes
  2022-05-31 14:10         ` tomas
  1 sibling, 1 reply; 37+ messages in thread
From: Óscar Fuentes @ 2022-05-31 14:02 UTC (permalink / raw)
  To: emacs-devel

Ken Brown <kbrown@cornell.edu> writes:

> On 5/31/2022 9:35 AM, tomas@tuxteam.de wrote:
>>> I think out of tree builds never really worked in Emacs.
>> Hm. FWIW I build regularly out-of-tree. I make sure to radically
>> delete the build dir, and do a "make distclean" (possibly not
>> needed).
>> The only issues I had were, from time to time, older .elc files
>> (thus that "double cleaning" above: that's how voodoo rituals
>
> I also build out-of-tree and have done so for years.

+1

> I don't do any special cleaning between builds, and it works fine.

Apart from the occassional `make bootstrap' or `git clean -fdx'.

In fact, INSTALL says that out-of-tree builds are ok:

  2b. Alternatively, create a separate directory, outside the source
      directory, where you want to build Emacs, and invoke 'configure'
      from there:

		 SOURCE-DIR/configure

      where SOURCE-DIR is the top-level Emacs source directory.




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

* Re: Compiling Emacs from source for hacking on it
  2022-05-31 14:02       ` Óscar Fuentes
@ 2022-05-31 14:10         ` tomas
  2022-05-31 14:18           ` Óscar Fuentes
  0 siblings, 1 reply; 37+ messages in thread
From: tomas @ 2022-05-31 14:10 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 817 bytes --]

On Tue, May 31, 2022 at 04:02:16PM +0200, Óscar Fuentes wrote:
> Ken Brown <kbrown@cornell.edu> writes:
> 
> > On 5/31/2022 9:35 AM, tomas@tuxteam.de wrote:
> >>> I think out of tree builds never really worked in Emacs.
> >> Hm. FWIW I build regularly out-of-tree. I make sure to radically
> >> delete the build dir, and do a "make distclean" (possibly not
> >> needed).
> >> The only issues I had were, from time to time, older .elc files
> >> (thus that "double cleaning" above: that's how voodoo rituals
> >
> > I also build out-of-tree and have done so for years.
> 
> +1
> 
> > I don't do any special cleaning between builds, and it works fine.
> 
> Apart from the occassional `make bootstrap' or `git clean -fdx'.

Oh, so part of the crude rituals isn't completely crazy?

Cheers
-- 
t

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

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

* Re: Compiling Emacs from source for hacking on it
  2022-05-31 12:07 Compiling Emacs from source for hacking on it Akib Azmain Turja
  2022-05-31 12:45 ` Po Lu
  2022-05-31 13:06 ` Eli Zaretskii
@ 2022-05-31 14:17 ` Andreas Schwab
  2022-05-31 14:23   ` Visuwesh
                     ` (2 more replies)
  2 siblings, 3 replies; 37+ messages in thread
From: Andreas Schwab @ 2022-05-31 14:17 UTC (permalink / raw)
  To: Akib Azmain Turja; +Cc: emacs-devel

On Mai 31 2022, Akib Azmain Turja wrote:

> But it says that with-memoizaton function definition is
> void,

That function indeed doesn't exist in Emacs, so it must be coming from
some customisation of yours.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."



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

* Re: Compiling Emacs from source for hacking on it
  2022-05-31 14:10         ` tomas
@ 2022-05-31 14:18           ` Óscar Fuentes
  0 siblings, 0 replies; 37+ messages in thread
From: Óscar Fuentes @ 2022-05-31 14:18 UTC (permalink / raw)
  To: emacs-devel

<tomas@tuxteam.de> writes:

>> Apart from the occassional `make bootstrap' or `git clean -fdx'.
>
> Oh, so part of the crude rituals isn't completely crazy?

AFAIK the crude rituals are also required on the in-tree builds.




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

* Re: Compiling Emacs from source for hacking on it
  2022-05-31 14:17 ` Andreas Schwab
@ 2022-05-31 14:23   ` Visuwesh
  2022-05-31 16:24     ` Akib Azmain Turja
  2022-05-31 14:52   ` Michael Heerdegen
  2022-05-31 16:25   ` Akib Azmain Turja
  2 siblings, 1 reply; 37+ messages in thread
From: Visuwesh @ 2022-05-31 14:23 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: Akib Azmain Turja, emacs-devel

[செவ்வாய் மே 31, 2022] Andreas Schwab wrote:

> On Mai 31 2022, Akib Azmain Turja wrote:
>
>> But it says that with-memoizaton function definition is
>> void,
>
> That function indeed doesn't exist in Emacs, so it must be coming from
> some customisation of yours.

    with-memoization is a Lisp macro in ‘subr-x.el’.

    (with-memoization PLACE &rest CODE)

    Return the value of CODE and stash it in PLACE.
    If PLACE’s value is non-nil, then don’t bother evaluating CODE
    and return the value found in PLACE instead.

      Probably introduced at or before Emacs version 29.1.

It's a macro tho.



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

* Re: Compiling Emacs from source for hacking on it
  2022-05-31 14:17 ` Andreas Schwab
  2022-05-31 14:23   ` Visuwesh
@ 2022-05-31 14:52   ` Michael Heerdegen
  2022-05-31 16:24     ` Akib Azmain Turja
  2022-05-31 16:25   ` Akib Azmain Turja
  2 siblings, 1 reply; 37+ messages in thread
From: Michael Heerdegen @ 2022-05-31 14:52 UTC (permalink / raw)
  To: emacs-devel

Andreas Schwab <schwab@suse.de> writes:

> On Mai 31 2022, Akib Azmain Turja wrote:
>
> > But it says that with-memoizaton function definition is
> > void,
>
> That function indeed doesn't exist in Emacs, so it must be coming from
> some customisation of yours.

Or `with-memoization' was meant.

Michael.




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

* Re: Compiling Emacs from source for hacking on it
  2022-05-31 13:06 ` Eli Zaretskii
  2022-05-31 13:43   ` Eli Zaretskii
@ 2022-05-31 16:22   ` Akib Azmain Turja
  2022-05-31 16:39     ` Eli Zaretskii
  1 sibling, 1 reply; 37+ messages in thread
From: Akib Azmain Turja @ 2022-05-31 16:22 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 1701 bytes --]

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Akib Azmain Turja <akib@disroot.org>
>> Date: Tue, 31 May 2022 18:07:38 +0600
>> 
>> I have recently (shallow) cloned Emacs source code.  I have compiled it
>> by doing the following:
>> 
>> --8<---------------cut here---------------start------------->8---
>> $ mkdir build
>> $ cd build
>> $ ../configure --without-x --without-gnutls --without-modules \
>>     --without-sqlite3 --without-pop --without-mailutils --without-sound
>> $ make
>> --8<---------------cut here---------------end--------------->8---
>> 
>> If I understand correctly, running ./src/emacs should start the newly
>> compiled Emacs.  But it says that with-memoizaton function definition is
>> void, even with an empty init file (actually I commented out the whole
>> file).  ./src/temacs works, but says function-documention is undefined
>> at runtime.
>
> With the current master branch, I cannot reproduce this.  But:
>
>   . I cloned the repository normally (i.e. not a "shallow" clone)
>   . I built Emacs in the source tree, not in a separate build/
>     sub-directory;
>   . I invoked Emacs as ./src/emacs -Q
>
> If using "-Q" doesn't help, perhaps this is some problem with building
> in a separate directory, in which case you could rebuild in-place and
> try again.

Yes, adding -Q works.  But why it can't read my init file even when the
whole file is commented?  Or is it expected?

And I don't think a shallow clone is causing any problem, as the files
should be identical.

-- 
Akib Azmain Turja

This message is signed by me with my GnuPG key.  It's fingerprint is:

    7001 8CE5 819F 17A3 BBA6  66AF E74F 0EFA 922A E7F5

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

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

* Re: Compiling Emacs from source for hacking on it
  2022-05-31 14:52   ` Michael Heerdegen
@ 2022-05-31 16:24     ` Akib Azmain Turja
  0 siblings, 0 replies; 37+ messages in thread
From: Akib Azmain Turja @ 2022-05-31 16:24 UTC (permalink / raw)
  To: Michael Heerdegen, emacs-devel

[-- Attachment #1: Type: text/plain, Size: 594 bytes --]

Michael Heerdegen <michael_heerdegen@web.de> writes:

> Andreas Schwab <schwab@suse.de> writes:
>
>> On Mai 31 2022, Akib Azmain Turja wrote:
>>
>> > But it says that with-memoizaton function definition is
>> > void,
>>
>> That function indeed doesn't exist in Emacs, so it must be coming from
>> some customisation of yours.
>
> Or `with-memoization' was meant.
>
> Michael.
>
>

Yeah, you are right.  It was a typo.

-- 
Akib Azmain Turja

This message is signed by me with my GnuPG key.  It's fingerprint is:

    7001 8CE5 819F 17A3 BBA6  66AF E74F 0EFA 922A E7F5

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

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

* Re: Compiling Emacs from source for hacking on it
  2022-05-31 14:23   ` Visuwesh
@ 2022-05-31 16:24     ` Akib Azmain Turja
  0 siblings, 0 replies; 37+ messages in thread
From: Akib Azmain Turja @ 2022-05-31 16:24 UTC (permalink / raw)
  To: Visuwesh, Andreas Schwab; +Cc: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 915 bytes --]

Visuwesh <visuweshm@gmail.com> writes:

> [செவ்வாய் மே 31, 2022] Andreas Schwab wrote:
>
>> On Mai 31 2022, Akib Azmain Turja wrote:
>>
>>> But it says that with-memoizaton function definition is
>>> void,
>>
>> That function indeed doesn't exist in Emacs, so it must be coming from
>> some customisation of yours.
>
>     with-memoization is a Lisp macro in ‘subr-x.el’.
>
>     (with-memoization PLACE &rest CODE)
>
>     Return the value of CODE and stash it in PLACE.
>     If PLACE’s value is non-nil, then don’t bother evaluating CODE
>     and return the value found in PLACE instead.
>
>       Probably introduced at or before Emacs version 29.1.
>
> It's a macro tho.

Yes, this is what I meant.

-- 
Akib Azmain Turja

This message is signed by me with my GnuPG key.  It's fingerprint is:

    7001 8CE5 819F 17A3 BBA6  66AF E74F 0EFA 922A E7F5

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

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

* Re: Compiling Emacs from source for hacking on it
  2022-05-31 14:17 ` Andreas Schwab
  2022-05-31 14:23   ` Visuwesh
  2022-05-31 14:52   ` Michael Heerdegen
@ 2022-05-31 16:25   ` Akib Azmain Turja
  2 siblings, 0 replies; 37+ messages in thread
From: Akib Azmain Turja @ 2022-05-31 16:25 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 652 bytes --]

Andreas Schwab <schwab@suse.de> writes:

> On Mai 31 2022, Akib Azmain Turja wrote:
>
>> But it says that with-memoizaton function definition is
>> void,
>
> That function indeed doesn't exist in Emacs, so it must be coming from
> some customisation of yours.
>
> -- 
> Andreas Schwab, SUSE Labs, schwab@suse.de
> GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
> "And now for something completely different."

No, because its actually with-memoization.

-- 
Akib Azmain Turja

This message is signed by me with my GnuPG key.  It's fingerprint is:

    7001 8CE5 819F 17A3 BBA6  66AF E74F 0EFA 922A E7F5

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

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

* Re: Compiling Emacs from source for hacking on it
  2022-05-31 12:45 ` Po Lu
  2022-05-31 13:35   ` tomas
@ 2022-05-31 16:27   ` Akib Azmain Turja
  2022-05-31 16:55     ` Lars Ingebrigtsen
  1 sibling, 1 reply; 37+ messages in thread
From: Akib Azmain Turja @ 2022-05-31 16:27 UTC (permalink / raw)
  To: Po Lu; +Cc: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 1101 bytes --]

Po Lu <luangruo@yahoo.com> writes:

> Akib Azmain Turja <akib@disroot.org> writes:
>
>> I have recently (shallow) cloned Emacs source code.  I have compiled it
>> by doing the following:
>>
>> $ mkdir build
>> $ cd build
>> $ ../configure --without-x --without-gnutls --without-modules \
>>     --without-sqlite3 --without-pop --without-mailutils --without-sound
>> $ make
>>
>> If I understand correctly, running ./src/emacs should start the newly
>> compiled Emacs.  But it says that with-memoizaton function definition is
>> void, even with an empty init file (actually I commented out the whole
>> file).  ./src/temacs works, but says function-documention is undefined
>> at runtime.
>>
>> Am I doing something wrong?
>
> I think out of tree builds never really worked in Emacs.
>
> If you're going to hack on Emacs, you should probably configure with
> checking as well.

What options should I add to configure?

-- 
Akib Azmain Turja

This message is signed by me with my GnuPG key.  It's fingerprint is:

    7001 8CE5 819F 17A3 BBA6  66AF E74F 0EFA 922A E7F5

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

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

* Re: Compiling Emacs from source for hacking on it
  2022-05-31 16:22   ` Akib Azmain Turja
@ 2022-05-31 16:39     ` Eli Zaretskii
  2022-05-31 18:11       ` Akib Azmain Turja
  0 siblings, 1 reply; 37+ messages in thread
From: Eli Zaretskii @ 2022-05-31 16:39 UTC (permalink / raw)
  To: Akib Azmain Turja; +Cc: emacs-devel

> From: Akib Azmain Turja <akib@disroot.org>
> Cc: emacs-devel@gnu.org
> Date: Tue, 31 May 2022 22:22:31 +0600
> 
> > If using "-Q" doesn't help, perhaps this is some problem with building
> > in a separate directory, in which case you could rebuild in-place and
> > try again.
> 
> Yes, adding -Q works.  But why it can't read my init file even when the
> whole file is commented?  Or is it expected?

If using -Q solves the problem, look for the reason in your init files
or site-init files.  Also, maybe you have some installed packages that
get activated at startup?

However, if all you need is to make changes in Emacs, maybe you can
always invoke this version-for-hacking with -Q?



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

* Re: Compiling Emacs from source for hacking on it
  2022-05-31 16:27   ` Akib Azmain Turja
@ 2022-05-31 16:55     ` Lars Ingebrigtsen
  2022-05-31 18:16       ` Akib Azmain Turja
  0 siblings, 1 reply; 37+ messages in thread
From: Lars Ingebrigtsen @ 2022-05-31 16:55 UTC (permalink / raw)
  To: Akib Azmain Turja; +Cc: Po Lu, emacs-devel

Akib Azmain Turja <akib@disroot.org> writes:

> What options should I add to configure?

Why do you add any options at all?  Just use the defaults if you don't
want to encounter all these problem.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



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

* Re: Compiling Emacs from source for hacking on it
  2022-05-31 16:39     ` Eli Zaretskii
@ 2022-05-31 18:11       ` Akib Azmain Turja
  2022-05-31 18:30         ` Akib Azmain Turja
  2022-06-02 10:52         ` Philip Kaludercic
  0 siblings, 2 replies; 37+ messages in thread
From: Akib Azmain Turja @ 2022-05-31 18:11 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 1218 bytes --]

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Akib Azmain Turja <akib@disroot.org>
>> Cc: emacs-devel@gnu.org
>> Date: Tue, 31 May 2022 22:22:31 +0600
>> 
>> > If using "-Q" doesn't help, perhaps this is some problem with building
>> > in a separate directory, in which case you could rebuild in-place and
>> > try again.
>> 
>> Yes, adding -Q works.  But why it can't read my init file even when the
>> whole file is commented?  Or is it expected?
>
> If using -Q solves the problem, look for the reason in your init files
> or site-init files.  Also, maybe you have some installed packages that
> get activated at startup?

Ahh, I didn't thought about that.  Guix and package is loading autoloads
which might cause it.  But interestingly, the "with-memoization is
undefined" problem doesn't occur when I call temacs.

>
> However, if all you need is to make changes in Emacs, maybe you can
> always invoke this version-for-hacking with -Q?

Yeah, I would probably do so, but I was just testing if everything was
working correctly.

-- 
Akib Azmain Turja

This message is signed by me with my GnuPG key.  It's fingerprint is:

    7001 8CE5 819F 17A3 BBA6  66AF E74F 0EFA 922A E7F5

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

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

* Re: Compiling Emacs from source for hacking on it
  2022-05-31 16:55     ` Lars Ingebrigtsen
@ 2022-05-31 18:16       ` Akib Azmain Turja
  2022-05-31 18:18         ` Lars Ingebrigtsen
  0 siblings, 1 reply; 37+ messages in thread
From: Akib Azmain Turja @ 2022-05-31 18:16 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: Po Lu, emacs-devel

[-- Attachment #1: Type: text/plain, Size: 687 bytes --]

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Akib Azmain Turja <akib@disroot.org> writes:
>
>> What options should I add to configure?
>
> Why do you add any options at all?  Just use the defaults if you don't
> want to encounter all these problem.
>
> -- 
> (domestic pets only, the antidote for overdose, milk.)
>    bloggy blog: http://lars.ingebrigtsen.no

What I want is a minimal Emacs, just for doing surgery on its text
display code.  Thats why I don't want GTK, sound, mail and other
unnecessary things.

-- 
Akib Azmain Turja

This message is signed by me with my GnuPG key.  It's fingerprint is:

    7001 8CE5 819F 17A3 BBA6  66AF E74F 0EFA 922A E7F5

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

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

* Re: Compiling Emacs from source for hacking on it
  2022-05-31 18:16       ` Akib Azmain Turja
@ 2022-05-31 18:18         ` Lars Ingebrigtsen
  0 siblings, 0 replies; 37+ messages in thread
From: Lars Ingebrigtsen @ 2022-05-31 18:18 UTC (permalink / raw)
  To: Akib Azmain Turja; +Cc: Po Lu, emacs-devel

Akib Azmain Turja <akib@disroot.org> writes:

> What I want is a minimal Emacs, just for doing surgery on its text
> display code.  Thats why I don't want GTK, sound, mail and other
> unnecessary things.

Building without those things won't help you in any way while doing
surgery on the text display code, really.  It'll just make the version
of Emacs you're doing the surgery on a really unusual build
configuration.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



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

* Re: Compiling Emacs from source for hacking on it
  2022-05-31 18:11       ` Akib Azmain Turja
@ 2022-05-31 18:30         ` Akib Azmain Turja
  2022-05-31 19:22           ` Eli Zaretskii
  2022-06-02 10:52         ` Philip Kaludercic
  1 sibling, 1 reply; 37+ messages in thread
From: Akib Azmain Turja @ 2022-05-31 18:30 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 1616 bytes --]

Akib Azmain Turja <akib@disroot.org> writes:

> Eli Zaretskii <eliz@gnu.org> writes:
>
>>> From: Akib Azmain Turja <akib@disroot.org>
>>> Cc: emacs-devel@gnu.org
>>> Date: Tue, 31 May 2022 22:22:31 +0600
>>> 
>>> > If using "-Q" doesn't help, perhaps this is some problem with building
>>> > in a separate directory, in which case you could rebuild in-place and
>>> > try again.
>>> 
>>> Yes, adding -Q works.  But why it can't read my init file even when the
>>> whole file is commented?  Or is it expected?
>>
>> If using -Q solves the problem, look for the reason in your init files
>> or site-init files.  Also, maybe you have some installed packages that
>> get activated at startup?
>
> Ahh, I didn't thought about that.  Guix and package is loading autoloads
> which might cause it.  But interestingly, the "with-memoization is
> undefined" problem doesn't occur when I call temacs.
>
>>
>> However, if all you need is to make changes in Emacs, maybe you can
>> always invoke this version-for-hacking with -Q?
>
> Yeah, I would probably do so, but I was just testing if everything was
> working correctly.
>
> -- 
> Akib Azmain Turja
>
> This message is signed by me with my GnuPG key.  It's fingerprint is:
>
>     7001 8CE5 819F 17A3 BBA6  66AF E74F 0EFA 922A E7F5

And I just noticed one more thing, though ./emacs -Q and ./temacs -Q
work in Term (term-mode) and Kitty, it doesn't work in Linux (kernel)
TTY.

-- 
Akib Azmain Turja

This message is signed by me with my GnuPG key.  It's fingerprint is:

    7001 8CE5 819F 17A3 BBA6  66AF E74F 0EFA 922A E7F5

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

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

* Re: Compiling Emacs from source for hacking on it
  2022-05-31 18:30         ` Akib Azmain Turja
@ 2022-05-31 19:22           ` Eli Zaretskii
  2022-06-01  1:10             ` Akib Azmain Turja
  0 siblings, 1 reply; 37+ messages in thread
From: Eli Zaretskii @ 2022-05-31 19:22 UTC (permalink / raw)
  To: Akib Azmain Turja; +Cc: emacs-devel

> From: Akib Azmain Turja <akib@disroot.org>
> Cc: emacs-devel@gnu.org
> Date: Wed, 01 Jun 2022 00:30:38 +0600
> 
> And I just noticed one more thing, though ./emacs -Q and ./temacs -Q
> work in Term (term-mode) and Kitty, it doesn't work in Linux (kernel)
> TTY.

What does it mean "doesn't work" in this case? what actually happens
if you try invoking "emacs -Q" on a Linux console?



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

* Re: Compiling Emacs from source for hacking on it
  2022-05-31 19:22           ` Eli Zaretskii
@ 2022-06-01  1:10             ` Akib Azmain Turja
  2022-06-01  2:42               ` Eli Zaretskii
  0 siblings, 1 reply; 37+ messages in thread
From: Akib Azmain Turja @ 2022-06-01  1:10 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 718 bytes --]

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Akib Azmain Turja <akib@disroot.org>
>> Cc: emacs-devel@gnu.org
>> Date: Wed, 01 Jun 2022 00:30:38 +0600
>> 
>> And I just noticed one more thing, though ./emacs -Q and ./temacs -Q
>> work in Term (term-mode) and Kitty, it doesn't work in Linux (kernel)
>> TTY.
>
> What does it mean "doesn't work" in this case? what actually happens
> if you try invoking "emacs -Q" on a Linux console?

This error:

"Can't open load file: No such file or directory, disp-table"

And --debug-init doesn't help.

-- 
Akib Azmain Turja

This message is signed by me with my GnuPG key.  It's fingerprint is:

    7001 8CE5 819F 17A3 BBA6  66AF E74F 0EFA 922A E7F5

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

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

* Re: Compiling Emacs from source for hacking on it
  2022-06-01  1:10             ` Akib Azmain Turja
@ 2022-06-01  2:42               ` Eli Zaretskii
  2022-06-01 11:26                 ` Akib Azmain Turja
  0 siblings, 1 reply; 37+ messages in thread
From: Eli Zaretskii @ 2022-06-01  2:42 UTC (permalink / raw)
  To: Akib Azmain Turja; +Cc: emacs-devel

> From: Akib Azmain Turja <akib@disroot.org>
> Cc: emacs-devel@gnu.org
> Date: Wed, 01 Jun 2022 07:10:00 +0600
> 
> >> And I just noticed one more thing, though ./emacs -Q and ./temacs -Q
> >> work in Term (term-mode) and Kitty, it doesn't work in Linux (kernel)
> >> TTY.
> >
> > What does it mean "doesn't work" in this case? what actually happens
> > if you try invoking "emacs -Q" on a Linux console?
> 
> This error:
> 
> "Can't open load file: No such file or directory, disp-table"

disp-table.el is a package that comes with Emacs, so how come Emacs is
unable to find it?  Is this with an installed Emacs or with Emacs that
you run uninstalled from its source tree?



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

* Re: Compiling Emacs from source for hacking on it
  2022-06-01  2:42               ` Eli Zaretskii
@ 2022-06-01 11:26                 ` Akib Azmain Turja
  2022-06-01 12:15                   ` Eli Zaretskii
  0 siblings, 1 reply; 37+ messages in thread
From: Akib Azmain Turja @ 2022-06-01 11:26 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 1140 bytes --]

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Akib Azmain Turja <akib@disroot.org>
>> Cc: emacs-devel@gnu.org
>> Date: Wed, 01 Jun 2022 07:10:00 +0600
>> 
>> >> And I just noticed one more thing, though ./emacs -Q and ./temacs -Q
>> >> work in Term (term-mode) and Kitty, it doesn't work in Linux (kernel)
>> >> TTY.
>> >
>> > What does it mean "doesn't work" in this case? what actually happens
>> > if you try invoking "emacs -Q" on a Linux console?
>> 
>> This error:
>> 
>> "Can't open load file: No such file or directory, disp-table"
>
> disp-table.el is a package that comes with Emacs, so how come Emacs is
> unable to find it?

I have no idea.

> Is this with an installed Emacs or with Emacs that
> you run uninstalled from its source tree?

I'm not sure what you're tell about, but assuming you asking me whether
I have installed it.  No, I didn't install.  I'm trying to run
./src/emacs -Q from the build directory.  Do I need to install it?

-- 
Akib Azmain Turja

This message is signed by me with my GnuPG key.  It's fingerprint is:

    7001 8CE5 819F 17A3 BBA6  66AF E74F 0EFA 922A E7F5

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

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

* Re: Compiling Emacs from source for hacking on it
  2022-06-01 11:26                 ` Akib Azmain Turja
@ 2022-06-01 12:15                   ` Eli Zaretskii
  2022-06-01 12:41                     ` Akib Azmain Turja
  0 siblings, 1 reply; 37+ messages in thread
From: Eli Zaretskii @ 2022-06-01 12:15 UTC (permalink / raw)
  To: Akib Azmain Turja; +Cc: emacs-devel

> From: Akib Azmain Turja <akib@disroot.org>
> Cc: emacs-devel@gnu.org
> Date: Wed, 01 Jun 2022 17:26:17 +0600
> 
> >> "Can't open load file: No such file or directory, disp-table"
> >
> > disp-table.el is a package that comes with Emacs, so how come Emacs is
> > unable to find it?
> 
> I have no idea.

Is the file there?

> > Is this with an installed Emacs or with Emacs that
> > you run uninstalled from its source tree?
> 
> I'm not sure what you're tell about, but assuming you asking me whether
> I have installed it.  No, I didn't install.  I'm trying to run
> ./src/emacs -Q from the build directory.  Do I need to install it?

No, you shouldn't need to install.  Emacs should run fine uninstalled.

Does this help:

  ./src/emacs -Q -l ./lisp/disp-table.el




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

* Re: Compiling Emacs from source for hacking on it
  2022-06-01 12:15                   ` Eli Zaretskii
@ 2022-06-01 12:41                     ` Akib Azmain Turja
  2022-06-01 13:03                       ` Akib Azmain Turja
  2022-06-01 13:07                       ` Eli Zaretskii
  0 siblings, 2 replies; 37+ messages in thread
From: Akib Azmain Turja @ 2022-06-01 12:41 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 1303 bytes --]

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Akib Azmain Turja <akib@disroot.org>
>> Cc: emacs-devel@gnu.org
>> Date: Wed, 01 Jun 2022 17:26:17 +0600
>> 
>> >> "Can't open load file: No such file or directory, disp-table"
>> >
>> > disp-table.el is a package that comes with Emacs, so how come Emacs is
>> > unable to find it?
>> 
>> I have no idea.
>
> Is the file there?

No, I can't find it in the build directory.  Its in the source
directory.

>
>> > Is this with an installed Emacs or with Emacs that
>> > you run uninstalled from its source tree?
>> 
>> I'm not sure what you're tell about, but assuming you asking me whether
>> I have installed it.  No, I didn't install.  I'm trying to run
>> ./src/emacs -Q from the build directory.  Do I need to install it?
>
> No, you shouldn't need to install.  Emacs should run fine uninstalled.
>
> Does this help:
>
>   ./src/emacs -Q -l ./lisp/disp-table.el
>

Since ./lisp/disp-table.el isn't present in the build directory, so that
won't work.  But this also doesn't help:

  ./src/emacs -Q -l ./lisp/disp-table.el

Where ".." is the source directory.

-- 
Akib Azmain Turja

This message is signed by me with my GnuPG key.  It's fingerprint is:

    7001 8CE5 819F 17A3 BBA6  66AF E74F 0EFA 922A E7F5

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

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

* Re: Compiling Emacs from source for hacking on it
  2022-06-01 12:41                     ` Akib Azmain Turja
@ 2022-06-01 13:03                       ` Akib Azmain Turja
  2022-06-01 13:13                         ` Eli Zaretskii
  2022-06-01 13:07                       ` Eli Zaretskii
  1 sibling, 1 reply; 37+ messages in thread
From: Akib Azmain Turja @ 2022-06-01 13:03 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 1933 bytes --]

Akib Azmain Turja <akib@disroot.org> writes:

> Eli Zaretskii <eliz@gnu.org> writes:
>
>>> From: Akib Azmain Turja <akib@disroot.org>
>>> Cc: emacs-devel@gnu.org
>>> Date: Wed, 01 Jun 2022 17:26:17 +0600
>>> 
>>> >> "Can't open load file: No such file or directory, disp-table"
>>> >
>>> > disp-table.el is a package that comes with Emacs, so how come Emacs is
>>> > unable to find it?
>>> 
>>> I have no idea.
>>
>> Is the file there?
>
> No, I can't find it in the build directory.  Its in the source
> directory.
>
>>
>>> > Is this with an installed Emacs or with Emacs that
>>> > you run uninstalled from its source tree?
>>> 
>>> I'm not sure what you're tell about, but assuming you asking me whether
>>> I have installed it.  No, I didn't install.  I'm trying to run
>>> ./src/emacs -Q from the build directory.  Do I need to install it?
>>
>> No, you shouldn't need to install.  Emacs should run fine uninstalled.
>>
>> Does this help:
>>
>>   ./src/emacs -Q -l ./lisp/disp-table.el
>>
>
> Since ./lisp/disp-table.el isn't present in the build directory, so that
> won't work.  But this also doesn't help:
>
>   ./src/emacs -Q -l ./lisp/disp-table.el
>
> Where ".." is the source directory.
>
> -- 
> Akib Azmain Turja
>
> This message is signed by me with my GnuPG key.  It's fingerprint is:
>
>     7001 8CE5 819F 17A3 BBA6  66AF E74F 0EFA 922A E7F5

Sorry for annoying you people, the actual problem is the EMACSLOADPATH
environment variable, which is set by Guix.  If I unset it (by
prepending "EMACSLOADPATH=" to the command), everything works, no matter
whether I build it in the source directory or out-of-tree.  Emacs runs
on Linux console, even with my init file (and loads faster than my
distro Emacs).

-- 
Akib Azmain Turja

This message is signed by me with my GnuPG key.  It's fingerprint is:

    7001 8CE5 819F 17A3 BBA6  66AF E74F 0EFA 922A E7F5

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

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

* Re: Compiling Emacs from source for hacking on it
  2022-06-01 12:41                     ` Akib Azmain Turja
  2022-06-01 13:03                       ` Akib Azmain Turja
@ 2022-06-01 13:07                       ` Eli Zaretskii
  2022-06-01 16:36                         ` Akib Azmain Turja
  1 sibling, 1 reply; 37+ messages in thread
From: Eli Zaretskii @ 2022-06-01 13:07 UTC (permalink / raw)
  To: Akib Azmain Turja; +Cc: emacs-devel

> From: Akib Azmain Turja <akib@disroot.org>
> Cc: emacs-devel@gnu.org
> Date: Wed, 01 Jun 2022 18:41:17 +0600
> 
> >> > disp-table.el is a package that comes with Emacs, so how come Emacs is
> >> > unable to find it?
> >> 
> >> I have no idea.
> >
> > Is the file there?
> 
> No, I can't find it in the build directory.  Its in the source
> directory.

What about disp-table.elc? do you see it in the build directory?



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

* Re: Compiling Emacs from source for hacking on it
  2022-06-01 13:03                       ` Akib Azmain Turja
@ 2022-06-01 13:13                         ` Eli Zaretskii
  0 siblings, 0 replies; 37+ messages in thread
From: Eli Zaretskii @ 2022-06-01 13:13 UTC (permalink / raw)
  To: Akib Azmain Turja; +Cc: emacs-devel

> From: Akib Azmain Turja <akib@disroot.org>
> Cc: emacs-devel@gnu.org
> Date: Wed, 01 Jun 2022 19:03:22 +0600
> 
> Sorry for annoying you people, the actual problem is the EMACSLOADPATH
> environment variable, which is set by Guix.  If I unset it (by
> prepending "EMACSLOADPATH=" to the command), everything works, no matter
> whether I build it in the source directory or out-of-tree.  Emacs runs
> on Linux console, even with my init file (and loads faster than my
> distro Emacs).

No sweat.  One of those "TIL" days, I guess...



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

* Re: Compiling Emacs from source for hacking on it
  2022-06-01 13:07                       ` Eli Zaretskii
@ 2022-06-01 16:36                         ` Akib Azmain Turja
  2022-06-01 17:23                           ` Eli Zaretskii
  0 siblings, 1 reply; 37+ messages in thread
From: Akib Azmain Turja @ 2022-06-01 16:36 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 881 bytes --]

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Akib Azmain Turja <akib@disroot.org>
>> Cc: emacs-devel@gnu.org
>> Date: Wed, 01 Jun 2022 18:41:17 +0600
>> 
>> >> > disp-table.el is a package that comes with Emacs, so how come Emacs is
>> >> > unable to find it?
>> >> 
>> >> I have no idea.
>> >
>> > Is the file there?
>> 
>> No, I can't find it in the build directory.  Its in the source
>> directory.
>
> What about disp-table.elc? do you see it in the build directory?

Strange, though I have built Emacs out-of-tree, the elc file
(lisp/disp-table.elc) is in the source directory.  I have built Emacs in
the source directory once, but I made sure to run make distclean before
building out-of-tree.

-- 
Akib Azmain Turja

This message is signed by me with my GnuPG key.  It's fingerprint is:

    7001 8CE5 819F 17A3 BBA6  66AF E74F 0EFA 922A E7F5

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

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

* Re: Compiling Emacs from source for hacking on it
  2022-06-01 16:36                         ` Akib Azmain Turja
@ 2022-06-01 17:23                           ` Eli Zaretskii
  0 siblings, 0 replies; 37+ messages in thread
From: Eli Zaretskii @ 2022-06-01 17:23 UTC (permalink / raw)
  To: Akib Azmain Turja; +Cc: emacs-devel

> From: Akib Azmain Turja <akib@disroot.org>
> Cc: emacs-devel@gnu.org
> Date: Wed, 01 Jun 2022 22:36:05 +0600
> 
> Strange, though I have built Emacs out-of-tree, the elc file
> (lisp/disp-table.elc) is in the source directory.  I have built Emacs in
> the source directory once, but I made sure to run make distclean before
> building out-of-tree.

Yes, known.



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

* Re: Compiling Emacs from source for hacking on it
  2022-05-31 18:11       ` Akib Azmain Turja
  2022-05-31 18:30         ` Akib Azmain Turja
@ 2022-06-02 10:52         ` Philip Kaludercic
  2022-06-02 16:47           ` Akib Azmain Turja
  1 sibling, 1 reply; 37+ messages in thread
From: Philip Kaludercic @ 2022-06-02 10:52 UTC (permalink / raw)
  To: Akib Azmain Turja; +Cc: Eli Zaretskii, emacs-devel

Akib Azmain Turja <akib@disroot.org> writes:

> Eli Zaretskii <eliz@gnu.org> writes:
>
>>> From: Akib Azmain Turja <akib@disroot.org>
>>> Cc: emacs-devel@gnu.org
>>> Date: Tue, 31 May 2022 22:22:31 +0600
>>> 
>>> > If using "-Q" doesn't help, perhaps this is some problem with building
>>> > in a separate directory, in which case you could rebuild in-place and
>>> > try again.
>>> 
>>> Yes, adding -Q works.  But why it can't read my init file even when the
>>> whole file is commented?  Or is it expected?
>>
>> If using -Q solves the problem, look for the reason in your init files
>> or site-init files.  Also, maybe you have some installed packages that
>> get activated at startup?
>
> Ahh, I didn't thought about that.  Guix and package is loading autoloads
> which might cause it.  But interestingly, the "with-memoization is
> undefined" problem doesn't occur when I call temacs.

I also had issues with Guix, so I start Emacs using a little script I
have in ~/.local/bin with these contents

--8<---------------cut here---------------start------------->8---
#!/bin/sh
exec EMACSLOADPATH="" ~/Source/emacs/src/emacs "$@"
--8<---------------cut here---------------end--------------->8---

And everything works just fine.



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

* Re: Compiling Emacs from source for hacking on it
  2022-06-02 10:52         ` Philip Kaludercic
@ 2022-06-02 16:47           ` Akib Azmain Turja
  0 siblings, 0 replies; 37+ messages in thread
From: Akib Azmain Turja @ 2022-06-02 16:47 UTC (permalink / raw)
  To: Philip Kaludercic; +Cc: Eli Zaretskii, emacs-devel

[-- Attachment #1: Type: text/plain, Size: 1796 bytes --]

Philip Kaludercic <philipk@posteo.net> writes:

> Akib Azmain Turja <akib@disroot.org> writes:
>
>> Eli Zaretskii <eliz@gnu.org> writes:
>>
>>>> From: Akib Azmain Turja <akib@disroot.org>
>>>> Cc: emacs-devel@gnu.org
>>>> Date: Tue, 31 May 2022 22:22:31 +0600
>>>> 
>>>> > If using "-Q" doesn't help, perhaps this is some problem with building
>>>> > in a separate directory, in which case you could rebuild in-place and
>>>> > try again.
>>>> 
>>>> Yes, adding -Q works.  But why it can't read my init file even when the
>>>> whole file is commented?  Or is it expected?
>>>
>>> If using -Q solves the problem, look for the reason in your init files
>>> or site-init files.  Also, maybe you have some installed packages that
>>> get activated at startup?
>>
>> Ahh, I didn't thought about that.  Guix and package is loading autoloads
>> which might cause it.  But interestingly, the "with-memoization is
>> undefined" problem doesn't occur when I call temacs.
>
> I also had issues with Guix, so I start Emacs using a little script I
> have in ~/.local/bin with these contents
>
> --8<---------------cut here---------------start------------->8---
> #!/bin/sh
> exec EMACSLOADPATH="" ~/Source/emacs/src/emacs "$@"
> --8<---------------cut here---------------end--------------->8---
>
> And everything works just fine.

Yeah, I must like that, especially the "exec", about which I always
forget.

Is there any way to use the Guix packages?  I guess I need to do some
magic (like modifing load-path maybe) from my init file.

BTW, is this problem unique to Guix or exists in any other distribution?

-- 
Akib Azmain Turja

This message is signed by me with my GnuPG key.  It's fingerprint is:

    7001 8CE5 819F 17A3 BBA6  66AF E74F 0EFA 922A E7F5

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

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

end of thread, other threads:[~2022-06-02 16:47 UTC | newest]

Thread overview: 37+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-31 12:07 Compiling Emacs from source for hacking on it Akib Azmain Turja
2022-05-31 12:45 ` Po Lu
2022-05-31 13:35   ` tomas
2022-05-31 13:42     ` Ken Brown
2022-05-31 14:01       ` tomas
2022-05-31 14:02       ` Óscar Fuentes
2022-05-31 14:10         ` tomas
2022-05-31 14:18           ` Óscar Fuentes
2022-05-31 16:27   ` Akib Azmain Turja
2022-05-31 16:55     ` Lars Ingebrigtsen
2022-05-31 18:16       ` Akib Azmain Turja
2022-05-31 18:18         ` Lars Ingebrigtsen
2022-05-31 13:06 ` Eli Zaretskii
2022-05-31 13:43   ` Eli Zaretskii
2022-05-31 16:22   ` Akib Azmain Turja
2022-05-31 16:39     ` Eli Zaretskii
2022-05-31 18:11       ` Akib Azmain Turja
2022-05-31 18:30         ` Akib Azmain Turja
2022-05-31 19:22           ` Eli Zaretskii
2022-06-01  1:10             ` Akib Azmain Turja
2022-06-01  2:42               ` Eli Zaretskii
2022-06-01 11:26                 ` Akib Azmain Turja
2022-06-01 12:15                   ` Eli Zaretskii
2022-06-01 12:41                     ` Akib Azmain Turja
2022-06-01 13:03                       ` Akib Azmain Turja
2022-06-01 13:13                         ` Eli Zaretskii
2022-06-01 13:07                       ` Eli Zaretskii
2022-06-01 16:36                         ` Akib Azmain Turja
2022-06-01 17:23                           ` Eli Zaretskii
2022-06-02 10:52         ` Philip Kaludercic
2022-06-02 16:47           ` Akib Azmain Turja
2022-05-31 14:17 ` Andreas Schwab
2022-05-31 14:23   ` Visuwesh
2022-05-31 16:24     ` Akib Azmain Turja
2022-05-31 14:52   ` Michael Heerdegen
2022-05-31 16:24     ` Akib Azmain Turja
2022-05-31 16:25   ` Akib Azmain Turja

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