summary refs log tree commit diff
path: root/emacs/guix-history.el
diff options
context:
space:
mode:
authorAlex Kost <alezost@gmail.com>2016-02-12 12:32:34 +0300
committerAlex Kost <alezost@gmail.com>2016-02-22 22:36:35 +0300
commit260795b7369c51d99c7ab4f3ef24f195938beabf (patch)
treebbbbfb3d622f044fb3c37284d0581e086e08935b /emacs/guix-history.el
parent0338132e655553358035f61df7e96f5cfac5378a (diff)
downloadguix-260795b7369c51d99c7ab4f3ef24f195938beabf.tar.gz
emacs: Do not allow a user to modify system profiles.
Fixes <http://bugs.gnu.org/22607>.
Reported by myglc2 <myglc2@gmail.com>.

Remove possibilities to install/delete packages to/from a system profile
both for "Package List" and "Package Info" buffers.

* emacs/guix-profiles.el (guix-system-profile-regexp): New variable.
(guix-system-profile?): New procedure.
* emacs/guix-ui-package.el (guix-package-info-insert-output): Do not
display "Install"/"Delete" button for a system profile.
(guix-package-assert-non-system-profile): New procedure.
(guix-package-execute-actions): Use it.
Diffstat (limited to 'emacs/guix-history.el')
0 files changed, 0 insertions, 0 deletions