diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-02-26 13:55:48 -0300 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-02-26 13:55:48 -0300 |
commit | cd629005cc68f0eeefc42a92ea1e75658791439f (patch) | |
tree | cd4d0e5f0cebcbd8786b0370cbbc876d4b3fd0c6 /sx.el | |
parent | f46b4c3efddf15b76fcafdd0d35969dadc2881f4 (diff) | |
parent | 24090d48422233b31f9eef041814e99c47c2534d (diff) |
Merge branch 'master' into generate-header-line-from-keymap
Diffstat (limited to 'sx.el')
-rw-r--r-- | sx.el | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -189,6 +189,11 @@ If ALIST doesn't have a `site' property, one is created using the ;;; Utility Functions +(defun sx--split-string (string &optional separators) + "Split STRING into substrings bounded by matches for SEPARATORS." + (mapcar (lambda (s) (replace-regexp-in-string "\\` +\\| +\\'" "" s)) + (split-string string separators 'omit-nulls))) + (defun sx-completing-read (&rest args) "Like `completing-read', but possibly use ido. All ARGS are passed to `completing-read' or `ido-completing-read'." |