From: Marcin Borkowski <mbork@mbork.pl>
To: Help Gnu Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: What is the difference between `current-word' and `word-at-point'?
Date: Mon, 29 Mar 2021 06:56:20 +0200 [thread overview]
Message-ID: <87ft0ea77v.fsf@mbork.pl> (raw)
Hi all,
it seems Emacs has two functions with a very similar purpose,
`current-word' and `word-at-point'. I understand some obvious
differences (like that `current-word' can treat "symbol" characters as
constituting a word or not, and `word-at-point' can give the current
word with the properties), but does anyone know
(a) why Emacs has both functions, and
(b) if/when their results can actually differ (apart from the obvious
cases like I mentioned)?
TIA,
--
Marcin Borkowski
http://mbork.pl
next reply other threads:[~2021-03-29 4:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-29 4:56 Marcin Borkowski [this message]
2021-03-29 9:00 ` What is the difference between `current-word' and `word-at-point'? Philip Kaludercic
2021-03-29 14:56 ` [External] : " Drew Adams
2021-03-29 15:01 ` Philip Kaludercic
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ft0ea77v.fsf@mbork.pl \
--to=mbork@mbork.pl \
--cc=help-gnu-emacs@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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).