From: Konstantin Kharlamov <hi-angel@yandex.ru>
To: 34301@debbugs.gnu.org
Subject: bug#34301: Unable to make underscore part of a word everywhere
Date: Sun, 3 Feb 2019 21:09:48 +0300 [thread overview]
Message-ID: <ca54ab04-9d70-cdc0-d09f-6609e9d43971@yandex.ru> (raw)
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.
next reply other threads:[~2019-02-03 18:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-03 18:09 Konstantin Kharlamov [this message]
2019-07-09 17:13 ` bug#34301: Unable to make underscore part of a word everywhere Lars Ingebrigtsen
2019-07-09 18:07 ` Noam Postavsky
2020-08-31 10:05 ` Stefan Kangas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ca54ab04-9d70-cdc0-d09f-6609e9d43971@yandex.ru \
--to=hi-angel@yandex.ru \
--cc=34301@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.