diff options
author | Sean Allred <code@seanallred.com> | 2014-12-15 16:33:29 -0500 |
---|---|---|
committer | Sean Allred <code@seanallred.com> | 2014-12-15 16:33:29 -0500 |
commit | 3e332ab028d1b15b1a255411206368e53b372ff9 (patch) | |
tree | 67d12328b8f93d1147872f89af9645979d4ee425 /sx.el | |
parent | 203402f10a7bce27b30d19aa71b96dad9a0e6b3c (diff) | |
parent | 0a2f984d0771b9a921696af1fe3bad10cdbb7b54 (diff) |
Merge pull request #158 from vermiculus/fix-some-warnings
Fix some warnings
Diffstat (limited to 'sx.el')
-rw-r--r-- | sx.el | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -104,6 +104,11 @@ is intentionally skipped." (setq tail (cdr tail))) (setcdr tail (cons x (cdr tail))))) +(defun sx-user-error (format-string &rest args) + "Like `user-error', but prepend FORMAT-STRING with \"[sx]\". +See `format'." + (signal 'user-error (list (apply #'format (concat "[sx] " format) args)))) + (defun sx-message (format-string &rest args) "Display FORMAT-STRING as a message with ARGS. See `format'." |