unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Re: Bug Loading *.el.gz files into GNU/Linux Emacs.
       [not found] ` <8335eodr7d.fsf@gnu.org>
@ 2022-07-27  1:51   ` Davin Pearson
  2022-07-27  5:03     ` Davin Pearson
  0 siblings, 1 reply; 3+ messages in thread
From: Davin Pearson @ 2022-07-27  1:51 UTC (permalink / raw)
  To: Eli Zaretskii, help-gnu-emacs

Curiously enough, when I run "find" on font-core.el and font-core.el.gz
it comes back with the following messages.  Notice how font-core.el.gz
doesn't exist on my system.

$ find /usr/share/emacs/emacs-28.1 -name font-core.el
/usr/share/emacs/emacs-28.1/lisp/font-core.el
$ find /usr/share/emacs/emacs-28.1 -name font-core.el.gz
$

Here is the result of finding *.el.gz files

$ find /usr/share/emacs/emacs-28.1 -name *.el.gz

When I gzip the file calculator.el here is the result
of find:

$ find /usr/share/emacs/emacs-28.1 -name *.el.gz
/usr/share/emacs/emacs-28.1/lisp/calculator.el.gz

I can load calculator.el.gz and calculator.el shows up on my screen
as it should.

So the source of the bug loading font-core.el baffles me.

On Tue, 26 Jul 2022 at 23:54, Eli Zaretskii <eliz@gnu.org> wrote:

> > From: Davin Pearson <davin.pearson@gmail.com>
> > Date: Tue, 26 Jul 2022 13:19:15 +1200
> >
> > When I try the following
> >
> > C-h f global-font-lock-mode-check-buffers
> >
> > Press RET on the hyperlink font-core.el
> >
> > I comes back at you with the following
> > verbatim text:
> >
> >   r-xrwS-w- 15810023/15240742 995161187 ;;; font-core.el --- Core
> interface to font-lock  -*- lexical-binding:
> > t; -*-
> >
> > ;; Copyright (C) 1992
>
> I cannot reproduce this: for me it shows the definition of that
> function (after uncompressing font-core.el.gz).
>
> Can you visit .el.gz files in Emacs? does that work?  If not, I guess
> your gzip installation needs fixing.
>
> P.S. Please in the future report any problems you have with Emacs
> using "M-x report-emacs-bug RET", and if you are unsure whether it's a
> bug or a cockpit error, post to help-gnu-emacs@gnu.org first.  This
> list is not the best place for such discussions.
>


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

* Re: Bug Loading *.el.gz files into GNU/Linux Emacs.
  2022-07-27  1:51   ` Bug Loading *.el.gz files into GNU/Linux Emacs Davin Pearson
@ 2022-07-27  5:03     ` Davin Pearson
  2022-07-27 11:28       ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Davin Pearson @ 2022-07-27  5:03 UTC (permalink / raw)
  To: Eli Zaretskii, help-gnu-emacs

Eli, I have found the source of the bug.

Somewhere in my explorations of Emacs I managed
to create a whole new directory tree:

/snap/emacs/1609/usr/share/emacs/28.1/lisp/

When I tried gunzip font-lock.el.gz it said
the following.

gzip: font-lock.el: Read-only file system

I tried chmod ing the /snap directory but
it failed with the following diagnostic:

$ chmod 777 /snap/
chmod: changing permissions of '/snap/': Operation not permitted

so it seems that the entire directory is mounted as read only.

Note that there is a file called font-lock.el.gz in the /snap folder (deeply
into the depths of the directory).

I can gunzip the file, but before I do so, I have to copy it to my ~/
directory
but as mentioned above, I cannot copy the file font-lock.el to the /snap
folder. (as the entire /snap directory is read only)

I hope you can give me some helpful advice!



On Wed, 27 Jul 2022 at 13:51, Davin Pearson <davin.pearson@gmail.com> wrote:

>
> Curiously enough, when I run "find" on font-core.el and font-core.el.gz
> it comes back with the following messages.  Notice how font-core.el.gz
> doesn't exist on my system.
>
> $ find /usr/share/emacs/emacs-28.1 -name font-core.el
> /usr/share/emacs/emacs-28.1/lisp/font-core.el
> $ find /usr/share/emacs/emacs-28.1 -name font-core.el.gz
> $
>
> Here is the result of finding *.el.gz files
>
> $ find /usr/share/emacs/emacs-28.1 -name *.el.gz
>
> When I gzip the file calculator.el here is the result
> of find:
>
> $ find /usr/share/emacs/emacs-28.1 -name *.el.gz
> /usr/share/emacs/emacs-28.1/lisp/calculator.el.gz
>
> I can load calculator.el.gz and calculator.el shows up on my screen
> as it should.
>
> So the source of the bug loading font-core.el baffles me.
>
> On Tue, 26 Jul 2022 at 23:54, Eli Zaretskii <eliz@gnu.org> wrote:
>
>> > From: Davin Pearson <davin.pearson@gmail.com>
>> > Date: Tue, 26 Jul 2022 13:19:15 +1200
>> >
>> > When I try the following
>> >
>> > C-h f global-font-lock-mode-check-buffers
>> >
>> > Press RET on the hyperlink font-core.el
>> >
>> > I comes back at you with the following
>> > verbatim text:
>> >
>> >   r-xrwS-w- 15810023/15240742 995161187 ;;; font-core.el --- Core
>> interface to font-lock  -*- lexical-binding:
>> > t; -*-
>> >
>> > ;; Copyright (C) 1992
>>
>> I cannot reproduce this: for me it shows the definition of that
>> function (after uncompressing font-core.el.gz).
>>
>> Can you visit .el.gz files in Emacs? does that work?  If not, I guess
>> your gzip installation needs fixing.
>>
>> P.S. Please in the future report any problems you have with Emacs
>> using "M-x report-emacs-bug RET", and if you are unsure whether it's a
>> bug or a cockpit error, post to help-gnu-emacs@gnu.org first.  This
>> list is not the best place for such discussions.
>>
>


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

* Re: Bug Loading *.el.gz files into GNU/Linux Emacs.
  2022-07-27  5:03     ` Davin Pearson
@ 2022-07-27 11:28       ` Eli Zaretskii
  0 siblings, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2022-07-27 11:28 UTC (permalink / raw)
  To: help-gnu-emacs

> From: Davin Pearson <davin.pearson@gmail.com>
> Date: Wed, 27 Jul 2022 17:03:40 +1200
> 
> Somewhere in my explorations of Emacs I managed
> to create a whole new directory tree:
> 
> /snap/emacs/1609/usr/share/emacs/28.1/lisp/
> 
> When I tried gunzip font-lock.el.gz it said
> the following.
> 
> gzip: font-lock.el: Read-only file system

I don't understand why in your case the filesystem cannot be
read-only: AFAIK the way we uncompress files on the fly uses
temporary-file-directory, not the place where the compressed file
lives.

I'd start by looking at the value of temporary-file-directory, and if
that doesn't give any hints, step through the code in jka-compr to see
why it fails to uncompress the file.

Btw, does this happen in "emacs -Q"?  If not, some of your
customizations get in the way.



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

end of thread, other threads:[~2022-07-27 11:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <CAG9ihEs1wJDZhVNMWHPjgYBkpLpWowrXsHYJ-9T_YNO=GnT1+Q@mail.gmail.com>
     [not found] ` <8335eodr7d.fsf@gnu.org>
2022-07-27  1:51   ` Bug Loading *.el.gz files into GNU/Linux Emacs Davin Pearson
2022-07-27  5:03     ` Davin Pearson
2022-07-27 11:28       ` 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).