unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Joseph Turner <joseph@breatheoutbreathe.in>
Cc: 64739@debbugs.gnu.org
Subject: bug#64739: (forward-thing 'number) doesn't work with decimal numbers
Date: Thu, 20 Jul 2023 09:39:21 +0300	[thread overview]
Message-ID: <831qh33x46.fsf@gnu.org> (raw)
In-Reply-To: <87cz0n6qvp.fsf@breatheoutbreathe.in> (bug-gnu-emacs@gnu.org)

> Date: Wed, 19 Jul 2023 23:19:27 -0700
> From:  Joseph Turner via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
> 
> Hello,
> 
> Given the following number with point at ★:
> 
> ★12.34
> 
> number-at-point correctly returns "12.34".
> 
> However,(forward-thing 'number) puts point just before the period:
> 
> 12★.34
> 
> while I'd expect:
> 
> 12.34★
> 
> (get 'number 'forward-op)
>      ⇒ forward-word
> 
> forward-word doesn't seem to be the correct forward-op for numbers.

That depends on the buffer's syntax table, though.





  reply	other threads:[~2023-07-20  6:39 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-20  6:19 bug#64739: (forward-thing 'number) doesn't work with decimal numbers Joseph Turner via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-07-20  6:39 ` Eli Zaretskii [this message]
2023-07-21 12:28   ` Roland Winkler
2023-07-21 12:48     ` Eli Zaretskii
2023-07-21 12:52       ` Eli Zaretskii
2023-07-21 14:14         ` Roland Winkler
2023-07-21 14:29           ` Eli Zaretskii
2023-07-23  3:36             ` Joseph Turner via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-07-23  5:33               ` Eli Zaretskii
2023-07-23 19:03                 ` Joseph Turner via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-07-24 11:25                   ` Eli Zaretskii
2023-07-26 12:21                     ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-07-29 23:01                       ` Joseph Turner via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-07-22  0:23         ` Michael Heerdegen

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=831qh33x46.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=64739@debbugs.gnu.org \
    --cc=joseph@breatheoutbreathe.in \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).