help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

What is the difference between `current-word' and `word-at-point'?


From: Marcin Borkowski
Subject: What is the difference between `current-word' and `word-at-point'?
Date: Mon, 29 Mar 2021 06:56:20 +0200
User-agent: mu4e 1.1.0; emacs 28.0.50

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]