From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Newsgroups: gmane.emacs.devel Subject: Re: Easy configuration of a site-lisp directory Date: Tue, 10 Aug 2021 13:35:48 -0400 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: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1619"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 Cc: Arthur Miller , Emacs developers To: Yuri Khan , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Aug 10 19:36:37 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 1mDVg5-0000EH-2t for ged-emacs-devel@m.gmane-mx.org; Tue, 10 Aug 2021 19:36:37 +0200 Original-Received: from localhost ([::1]:37080 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDVg3-0000PO-7d for ged-emacs-devel@m.gmane-mx.org; Tue, 10 Aug 2021 13:36:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47918) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDVfN-0007hs-32 for emacs-devel@gnu.org; Tue, 10 Aug 2021 13:35:53 -0400 Original-Received: from mail-qk1-x732.google.com ([2607:f8b0:4864:20::732]:43801) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mDVfK-000170-QN; Tue, 10 Aug 2021 13:35:52 -0400 Original-Received: by mail-qk1-x732.google.com with SMTP id f12so22105213qkh.10; Tue, 10 Aug 2021 10:35:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=aRP9H1xXvzchqrQpY8BxTMf0fVdsEPUOxDghd0UeNxU=; b=fti9ILtjmB0u7ma2G4DPjs7HJYM0C2MgZfO6gwpmLSn5Y+Slqmu6tYqlpknuFRSIG2 pRQnvO9HXIpsyKUUtYDGl0gjbFWFJRe/0aAPFZXeIe0cTcb6LNBM4uetVld7q1F3WUDf ftJp4uuLPF5BV8lQPZIvIm1bExXt3QtWVcbqGAu1KGjXd7vEPEAcrfKgVvJQXmBkrJJP rTHZD68e0dqtttcgqZ4BajNCGKKlhLjKaDr6L1777XR7gr7BpOy35QbCgZd4TMJB0L4Z uJ2aobc4ffW3lqDtpLqtFJ2agp+u8fQDxN5yVjBqYD+IInkhIsEN42IKgJVpQGOvMey8 +iYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=aRP9H1xXvzchqrQpY8BxTMf0fVdsEPUOxDghd0UeNxU=; b=JGMLyAYcp20BEq0N+gYGejMa8KqEFu2thPoXR17jj6IZQCTM9+k67s7K65vgjkAEE4 WxyjpzEXYy1gUwHDSRpfcOO8nqhvSRFKi6dkAQbTQIQIwRAJQgggj/E/e6+px4wDF4yU O8bx3Vr9l6j9Ohdd1HxoxFVAdw+YWWnDYQIS4zk2+isSofNFZDNtSBxaTjipQu0YQwCz Pzm8szhIekGtih8tngk4Ssy4iyQnOvbF0QBiWbzhKAVOX4tdi9GefeJiXrDXPJJ9BsKB omMETpz1Lkp3TkdFAdWS/gESeBUaQ+8iExXkdjzzDEQlw2YLrYtYuA6VcKh/rfX65VrR W/Jg== X-Gm-Message-State: AOAM532gEkiopVUtXiy/rRhS71UgpMFrdYrYTF0KA+b11zCK5I/s/U6u D4rPnrHDFkgh1if9ifu9Ckqw1ineOwM= X-Google-Smtp-Source: ABdhPJzRWBOjXqM32/dJ5ulBoJ929jpWCHKuBh1u6/s0FPnge7dAJmsyFBPXPvboW8ASdMvGovHhyQ== X-Received: by 2002:a05:620a:4f4:: with SMTP id b20mr7684258qkh.493.1628616949419; Tue, 10 Aug 2021 10:35:49 -0700 (PDT) Original-Received: from [192.168.1.11] (c-24-61-240-80.hsd1.ma.comcast.net. [24.61.240.80]) by smtp.googlemail.com with ESMTPSA id p187sm11096442qkd.101.2021.08.10.10.35.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 10 Aug 2021 10:35:49 -0700 (PDT) In-Reply-To: Content-Language: en-GB Received-SPF: pass client-ip=2607:f8b0:4864:20::732; envelope-from=cpitclaudel@gmail.com; helo=mail-qk1-x732.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, NICE_REPLY_A=-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:272295 Archived-At: On 8/10/21 11:10 AM, Yuri Khan wrote: > 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… 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. I think that's a perfect description of my typical flow :) And I think Arthur's suggestion is right: I shouldn't make install, just run from src/.