|
From: | GNU bug Tracking System |
Subject: | bug#34301: closed (Unable to make underscore part of a word everywhere) |
Date: | Mon, 31 Aug 2020 10:06:01 +0000 |
Your message dated Mon, 31 Aug 2020 10:05:42 +0000 with message-id <CADwFkm=o6_9aGaGwt35_FeAhGOj5J+y7c_n57Ajgg9d47Phnqg@mail.gmail.com> and subject line Re: bug#34301: Unable to make underscore part of a word everywhere has caused the debbugs.gnu.org bug report #34301, regarding Unable to make underscore part of a word everywhere to be marked as done. (If you believe you have received this mail in error, please contact help-debbugs@gnu.org.) -- 34301: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=34301 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems
--- Begin Message ---Subject: Unable to make underscore part of a word everywhere Date: Sun, 3 Feb 2019 21:09:48 +0300 By default the underscore "_" symbol is not being counted as part of a word, even though I have never met a language where it's a separate entity. This means e.g. that upon opening a file one is never being able to "search for word_wth_underscores under cursor", unless they modify current table. This problem haunts many people, e.g. this question has 5576 views for 3 years 11 months https://emacs.stackexchange.com/questions/9583/how-to-treat-underscore-as-part-of-the-word User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 Known workarounds: 1. Modify syntax table for every mode you happened to stumble upon. 2. Use superword-mode Why workarounds are bad:1. To make it work one has to search for syntax table name of the current mode, and then to modify config file accordingly, every time a new mode is being met. That's a lot of actions and research overall, a bloating config file; and also lots of work duplication by many Emacs users. 2. superword-mode doesn't do anything to syntax table, and in particular doesn't work with evil-mode.------It would be great if Emacs has added a function or what not to just keep underscore as part of a word for all syntax tables by default.
--- End Message ---
--- Begin Message ---Subject: Re: bug#34301: Unable to make underscore part of a word everywhere Date: Mon, 31 Aug 2020 10:05:42 +0000 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Noam Postavsky <npostavs@gmail.com> writes: > Lars Ingebrigtsen <larsi@gnus.org> writes: > >> Konstantin Kharlamov <hi-angel@yandex.ru> writes: >> >>> By default the underscore "_" symbol is not being counted as part of a >>> word, even though I have never met a language where it's a separate >>> entity. >> >> In natural languages it's usually not word-consistent. >> >>> This means e.g. that upon opening a file one is never being >>> able to "search for word_wth_underscores under cursor", unless they >>> modify current table. >> >> Any programming language mode sets _ to be part of words, surely? If >> not that's a bug in that mode? What modes do you see this in? > > Most languages give '_' symbol, not word, syntax. Looking at the linked > SE thread, this sounds more like a problem with evil though, apparently > it's difficult to search for a symbol? More information was requested, but none was given within 1 year, so I'm closing this bug. This seems to be either a bug in evil or some programming mode. If this is still an issue, please reply to this email (use "Reply to all" in your email client) and we can reopen the bug report. Best regards, Stefan Kangas
--- End Message ---
[Prev in Thread] | Current Thread | [Next in Thread] |