diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2014-12-15 18:27:33 -0200 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2014-12-15 18:27:33 -0200 |
commit | 6956c17e1e7ef2899026ad365a0acdd4ce63cb80 (patch) | |
tree | 3f396981e2e5613c968ac3fee8d91ed2d762162b /sx.el | |
parent | ceaee4e85d44caad2db8adacdff2e2772bf254c0 (diff) |
user-error is "not known to be defined" in emacs 24.2
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'." |