GNU bug report logs - #64739
(forward-thing 'number) doesn't work with decimal numbers

Previous Next

Package: emacs;

Reported by: Joseph Turner <joseph <at> breatheoutbreathe.in>

Date: Thu, 20 Jul 2023 06:27:01 UTC

Severity: normal

Merged with 74662

Found in version 29.4

Full log


Message #17 received at 64739 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: winkler <at> gnu.org
Cc: 64739 <at> debbugs.gnu.org, joseph <at> breatheoutbreathe.in
Subject: Re: bug#64739: (forward-thing 'number) doesn't work with decimal
 numbers
Date: Fri, 21 Jul 2023 15:52:06 +0300
> Cc: 64739 <at> debbugs.gnu.org, joseph <at> breatheoutbreathe.in
> Date: Fri, 21 Jul 2023 15:48:07 +0300
> From: Eli Zaretskii <eliz <at> gnu.org>
> 
> > From: Roland Winkler <winkler <at> gnu.org>
> > Cc: Joseph Turner <joseph <at> breatheoutbreathe.in>,  64739 <at> debbugs.gnu.org
> > Date: Fri, 21 Jul 2023 07:28:29 -0500
> > 
> > On Thu, Jul 20 2023, Eli Zaretskii wrote:
> > >> forward-word doesn't seem to be the correct forward-op for numbers.
> > >
> > > That depends on the buffer's syntax table, though.
> > 
> > I am frequently running into similar problems when I deal with numbers,
> > but the syntax table is not designed for this.  Would it make sense if
> > (forward-thing 'number) temporarily used a customized synatx table?
> 
> It should use its own function, if you ask me.  forward-word is a
> kludge.

To clarify: I meant that using forward-word in this case is a kludge.




This bug report was last modified 110 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.