From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Easy configuration of a site-lisp directory Date: Tue, 10 Aug 2021 18:44:33 +0300 Message-ID: <83im0dfgny.fsf@gnu.org> References: <87y29cj65y.fsf@posteo.net> <87czqna77n.fsf@dick> <878s1ba1nl.fsf@dick> <4324d238-261f-946d-eb6b-a98bea3a1157@gmail.com> <83eeb2h7v4.fsf@gnu.org> <024825b3-fa33-a852-5115-1ee56ae47041@gmail.com> <83zgtpfqqx.fsf@gnu.org> <83o8a5flfo.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39629"; mail-complaints-to="usenet@ciao.gmane.io" Cc: cpitclaudel@gmail.com, arthur.miller@live.com, emacs-devel@gnu.org To: Yuri Khan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Aug 10 17:44:59 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mDTw2-000A3E-UA for ged-emacs-devel@m.gmane-mx.org; Tue, 10 Aug 2021 17:44:58 +0200 Original-Received: from localhost ([::1]:35970 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDTw1-0002j3-7k for ged-emacs-devel@m.gmane-mx.org; Tue, 10 Aug 2021 11:44:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46246) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDTvV-00021Z-6q for emacs-devel@gnu.org; Tue, 10 Aug 2021 11:44:25 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:54334) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDTvU-0003D7-De; Tue, 10 Aug 2021 11:44:24 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4932 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDTvT-0005gm-Vg; Tue, 10 Aug 2021 11:44:24 -0400 In-Reply-To: (message from Yuri Khan on Tue, 10 Aug 2021 22:10:22 +0700) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:272287 Archived-At: > From: Yuri Khan > Date: Tue, 10 Aug 2021 22:10:22 +0700 > Cc: Arthur Miller , Clément Pit-Claudel , > Emacs developers > > > But the .el.gz files that Emacs displays _are_ "hackable", in the > > sense that you can modify it and then save the results. Right? > > Right… technically. > > 0. I[*] have an itch and go to scratch it. M-. takes me to an .el.gz > somewhere in /usr/share/emacs. > 1. I want to start hacking but the buffer is read-only because (x): my > regular user does not have write access to system-wide > platform-independent files. > 1a. I can switch to the hackable /home/me/src/emacs/lisp/{filename}.el > right away while lamenting that M-. did not take me right there, or > 1b. I can press C-x C-q to remove the readonlyness. For the sake of > argument, let’s see where this leads. > 2. I make a change and want to save it. I cannot because (x). > 2a. Again, at this point, I can C-x C-w > /home/you/src/emacs/lisp/{filename}.el, cursing under my breath. > Alternatively, > 2b. Since I have admin rights, I can take ownership or loosen access > rights on the file so I can save it. Again, let’s say I do this just > to prove a point. > 3. I finish my work and want to do a self-review before committing. > But /usr/share/emacs is not under version control and I did not make a > backup and now I still have to go to my git clone. This is entirely unrelated to the fact that the *.el files are compressed, right? You'd get the same results if they were installed uncompressed, right? Thus, the original question "why people care about the fact it's a .el.gz file" still stands. If we now change the subject, as you did, and talk about the fact that the installed *.el files are not modifiable by your user, I will claim that it's a mis-configuration of your system's access rights and/or a problem with the way Emacs was installed, because if you _want_ to hack the sources of an installed Emacs, you should make sure you have write access to those sources. If all else fails (e.g., you need to work on a system where you don't call the shots wrt access rights), you can always install Emacs under your home directory. Right?