{"action":"created","issue":{"url":"https://api.github.com/repos/victorhge/iedit/issues/80","repository_url":"https://api.github.com/repos/victorhge/iedit","labels_url":"https://api.github.com/repos/victorhge/iedit/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/victorhge/iedit/issues/80/comments","events_url":"https://api.github.com/repos/victorhge/iedit/issues/80/events","html_url":"https://github.com/victorhge/iedit/issues/80","id":297995719,"number":80,"title":"iedit fails in c++ code if GTAGS files are present","user":{"login":"Lecrapouille","id":17874458,"avatar_url":"https://avatars2.githubusercontent.com/u/17874458?v=4","gravatar_id":"","url":"https://api.github.com/users/Lecrapouille","html_url":"https://github.com/Lecrapouille","followers_url":"https://api.github.com/users/Lecrapouille/followers","following_url":"https://api.github.com/users/Lecrapouille/following{/other_user}","gists_url":"https://api.github.com/users/Lecrapouille/gists{/gist_id}","starred_url":"https://api.github.com/users/Lecrapouille/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lecrapouille/subscriptions","organizations_url":"https://api.github.com/users/Lecrapouille/orgs","repos_url":"https://api.github.com/users/Lecrapouille/repos","events_url":"https://api.github.com/users/Lecrapouille/events{/privacy}","received_events_url":"https://api.github.com/users/Lecrapouille/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-02-17T10:42:50Z","updated_at":"2018-03-15T03:00:31Z","closed_at":"2018-03-15T03:00:31Z","author_association":"NONE","body":"Hi !\r\n\r\nIn a c++ code (not tested with other language), iedit-mode fails replacing code if GTAGS, GPATH, GRTAGS are present (in my case they are located at the root of my c++ project). Some words are partially replaced (while well highlighted), others correctly replaced. When I removed these gtags files, iedit works very well.\r\n\r\n~~Note: you have to restart emacs to get the issue after creating/removing gtags files.~~\r\n\r\nSome info if needed: \r\n* my configuration is https://github.com/Lecrapouille/DotEmacs\r\n* I binded iedit-mode with the F11 key\r\n* I binded gtags with the F1 key. This will create gtags files\r\n* For having gtags you have to do something like `sudo apt-get install global`"},"comment":{"url":"https://api.github.com/repos/victorhge/iedit/issues/comments/373245122","html_url":"https://github.com/victorhge/iedit/issues/80#issuecomment-373245122","issue_url":"https://api.github.com/repos/victorhge/iedit/issues/80","id":373245122,"user":{"login":"victorhge","id":367473,"avatar_url":"https://avatars0.githubusercontent.com/u/367473?v=4","gravatar_id":"","url":"https://api.github.com/users/victorhge","html_url":"https://github.com/victorhge","followers_url":"https://api.github.com/users/victorhge/followers","following_url":"https://api.github.com/users/victorhge/following{/other_user}","gists_url":"https://api.github.com/users/victorhge/gists{/gist_id}","starred_url":"https://api.github.com/users/victorhge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorhge/subscriptions","organizations_url":"https://api.github.com/users/victorhge/orgs","repos_url":"https://api.github.com/users/victorhge/repos","events_url":"https://api.github.com/users/victorhge/events{/privacy}","received_events_url":"https://api.github.com/users/victorhge/received_events","type":"User","site_admin":false},"created_at":"2018-03-15T03:00:31Z","updated_at":"2018-03-15T03:00:31Z","author_association":"OWNER","body":"Two factors：\r\n1. A commit of Emacs， modification-hooks might not be run in some cases: \r\nhttp://git.savannah.gnu.org/cgit/emacs.git/commit/src?id=564d811725596f15ecf543777e11504b47d2af86\r\n\r\n2. In ggtags, an overlay is deleted in the overlay's modification-hooks:\r\nhttps://github.com/leoliu/ggtags/blob/eec392d2d639030c5a51bce8431f2815ad8e7bc5/ggtags.el#L2306\r\n\r\nDeleted overlay ceases to be attached to the buffer.  If the buffer of the first overlay in the saved array doesn't  match the current buffer, then all the modification hooks will not be run in this buffer.\r\n\r\niedit-mode depends on the overlay's modification hooks.  So you see iedit-mode does not work if the two factors play together. \r\n\r\nThe problem can be solved in Emacs or ggtags.  But I think it should be fixed in Emacs C code.  Before it is done,  the best thing you can do is to disable ggtags-highlight-tag mode.   \r\n"}}
{"actor":{"display_login":"victorhge"}}