aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2019-06-02 15:24:18 +0200
committerTeddy Wing2019-06-02 15:24:18 +0200
commitb2c27eab282c28e286d6643a94922eaec7350d3e (patch)
tree608cc89aa46ebd6dc8a5870be528b2d6b22b804e
parentc616a468f920539a820c217ff3e98f49499a619d (diff)
downloadw3m-session-backup-b2c27eab282c28e286d6643a94922eaec7350d3e.tar.bz2
Fix void `string-join` function error
Upon running `'w3m-session-backup`, this error message would be printed: Symbol's function definition is void: string-join I learned that Emacs doesn't load all functions at load. In particular for this case, the `string-join` function was in a file not loaded by default. Thanks to the following resources: https://emacs.stackexchange.com/questions/22142/cannot-open-load-file-subr-x https://github.com/ralesi/ranger.el/blob/9db73d61/ranger.el#L84 I discovered I could require the `subr-x.el` file that contains the `string-join` function needed. Decided to keep using `string-join` instead of `(mapconcat 'identity ...` as it reads better in my mind.
-rw-r--r--w3m-session-backup.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/w3m-session-backup.el b/w3m-session-backup.el
index 8301625..fc9e8af 100644
--- a/w3m-session-backup.el
+++ b/w3m-session-backup.el
@@ -32,6 +32,8 @@
;;; Code:
+(require 'subr-x)
+
(defgroup w3m-session-backup nil
"w3m-session-backup customisations.")