all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Richard Kim <emacs18@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: Adding the `prescient` packages to NonGNU ELPA?
Date: Fri, 09 Dec 2022 20:10:57 -0800	[thread overview]
Message-ID: <87fsdngapa.fsf@gmail.com> (raw)
In-Reply-To: jwva63w8w2h.fsf-monnier+emacs@gnu.org

Stefan Monnier <monnier@iro.umontreal.ca> writes:

> Ah, so `straight` relies on linking/copying the files.
> Do things like `C-h f` still jump to the actual VCS-controlled source?
>
> How does it make sure the copies are updated/sync'd when you edit the
> VCS-controlled sources?

As far as I know straight does not do any copying at least not *.el
files. It creates symlinks to *.el and other files so that `C-h f' jumps
to VCS-controlled source. Following is how straight installs use-package
to a directory which is added to load-path and Info-directory-list. The
"install" directories are distinct from git repos. It shows that all
*.el are symlinks to the git repo. All files that are not symlinks are
generated files.


$ file * | head -5
dir:                      data
use-package-autoloads.el: Lisp/Scheme program, ASCII text
use-package-bind-key.el:  symbolic link to /home/kimr/.emacs.d/sm-ms/.local/straight/repos/use-package/use-package-bind-key.el
use-package-bind-key.elc: Emacs/XEmacs v28 byte-compiled Lisp data
use-package-core.el:      symbolic link to /home/kimr/.emacs.d/sm-ms/.local/straight/repos/use-package/use-package-core.el


Another example is magit shown below. Note that *.el files are located
in "lisp" sub-directory of the git repo. If I understood package-vc
correctly, it requires :lisp-dir to be set correctly for packages such
as magit which house lisp files in sub-directories. straight.el places
all *.el symlinks in the top level directory where packages are
installed.


$ file * | head -7
AUTHORS.md:                symbolic link to /home/kimr/.emacs.d/sm-ms/.local/straight/repos/magit/docs/AUTHORS.md
dir:                       data
git-rebase.el:             symbolic link to /home/kimr/.emacs.d/sm-ms/.local/straight/repos/magit/lisp/git-rebase.el
git-rebase.elc:            Emacs/XEmacs v28 byte-compiled Lisp data
LICENSE:                   symbolic link to /home/kimr/.emacs.d/sm-ms/.local/straight/repos/magit/LICENSE
magit-apply.el:            symbolic link to /home/kimr/.emacs.d/sm-ms/.local/straight/repos/magit/lisp/magit-apply.el
magit-apply.elc:           Emacs/XEmacs v28 byte-compiled Lisp data


https://github.com:emacs18/spacemacs is my fork of spacemacs. The branch
named sm-straight modifies spacemacs to use straight.el rather than
package.el. I've been using this for quite some time.

I'm curious whether I can share all my git clones of emacs packages for
both straight.el and package-vc.  I'll probably git this a shot soon.

Also a while ago I converted two more emacs setups to use straight.el
rather than package.el although I have not used either of these in a
while.

https://github.com/emacs18/purcell.git is a fork of
https://github.com/purcell/emacs.d. Branch named 'straight' uses
straight.el instead of package.el.

https://github.com/emacs18/scimax.git is a fork of
https://github.com/jkitchin/scimax.  Branch named 'straight' uses
straight.el instead of package.el





  parent reply	other threads:[~2022-12-10  4:10 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-20  3:27 Adding the `prescient` packages to NonGNU ELPA? Okamsn
2022-11-20  9:24 ` Philip Kaludercic
2022-11-20 11:23   ` Stefan Kangas
2022-11-20 15:19     ` Stefan Monnier
2022-11-20 15:41       ` Philip Kaludercic
2022-11-21 21:17         ` Richard Stallman
2022-11-22 13:53           ` Akib Azmain Turja
2022-11-23 23:12             ` okamsn
2022-11-26  0:50               ` Richard Stallman
2022-11-20 17:10   ` Visuwesh
2022-11-20 18:39     ` Stefan Monnier
2022-12-16  9:41     ` North Year
2022-12-16 19:25       ` Philip Kaludercic
2022-12-17  3:28         ` Stefan Monnier
2022-12-17  9:17           ` Philip Kaludercic
2022-12-17 15:52             ` Stefan Monnier
2022-12-17 16:07               ` Philip Kaludercic
2022-12-17 16:24                 ` Philip Kaludercic
2022-12-17 18:01                   ` Okamsn
2022-12-17 18:08                     ` Philip Kaludercic
2022-12-17 18:39                     ` Stefan Monnier
2022-12-20  1:32                       ` Okamsn
2022-12-20  3:10                         ` Stefan Monnier
2022-11-20 17:42   ` Okamsn
2022-12-05  0:27     ` Okamsn
2022-12-05 15:21       ` Stefan Monnier
2022-12-09  3:58         ` Okamsn
2022-12-09 15:08           ` Stefan Monnier
2022-12-09 15:27             ` Philip Kaludercic
2022-12-10  4:10             ` Richard Kim [this message]
2022-12-10 15:12               ` Stefan Monnier
2022-12-10 16:38                 ` Richard Kim
2022-12-10 17:44                   ` Stefan Monnier
2022-12-05 17:21       ` Philip Kaludercic
2022-12-16  2:04         ` Okamsn
2022-12-16 19:26           ` Philip Kaludercic
2022-11-22 15:41   ` Jonas Bernoulli
2022-11-22 21:09     ` Stefan Monnier
2022-11-23  9:56       ` Jonas Bernoulli
2022-11-23 12:33         ` Stefan Monnier

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

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

  git send-email \
    --in-reply-to=87fsdngapa.fsf@gmail.com \
    --to=emacs18@gmail.com \
    --cc=emacs-devel@gnu.org \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.