Yanking with i" inside objc-mode yanks incorrect text
- Dominant language
- Emacs Lisp
- Stars
- 3.9k
- Forks
- 307
- PR merge metrics
- No merged PRs in 30d
Description
Originally reported by: **James Nguyen (Bitbucket: [jojojames](https://bitbucket.org/jojojames), GitHub: [jojojames](https://github.com/jojojames))**
----------------------------------------
Emacs version - 24.5
Evil version ;; Version: 1.2.12
Operating System - OSX Yosemite
Bug can be reproduced in both X and terminal mode
http://pastebin.com/raw/qVtQdXLA
1. ^ Save above raw text in any file with extension .m to trigger objc-mode.
2. $ make terminal
3. Navigate inside first @"text" eg.
#define MAGIC_MARKMAN_LANGUMAGES @"zzdfsdfs" <-----
4. yi" in normal mode
5. :reg and check 0 register. The string 'YES' is in the 0 register.
Comments:
1. If I add logging messages to log the beg/end points, the same beg end points are always used regardless of where (any of the @"text") I do yi".
2. If I copy the contents of the raw paste file and paste it into an elisp scratch buffer, yi" works as expected.
----------------------------------------
- Bitbucket: https://bitbucket.org/lyro/evil/issue/700
Contributor guide
Research direction
Reproduce the issue from the linked raw paste in a .m file, using `make terminal` and `yi"` inside the first `@"text"`. Compare the register 0 contents and the logged begin/end points with the same text in an Elisp scratch buffer; done means the selected Objective-C string is yanked instead of `YES`.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- emacs, emacs-lisp
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100