[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [External] : Re: What is the difference between `current-word' and `
From: |
Philip Kaludercic |
Subject: |
Re: [External] : Re: What is the difference between `current-word' and `word-at-point'? |
Date: |
Mon, 29 Mar 2021 17:01:53 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
Drew Adams <drew.adams@oracle.com> writes:
>> I suppose that word-at-point is a simple extension of the thing-at-point
>> mechanism, that uses forward-word instead of the syntax table.
>
> <nit>The doc of `word-at-point' suggests that it
> respects the syntax table.</nit>
Uh, yes that was unclear. forward-word says
The word boundaries are normally determined by the buffer’s syntax
table and character script (according to ‘char-script-table’), but
‘find-word-boundary-function-table’, such as set up by ‘subword-mode’,
can change that.
so obviously it falls back onto the syntax table.
--
Philip K.