From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: [PATCH] emacs: Improve file names of generated graphs. Date: Fri, 16 Oct 2015 19:58:10 +0300 Message-ID: <87vba6ycm5.fsf_-_@gmail.com> References: <87a8rjkj8y.fsf@gmail.com> <8737xbw7nd.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34138) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zn8Kb-0000C1-2l for guix-devel@gnu.org; Fri, 16 Oct 2015 12:58:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zn8KY-0005YG-8A for guix-devel@gnu.org; Fri, 16 Oct 2015 12:58:11 -0400 In-Reply-To: <8737xbw7nd.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Fri, 16 Oct 2015 10:16:06 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s (2015-10-16 11:16 +0300) wrote: > Alex Kost skribis: > [...] >> +@item guix-dot-file-name-function >> +Function used to define a name of the generated graph file. Default >> +name is @file{/tmp/graph-XXXXXX.png}. > > Not related to this patch either, but we might consider changing the > template to /tmp/guix-el-graph-XXXX.png for clarity. Indeed! I don't like "el" part though, what about "guix-emacs-graph-" instead? (as in the attached patch) --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: attachment; filename=0001-emacs-Improve-file-names-of-generated-graphs.patch Content-Transfer-Encoding: quoted-printable >From 6dd1084f14723484028df86c04e7c997538fc951 Mon Sep 17 00:00:00 2001 From: Alex Kost Date: Fri, 16 Oct 2015 17:27:58 +0300 Subject: [PATCH] emacs: Improve file names of generated graphs. MIME-Version: 1.0 Content-Type: text/plain; charset=3DUTF-8 Content-Transfer-Encoding: 8bit Suggested by Ludovic Court=C3=A8s . * emacs/guix-external.el (guix-png-file-name): Change prefix of a file name to "guix-emacs-graph-" to avoid possible conflicts. --- emacs/guix-external.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emacs/guix-external.el b/emacs/guix-external.el index d233473..580676e 100644 --- a/emacs/guix-external.el +++ b/emacs/guix-external.el @@ -64,7 +64,7 @@ If ARGS is nil, use `guix-dot-default-arguments'." "Return '.png' file name in the `temporary-file-directory'." (concat (make-temp-name (concat (file-name-as-directory temporary-file-directory) - "graph-")) + "guix-emacs-graph-")) ".png")) =20 (provide 'guix-external) --=20 2.5.0 --=-=-=--