aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2018-04-11 21:31:03 +0200
committerTeddy Wing2018-04-11 21:31:03 +0200
commit6131a68b27fae937f9d407e36e18bbbf9d8c11b1 (patch)
tree2f5c2a03270d79fe5d4420306c3bb7ca8ba3f49c
parentf62ee084e145c8d400e8213c6a84b3e672d22c5d (diff)
downloadw3m-session-backup-6131a68b27fae937f9d407e36e18bbbf9d8c11b1.tar.bz2
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".
-rw-r--r--w3m-session-backup.el4
1 files 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