Simple image host.
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

mark-pop.feature 2.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. Feature: Popping cursors off of the mark stack
  2. Scenario: Single pop
  3. Given I turn off transient-mark-mode
  4. And I insert:
  5. """
  6. hello
  7. there
  8. """
  9. And I go to the front of the word "hello"
  10. And I set the mark
  11. And I go to the front of the word "there"
  12. And I press "M-x mc/mark-pop"
  13. Then I should have 2 cursors
  14. Scenario: Multiple pops
  15. Given I turn off transient-mark-mode
  16. And I insert:
  17. """
  18. hello
  19. there, my friend
  20. """
  21. And I go to the front of the word "hello"
  22. And I set the mark
  23. And I go to the front of the word "my"
  24. And I set the mark
  25. And I go to the front of the word "friend"
  26. And I press "M-x mc/mark-pop"
  27. And I press "M-x mc/mark-pop"
  28. Then I should have 3 cursors
  29. Scenario: Discard identical mark and point
  30. Given I turn off transient-mark-mode
  31. And I insert:
  32. """
  33. hello
  34. there, my friend
  35. """
  36. And I go to the front of the word "hello"
  37. And I set the mark
  38. And I go to the front of the word "my"
  39. And I set the mark
  40. And I go to the front of the word "friend"
  41. And I set the mark
  42. And I press "M-x mc/mark-pop"
  43. And I press "M-x mc/mark-pop"
  44. Then I should have 3 cursors
  45. Scenario: Changing the text
  46. Given I turn off transient-mark-mode
  47. And I insert:
  48. """
  49. hello
  50. there, my friend
  51. """
  52. And I go to the front of the word "hello"
  53. And I set the mark
  54. And I go to the front of the word "my"
  55. And I set the mark
  56. And I go to the front of the word "friend"
  57. And I press "M-x mc/mark-pop"
  58. And I press "M-x mc/mark-pop"
  59. And I type "!"
  60. Then I should see:
  61. """
  62. !hello
  63. there, !my !friend
  64. """
  65. Scenario: With transient-mark-mode
  66. And I insert:
  67. """
  68. hello
  69. there, my friend
  70. """
  71. And I go to the front of the word "hello"
  72. And I press "C-@ C-@"
  73. And I go to the front of the word "my"
  74. And I press "C-@ C-@"
  75. And I go to the front of the word "friend"
  76. And I press "M-x mc/mark-pop"
  77. And I press "M-x mc/mark-pop"
  78. And I type "!"
  79. Then I should see:
  80. """
  81. !hello
  82. there, !my !friend
  83. """