nixpkgs/pkgs/applications
Lin Jian 1506ab49e3 emacs: correct the order of profiles and their sub dirs in load-path
This patch does two things:
1. making user profiles preferred over system profiles
2. putting sub dirs of one profile to the right place
  - before this patch, they are appended to the end of load-path
  - after this patch, they are inserted right after the profile

Example value of load-path before this patch:

  /run/current-system/sw/share/emacs/site-lisp/
  /etc/profiles/per-user/user/share/emacs/site-lisp/
  /nix/store/hash1-emacs-packages-deps/share/emacs/site-lisp
  /nix/store/hash1-emacs-packages-deps/share/emacs/site-lisp/elpa
  /nix/store/hash1-emacs-packages-deps/share/emacs/site-lisp/elpa/wgrep-20230203.1214
  /nix/store/hash2-emacs-29.1-rc1/share/emacs/29.1/site-lisp
  /nix/store/hash2-emacs-29.1-rc1/share/emacs/site-lisp
  /nix/store/hash2-emacs-29.1-rc1/share/emacs/29.1/lisp
  /nix/store/hash2-emacs-29.1-rc1/share/emacs/29.1/lisp/vc
  ...
  /etc/profiles/per-user/user/share/emacs/site-lisp/elpa
  /etc/profiles/per-user/user/share/emacs/site-lisp/elpa/jinx-20230730.1200
  /run/current-system/sw/share/emacs/site-lisp/elpa
  /run/current-system/sw/share/emacs/site-lisp/elpa/repology-1.2.3

after this patch:

  /etc/profiles/per-user/user/share/emacs/site-lisp
  /etc/profiles/per-user/user/share/emacs/site-lisp/elpa
  /etc/profiles/per-user/user/share/emacs/site-lisp/elpa/jinx-20230730.1200
  /run/current-system/sw/share/emacs/site-lisp
  /run/current-system/sw/share/emacs/site-lisp/elpa
  /run/current-system/sw/share/emacs/site-lisp/elpa/repology-1.2.3
  /nix/store/hash1-emacs-packages-deps/share/emacs/site-lisp
  /nix/store/hash1-emacs-packages-deps/share/emacs/site-lisp/elpa
  /nix/store/hash1-emacs-packages-deps/share/emacs/site-lisp/elpa/wgrep-20230203.1214
  /nix/store/hash2-emacs-29.1-rc1/share/emacs/29.1/site-lisp
  /nix/store/hash2-emacs-29.1-rc1/share/emacs/site-lisp
  /nix/store/hash2-emacs-29.1-rc1/share/emacs/29.1/lisp
  /nix/store/hash2-emacs-29.1-rc1/share/emacs/29.1/lisp/vc
  ...
2023-08-28 15:46:04 +00:00
..
accessibility squeekboard: 1.21 -> 1.22 2023-08-13 19:53:52 +10:00
audio Merge pull request #218394 from xyven1/master 2023-08-28 15:24:03 +02:00
backup areca: remove after being marked broken for over 18 months 2023-08-19 21:26:06 +00:00
blockchains lightwalletd: 0.4.15 -> 0.4.16 2023-08-24 17:59:32 +00:00
display-managers regreet: add support for svg icons 2023-08-15 22:01:51 +02:00
editors emacs: correct the order of profiles and their sub dirs in load-path 2023-08-28 15:46:04 +00:00
emulators Merge pull request #251357 from r-ryantm/auto-update/wine64Packages.unstable 2023-08-27 23:37:55 +00:00
file-managers felix-fm: 2.8.0 -> 2.8.1 2023-08-25 10:03:42 -04:00
finance odoo15: remove updatescript 2023-08-28 00:12:36 +02:00
gis Merge master into staging-next 2023-08-26 12:01:05 +00:00
graphics pdfcpu: 0.4.1 -> 0.5.0 2023-08-28 12:32:41 +02:00
kde kde/gear: 23.04.3 -> 23.08.0 2023-08-24 18:37:08 +03:00
logging treewide: reduce packages I maintainer 2023-07-23 19:30:22 +02:00
maui
misc Merge pull request #250778 from NixOS/staging-next 2023-08-27 20:22:51 +03:00
networking betterbird: 102.12.0-bb37 → 102.14.0-bb39 2023-08-28 15:28:57 +02:00
office Merge branch 'master' into staging-next 2023-08-26 19:00:58 -07:00
plasma-mobile
printing/pappl
qubes/qubes-core-vchan-xen
radio Merge master into staging-next 2023-08-26 06:00:59 +00:00
science Merge pull request #251193 from lopsided98/pymavlink-update 2023-08-28 14:29:03 +09:00
search
system monitor: 0.16.1 -> 0.17.0 2023-08-14 11:38:04 +08:00
terminal-emulators kitty: no need to disable strictoverflow hardening 2023-08-26 14:08:52 -07:00
version-management gitRepo: 2.35 -> 2.36 2023-08-27 13:50:26 +00:00
video Merge pull request #251613 from pschmitt/obs-freeze-filter 2023-08-28 16:26:36 +02:00
virtualization Merge pull request #251606 from marsam/update-docker-slim 2023-08-27 00:49:57 +02:00
window-managers Merge pull request #247909 from Sigmanificient/ragnarwm 2023-08-27 13:41:04 -07:00