From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Xiyue Deng Newsgroups: gmane.emacs.devel Subject: Re: Question regarding load-path handling for ELPA packages Date: Fri, 17 May 2024 14:32:19 -0700 Message-ID: <87a5ko6s64.fsf@debian-hx90.lan> References: <878r0ifjmt.fsf@debian-hx90.lan> <87eda0765g.fsf@debian-hx90.lan> <87o794z6l8.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15374"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Michael Heerdegen To: Michael Heerdegen via "Emacs development discussions." Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri May 17 23:33:21 2024 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 1s85Cb-0003jB-4Z for ged-emacs-devel@m.gmane-mx.org; Fri, 17 May 2024 23:33:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s85Bo-0006UE-Ny; Fri, 17 May 2024 17:32:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s85Bg-0006Pc-O6 for emacs-devel@gnu.org; Fri, 17 May 2024 17:32:25 -0400 Original-Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s85Bf-0000Lw-8x for emacs-devel@gnu.org; Fri, 17 May 2024 17:32:24 -0400 Original-Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-1ed835f3c3cso24384135ad.3 for ; Fri, 17 May 2024 14:32:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715981541; x=1716586341; darn=gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=UuZtJtdoq4d8GYlLTt+vILhBpB8ATdXMRfY6VS6Yj0Q=; b=JgAjnsyVSMD3ZGSVz1p/A42vVgOqf160q1Z1HDWiE7Ix/11Or7wmLUONOJAMYf/Gpx DBLRt8QG7frN7xVlsPNjNE/isegxc9fLvKm90bpNfw2DjqLoG4Z9HOMB+fMgAMgQbRSO pNpEpQb5wUcoNQNL908QTOQN10ysxCJWFFPSf5mB8UfQW4qzK+iZMFecrAWubIYV0vQw XQKER5XVV/Gu7vKlex2uXsZafzbmS1lIaHaN1rJP7LqQHaShddz8kW7sg/4EWeiMR2+O EYeiSwSyeX6CyOqLoIDOE4XJx8WmWjlIc6UTWNjaAwmomwzJIrKnB5fH/Io4EuZYuSLR IdBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715981541; x=1716586341; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=UuZtJtdoq4d8GYlLTt+vILhBpB8ATdXMRfY6VS6Yj0Q=; b=GNqQc0UUjQPFantvunEKR84tv3xbLrUIvTzymNj5Ala7t+Izb29yx8F3P6xf++whdE UC/Tplpwt4qFif3FcmVQ2nYSin6sA9YegAsxQ6U1pHx7d6ouUlcyuBMojKp944X+a2hb TDMModDaQZj0y3xBeW8jqzQt/pqYYJEr0OtvnjCfvtH5Vui84C7b3GLZhRv0NnCfIIAz 4ihmFKmPj6gbFabOgeIovRh3w7M2Db3vbu1bD+53QGiM5ZvAIMOiEdngkYG04SzTMLC3 Ywqu7TLkP+gh03J5FMlf7Xy/U8Fsvb9tCEGiG+XwJ3QDxljXi1ff4CNVzpKimPYsM8/J vJFA== X-Gm-Message-State: AOJu0Yw0fMNFJUI5u34TB/wR5TG0n4oghpobwYUNhgWz+akkoPWWi8UJ bKgercXC54gis8r7mgjRRhEsa8Rm60RZxDl35o0BrkatYWCyOP43vcMhqg== X-Google-Smtp-Source: AGHT+IHTzLYKrj1hQNIjbR5s9KH63Qc6lTSHsB6rzBTYCW073eiGXxPaAhpQbp2xfjCurkWiaWfOEA== X-Received: by 2002:a05:6a21:9995:b0:1af:a49f:9826 with SMTP id adf61e73a8af0-1afde0a9a5bmr28582789637.12.1715981540524; Fri, 17 May 2024 14:32:20 -0700 (PDT) Original-Received: from debian-hx90 ([2603:8000:a400:cdc:9b10:a920:1cd4:c01]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-6f4d2ae0f7fsm15154962b3a.120.2024.05.17.14.32.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 14:32:20 -0700 (PDT) In-Reply-To: <87o794z6l8.fsf@web.de> (Michael Heerdegen via's message of "Fri, 17 May 2024 19:33:23 +0200") Received-SPF: pass client-ip=2607:f8b0:4864:20::62e; envelope-from=manphiz@gmail.com; helo=mail-pl1-x62e.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.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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:319335 Archived-At: Michael Heerdegen via "Emacs development discussions." writes: > Xiyue Deng writes: > >> > * Would someone kindly provide some pointer to how `load-path' is being >> > handled as my rusty Elisp is preventing me to fully understand this. > > Can only answer this one: AFAIU this is done using the autoload > mechanism - see `package-generate-autoloads'. > > In effect, the parent directory of the autoloads file is added to > `load-path' when this file is loaded - typically when activating > packages. > Thanks a lot for the pointer, Michael! Will take a look. > An analog trick should allow to add subdirectories. > Not sure about this as it may potentially break things (e.g. auctex). Would still like to hear what the developers think. > > Michael. > > -- Xiyue Deng