From unknown Fri Jun 20 07:13:44 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#38015 <38015@debbugs.gnu.org> To: bug#38015 <38015@debbugs.gnu.org> Subject: Status: Emacs in multiple profiles Reply-To: bug#38015 <38015@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:13:44 +0000 retitle 38015 Emacs in multiple profiles reassign 38015 guix-patches submitter 38015 Maxim Cournoyer severity 38015 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 01 00:25:31 2019 Received: (at submit) by debbugs.gnu.org; 1 Nov 2019 04:25:31 +0000 Received: from localhost ([127.0.0.1]:54914 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQOV2-0007ih-Rk for submit@debbugs.gnu.org; Fri, 01 Nov 2019 00:25:31 -0400 Received: from lists.gnu.org ([209.51.188.17]:46104) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQOUu-0007iR-0W for submit@debbugs.gnu.org; Fri, 01 Nov 2019 00:25:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47710) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQOUr-0000jS-Ml for guix-patches@gnu.org; Fri, 01 Nov 2019 00:25:15 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iQOUp-0003I8-GD for guix-patches@gnu.org; Fri, 01 Nov 2019 00:25:13 -0400 Received: from mail-qt1-x82c.google.com ([2607:f8b0:4864:20::82c]:33037) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iQOUj-0002bb-Re; Fri, 01 Nov 2019 00:25:06 -0400 Received: by mail-qt1-x82c.google.com with SMTP id y39so11553601qty.0; Thu, 31 Oct 2019 21:25:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=YrOZmoRY/POAWiM0fMjXmSPhhC+INhoC796dgIGdp1c=; b=rMUO5/FOjBQSQ5ITsssUI+hU9vitRv6KJ1kQTL027BRm6lH0moY7B86KsoMLKSN1x3 gRMkQkx16It8VSdI7nFMQHaW1xBP00kQ1dd19U+bdKprMCx2rJ4lw5DO3SrE1c48u2CR Pub+2RG187pYVCKtk6mgd/pycE99ptKbAxONTpiMPsf7FVs0HCfhuD6ok7iFcdu750kl 6k/rgUloK7atMi370G0ABwwV3B+kSjkmt2EcgrxBgg9g95n9hV2abK1aj1bVwz+MyJSl 0WxD+C9h6l8F+GS0oze1Qo+DuL4ZHT6Kdkzw5JlWsbH8NAf1Unbt0NmrfOrxIJTN5Mvx pD/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=YrOZmoRY/POAWiM0fMjXmSPhhC+INhoC796dgIGdp1c=; b=svMGoTL+FYbV7Eq55U/9+EIcpzJRciowXuryVp2DBfI3cGCqqoF6tFsXEeJ9MaeVWC 78o+x/LXNCVfcf8WgZn9oaVFVyrUTeGuXkTJQiwOa3Lxf9Bqd03TdJetoPNtjWjAmmcG A1rUq2oNS2si+VLnuruYopycJF/otUNGbvYfDjcPITk57G7SViAYxDxlDm0mKb1de8Cm ERRG4eHF0Uu/FcJIMTltr2Enn3hVU7or6TQjwhVgrXD/aVqDGMJx9RNwaLU9fyw3zoBA vc9JpBEggv8fMFbl4MsmUI4WhdPu558+JoZZDI6S2Tnn3/mdROLQf2nsKVoRXiSt0FLI mVWg== X-Gm-Message-State: APjAAAVhDP79b5cM5G3C4QA7OuM+nJ+gX6e3jt42MTVd7T+dX23TEi2a 8KJ3CO8T8KJHNKqKkuH8v9qxgsTCQkc= X-Google-Smtp-Source: APXvYqy6hee8LU89cJcH7oM94G74Uk7N2ZOcNq9A5JKCV7hlFvRWCViOic05v91gt9EmD3zruojpxw== X-Received: by 2002:a0c:d787:: with SMTP id z7mr7944845qvi.152.1572582304730; Thu, 31 Oct 2019 21:25:04 -0700 (PDT) Received: from apteryx (dsl-151-45.b2b2c.ca. [66.158.151.45]) by smtp.gmail.com with ESMTPSA id l5sm2292455qtj.52.2019.10.31.21.25.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Oct 2019 21:25:03 -0700 (PDT) From: Maxim Cournoyer To: guix-patches , Pierre Neidhardt Subject: Re: Emacs in multiple profiles References: <9c395fd0-9458-7894-af8b-9294d212c60b@fastmail.net> <878tajzu03.fsf@gmail.com> <87a7uyd7qy.fsf@gmail.com> <874ll51mq3.fsf@gmail.com> <87zi2t4jgh.fsf@gmail.com> <877ep4z44b.fsf@gmail.com> <87tv88ihzc.fsf@ambrevar.xyz> <878spgo7ex.fsf@gmail.com> <87o8yccwtq.fsf@ambrevar.xyz> <871rv1ed8v.fsf@gmail.com> <87mudpm5nt.fsf@ambrevar.xyz> <874kzscpgs.fsf@gmail.com> <87eeyvespq.fsf@ambrevar.xyz> <87zhhhbhzl.fsf@gmail.com> <877e4l5c9h.fsf@ambrevar.xyz> Date: Fri, 01 Nov 2019 00:25:02 -0400 In-Reply-To: <877e4l5c9h.fsf@ambrevar.xyz> (Pierre Neidhardt's message of "Thu, 31 Oct 2019 13:29:30 +0100") Message-ID: <87mudgb4v5.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::82c X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: Alex Kost , myglc2@gmail.com, help-guix@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --=-=-= Content-Type: text/plain [+ guix-patches] Hello! Pierre Neidhardt writes: > I've reviewed and tested the patch: > > - review: 5/5 stars :D > - test: pass! > > I've tested the following: > > $ /home/ambrevar/projects/guix/pre-inst-env guix package -i emacs-2048-game emacs -p ~/temp/foo > $ cd ~/temp > $ env -i $(which bash) --login --noprofile --norc > bash-5.0$ /run/current-system/profile/bin/env DISPLAY=:1 emacs > > > Content of *Messages*: > > Loading /gnu/store/ghdkfqnvrxipp4ikakags5rl7flywb72-profile/share/emacs/site-lisp/guix.d/2048-game-20151026.1233/2048-game-autoloads.el (source)...done > For information about GNU Emacs and the GNU system, type C-h C-a. > > > And > > M-x 2048-game RET > > works! I'm glad it works and fixes your use case :-). > Can we merge this on master? We have some 700 emacs packages that are > going to be rebuilt, but it's rather light for the build farm. What do > you think? I'm not worried about the 700 Emacs packages that will need to be rebuild, but I'd prefer to take a bit of time to let people comment on this non-trivial change. The new behavior (of not always loading stuff from the user profile and system profiles) is different and may break the flow of some people. For one, I think restarting my Emacs server (started at login) won't be enough to discover newly installed packages to my profile. Emacs-Magit may also be impacted, I haven't reviewed if it uses that autoload function from site-start.el. Refreshing an environment variable value for a process (such as Emacs) is not as convenient as re-scanning a directory. I'll let some time pass (2 weeks), and if nobody objects, I'll merge it to master. Thanks for the review! Maxim --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-emacs-Locate-Elisp-libraries-via-EMACSLOADPATH.patch Content-Transfer-Encoding: quoted-printable >From d5dc7fd8a2406939346b44457859764a98afece0 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Sat, 3 Jun 2017 12:56:36 -0700 Subject: [PATCH 1/3] gnu: emacs: Locate Elisp libraries via EMACSLOADPATH. * gnu/packages/emacs.scm (emacs): Add a search path specification for EMACSLOADPATH. --- gnu/packages/emacs.scm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm index 6c6f0e4567..16f9af0a0a 100644 --- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -9,7 +9,7 @@ ;;; Copyright =C2=A9 2016 David Thompson ;;; Copyright =C2=A9 2016 ng0 ;;; Copyright =C2=A9 2017 Marius Bakke -;;; Copyright =C2=A9 2017 Maxim Cournoyer +;;; Copyright =C2=A9 2017, 2019 Maxim Cournoyer ;;; Copyright =C2=A9 2017 Alex Vong ;;; Copyright =C2=A9 2017, 2018 Ricardo Wurmus ;;; Copyright =C2=A9 2017 Jan Nieuwenhuizen @@ -185,6 +185,13 @@ =20 (native-search-paths (list (search-path-specification + (variable "EMACSLOADPATH") + ;; The versioned entries are for the Emacs' builtin libraries. + (files (list (string-append "share/emacs/" version "/site-lisp= ") + (string-append "share/emacs/" version "/lisp") + "share/emacs/site-lisp")) + (file-pattern ".*")) ;recursively add any sub directory + (search-path-specification (variable "INFOPATH") (files '("share/info"))))) =20 --=20 2.23.0 --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: attachment; filename=0002-build-system-emacs-Simplify-the-SET-EMACS-LOAD-PATH-.patch Content-Transfer-Encoding: quoted-printable >From 9c4897347bee7f3b6afb97a6c766d57f0bee1b9d Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Mon, 28 Oct 2019 08:09:03 -0400 Subject: [PATCH 2/3] build-system: emacs: Simplify the SET-EMACS-LOAD-PATH phase. It is no longer necessary to search for the Elisp libraries manually, as Em= acs now include a search path specification serving that purpose. * guix/build/emacs-build-system.scm (set-emacs-load-path): Replace by... (add-source-to-load-path): ...this. (%standard-phases): Adjust accordingly. --- guix/build/emacs-build-system.scm | 42 ++++++------------------------- 1 file changed, 8 insertions(+), 34 deletions(-) diff --git a/guix/build/emacs-build-system.scm b/guix/build/emacs-build-sys= tem.scm index 47a9eda9e6..f0c41812f1 100644 --- a/guix/build/emacs-build-system.scm +++ b/guix/build/emacs-build-system.scm @@ -2,7 +2,7 @@ ;;; Copyright =C2=A9 2015 Federico Beffa ;;; Copyright =C2=A9 2016 David Thompson ;;; Copyright =C2=A9 2016 Alex Kost -;;; Copyright =C2=A9 2018 Maxim Cournoyer +;;; Copyright =C2=A9 2018, 2019 Maxim Cournoyer ;;; ;;; This file is part of GNU Guix. ;;; @@ -74,40 +74,14 @@ archive, a directory, or an Emacs Lisp file." #t) (gnu:unpack #:source source))) =20 -(define* (set-emacs-load-path #:key source inputs #:allow-other-keys) - (define (inputs->directories inputs) - "Extract the directory part from INPUTS." - (match inputs - (((names . directories) ...) directories))) - - (define (input-directory->el-directory input-directory) - "Return the correct Emacs Lisp directory in INPUT-DIRECTORY or #f, if = there -is no Emacs Lisp directory." - (let ((legacy-elisp-directory (string-append input-directory %legacy-i= nstall-suffix)) - (guix-elisp-directory - (string-append - input-directory %install-suffix "/" - (store-directory->elpa-name-version input-directory)))) - (cond - ((file-exists? guix-elisp-directory) guix-elisp-directory) - ((file-exists? legacy-elisp-directory) legacy-elisp-directory) - (else #f)))) - - (define (input-directories->el-directories input-directories) - "Return the list of Emacs Lisp directories in INPUT-DIRECTORIES." - (filter-map input-directory->el-directory input-directories)) - - "Set the EMACSLOADPATH environment variable so that dependencies are fou= nd." +(define* (add-source-to-load-path #:key dummy #:allow-other-keys) + "Augment the EMACSLOADPATH environment variable with the source director= y." (let* ((source-directory (getcwd)) - (input-elisp-directories (input-directories->el-directories - (inputs->directories inputs))) - (emacs-load-path-value - (string-join - (append input-elisp-directories (list source-directory)) - ":" 'suffix))) + (emacs-load-path-value (string-append (getenv "EMACSLOADPATH") ":" + source-directory))) (setenv "EMACSLOADPATH" emacs-load-path-value) - (format #t "environment variable `EMACSLOADPATH' set to ~a\n" - emacs-load-path-value))) + (format #t "source directory ~s appended to the `EMACSLOADPATH' \ +environment variable\n" source-directory))) =20 (define* (build #:key outputs inputs #:allow-other-keys) "Compile .el files." @@ -269,7 +243,7 @@ second hyphen. This corresponds to 'name-version' as u= sed in ELPA packages." (define %standard-phases (modify-phases gnu:%standard-phases (replace 'unpack unpack) - (add-after 'unpack 'set-emacs-load-path set-emacs-load-path) + (add-after 'unpack 'add-source-to-load-path add-source-to-load-path) (delete 'bootstrap) (delete 'configure) ;; Move the build phase after install: the .el files are byte compiled --=20 2.23.0 --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: attachment; filename=0003-gnu-emacs-Adapt-the-autoloads-auxiliary-code-to-use-.patch Content-Transfer-Encoding: quoted-printable >From 39b31bb30b8ecab67bd6de315b5aa1bb59a3ee20 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Tue, 29 Oct 2019 22:07:55 -0400 Subject: [PATCH 3/3] gnu: emacs: Adapt the autoloads auxiliary code to use EMACSLOADPATH. The Elisp directories to scan for autoloads are now taken from EMACSLOADPATH instead of from the user profile, environment profile or system profile. Manually adding the Elisp directories to the `load-path' is no longer necessary, as this is covered by Emacs when they are in EMACSLOADPATH. The caching logic is also removed, as this code is not typically run often and = the gain is marginal (loading autoloads files is cheap). * gnu/packages/aux-files/emacs/guix-emacs.el (guix-emacs-directory) (guix-emacs-subdirs, guix-emacs-directories): Remove procedures. (guix-emacs-find-autoloads): Filter the directory entries by passing the regexp to `directory-files' directly, which is ten times faster. Remove deduplication. (guix-emacs-autoloads-regexp): Remove the group, which used to filter out t= he file extension; it no longer works this way due to passing the regexp to the `directory-files' procedure directly, which doesn't care about groups. (guix-emacs-autoload-packages): Update doc. Search package directories from EMACSLOADPATH. Do not populate the load-path. Remove cache. --- gnu/packages/aux-files/emacs/guix-emacs.el | 98 ++++++---------------- 1 file changed, 24 insertions(+), 74 deletions(-) diff --git a/gnu/packages/aux-files/emacs/guix-emacs.el b/gnu/packages/aux-= files/emacs/guix-emacs.el index 9a49e8861c..46ee557f20 100644 --- a/gnu/packages/aux-files/emacs/guix-emacs.el +++ b/gnu/packages/aux-files/emacs/guix-emacs.el @@ -2,6 +2,7 @@ =20 ;; Copyright =C2=A9 2014, 2015, 2016, 2017 Alex Kost ;; Copyright =C2=A9 2017 Kyle Meyer +;; Copyright =C2=A9 2019 Maxim Cournoyer =20 ;; This file is part of GNU Guix. =20 @@ -24,91 +25,40 @@ ;; installed with Guix. =20 ;;; Code: - -(require 'cl-lib) - -(defvar guix-user-profile (expand-file-name "~/.guix-profile")) - -(defvar guix-emacs-autoloads nil - "List of the last loaded Emacs autoloads.") +(require 'seq) =20 (defvar guix-emacs-autoloads-regexp - (rx (group (* any) "-autoloads") - ".el" (zero-or-one "c") string-end) + (rx (* any) "-autoloads.el" (zero-or-one "c") string-end) "Regexp to match Emacs 'autoloads' file.") =20 -(defun guix-emacs-directory (&optional profile) - "Return directory with Emacs packages installed in PROFILE. -If PROFILE is nil, use `guix-user-profile'." - (expand-file-name "share/emacs/site-lisp" - (or profile guix-user-profile))) - (defun guix-emacs-find-autoloads (directory) "Return a list of Emacs 'autoloads' files in DIRECTORY. The files in the list do not have extensions (.el, .elc)." - (cl-remove-duplicates - (delq nil - (mapcar (lambda (file) - (when (string-match guix-emacs-autoloads-regexp file) - (match-string 1 file))) - (directory-files directory 'full-name nil 'no-sort))) - :test #'string=3D)) - -(defun guix-emacs-subdirs (directory) - "Return list of DIRECTORY subdirectories." - (cl-remove-if (lambda (file) - (or (string-match-p (rx "/." string-end) file) - (string-match-p (rx "/.." string-end) file) - (not (file-directory-p file)))) - (directory-files directory 'full-name nil 'no-sort))) - -(defun guix-emacs-directories (&optional profile) - "Return the list of directories under PROFILE that contain Emacs package= s. -This includes both `share/emacs/site-lisp/guix.d/PACKAGE' -sub-directories and `share/emacs/site-lisp' itself. - -If PROFILE is nil, use `guix-user-profile'. -Return nil, if Emacs packages are not installed in PROFILE." - (let ((root-dir (guix-emacs-directory (or profile guix-user-profile)))) - (when (file-directory-p root-dir) - (let* ((pkgs-dir (expand-file-name "guix.d" root-dir)) - (pkgs-dirs (when (file-directory-p pkgs-dir) - (guix-emacs-subdirs pkgs-dir)))) - (cons root-dir pkgs-dirs))))) + ;; `directory-files' doesn't honor group in regexp. + (mapcar #'file-name-sans-extension + (directory-files directory 'full-name guix-emacs-autoloads-regex= p))) =20 ;;;###autoload -(defun guix-emacs-autoload-packages (&rest profiles) - "Autoload Emacs packages installed in PROFILES. -If PROFILES are not specified, use a default user and system -profiles. +(defun guix-emacs-autoload-packages () + "Autoload Emacs packages found in EMACSLOADPATH. =20 -'Autoload' means add directories with Emacs packages to -`load-path' and load 'autoloads' files matching +'Autoload' means to load the 'autoloads' files matching `guix-emacs-autoloads-regexp'." - (interactive (list (if (fboundp 'guix-read-package-profile) - (funcall 'guix-read-package-profile) - guix-user-profile))) - (let* ((env (getenv "GUIX_ENVIRONMENT")) - (profiles (or profiles - (append (list "/run/current-system/profile" - guix-user-profile) - (and env (list env)))))) - (dolist (profile profiles) - (let ((dirs (guix-emacs-directories profile))) - (when dirs - (let* ((autoloads (cl-mapcan #'guix-emacs-find-autoloads - dirs)) - (new-autoloads (cl-nset-difference autoloads - guix-emacs-autoloads - :test #'string=3D))) - (dolist (dir dirs) - (cl-pushnew (directory-file-name dir) - load-path - :test #'string=3D)) - (dolist (file new-autoloads) - (load file 'noerror)) - (setq guix-emacs-autoloads - (append new-autoloads guix-emacs-autoloads)))))))) + ;; FIXME: The autoloads generated by the emacs-build-system are not byte + ;; compiled. + (interactive) + (let* ((emacs-load-path (getenv "EMACSLOADPATH")) + (emacs-non-core-load-path-directories + ;; Filter out core Elisp directories, which are already autoload= ed + ;; by Emacs. + (seq-filter (lambda (dir) + (string-match-p "/share/emacs/site-lisp" dir)) + (split-string emacs-load-path ":"))) + (autoloads (mapcan #'guix-emacs-find-autoloads + emacs-non-core-load-path-directories))) + (mapc (lambda (f) + (load f 'noerror)) + autoloads))) =20 (provide 'guix-emacs) =20 --=20 2.23.0 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 01 15:06:47 2019 Received: (at submit) by debbugs.gnu.org; 1 Nov 2019 19:06:47 +0000 Received: from localhost ([127.0.0.1]:57151 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQcFz-0005Ro-0P for submit@debbugs.gnu.org; Fri, 01 Nov 2019 15:06:47 -0400 Received: from lists.gnu.org ([209.51.188.17]:37368) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQcFu-0005Rc-WB for submit@debbugs.gnu.org; Fri, 01 Nov 2019 15:06:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57021) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQcFt-0006q1-T6 for guix-patches@gnu.org; Fri, 01 Nov 2019 15:06:42 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_LOW, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iQcFs-0000u4-Oh for guix-patches@gnu.org; Fri, 01 Nov 2019 15:06:41 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:35231) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iQcFs-0000se-GF; Fri, 01 Nov 2019 15:06:40 -0400 X-Originating-IP: 92.169.151.76 Received: from bababa (lfbn-1-4156-76.w92-169.abo.wanadoo.fr [92.169.151.76]) (Authenticated sender: pierre@atlas.engineer) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id C01F5FF804; Fri, 1 Nov 2019 19:06:37 +0000 (UTC) From: Pierre Neidhardt To: Maxim Cournoyer , guix-patches Subject: Re: Emacs in multiple profiles In-Reply-To: <87mudgb4v5.fsf@gmail.com> References: <9c395fd0-9458-7894-af8b-9294d212c60b@fastmail.net> <878tajzu03.fsf@gmail.com> <87a7uyd7qy.fsf@gmail.com> <874ll51mq3.fsf@gmail.com> <87zi2t4jgh.fsf@gmail.com> <877ep4z44b.fsf@gmail.com> <87tv88ihzc.fsf@ambrevar.xyz> <878spgo7ex.fsf@gmail.com> <87o8yccwtq.fsf@ambrevar.xyz> <871rv1ed8v.fsf@gmail.com> <87mudpm5nt.fsf@ambrevar.xyz> <874kzscpgs.fsf@gmail.com> <87eeyvespq.fsf@ambrevar.xyz> <87zhhhbhzl.fsf@gmail.com> <877e4l5c9h.fsf@ambrevar.xyz> <87mudgb4v5.fsf@gmail.com> Date: Fri, 01 Nov 2019 20:06:34 +0100 Message-ID: <87pnib76x1.fsf@ambrevar.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 217.70.183.199 X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: submit Cc: Alex Kost , myglc2@gmail.com, help-guix@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.1 (-) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Maxim Cournoyer writes: > For one, I think restarting my Emacs server (started at login) won't be > enough to discover newly installed packages to my profile. Hmmm, I don't understand why this would be an issue. With updated environment variables, a new instance of Emacs should successfully find everything, shouldn't it? > I'll let some time pass (2 weeks), and if nobody objects, I'll merge it > to master. Sounds great, thanks for this awesome fix! =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl28gjoACgkQm9z0l6S7 zH8UpAf/Quq+5rDAqy2XyUh+vXxR8JcVwZwUGPzi2na2Kdjet4sEZXHOCVwKyoqy 1/EnXAPUturjkWQHD0DJJpt68aiV+w/8uNUpwskZDIhUQvY+w70OvGTLKCtYOKKv hBHf0w5f10py9mXoaegewYd95S4EnnXYOZbvJxp4PTinY8HyjGWJdXEpmmt+8+Bi 1MaPdIu1+d8H9syyENRQCqx8gyPLjQvC08PEOBrMYZNy2ku/SnTgt6jNaJ95Fhbv YCJOlZx/Ck4Hxkvky4PlfAy5JRAuD4H8RaAtP1rDSLaUDb4OyFLAwP9et1yPwdjF q6s9IAzaXSsEjlxnqLYpWR5y0kdPww== =L75D -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 01 21:12:26 2019 Received: (at submit) by debbugs.gnu.org; 2 Nov 2019 01:12:27 +0000 Received: from localhost ([127.0.0.1]:57728 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQhxq-00058E-5r for submit@debbugs.gnu.org; Fri, 01 Nov 2019 21:12:26 -0400 Received: from lists.gnu.org ([209.51.188.17]:60558) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQhxo-000584-3f for submit@debbugs.gnu.org; Fri, 01 Nov 2019 21:12:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35848) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQhxm-0007FN-Mv for guix-patches@gnu.org; Fri, 01 Nov 2019 21:12:23 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iQhxl-0003Js-B9 for guix-patches@gnu.org; Fri, 01 Nov 2019 21:12:22 -0400 Received: from mail-qk1-x72b.google.com ([2607:f8b0:4864:20::72b]:34108) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iQhxi-0003E6-Ml; Fri, 01 Nov 2019 21:12:18 -0400 Received: by mail-qk1-x72b.google.com with SMTP id 205so11102386qkk.1; Fri, 01 Nov 2019 18:12:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=ws/y7Brd6yyM/x+RyXHMIHBtD+FAfiLw/NKbgcEYi7w=; b=RpNgxspnm3MubCtULCezBYB6S48QxUT9uXvj7sLLc3GPZWTFpj3t+psFn+CQ9qZ5Mj RdJSyOvqQzmneT31mFRfCCZDj2nw65MyMGxSEMicIr01SAeTgdO1uTrIumL6hRwPT6cb hmALTdML73xDVp5hJmtaaqyWMzHJ5ca2rqC201sRQ0BBlFoFPL1+Q1U2UWuMeYUbp4oc rRgEZ9DvRMrInHnatzj3OQBRXiS2BYd7jkgixcHgbWt4nLxleHqDl2m8m/0h3n67C301 5sBfH99rby5uCHc13956uNmbaIh0xxxg8hteSIwFTjnUEb7+5P++qNAn+VbGJefhAGFh ZZ/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=ws/y7Brd6yyM/x+RyXHMIHBtD+FAfiLw/NKbgcEYi7w=; b=V24yrKRBhyB+I+gpgekQfN/PWg/NBjoIY+ngsLFe+GrbB+KliLIdtDNGQVOqMhk8Y8 /8EtdEx4KFDLNt/t/DYmDi/0YNH9m66UrNjn2RPvcrvq21aDaxMyDGZsuj8EP4wwlzD9 YWaQhZS92F1VMvQHmO/6alvIX1hYL1YDUG+xdsEl9ZrTyUNJXc13wTz1KKs2ES41589j NHzmXnz3Kluzb7kGKKJno/9ckdncnzGhS/6ocIIOxDrYXliDSsikIGm4oia3UecyjJen ywNo5+593ZaH81Hc3wfDXyR30H+f2/Js0R7vlI6ZIP9byMEQP01bAHzecxYhfliodQ+1 uEfg== X-Gm-Message-State: APjAAAWrC2wr7Jl+CDcnKdbDhhNnvUMdXZUpb4bYnrJeleK2E8MJPCBl 3scFTiVaO9kuKZSxnR3+A+KvkRokZHQ= X-Google-Smtp-Source: APXvYqy2XVD2pY+4D+eWQUeNPKw2kj8ugNY0kYKmQdRsWAdNCyZ6DJn3Tkr+k0iW2NbspdqalqtWxg== X-Received: by 2002:ae9:e603:: with SMTP id z3mr5324641qkf.453.1572657137230; Fri, 01 Nov 2019 18:12:17 -0700 (PDT) Received: from apteryx (dsl-236-124-195.b2b2c.ca. [207.236.124.195]) by smtp.gmail.com with ESMTPSA id v137sm4394424qka.64.2019.11.01.18.12.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Nov 2019 18:12:15 -0700 (PDT) From: Maxim Cournoyer To: Pierre Neidhardt Subject: Re: Emacs in multiple profiles References: <9c395fd0-9458-7894-af8b-9294d212c60b@fastmail.net> <878tajzu03.fsf@gmail.com> <87a7uyd7qy.fsf@gmail.com> <874ll51mq3.fsf@gmail.com> <87zi2t4jgh.fsf@gmail.com> <877ep4z44b.fsf@gmail.com> <87tv88ihzc.fsf@ambrevar.xyz> <878spgo7ex.fsf@gmail.com> <87o8yccwtq.fsf@ambrevar.xyz> <871rv1ed8v.fsf@gmail.com> <87mudpm5nt.fsf@ambrevar.xyz> <874kzscpgs.fsf@gmail.com> <87eeyvespq.fsf@ambrevar.xyz> <87zhhhbhzl.fsf@gmail.com> <877e4l5c9h.fsf@ambrevar.xyz> <87mudgb4v5.fsf@gmail.com> <87pnib76x1.fsf@ambrevar.xyz> Date: Fri, 01 Nov 2019 21:12:14 -0400 In-Reply-To: <87pnib76x1.fsf@ambrevar.xyz> (Pierre Neidhardt's message of "Fri, 01 Nov 2019 20:06:34 +0100") Message-ID: <878sozaxox.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::72b X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: Alex Kost , myglc2@gmail.com, help-guix@gnu.org, guix-patches X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hello Pierre, Pierre Neidhardt writes: > Maxim Cournoyer writes: > >> For one, I think restarting my Emacs server (started at login) won't be >> enough to discover newly installed packages to my profile. > > Hmmm, I don't understand why this would be an issue. With updated > environment variables, a new instance of Emacs should successfully find > everything, shouldn't it? Yes, when the instance is really *new*, forked from a session where EMACSLOADPATH is set right. I typically start Emacs in server mode using a shepherd user service, so rarely restart Emacs. And even if I was to do 'herd restart emacs', its variables would still be inherited from the login process that spawned its service. But that's not too big an issue for Emacs when using Emacs-Guix, as one can do `guix-set-emacs-environment' and choose a profile to re-read and set (in Emacs itself) its environment variables. Re-running 'guix-emacs-autoload-packages' would then refresh the autoloads corectly, given that EMACSLOADPATH would have been refreshed with an updated profile. >> I'll let some time pass (2 weeks), and if nobody objects, I'll merge it >> to master. > > Sounds great, thanks for this awesome fix! Thank you for your interested in it, you motivated me to dust off a year old (maybe more) patch and fix the remaining bits. Maxim From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 02 05:46:35 2019 Received: (at submit) by debbugs.gnu.org; 2 Nov 2019 09:46:35 +0000 Received: from localhost ([127.0.0.1]:58197 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQpzN-0007zY-N6 for submit@debbugs.gnu.org; Sat, 02 Nov 2019 05:46:35 -0400 Received: from lists.gnu.org ([209.51.188.17]:48691) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQpzL-0007zO-Eh for submit@debbugs.gnu.org; Sat, 02 Nov 2019 05:46:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36053) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQpzK-0004Tl-3p for guix-patches@gnu.org; Sat, 02 Nov 2019 05:46:31 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_LOW, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iQpuB-0004T7-0G for guix-patches@gnu.org; Sat, 02 Nov 2019 05:41:11 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:48081) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iQpuA-0004Fk-Oh; Sat, 02 Nov 2019 05:41:10 -0400 X-Originating-IP: 92.169.151.76 Received: from bababa (lfbn-1-4156-76.w92-169.abo.wanadoo.fr [92.169.151.76]) (Authenticated sender: pierre@atlas.engineer) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 803E6FF808; Sat, 2 Nov 2019 09:41:07 +0000 (UTC) From: Pierre Neidhardt To: Maxim Cournoyer Subject: Re: Emacs in multiple profiles In-Reply-To: <878sozaxox.fsf@gmail.com> References: <9c395fd0-9458-7894-af8b-9294d212c60b@fastmail.net> <878tajzu03.fsf@gmail.com> <87a7uyd7qy.fsf@gmail.com> <874ll51mq3.fsf@gmail.com> <87zi2t4jgh.fsf@gmail.com> <877ep4z44b.fsf@gmail.com> <87tv88ihzc.fsf@ambrevar.xyz> <878spgo7ex.fsf@gmail.com> <87o8yccwtq.fsf@ambrevar.xyz> <871rv1ed8v.fsf@gmail.com> <87mudpm5nt.fsf@ambrevar.xyz> <874kzscpgs.fsf@gmail.com> <87eeyvespq.fsf@ambrevar.xyz> <87zhhhbhzl.fsf@gmail.com> <877e4l5c9h.fsf@ambrevar.xyz> <87mudgb4v5.fsf@gmail.com> <87pnib76x1.fsf@ambrevar.xyz> <878sozaxox.fsf@gmail.com> Date: Sat, 02 Nov 2019 10:41:03 +0100 Message-ID: <87woci62fk.fsf@ambrevar.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 217.70.183.199 X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: submit Cc: Alex Kost , myglc2@gmail.com, help-guix@gnu.org, guix-patches X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.1 (-) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Maxim Cournoyer writes: > But that's not too big an issue for Emacs when using Emacs-Guix, as one > can do `guix-set-emacs-environment' and choose a profile to re-read and > set (in Emacs itself) its environment variables. Re-running > 'guix-emacs-autoload-packages' would then refresh the autoloads > corectly, given that EMACSLOADPATH would have been refreshed with an > updated profile. Damn, didn't know about those 2 functions, it's awesome! I could have used them many times in the past, had I known about them :p =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl29Ty8ACgkQm9z0l6S7 zH8Sggf/bB1KWVC/YfJfRXpyyPQIowXEQyM7J9SAW4XBFoiF6avt6uPPonzIgs4G K7XAdvpAjqRybeZRclAJ8g0S6OVr9y+cq+elh8+iay0CD83TAtE2iUmff82+HPN4 uxB1tYDoowAmUJzKHT4cTD0tLOwXrSI2Y84W4mJ/vPEjWD7tZK9rPcdJGNTg8KJw zbbTCY9JzIrS4t1eZ3BPAoVd7hHmcpUWTl98z3/KXTXsrHFImPyj2E3lawCXofO5 toYNc9rZsbCLL0zcTKqLbrpc1r8pMfgSJCsf1UobnWSPQvo7eOqVHNdXc4tdKNJc DGXo1IV0REX+HL/YMvSZrCE7nP+YUA== =Quhc -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 12 00:14:35 2019 Received: (at 38015) by debbugs.gnu.org; 12 Nov 2019 05:14:35 +0000 Received: from localhost ([127.0.0.1]:56258 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iUOVf-0003xf-D6 for submit@debbugs.gnu.org; Tue, 12 Nov 2019 00:14:35 -0500 Received: from mail-pl1-f182.google.com ([209.85.214.182]:45348) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iUOVd-0003xO-GV for 38015@debbugs.gnu.org; Tue, 12 Nov 2019 00:14:33 -0500 Received: by mail-pl1-f182.google.com with SMTP id f4so182470plr.12 for <38015@debbugs.gnu.org>; Mon, 11 Nov 2019 21:14:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=2FT+mcvIW5e7fPUqYjns0Zbvzj4YyCva09Kw60eJWkM=; b=P9gaUt+5QekE3Rof+OREbHdqnMd9d1vnrLsb+rKUHlHGDUkXrORvKA85kRoH6K/EcM NIGlkfkH4PEFpZ35WwAiwmjZ20J8wPOos3rjXwz1CtlcY9RZJ+k5cRB1r77MRf/WS951 SL97zfHKJsZCB9qy7rOSNxCjCA25caepsfXylPh/1zIBK2ghyIGrLbVkdqY2qO0G6K2l kS7C851L309G5aagbYU+GBSuyoBQKhEFzV76WtQhlRJ2BpZIN85rSTz+FqrMIY4rzTkx 88bdYC3XTMUW8rN8WpDAzJPY3SctgjBEirIUfHKYCgAdl5P+BxU/P/3AHLms//AJD8F+ ALHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=2FT+mcvIW5e7fPUqYjns0Zbvzj4YyCva09Kw60eJWkM=; b=ariLob/ByQhbITByCDlA2QMu7o2iNNxsqKfC7y0dnF+KausQrrJDMfdcNMDYyWQ31E kzUUqktkR5Gq4mrUkGl49QHWPIs6oeqNLmAuhaVvIHP8ON3HbnT6BxqCZvYaJVp+MuZF q0g4SCtg3J8uOTHIIEttJhleji41NGJ01IGE2pacTHu2qpcbQ2kdbwHnFJAigNTYBwke uC4x2IZq5lRqa3xKVnw5tiEc3Je6F2PPAruKYPpJlU6iIg5WNN0ge47ykNzzNcXdq6HD fLkofijlDBDtd8im8MPX/8SSbZWSt2JSz+IkW+Huln7WR9DzzxBumWm2Y2APLXSDIRqt 2RVg== X-Gm-Message-State: APjAAAVrL2V6bWZQgQ6vIyci0Qkf8YlFMNCwKEquEdVtAdxWDf16d6r2 yP9FQQBOPLRy4rqRJqdoy3s= X-Google-Smtp-Source: APXvYqzD5jHlMsRMqGPwrtyhBQR2rMF05CAtdxq88SkpW1tvY09mX2lhqcctHafRTIWZ4y+iTQajGQ== X-Received: by 2002:a17:902:8208:: with SMTP id x8mr10782261pln.232.1573535667558; Mon, 11 Nov 2019 21:14:27 -0800 (PST) Received: from garuda.local ([2601:601:9d80:25b2::f11]) by smtp.gmail.com with ESMTPSA id f19sm11951931pfk.109.2019.11.11.21.14.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Nov 2019 21:14:26 -0800 (PST) From: Chris Marusich To: Maxim Cournoyer Subject: Re: [bug#38015] Emacs in multiple profiles References: <9c395fd0-9458-7894-af8b-9294d212c60b@fastmail.net> <878tajzu03.fsf@gmail.com> <87a7uyd7qy.fsf@gmail.com> <874ll51mq3.fsf@gmail.com> <87zi2t4jgh.fsf@gmail.com> <877ep4z44b.fsf@gmail.com> <87tv88ihzc.fsf@ambrevar.xyz> <878spgo7ex.fsf@gmail.com> <87o8yccwtq.fsf@ambrevar.xyz> <871rv1ed8v.fsf@gmail.com> <87mudpm5nt.fsf@ambrevar.xyz> <874kzscpgs.fsf@gmail.com> <87eeyvespq.fsf@ambrevar.xyz> <87zhhhbhzl.fsf@gmail.com> <877e4l5c9h.fsf@ambrevar.xyz> <87mudgb4v5.fsf@gmail.com> Date: Mon, 11 Nov 2019 21:14:24 -0800 In-Reply-To: <87mudgb4v5.fsf@gmail.com> (Maxim Cournoyer's message of "Fri, 01 Nov 2019 00:25:02 -0400") Message-ID: <875zjp1xsf.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 38015 Cc: myglc2@gmail.com, 38015@debbugs.gnu.org, mail@ambrevar.xyz, help-guix@gnu.org, Alex Kost X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Maxim Cournoyer writes: > [+ guix-patches] > > Hello! > > Pierre Neidhardt writes: > >> I've reviewed and tested the patch: >> >> - review: 5/5 stars :D >> - test: pass! >> >> I've tested the following: >> >> $ /home/ambrevar/projects/guix/pre-inst-env guix package -i emacs-2048-g= ame emacs -p ~/temp/foo >> $ cd ~/temp >> $ env -i $(which bash) --login --noprofile --norc >> bash-5.0$ /run/current-system/profile/bin/env DISPLAY=3D:1 emacs >> >> >> Content of *Messages*: >> >> Loading /gnu/store/ghdkfqnvrxipp4ikakags5rl7flywb72-profile/share/emacs/= site-lisp/guix.d/2048-game-20151026.1233/2048-game-autoloads.el (source)...= done >> For information about GNU Emacs and the GNU system, type C-h C-a. >> >> >> And=20 >> >> M-x 2048-game RET >> >> works! > > I'm glad it works and fixes your use case :-). > >> Can we merge this on master? We have some 700 emacs packages that are >> going to be rebuilt, but it's rather light for the build farm. What do >> you think? > > I'm not worried about the 700 Emacs packages that will need to be > rebuild, but I'd prefer to take a bit of time to let people comment on > this non-trivial change. > > The new behavior (of not always loading stuff from the user profile and > system profiles) is different and may break the flow of some people. > > For one, I think restarting my Emacs server (started at login) won't be > enough to discover newly installed packages to my profile. Emacs-Magit > may also be impacted, I haven't reviewed if it uses that autoload > function from site-start.el. > > Refreshing an environment variable value for a process (such as Emacs) > is not as convenient as re-scanning a directory. > > I'll let some time pass (2 weeks), and if nobody objects, I'll merge it > to master. > > Thanks for the review! > > Maxim I'd like to test this, but I can't build Guix, so I can't test it. I don't know when I'll be able to test it, since I don't know when I'll be able to build Guix: "configure: error: Guix requires zlib." https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D38175 Is there a specific commit that you can recommend I use when applying the patches? Perhaps one you built successfully yourself? If you could also give me your currently installed Guix version so I can "guix pull" to it, that would be helpful. =2D-=20 Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAl3KP7AACgkQ3UCaFdgi Rp3oKw//VhdEbci9C3MnoXglzlrLD/tyVnJeBMh2jGZQORoexWoavZXx22UlgVbY tZUCEmUeCGpj61Wtf1tORc+0IZN6JT7PlwAJ5WmM390lj0eKpp1jawWH60Ebnkd3 4QiSu278u5c8xkeLeiLSIE5BATUjsXDP7J6o/8evZZjw7pdVttPnyqYh6G7PTi+e iYTwkzMyylOR31nXFh+prQ0Lo7pw1O94Ewfo62U1l69FNL7KfctCc91nAaklCwpx T5w3TzBEkmVN9DGL1Y/+8B6uhCFZmifqNIAc9rozgo4uzp4lP9WwtpZMxhPGbyzO FFJ3KdfTSgXz1tjy/YAqHgtKw1/fXxMTCVeY/xYT5GR94hHseJJsOZkqizgbJ5L6 YI4YdUAAsfcxTRxlgRsgSb07x/J8avnmpi3XlKIylgiBkwCMQONDqtKgo5j2SgBI 5ajhQ6FptbGN0/4TAO1yV7rXNnUHc5T+Y8xHQ2bIwPUDz4vTk+tFXyon5cjVm30A MDqO3UJlZaTZN4iNLMqa+imMgO0evEE9xm/BeN68h4DaobNQI5JrDyL9UdT2UI0l qwN8WrppHmR2LRf9oON+vscsSwpxIRQlm1/SwzV1Tb6RA/3B2leqrQROqAgbI11l S7yEuDPBk2ID2E2V7tUKiTguCK0AivqxKOUFX3lGRYD/VdqvitI= =BY8e -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 12 02:16:37 2019 Received: (at 38015) by debbugs.gnu.org; 12 Nov 2019 07:16:37 +0000 Received: from localhost ([127.0.0.1]:56283 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iUQPk-0006zi-OV for submit@debbugs.gnu.org; Tue, 12 Nov 2019 02:16:36 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:42621) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iUQPi-0006zZ-Ce for 38015@debbugs.gnu.org; Tue, 12 Nov 2019 02:16:35 -0500 X-Originating-IP: 92.169.151.76 Received: from bababa (lfbn-1-4156-76.w92-169.abo.wanadoo.fr [92.169.151.76]) (Authenticated sender: pierre@atlas.engineer) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id EE48960002; Tue, 12 Nov 2019 07:16:31 +0000 (UTC) From: Pierre Neidhardt To: Chris Marusich , Maxim Cournoyer Subject: Re: [bug#38015] Emacs in multiple profiles In-Reply-To: <875zjp1xsf.fsf@gmail.com> References: <9c395fd0-9458-7894-af8b-9294d212c60b@fastmail.net> <878tajzu03.fsf@gmail.com> <87a7uyd7qy.fsf@gmail.com> <874ll51mq3.fsf@gmail.com> <87zi2t4jgh.fsf@gmail.com> <877ep4z44b.fsf@gmail.com> <87tv88ihzc.fsf@ambrevar.xyz> <878spgo7ex.fsf@gmail.com> <87o8yccwtq.fsf@ambrevar.xyz> <871rv1ed8v.fsf@gmail.com> <87mudpm5nt.fsf@ambrevar.xyz> <874kzscpgs.fsf@gmail.com> <87eeyvespq.fsf@ambrevar.xyz> <87zhhhbhzl.fsf@gmail.com> <877e4l5c9h.fsf@ambrevar.xyz> <87mudgb4v5.fsf@gmail.com> <875zjp1xsf.fsf@gmail.com> Date: Tue, 12 Nov 2019 08:16:30 +0100 Message-ID: <87ftittvht.fsf@ambrevar.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: -0.2 (/) X-Debbugs-Envelope-To: 38015 Cc: 38015@debbugs.gnu.org, myglc2@gmail.com, help-guix@gnu.org, Alex Kost X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.2 (/) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable My guix describe: guix 2ffae26 repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: 2ffae2689aef8efb325f97ec54abcdeee8588aa0 Note that I'm using substitutes. Good luck! =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl3KXE4ACgkQm9z0l6S7 zH9jDAgApdLUcve9S3D2Of73G5/YAv/mQnSh48Rh+kTfBB4h4tPcoxAdHaESbx0/ rJjYG7Klf7g/r9fk9iR6MQeKTshPSkwEVWNOAVphbgF+j4JxLuMQOtmKrclueeY1 SHz5trqd06+9e7ZWF8xcSGJmLlrKvVjWbpE+wL3YPdS9/d0V8A/ONuLaebZ802+m ux6hv29oXsCDcppKZj36Js0FZclQleD4cJhuPtcbbOL4Ee/Y25mhtj7QVJerQWEe nH96RsnWbUod5+Tg7pSobvprdsVFDW1NvQHhkpsoL2n0gqHyNOylqAa7qG4HF41V Gx7AGZR2EQlYiDuCpOcyA7diNRk+cQ== =qh3I -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 13 02:18:44 2019 Received: (at 38015) by debbugs.gnu.org; 13 Nov 2019 07:18:44 +0000 Received: from localhost ([127.0.0.1]:58775 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iUmvL-0004LM-KC for submit@debbugs.gnu.org; Wed, 13 Nov 2019 02:18:43 -0500 Received: from mail-pf1-f194.google.com ([209.85.210.194]:45407) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iUmvJ-0004L8-6w for 38015@debbugs.gnu.org; Wed, 13 Nov 2019 02:18:42 -0500 Received: by mail-pf1-f194.google.com with SMTP id z4so1004854pfn.12 for <38015@debbugs.gnu.org>; Tue, 12 Nov 2019 23:18:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=x1zWQR4ILSGP3rJMpRmGvCAlYO5TXdaNkJ+tHbFpF5U=; b=lQUI2CGmtuO9ADy/2lOzoSgqgUTRIwBdK/70hKzMV1+SD/HwLBhgOnsZkLvJMHuHlh Vl9BJEEOvFDauCjnABSWTrJyi58FYDWoSjLzGHUZdYUYbeACM3trcuXR+eCntStDBOw+ fex3lwJF5uhPL882rVTgGbSjI5GABG2k4nM35TbpvC67ZH1R7qIIWx2akxPO/ERbpLsw 3PntyuTm8ITPsI78EKMwA8oGqF4ORayZv9RFq8leRq0Nojh1/mUqVHr+MWf8hiv/W6Af My8x5vAcCdjpyli+Rk5FQls+wxpvM7ESAk4eirE7Z7TnTMTTGRgFJx6rvgtC9Rc6gkC2 uMKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=x1zWQR4ILSGP3rJMpRmGvCAlYO5TXdaNkJ+tHbFpF5U=; b=R2Mbh7ZS5eCKx5EzePtLqpongDLzMhg9dnFS3WJQzAzb5gMaDwx6LS5KX9eKJ4GzfD 8cFDcWbzkjJdcTtegt56pOvuIHwSVBdBxcXywyL9sEdoIcffS2FQ4XZdVB+nxeUnnw8r Eh9mpjqzFMfzKH7Pa8/+0GumJ18hxj5lTEQDvBJwZv+B8jQm+gI0iOfXY27To0VKMK9m 7PXluuacus47tKig7yru9cJvbiA4qWzUOhif9SpYMcr0UQDJKiOOdS6Z57Fz/h1W5VXF kA341zxFVcMHs56NZCHkOlLSLRJbhefaA4/QINBcItRvFB+aGp359T1hR7pwQg/8sHT3 r9sw== X-Gm-Message-State: APjAAAUfbmF5DgOgJUL0cJG10VsFhlBEVyhU8SFlP69T0ygvFZSnr+eR 0Z+p3byRbaXB34bboxctcgg= X-Google-Smtp-Source: APXvYqyYhoHTShizzo1lxMFo6t5eqUT4zFgNIzmaV8YacfbNWdvYg3XcZ2XnmKRn/0finMvPaWtYYQ== X-Received: by 2002:a62:1b50:: with SMTP id b77mr2558933pfb.187.1573629515181; Tue, 12 Nov 2019 23:18:35 -0800 (PST) Received: from garuda.local ([2601:601:9d80:25b2::f11]) by smtp.gmail.com with ESMTPSA id i71sm1255034pfe.103.2019.11.12.23.18.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Nov 2019 23:18:33 -0800 (PST) From: Chris Marusich To: Pierre Neidhardt Subject: Re: [bug#38015] Emacs in multiple profiles References: <9c395fd0-9458-7894-af8b-9294d212c60b@fastmail.net> <878tajzu03.fsf@gmail.com> <87a7uyd7qy.fsf@gmail.com> <874ll51mq3.fsf@gmail.com> <87zi2t4jgh.fsf@gmail.com> <877ep4z44b.fsf@gmail.com> <87tv88ihzc.fsf@ambrevar.xyz> <878spgo7ex.fsf@gmail.com> <87o8yccwtq.fsf@ambrevar.xyz> <871rv1ed8v.fsf@gmail.com> <87mudpm5nt.fsf@ambrevar.xyz> <874kzscpgs.fsf@gmail.com> <87eeyvespq.fsf@ambrevar.xyz> <87zhhhbhzl.fsf@gmail.com> <877e4l5c9h.fsf@ambrevar.xyz> <87mudgb4v5.fsf@gmail.com> <875zjp1xsf.fsf@gmail.com> <87ftittvht.fsf@ambrevar.xyz> Date: Tue, 12 Nov 2019 23:18:29 -0800 In-Reply-To: <87ftittvht.fsf@ambrevar.xyz> (Pierre Neidhardt's message of "Tue, 12 Nov 2019 08:16:30 +0100") Message-ID: <87eeyc452y.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 38015 Cc: 38015@debbugs.gnu.org, myglc2@gmail.com, help-guix@gnu.org, Alex Kost , Maxim Cournoyer X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi Pierre and Maxim, Pierre Neidhardt writes: > Good luck! Thank you, Pierre - and Maxim! I was able to apply the 3 patches (using commit 18a69803e2eea4f7555d6eafb6497a645c2d094f, which is on master) cleanly. I built a profile using the following manifest: =2D-8<---------------cut here---------------start------------->8--- (use-modules (gnu packages)) (specifications->manifest '( "emacs" "emacs-bbdb" ;; ... a whole lot of omitted packages ... "emacs-sr-speedbar" "emacs-terraform-mode" )) =2D-8<---------------cut here---------------end--------------->8--- I installed it like this: ./pre-inst-env guix package -m /home/marusich/Documents/guix-manifests/e= macs.scm -p ~/.guix-extra-profiles/emacs/emacs I then emptied my default profile and added this to ~/.bash_profile: =2D-8<---------------cut here---------------start------------->8--- GUIX_EXTRA_PROFILES=3D"$HOME/.guix-extra-profiles" for i in $GUIX_EXTRA_PROFILES/*; do profile=3D$i/$(basename "$i") if [ -f "$profile"/etc/profile ]; then GUIX_PROFILE=3D"$profile" . "$profile"/etc/profile export INFOPATH=3D"$profile/share/info${INFOPATH:+:}$INFOPATH" export MANPATH=3D"$profile/share/man${MANPATH:+:}$MANPATH" fi unset profile done =2D-8<---------------cut here---------------end--------------->8--- I logged out and logged back in. It seems to work so far. I started Emacs from a GNOME terminal bash shell. There were no errors in my Messages buffer after I started Emacs. There were no error messages from the Emacs process, either. I'm enjoying my new Emacs right now! So far, I've noticed three things: =2D The fonts were different than I remember. Not sure why it happened, but I'm guessing it had to do with the fact that I emptied my default profile, and thus got rid of a lot of fonts accidentally. At this time, I doubt it's because of your changes. =2D In the GNOME application picker, when I type "emacs" into the search bar, there are no longer any results. Previously, Emacs showed up in the search. This is true for IceCat, too, which I also moved into its own separate profile, so I think it's probably an issue with our GNOME package instead of your changes. =2D Aspell does not work: "ispell-init-process: Error: No word lists can be found for the language "en_US"." I think this happens because the Guix package for aspell refers to the default profile: (add-after 'install 'wrap-aspell (lambda* (#:key outputs #:allow-other-keys) (let ((bin/aspell (string-append (assoc-ref outputs "out") "/bin/aspell"))) (wrap-program bin/aspell '("ASPELL_CONF" "" =3D ("${ASPELL_CONF:-\"dict-dir ${GUIX_PROFILE:-$HOME/.guix-profile}= /lib/aspell\"}"))) #t))) We should probably follow up on these issues in separate bug reports. Other than the above, it all just works. I don't see any reason not to merge it into master, since even with these issues it is a strict improvement over the current situation in which we cannot use Emacs nearly at all in non-default profiles. If I notice anything else, I'll let you know! Maxim Cournoyer writes: > Subject: [PATCH 1/3] gnu: emacs: Locate Elisp libraries via EMACSLOADPATH. LGTM! > Subject: [PATCH 2/3] build-system: emacs: Simplify the SET-EMACS-LOAD-PATH > phase. > > +(define* (add-source-to-load-path #:key dummy #:allow-other-keys) > + "Augment the EMACSLOADPATH environment variable with the source direct= ory." > (let* ((source-directory (getcwd)) > - (input-elisp-directories (input-directories->el-directories > - (inputs->directories inputs))) > - (emacs-load-path-value > - (string-join > - (append input-elisp-directories (list source-directory)) > - ":" 'suffix))) > + (emacs-load-path-value (string-append (getenv "EMACSLOADPATH") = ":" > + source-directory))) > (setenv "EMACSLOADPATH" emacs-load-path-value) > - (format #t "environment variable `EMACSLOADPATH' set to ~a\n" > - emacs-load-path-value))) > + (format #t "source directory ~s appended to the `EMACSLOADPATH' \ > +environment variable\n" source-directory))) It looks like the change is as follows: previously, we added multiple directories, including the source-directory, to the load path; after this change, we append just the source-directory to the EMACSLOADPATH. Can you remind me why we don't need to add the other elisp directories to the EMACSLOADPATH, too? It seems to work, so I'm probably just missing something obvious. > Subject: [PATCH 3/3] gnu: emacs: Adapt the autoloads auxiliary code to use > EMACSLOADPATH. As far as I can tell, this looks good to me, too. Finally: do you anticipate that this will cause any user-visible or backwards-incompatible changes that we should mention in the Guix channel's news file (and in the Guix NEWS file)? =2D-=20 Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAl3LrkUACgkQ3UCaFdgi Rp1+ag//aFhn1p3l7osGFtcRIjKtrQuEsi46ycwRt+2P1IcwpOl/M5IhraCkVv6t DCjMtPAfDlVVH5K6ppJkOUD3XQ0m6MDSO9HJ3ukZ3t4VECl6r/iXJzjxG37vgA8y 57Bo5dbHXIOyXF1fkLFzx4xzs+7cRJ+y8PuwGG7kotE3tiZ/JR/sLG0F7xLrpWR9 MJy57+ko0TK52WvJODpW44urBMx4Kz8o6Q0AFuGQEwgdX+e6osldzUW2af2MrTET qDA5CzrizWjJSlmx75Ry663PdA4DjrieDGvW8K3OUzgd13cj0XkHX+4g3eeXqBu1 LXnQ1UF1PP4VnW+s2ZuusYRVBx4sde5UPGJ8ZkE2nHP9OXpeTeQXnnqLE3gl58wa QDm3lvzNIN55ogelSgmDL4LQysCvegawLpnMt0spof/N4Xi7taFKwwOIhl7kgrX2 Fv0jpj67qYeOBMzm7XsVuMDjCPFNJukjz0TrU3/iwby4apH2h5d5UFC91NBZoiVc Wr/d2uX11H8gp1YXYpihWT4aHp8MVHd8ziXrsl3X8LogwMh3QagFld6WFVWhIAaN 4HGsYv1IVw2cTGZCT4WKgkQfzGrwfrELzRQCKnWlDeA7xTSIUoXfhUxmX8WXzn/E 4hZBZXBQLrrpm/HeumUiULd7OdlunLik7GwpQwPqu7UDd+dUQjE= =sNRX -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 13 06:08:17 2019 Received: (at 38015) by debbugs.gnu.org; 13 Nov 2019 11:08:17 +0000 Received: from localhost ([127.0.0.1]:58861 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iUqVV-0001J8-GU for submit@debbugs.gnu.org; Wed, 13 Nov 2019 06:08:17 -0500 Received: from relay11.mail.gandi.net ([217.70.178.231]:55829) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iUqVT-0001It-Cg for 38015@debbugs.gnu.org; Wed, 13 Nov 2019 06:08:16 -0500 Received: from bababa (lfbn-1-4156-76.w92-169.abo.wanadoo.fr [92.169.151.76]) (Authenticated sender: pierre@atlas.engineer) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 521F6100002; Wed, 13 Nov 2019 11:08:11 +0000 (UTC) From: Pierre Neidhardt To: Chris Marusich Subject: Re: [bug#38015] Emacs in multiple profiles In-Reply-To: <87eeyc452y.fsf@gmail.com> References: <9c395fd0-9458-7894-af8b-9294d212c60b@fastmail.net> <87a7uyd7qy.fsf@gmail.com> <874ll51mq3.fsf@gmail.com> <87zi2t4jgh.fsf@gmail.com> <877ep4z44b.fsf@gmail.com> <87tv88ihzc.fsf@ambrevar.xyz> <878spgo7ex.fsf@gmail.com> <87o8yccwtq.fsf@ambrevar.xyz> <871rv1ed8v.fsf@gmail.com> <87mudpm5nt.fsf@ambrevar.xyz> <874kzscpgs.fsf@gmail.com> <87eeyvespq.fsf@ambrevar.xyz> <87zhhhbhzl.fsf@gmail.com> <877e4l5c9h.fsf@ambrevar.xyz> <87mudgb4v5.fsf@gmail.com> <875zjp1xsf.fsf@gmail.com> <87ftittvht.fsf@ambrevar.xyz> <87eeyc452y.fsf@gmail.com> Date: Wed, 13 Nov 2019 12:08:11 +0100 Message-ID: <87bltgghk4.fsf@ambrevar.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: -0.2 (/) X-Debbugs-Envelope-To: 38015 Cc: 38015@debbugs.gnu.org, myglc2@gmail.com, help-guix@gnu.org, Alex Kost , Maxim Cournoyer X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.2 (/) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi Chris, Thanks for testing! > - The fonts were different than I remember. Not sure why it happened, > but I'm guessing it had to do with the fact that I emptied my default > profile, and thus got rid of a lot of fonts accidentally. At this > time, I doubt it's because of your changes. Indeed, Emacs will only load fonts from the default profile. Not sure why. But this is unrelated to this change (it also affects current Guix). > - Aspell does not work: "ispell-init-process: Error: No word lists can > be found for the language "en_US"." I think this happens because > the Guix package for aspell refers to the default profile: > > (add-after 'install 'wrap-aspell > (lambda* (#:key outputs #:allow-other-keys) > (let ((bin/aspell (string-append (assoc-ref outputs "out") > "/bin/aspell"))) > (wrap-program bin/aspell > '("ASPELL_CONF" "" =3D > ("${ASPELL_CONF:-\"dict-dir ${GUIX_PROFILE:-$HOME/.guix-profil= e}/lib/aspell\"}"))) > #t))) More precisely, it's because of the patch applied to ASPELL. See bug #29686 for a discussion. I have a clue how to patch this properly, just need to get down to it. > Finally: do you anticipate that this will cause any user-visible or > backwards-incompatible changes that we should mention in the Guix > channel's news file (and in the Guix NEWS file)? As far I can see, the only incompatibility would arise if the user explicitly referred to the guix-emacs.el variables that are now gone. This change is cool enough I'm all for a NEWS entry nonetheless! =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl3L5BsACgkQm9z0l6S7 zH+VXwf+Pd1k3iXkDlazykxQ7ys/H36ezuUsiKz6jEiteX2Ne9WkW/odC2qzr2lZ vcG2Y/mllf8nNR5BUfBiTMMZS/tRVlSmqWR+bltSnBixsqROnLMVTmUzHQfz7kUn 3aOOOBOUfCXHk/wPtaB2w7Uump4YKllnLKyJGP0kZo7g0ZlhK5lLNsAX3lzy3p7e s2fVDr8sMc1qtmabqYk8Ycjo4/0WR6XQ5QgBbkLw3T09jWzy+3LSjQv3VHf7qcS+ FxK0ua5Dl1V2ycemStWlpkTKFzlySSuRJ7YM9gx1KbGnkUcj+HMRESK5ReR2L8tp fgoTaUZTWjdJpSrpJawsuw4733H0Sw== =26jJ -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 18 00:50:43 2019 Received: (at 38015) by debbugs.gnu.org; 18 Nov 2019 05:50:43 +0000 Received: from localhost ([127.0.0.1]:43049 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iWZvv-00085T-BC for submit@debbugs.gnu.org; Mon, 18 Nov 2019 00:50:43 -0500 Received: from mail-qt1-f196.google.com ([209.85.160.196]:33360) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iWZvs-00085G-T8 for 38015@debbugs.gnu.org; Mon, 18 Nov 2019 00:50:41 -0500 Received: by mail-qt1-f196.google.com with SMTP id y39so18989960qty.0 for <38015@debbugs.gnu.org>; Sun, 17 Nov 2019 21:50:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=B87/b7t8PbZWEGmOtsLIomutb7yaq5kJypsjYovxF+A=; b=cptOl/SkzNMDC1VRQuI7zHXZT/dAkHuc+UJBbwsp43qk5SQA2Q4BL0WFD+vbRHOfkK Bgp9wciLTIiVoEnyOfqKLq8anD4TOWTxpaozxcqEwVzXScLi5goNjqspP+fDr5rgZwkM MEA49QsxTLf0eJcbzQjGCmNQzPq4yIOqop6wM3zrSNQecZHerlj7nreAvG3OknesljfG IAB/SK2jGKTxEp7hBC06KuZvv3BrNPOBtw+n0awSo2g/Dm3kYKfifIyVRJR3tYQ112Jx pxBFOhdV3jMqW26/sybiMpBnoBbLcV38otbdXuuSHBZRbepA8uteaV5AbDMX9vJVsc2q NpBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=B87/b7t8PbZWEGmOtsLIomutb7yaq5kJypsjYovxF+A=; b=UpPBBPpJHMclSRpXfgoc4lkSgX05LiAsKU5yBgytmZVvLWFBvL1NOKB5+ODnYvlsfl +J2ZpJvBLrKsp7HW40SuC2IUBfrGl1Bkz7Rk9FExHT9XZGq/nqfZVsgG96wuuXNSN6Bv 8dYfFUrbTUcyDKmMrVQi7QbJnCYAcr4QmiGfOxuYtpgxWa3U28EWK4odUJCzW2gg0LJX cgT7fiL8WDX/4202ddZlPV+ECmPGyb4KD9OM1x31reamZ0pnOhqG1HxfHR1xxvxi3JOe R57eTUf5yJY8zwHiE1oiqf59Ih9v3PT1AdJNVLk3fEmRkRBRE8BsKi9NgeP9AxiCw8BG wdKA== X-Gm-Message-State: APjAAAVgNWIGBS/3AxHO9PzPTy8R3C1bCpBfkyKiXXIxiK8GrhTgSXkR TEVojZeIdPNf9uSHPwp4WGQ= X-Google-Smtp-Source: APXvYqxx6F0Wcuu22jlaclBe3ZNewZgMu32cYMjKtUp3qCuTQVTfLlXUNYP3p1rIJ2zy8LHLCEaziA== X-Received: by 2002:ac8:75ce:: with SMTP id z14mr25593398qtq.130.1574056235262; Sun, 17 Nov 2019 21:50:35 -0800 (PST) Received: from x200 ([206.55.91.146]) by smtp.gmail.com with ESMTPSA id v65sm2924031qkh.7.2019.11.17.21.50.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Nov 2019 21:50:34 -0800 (PST) From: Maxim Cournoyer To: Chris Marusich Subject: Re: [bug#38015] Emacs in multiple profiles References: <9c395fd0-9458-7894-af8b-9294d212c60b@fastmail.net> <87a7uyd7qy.fsf@gmail.com> <874ll51mq3.fsf@gmail.com> <87zi2t4jgh.fsf@gmail.com> <877ep4z44b.fsf@gmail.com> <87tv88ihzc.fsf@ambrevar.xyz> <878spgo7ex.fsf@gmail.com> <87o8yccwtq.fsf@ambrevar.xyz> <871rv1ed8v.fsf@gmail.com> <87mudpm5nt.fsf@ambrevar.xyz> <874kzscpgs.fsf@gmail.com> <87eeyvespq.fsf@ambrevar.xyz> <87zhhhbhzl.fsf@gmail.com> <877e4l5c9h.fsf@ambrevar.xyz> <87mudgb4v5.fsf@gmail.com> <875zjp1xsf.fsf@gmail.com> <87ftittvht.fsf@ambrevar.xyz> <87eeyc452y.fsf@gmail.com> Date: Mon, 18 Nov 2019 14:50:32 +0900 In-Reply-To: <87eeyc452y.fsf@gmail.com> (Chris Marusich's message of "Tue, 12 Nov 2019 23:18:29 -0800") Message-ID: <87r225u40n.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 38015 Cc: myglc2@gmail.com, 38015@debbugs.gnu.org, Pierre Neidhardt , help-guix@gnu.org, Alex Kost X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello Chris, Chris Marusich writes: [...] I've skipped your previous questions, as I believe they were well answered by Pierre (thank you, Pierre!). >> Subject: [PATCH 2/3] build-system: emacs: Simplify the SET-EMACS-LOAD-PATH >> phase. >> >> +(define* (add-source-to-load-path #:key dummy #:allow-other-keys) >> + "Augment the EMACSLOADPATH environment variable with the source directory." >> (let* ((source-directory (getcwd)) >> - (input-elisp-directories (input-directories->el-directories >> - (inputs->directories inputs))) >> - (emacs-load-path-value >> - (string-join >> - (append input-elisp-directories (list source-directory)) >> - ":" 'suffix))) >> + (emacs-load-path-value (string-append (getenv "EMACSLOADPATH") ":" >> + source-directory))) >> (setenv "EMACSLOADPATH" emacs-load-path-value) >> - (format #t "environment variable `EMACSLOADPATH' set to ~a\n" >> - emacs-load-path-value))) >> + (format #t "source directory ~s appended to the `EMACSLOADPATH' \ >> +environment variable\n" source-directory))) > > It looks like the change is as follows: previously, we added multiple > directories, including the source-directory, to the load path; after > this change, we append just the source-directory to the EMACSLOADPATH. > Can you remind me why we don't need to add the other elisp directories > to the EMACSLOADPATH, too? It seems to work, so I'm probably just > missing something obvious. The magic is in the set-paths phase that is inherited from the gnu-build-system. It uses the search path specification now specified in the Emacs package to set the EMACSLOADPATH environment variable itself. When building Elisp packages, it is useful to add the current source directory to that environment variable, so that 'require' directives are able to find the package's own modules (say, when running its test suite). >> Subject: [PATCH 3/3] gnu: emacs: Adapt the autoloads auxiliary code to use >> EMACSLOADPATH. > > As far as I can tell, this looks good to me, too. > > Finally: do you anticipate that this will cause any user-visible or > backwards-incompatible changes that we should mention in the Guix > channel's news file (and in the Guix NEWS file)? Thanks for the review! I can't anticipate any user-visible changes except the current (incorrect) behavior. This change is now live on master, with commit 47b3b4c2aa49e21f4cc32c97ff7bbbd069bb849c. Thanks for testing :-). Maxim From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 18 00:50:55 2019 Received: (at control) by debbugs.gnu.org; 18 Nov 2019 05:50:56 +0000 Received: from localhost ([127.0.0.1]:43052 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iWZw7-00085s-Ng for submit@debbugs.gnu.org; Mon, 18 Nov 2019 00:50:55 -0500 Received: from mail-qv1-f46.google.com ([209.85.219.46]:45745) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iWZw2-00085b-Ok for control@debbugs.gnu.org; Mon, 18 Nov 2019 00:50:51 -0500 Received: by mail-qv1-f46.google.com with SMTP id g12so6028225qvy.12 for ; Sun, 17 Nov 2019 21:50:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:message-id:to:from:subject; bh=a9ne1RmzBRQtPLM8LTd3+3V6t38xp3vBCMyh31AgrTc=; b=mUB31NPJ4BV5YBzDqBuTMECbHhxosbiz9bpMpyn20944scFtP5ysPfXvgwdWKiJQ3u RooeNCNjGY/8VAyXXOdmAeCCAqlCa4Qj3F2NSTC7JwWNyE5bhtwzSuA1geCMgKbq8FVa YqOjYNRWqJ6Ug6a8v3JRWI86TvdJ4kK4qEovzZwW8f3iSZk4YRcOyFuzXVRYqF9MFn8c l1Ppmn1KYiXn7/2B3vK7ZN4GfWKAziIvEwTnETf3ibcVijNf+Z6p4bozudCfMKs3gE+g epEr0I/8eJphKsgmR8UO/f7y8vqmGLpCX6kQSghHihxmouAjkHfByGmyzJBph0jEJCLn JIBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:to:from:subject; bh=a9ne1RmzBRQtPLM8LTd3+3V6t38xp3vBCMyh31AgrTc=; b=TfE/pnByzHcCSAlYoAUxFjRhyLeiI2DTwC7BTcOdI03wrq/pQIKIUFsYQs4m+oWcDo t0CowbSwYLtuKRP3h11Pjs5RXUdGNFlks8841nrjzDAaiEoO+p4hBxKm/v7KfiSwHHPJ /0qI08d52j/qIMsCxFO92pJT38KBxDhAeGeFSlpevTPOhlzRdAGxCYEHGkPbJ6k5qdZk 6RV28Bu58ebRHVhInd9wR6szh9EgIfKKOzXCpDg6P+DqnLLNWZcb3CxzLrGvUqqhRsBU XoNY80sMTgYyVlyyzQaO4qmITVe7Gsi8VbbFtVoSw0MRxRf+kSBPHtoryLmQEBatBCDg RMsg== X-Gm-Message-State: APjAAAXg3i2KdEf4Gbp5XsX+ynvaGhI4Dmue76zMDhYQ25QS/Oq6L6RG 4yVQz8aSRc48dRhTXRsSOgfyXt00Mbc= X-Google-Smtp-Source: APXvYqxWOnp03ihUxbhEzyJbebGUE++TI0HLCuBltNQe/uhb2rVOsqTJZc79zysW/HabOdlmhiSxoA== X-Received: by 2002:a0c:9956:: with SMTP id i22mr24534247qvd.215.1574056244211; Sun, 17 Nov 2019 21:50:44 -0800 (PST) Received: from x200 ([206.55.91.146]) by smtp.gmail.com with ESMTPSA id j71sm8126440qke.90.2019.11.17.21.50.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Nov 2019 21:50:43 -0800 (PST) Date: Mon, 18 Nov 2019 14:50:42 +0900 Message-Id: <87pnhpu40d.fsf@gmail.com> To: control@debbugs.gnu.org From: Maxim Cournoyer Subject: control message for bug #38015 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 38015 quit From unknown Fri Jun 20 07:13:44 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 16 Dec 2019 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator