all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#34301: Unable to make underscore part of a word everywhere
@ 2019-02-03 18:09 Konstantin Kharlamov
  2019-07-09 17:13 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 4+ messages in thread
From: Konstantin Kharlamov @ 2019-02-03 18:09 UTC (permalink / raw)
  To: 34301

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

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.





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-08-31 10:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-03 18:09 bug#34301: Unable to make underscore part of a word everywhere Konstantin Kharlamov
2019-07-09 17:13 ` Lars Ingebrigtsen
2019-07-09 18:07   ` Noam Postavsky
2020-08-31 10:05     ` Stefan Kangas

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.