123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137 |
- Feature: Mark things
-
- Scenario: Mark all symbols like this with select
- Given I turn on emacs-lisp-mode
- And I turn on delete-selection-mode
- And I insert:
- """
- (defun abc (ghi) (message ghi))
- (defun def (ghi) (message some-other-ghi))
- """
- When I select "ghi"
- And I mark all symbols like this
- And I type "hmm"
- Then I should see:
- """
- (defun abc (hmm) (message hmm))
- (defun def (hmm) (message some-other-ghi))
- """
-
- Scenario: Mark all words like this with select
- Given I turn on emacs-lisp-mode
- And I turn on delete-selection-mode
- And I insert:
- """
- (defun abc (ghi) (message ghi))
- (defun def (ghi) (message some-other-ghi))
- """
- When I select "ghi"
- And I mark all words like this
- And I type "hmm"
- Then I should see:
- """
- (defun abc (hmm) (message hmm))
- (defun def (hmm) (message some-other-hmm))
- """
-
- Scenario: Mark all symbols like this in defun with select
- Given I turn on emacs-lisp-mode
- And I turn on delete-selection-mode
- And I insert:
- """
- (defun abc (ghi) (message ghi))
- (defun def (ghi) (message some-other-ghi))
- """
- When I select "ghi"
- And I mark all symbols like this in defun
- And I type "hmm"
- Then I should see:
- """
- (defun abc (hmm) (message hmm))
- (defun def (ghi) (message some-other-ghi))
- """
-
- Scenario: Mark all words like this in defun with select
- Given I turn on emacs-lisp-mode
- And I turn on delete-selection-mode
- And I insert:
- """
- (defun abc (ghi) (message ghi))
- (defun def (ghi) (message some-other-ghi))
- """
- When I select "ghi"
- And I mark all words like this in defun
- And I type "hmm"
- Then I should see:
- """
- (defun abc (hmm) (message hmm))
- (defun def (ghi) (message some-other-ghi))
- """
-
- Scenario: Mark all symbols like this with no select
- Given I turn on emacs-lisp-mode
- And I turn on delete-selection-mode
- And I insert:
- """
- (defun abc (ghi) (message ghi))
- (defun def (ghi) (message some-other-ghi))
- """
- When I go to word "ghi"
- And I mark all symbols like this
- And I type "hmm"
- Then I should see:
- """
- (defun abc (hmm) (message hmm))
- (defun def (hmm) (message some-other-ghi))
- """
-
- Scenario: Mark all words like this with no select
- Given I turn on emacs-lisp-mode
- And I turn on delete-selection-mode
- And I insert:
- """
- (defun abc (ghi) (message ghi))
- (defun def (ghi) (message some-other-ghi))
- """
- When I go to word "ghi"
- And I mark all words like this
- And I type "hmm"
- Then I should see:
- """
- (defun abc (hmm) (message hmm))
- (defun def (hmm) (message some-other-hmm))
- """
-
- Scenario: Mark all symbols like this in defun with no select
- Given I turn on emacs-lisp-mode
- And I turn on delete-selection-mode
- And I insert:
- """
- (defun abc (ghi) (message ghi))
- (defun def (ghi) (message some-other-ghi))
- """
- When I go to word "ghi"
- And I mark all symbols like this in defun
- And I type "hmm"
- Then I should see:
- """
- (defun abc (hmm) (message hmm))
- (defun def (ghi) (message some-other-ghi))
- """
-
- Scenario: Mark all words like this in defun with no select
- Given I turn on emacs-lisp-mode
- And I turn on delete-selection-mode
- And I insert:
- """
- (defun abc (ghi) (message ghi))
- (defun def (ghi) (message some-other-ghi))
- """
- When I go to word "ghi"
- And I mark all words like this in defun
- And I type "hmm"
- Then I should see:
- """
- (defun abc (hmm) (message hmm))
- (defun def (ghi) (message some-other-ghi))
- """
|