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: Not using DOC for ELisp files Date: Fri, 31 Dec 2021 20:45:26 +0200 Message-ID: <831r1shaux.fsf@gnu.org> References: <834k6snbko.fsf@gnu.org> <83fsqclhlh.fsf@gnu.org> <838rw3lgiu.fsf@gnu.org> <83sfuaimna.fsf@gnu.org> <83lf01gnhs.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9230"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, akrl@sdf.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Dec 31 19:53:48 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 1n3N2B-0002HI-VC for ged-emacs-devel@m.gmane-mx.org; Fri, 31 Dec 2021 19:53:48 +0100 Original-Received: from localhost ([::1]:41678 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n3N2A-000598-5U for ged-emacs-devel@m.gmane-mx.org; Fri, 31 Dec 2021 13:53:46 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:40754) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n3MuF-0008P4-5t for emacs-devel@gnu.org; Fri, 31 Dec 2021 13:45:35 -0500 Original-Received: from [2001:470:142:3::e] (port=56260 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n3MuE-0003Je-OY; Fri, 31 Dec 2021 13:45:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=kp9z/0K+4st7SUDaXly0wAjDJNPICWJBpWOvRdUFYKU=; b=LDhQqOxlNkyv qSgQEKRpTAvZs/9ujStYXGFrCAqtUnZd53GwpfuljXoMtWmHQ55FSx9SVivplBls/8j2/ThKEO25+ j4tryGFQCkB+ieR+RCSmJRwlKOyzDjxFqKb54rgTMZabD6NwzoLhb/s0WTvA4BRjnjN/QDudvVfvb eHax7nmGN01vMT62zOswoSutPKDl9hntPi7GFfckjXTYX41AZDrwuYCSqpZkEnc5QtnxPRl1vf56T HKTmn/pe7RMbejyjswkS3tFZodptSJuIUQBnkQ41+7Ga5W4fGF799RB9I4Jq1AVsRGyH7ObWJo6uy 20lRSmK7A+ckjtsCSEDcUw==; Original-Received: from [87.69.77.57] (port=2948 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 1n3MuE-0003Lf-Jm; Fri, 31 Dec 2021 13:45:35 -0500 In-Reply-To: (message from Stefan Monnier on Fri, 31 Dec 2021 11:16:47 -0500) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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:283764 Archived-At: > From: Stefan Monnier > Cc: akrl@sdf.org, emacs-devel@gnu.org > Date: Fri, 31 Dec 2021 11:16:47 -0500 > > >> OK, after re-reading the section a few times and rewriting it a couple > >> more, I think I got something vaguely acceptable. > > Thanks, I have one question: if EMACSLOADPATH is set in the > > environment, does it affect the value of lisp-directory? > > I don't know: I did not write the code that computes this directory, > because it was already written for the purpose of making absolute the > filenames of preloaded files in `load-history`. So if EMACSLOADPATH is set, the lisp-directory variable will not be currently set? > > Should it? > > Maybe/probably, but since EMACSLOADPATH is a list of directories I'm not > sure how to make it reliable. Maybe it should look for some > "well-known" bundled ELisp file in EMACSLOADPATH an derive the value of > `lisp-directory` from it? Yes, I think so.