From 6131a68b27fae937f9d407e36e18bbbf9d8c11b1 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Wed, 11 Apr 2018 21:31:03 +0200 Subject: Rename `filename` variable to `filename-function` The Emacs "Coding Conventions" documentation (https://www.gnu.org/software/emacs/manual/html_node/elisp/Coding-Conventions.html#Coding-Conventions) recommends that variables that store functions be named ending in "-function". --- w3m-session-backup.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/w3m-session-backup.el b/w3m-session-backup.el index 68a250e..8cb1258 100644 --- a/w3m-session-backup.el +++ b/w3m-session-backup.el @@ -8,7 +8,7 @@ :group 'w3m-session-backup :package-version '(w3m-session-backup . "0.0.1")) -(defcustom filename 'filename +(defcustom filename-function 'filename "Function that generates a filename for the session backup." :type 'function :group 'w3m-session-backup @@ -58,7 +58,7 @@ (with-temp-file (concat (file-name-as-directory save-directory) - (funcall filename)) + (funcall filename-function)) (insert (string-join (mapcar -- cgit v1.2.3