From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.devel Subject: Re: Easy configuration of a site-lisp directory Date: Tue, 10 Aug 2021 22:10:22 +0700 Message-ID: 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: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30276"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?UTF-8?Q?Cl=C3=A9ment_Pit=2DClaudel?= , Arthur Miller , Emacs developers To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Aug 10 17:11:50 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 1mDTPx-0007cB-67 for ged-emacs-devel@m.gmane-mx.org; Tue, 10 Aug 2021 17:11:49 +0200 Original-Received: from localhost ([::1]:44280 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDTPw-0002My-79 for ged-emacs-devel@m.gmane-mx.org; Tue, 10 Aug 2021 11:11:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38530) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDTOn-0000G7-8M for emacs-devel@gnu.org; Tue, 10 Aug 2021 11:10:37 -0400 Original-Received: from mail-ua1-x92d.google.com ([2607:f8b0:4864:20::92d]:43698) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mDTOl-0003nw-H7; Tue, 10 Aug 2021 11:10:37 -0400 Original-Received: by mail-ua1-x92d.google.com with SMTP id 91so8707405uas.10; Tue, 10 Aug 2021 08:10:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=e55lZ8dalXcat53ud8jNh5UNJhyoAtC50ez68WrtC2o=; b=pFrBuVdi4lVqZbM917N2nxUxyiuCzBl1VtolzB0HsqUHH/f36G2+/MAtgbtLiAmvMC w88BBoTChy9xILI6YqRyQxm4zW50vkxh7XjCziKs/NB+gK3DCMNtxgCN+1ZCYUmYbqNT +u+Taqam5lPEmQNRPWf9E9godp6a+n+LKuvDK1cDpiVfD4dKkiShf/I7XDfGexruchJT HRT0APw1zT/W4DmSQTZFYWqavgbw+LakisGGnkrNxSMq5E+Gvw53YMa/2aXP/7FYxJC7 fjC+24oLIbgSB93zpO4YOMrrC56TRMTUMT2QHzqim83Cc+VK3lI4lrSjA4922MWvrP+T eOOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=e55lZ8dalXcat53ud8jNh5UNJhyoAtC50ez68WrtC2o=; b=ZjSzt/pere2hoCcY8eIw+YP6DuWsSDb32QpzDybRX5llvB1S/1aMHeBLnIUH6dfZ5R 88fTQ0WtKyvP1VeSmqmdukkwpk8gkQuGrmqP331j0Y5fwGZyslgCAODbAGfjQFG2vVjJ 5UQvK252YW4Bcrf+aGNFe/P92xIm1Q4Epd2gtgKUYUS+chXpGuDZbFrVyohbVpujYa/u KfTX1Qjeru+w1HAboIMwgCR9KzuKPWPPvmGjU55XiRaMd1iiu4fhQdge0ENECekW+0ln pQ4Qz/DQMDDyXV4knxruE1dktEZ1hawBnJ9grbUan1dzdEBaFPaHYE2kbq1835kvmW03 csrg== X-Gm-Message-State: AOAM531JSD5pWBMbscbBXf6JIRJHvONuN6z5ziT1vjRkX/lIVK55O+RH jz1Clj7hSBuOP5+t+Io645KjXtyR/rWLUnvI6M15B1iQjbk= X-Google-Smtp-Source: ABdhPJx38+JDyorjV7T35rI0PA7y/D/qvgPYKPvC9kMMZr0chYBsdG4Hw+OODljs64oLiA+q9rmBYMTgr/gBfO4MN0w= X-Received: by 2002:a05:6130:3a6:: with SMTP id az38mr21876357uab.102.1628608233693; Tue, 10 Aug 2021 08:10:33 -0700 (PDT) In-Reply-To: <83o8a5flfo.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::92d; envelope-from=yurivkhan@gmail.com; helo=mail-ua1-x92d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:272284 Archived-At: On Tue, 10 Aug 2021 at 21:01, Eli Zaretskii wrote: > > I have an unconfirmed guess that some people want not only to see the > > code but also hack it. In this use case, it is desirable for M-. to > > take them to the actual hackable code so that any changes persist > > across Emacs restarts and are seen by version control. > > 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=E2=80=A6 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=E2=80=99s 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=E2=80=99s say I do this jus= t 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. [*]: for a suitable value of =E2=80=9CI=E2=80=9D. If I frequently wanted to= make changes to Emacs proper, that would be my reasoning. As it is, I merely project it onto people who do.