GNU bug report logs -
#22587
"guix edit" name may be confusing
Previous Next
Reported by: myglc2 <myglc2 <at> gmail.com>
Date: Sun, 7 Feb 2016 18:05:02 UTC
Severity: normal
Tags: wontfix
Done: ludo <at> gnu.org (Ludovic Courtès)
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
myglc2 (2016-02-07 21:04 +0300) wrote:
> From guix INFO:
>
> 6.2 Invoking ‘guix edit’
> [...]
> launches the program specified in the ‘VISUAL’ or in the ‘EDITOR’
> environment variable to edit the recipe of GCC 4.8.4 and that of Vim."
>
> TYPO:
>
> "edit" (last line above) should be replaced with "view", "inspect", or
> "examine".
Just to mention - I like "edit" name :-)
> RENAME:
>
> Calling these functions 'guix edit' and 'M-x guix-edit' implies that the
> user will be able to modify the recipe, but this is not actually the
> case. The functions should be given a more informative and accurate
> name, such as: 'guix view', 'guix inspect', or 'guix examine'.
Along with the package recipes that come with Guix, a user can also have
his/her own packages (specified using GUIX_PACKAGE_PATH env var), and
"guix edit my-super-package" opens a user's file with this package. It
is highly likely that this file is editable, so "guix edit" is a perfect
name in this case I think. IMO it's a user responsibility to understand
what files can be edited and what cannot.
But I agree that this may be confusing, so maybe we should clarify the
manual to explain in (info "(guix) Invoking guix edit") that store files
must not be edited.
> MODE CHANGE:
>
> In emacs, read-only .scm files should be opened in view-mode.
I don't agree. For example, when you open "/etc/hosts" (or whatever)
file in Emacs, you get a message:
Note: file is write protected
which indicates that it is opened read-only, but view-mode is not used
by default. You can enable it manually if you wish. The same thing
happens with package files.
--
Alex
This bug report was last modified 8 years and 359 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.