From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: bug#22587: =?UTF-8?Q?=E2=80=98guix_?= =?UTF-8?Q?edit=E2=80=99?= & =?UTF-8?Q?=E2=80=98M-x?= guix-edit' typo, rename, & mode change Date: Mon, 08 Feb 2016 11:34:47 +0300 Message-ID: <87oabrr460.fsf@gmail.com> References: <8737t4jt1j.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59498) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aShHn-00021b-LS for bug-guix@gnu.org; Mon, 08 Feb 2016 03:35:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aShHi-0004OB-Lt for bug-guix@gnu.org; Mon, 08 Feb 2016 03:35:07 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:57583) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aShHi-0004Nv-IA for bug-guix@gnu.org; Mon, 08 Feb 2016 03:35:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aShHi-0001Co-6f for bug-guix@gnu.org; Mon, 08 Feb 2016 03:35:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <8737t4jt1j.fsf@gmail.com> (myglc2@gmail.com's message of "Sun, 07 Feb 2016 13:04:40 -0500") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: myglc2 Cc: 22587@debbugs.gnu.org myglc2 (2016-02-07 21:04 +0300) wrote: > From guix INFO: > > 6.2 Invoking =E2=80=98guix edit=E2=80=99 > [...] > launches the program specified in the =E2=80=98VISUAL=E2=80=99 or in the = =E2=80=98EDITOR=E2=80=99 > 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. --=20 Alex