unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Philip Kaludercic <philipk@posteo.net>
To: Drew Adams <drew.adams@oracle.com>
Cc: Help Gnu Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: Re: [External] : Re: What is the difference between `current-word' and `word-at-point'?
Date: Mon, 29 Mar 2021 17:01:53 +0200	[thread overview]
Message-ID: <87sg4exau6.fsf@posteo.net> (raw)
In-Reply-To: <SA2PR10MB4474F2784B3C17EFDBFD93F8F37E9@SA2PR10MB4474.namprd10.prod.outlook.com> (Drew Adams's message of "Mon, 29 Mar 2021 14:56:15 +0000")

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.



      reply	other threads:[~2021-03-29 15:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-29  4:56 What is the difference between `current-word' and `word-at-point'? Marcin Borkowski
2021-03-29  9:00 ` Philip Kaludercic
2021-03-29 14:56   ` [External] : " Drew Adams
2021-03-29 15:01     ` Philip Kaludercic [this message]

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=87sg4exau6.fsf@posteo.net \
    --to=philipk@posteo.net \
    --cc=drew.adams@oracle.com \
    --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).