aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sx-auth.el2
-rw-r--r--sx-lto.el4
-rw-r--r--sx-network.el2
-rw-r--r--test/tests.el30
4 files changed, 19 insertions, 19 deletions
diff --git a/sx-auth.el b/sx-auth.el
index 59be452..b23b448 100644
--- a/sx-auth.el
+++ b/sx-auth.el
@@ -68,7 +68,7 @@ questions)."
(sx-cache-set "auth.el" `((access-token . ,sx-auth-access-token)))))
(provide 'sx-auth)
-;;; stack-auth.el ends here
+;;; sx-auth.el ends here
;; Local Variables:
;; indent-tabs-mode: nil
diff --git a/sx-lto.el b/sx-lto.el
index 6bdd5d0..ad58570 100644
--- a/sx-lto.el
+++ b/sx-lto.el
@@ -66,14 +66,14 @@ by the API and read by `json-read'."
'((((background light)) :background "Grey90")
(((background dark)) :background "Grey10"))
"Face used on the body content of questions and answers."
- :group 'stack-mode-faces)
+ :group 'sx-faces)
;;; This is not used ATM since we got rid of HTML. But it can be used
;;; once we start extending markdown mode.
(defcustom sx-lto-bullet (if (char-displayable-p ?•) " •" " -")
"Bullet used on the display of lists."
:type 'string
- :group 'stack-mode)
+ :group 'sx)
(defun sx-lto--body (data)
"Get and cleanup `body_markdown' from DATA."
diff --git a/sx-network.el b/sx-network.el
index dcd2349..f756a26 100644
--- a/sx-network.el
+++ b/sx-network.el
@@ -29,7 +29,7 @@
(sx-request-make "sites"))
(provide 'sx-network)
-;;; stack-network.el ends here
+;;; sx-network.el ends here
;; Local Variables:
;; indent-tabs-mode: nil
diff --git a/test/tests.el b/test/tests.el
index 2864428..c7861d8 100644
--- a/test/tests.el
+++ b/test/tests.el
@@ -1,20 +1,20 @@
-(defun -stack--nuke ()
+(defun -sx--nuke ()
(interactive)
(mapatoms
(lambda (symbol)
- (if (string-prefix-p "stack-" (symbol-name symbol))
+ (if (string-prefix-p "sx-" (symbol-name symbol))
(unintern symbol)))))
;;; Tests
-(defvar stack-test-data-dir
+(defvar sx-test-data-dir
(expand-file-name
"data-samples/"
(or (file-name-directory load-file-name) "./"))
"")
-(defun stack-test-sample-data (method &optional directory)
+(defun sx-test-sample-data (method &optional directory)
(let ((file (concat (when directory (concat directory "/"))
- stack-test-data-dir
+ sx-test-data-dir
method ".el")))
(when (file-exists-p file)
(with-temp-buffer
@@ -27,14 +27,14 @@
sx-request-silent-p nil
user-emacs-directory "."
- stack-test-data-questions
- (stack-test-sample-data "questions")
- stack-test-data-sites
- (stack-test-sample-data "sites"))
+ sx-test-data-questions
+ (sx-test-sample-data "questions")
+ sx-test-data-sites
+ (sx-test-sample-data "sites"))
(setq package-user-dir
(expand-file-name (format "../../.cask/%s/elpa" emacs-version)
- stack-test-data-dir))
+ sx-test-data-dir))
(package-initialize)
(require 'cl-lib)
(require 'sx)
@@ -55,7 +55,7 @@
(sx-request-make "questions" '(()))))
(ert-deftest test-tree-filter ()
- "`stack-core-filter-data'"
+ "`sx-core-filter-data'"
;; flat
(should
(equal
@@ -117,7 +117,7 @@
(ert-deftest question-list-display ()
(cl-letf (((symbol-function #'sx-request-make)
- (lambda (&rest _) stack-test-data-questions)))
+ (lambda (&rest _) sx-test-data-questions)))
(list-questions nil)
(switch-to-buffer "*question-list*")
(goto-char (point-min))
@@ -127,9 +127,9 @@
(sx-question-list-next 5)
(line-should-match
"^\\s-+0\\s-+1\\s-+Babel doesn't wrap results in verbatim [ 0-9]+[ydhms] ago\\s-+\\[org-mode\\]")
- ;; ;; Use this when we have a real stack-question buffer.
- ;; (call-interactively 'stack-question-list-display-question)
- ;; (should (equal (buffer-name) "*stack-question*"))
+ ;; ;; Use this when we have a real sx-question buffer.
+ ;; (call-interactively 'sx-question-list-display-question)
+ ;; (should (equal (buffer-name) "*sx-question*"))
(switch-to-buffer "*question-list*")
(sx-question-list-previous 4)
(line-should-match