unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Suhail Singh <suhailsingh247@gmail.com>
To: Liliana Marie Prikler <liliana.prikler@gmail.com>
Cc: Simon Tournier <zimon.toutoune@gmail.com>,
	Mekeor Melire <mekeor@posteo.de>,
	cox.katherine.e+guix@gmail.com,
	Maxime Devos <maximedevos@telenet.be>,
	andrew@trop.in, 67292@debbugs.gnu.org
Subject: bug#67292: emacs / emacs-transient collisions and bundling
Date: Tue, 17 Dec 2024 15:10:19 -0500	[thread overview]
Message-ID: <875xni136c.fsf_-_@gmail.com> (raw)
In-Reply-To: <01f9481f9ab86a21bc85e82a6f2a7e3457d2709e.1733679675.git.liliana.prikler@gmail.com> (Liliana Marie Prikler's message of "Sun, 8 Dec 2024 18:30:54 +0100")

Liliana Marie Prikler <liliana.prikler@gmail.com> writes:

> * `guix shell emacs emacs-transient --with-input=emacs-minimal=emacs` will
>   load the native-compiled emacs

Hm there may be a bug somewhere (hopefully not in my testing).

I created a profile using:

#+begin_src sh
  ./pre-inst-env guix package --profile=${HOME}/.guix-extra-profiles/test-67292/test-67292 -i bash coreutils-minimal nss-certs emacs emacs-org emacs-magit emacs-transient --with-input=emacs-minimal=emacs
#+end_src

And then loaded it via:

#+begin_src sh
  guix shell --pure -CPWN -E '.*GTK.*|.*XDG.*|.*DISPLAY.*|TERM|INSIDE_EMACS' -p ${HOME}/.guix-extra-profiles/test-67292/test-67292
#+end_src

After invoking "emacs -nw -q" in the above profile, I evaluated the
below code:

#+begin_src emacs-lisp
  (eval-and-compile
      (require 'help-fns)
      (defmacro utils/report-compilation-status (fun &optional feature)
        "Report on the compilation status of function FUN.
    Optionally load FEATURE before reporting on compilation status."
        `(progn
           (eval-when-compile
             (when ',feature
               (require ',feature)))
           (let ((descstr (substring-no-properties
                           (with-output-to-string
                             (help-fns-function-description-header ',fun)))))
             (cons ',fun
                   (cond
                    ((string-search " native-compiled" descstr) 'native-compiled)
                    ;; ((string-search " autoloaded" descstr) descstr)
                    ((string-search " byte-compiled" descstr) 'byte-compiled)
                    (t descstr))))))

      (defun utils/report-compilation-status/apply (fun &optional feature)
        "Invoke `utils/report-compilation-status' with FUN and FEATURE."
        (eval `(utils/report-compilation-status ,fun ,feature))))
#+end_src

Then, evaluating the below:

#+begin_src emacs-lisp
  (utils/report-compilation-status/apply 'org-agenda 'org-agenda)
#+end_src

Results in '(org-agenda . byte-compiled).

Note, that doing the above without the submitted patch applied results
in '(org-agenda . native-compiled).

-- 
Suhail




  parent reply	other threads:[~2024-12-17 20:12 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-19 22:44 bug#67292: emacs / emacs-transient collisions and bundling Maxime Devos
2023-11-20 10:22 ` Simon Tournier
2023-11-20 12:39   ` Maxime Devos
2023-11-20 12:42     ` Maxime Devos
2023-11-20 13:46     ` Simon Tournier
2023-11-21 18:01       ` Maxime Devos
2023-11-22 20:53         ` Simon Tournier
2023-11-28  1:47           ` Maxime Devos
2023-11-28  9:45             ` Simon Tournier
2023-11-28 11:15             ` Mekeor Melire
2023-11-23 14:17     ` Mekeor Melire
2023-11-28  0:58       ` Maxime Devos
2023-11-28 11:12         ` Mekeor Melire
2024-12-08 17:30 ` bug#67292: [PATCH] gnu: emacs: Pin natively compiled packages Liliana Marie Prikler
2024-12-09  7:45   ` Andrew Tropin via Bug reports for GNU Guix
2024-12-17 20:10   ` Suhail Singh [this message]
2024-12-17 21:36     ` bug#67292: emacs / emacs-transient collisions and bundling Liliana Marie Prikler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=875xni136c.fsf_-_@gmail.com \
    --to=suhailsingh247@gmail.com \
    --cc=67292@debbugs.gnu.org \
    --cc=andrew@trop.in \
    --cc=cox.katherine.e+guix@gmail.com \
    --cc=liliana.prikler@gmail.com \
    --cc=maximedevos@telenet.be \
    --cc=mekeor@posteo.de \
    --cc=zimon.toutoune@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).