"»\t\n"
"\n"
" x"))
- (execute-kbd-macro (kbd "<up> <home>"))
+ (execute-kbd-macro (kbd "<up> C-a"))
(should (equal (point) 1))
(should (whitespace-tests--faceup " \n"
"\t\n"
"» x"))
;; Inserting content on line 2 should un-highlight lines 2 and 3.
- (execute-kbd-macro (kbd "<up> <up> <end>"))
+ (execute-kbd-macro (kbd "<up> <up> C-e"))
(should (equal (line-number-at-pos) 2))
(should (equal (- (point) (line-beginning-position)) 1))
(execute-kbd-macro (kbd "y <down> <down>"))
;; Removing the content on line 2 should re-highlight lines 2 and
;; 3.
- (execute-kbd-macro (kbd "<up> <up> <end>"))
+ (execute-kbd-macro (kbd "<up> <up> C-e"))
(should (equal (line-number-at-pos) 2))
(should (equal (- (point) (line-beginning-position)) 2))
(execute-kbd-macro (kbd "DEL <down> <down>"))
" »"))
;; Inserting content on line 3 should un-highlight lines 2 and 3.
- (execute-kbd-macro (kbd "<down> <down> <home>"))
+ (execute-kbd-macro (kbd "<down> <down> C-a"))
(should (equal (line-number-at-pos) 3))
(should (equal (- (point) (line-beginning-position)) 0))
(execute-kbd-macro (kbd "y <up> <up>"))
;; Removing the content on line 3 should re-highlight lines 2 and
;; 3.
- (execute-kbd-macro (kbd "<down> <down> <home>"))
+ (execute-kbd-macro (kbd "<down> <down> C-a"))
(should (equal (line-number-at-pos) 3))
(should (equal (- (point) (line-beginning-position)) 0))
(execute-kbd-macro (kbd "<deletechar> <up> <up>"))