GNU bug report logs - #24533
25.1; `c-token-at-point` wrong on floating point values

Previous Next

Packages: cc-mode, emacs;

Reported by: Mohammed Sadik <sadiqpkp <at> gmail.com>

Date: Sun, 25 Sep 2016 01:50:02 UTC

Severity: normal

Tags: moreinfo, notabug

Found in version 25.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 24533 in the body.
You can then email your comments to 24533 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#24533; Package emacs. (Sun, 25 Sep 2016 01:50:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Mohammed Sadik <sadiqpkp <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 25 Sep 2016 01:50:02 GMT) Full text and rfc822 format available.

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

From: Mohammed Sadik <sadiqpkp <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.1; `c-token-at-point` wrong on floating point values
Date: Sun, 25 Sep 2016 07:18:14 +0530
c-token-at-point doesn't returns the right value when the point
is on floating point numbers.

Eg. In the following statement, if I try to get the value of
`c-token-at-point` I get "55" ('|' is the point). But "23.55" is the
right value.

double length;
length = 23.5|5;

Thanks.

In GNU Emacs 25.1.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.20.6)
 of 2016-07-25 built on buildhw-08.phx2.fedoraproject.org
Windowing system distributor 'Fedora Project', version 11.0.11803000
Configured using:
 'configure --build=x86_64-redhat-linux-gnu
 --host=x86_64-redhat-linux-gnu --program-prefix=
 --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr
 --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc
 --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64
 --libexecdir=/usr/libexec --localstatedir=/var
 --sharedstatedir=/var/lib --mandir=/usr/share/man
 --infodir=/usr/share/info --with-dbus --with-gif --with-jpeg --with-png
 --with-rsvg --with-tiff --with-xft --with-xpm --with-x-toolkit=gtk3
 --with-gpm=no --with-xwidgets build_alias=x86_64-redhat-linux-gnu
 host_alias=x86_64-redhat-linux-gnu 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g
 -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4
 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
 -m64 -mtune=generic' LDFLAGS=-Wl,-z,relro
 PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig'

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GCONF GSETTINGS NOTIFY
ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 XWIDGETS

Important settings:
  value of $LC_MONETARY: en_NG.UTF-8
  value of $LC_NUMERIC: en_NG.UTF-8
  value of $LC_TIME: en_NG.UTF-8
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

Major mode: C/l

Minor modes in effect:
  ggtags-mode: t
  flyspell-mode: t
  diff-hl-flydiff-mode: t
  global-diff-hl-mode: t
  diff-hl-mode: t
  diff-auto-refine-mode: t
  flycheck-mode: t
  global-company-mode: t
  company-mode: t
  yas-global-mode: t
  yas-minor-mode: t
  electric-spacing-mode: t
  paredit-mode: t
  ido-everywhere: t
  show-paren-mode: t
  electric-pair-mode: t
  save-place-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t
  abbrev-mode: t
  hs-minor-mode: t

Recent messages:
[yas] Snippet 1 exited.
Auto-saving...done
"55" [2 times]
"=="
"55"
Auto-saving...
Quit
Making completion list... [2 times]
delete-backward-char: Text is read-only
Making completion list... [6 times]




Information forwarded to bug-gnu-emacs <at> gnu.org, bug-cc-mode <at> gnu.org:
bug#24533; Package emacs,cc-mode. (Mon, 30 Nov 2020 12:23:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Mohammed Sadik <sadiqpkp <at> gmail.com>
Cc: 24533 <at> debbugs.gnu.org
Subject: Re: bug#24533: 25.1; `c-token-at-point` wrong on floating point values
Date: Mon, 30 Nov 2020 13:21:59 +0100
Mohammed Sadik <sadiqpkp <at> gmail.com> writes:

> c-token-at-point doesn't returns the right value when the point
> is on floating point numbers.
>
> Eg. In the following statement, if I try to get the value of
> `c-token-at-point` I get "55" ('|' is the point). But "23.55" is the
> right value.
>
> double length;
> length = 23.5|5;

(This bug report unfortunately got no response at the time.)

`c-token-at-point' doesn't seem to exist in Emacs 26 (or later
versions), and a cursory look at the commit logs doesn't find anything
about that either.

Is this a function in Emacs, or from an external package?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 30 Nov 2020 12:23:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org, bug-cc-mode <at> gnu.org:
bug#24533; Package emacs,cc-mode. (Tue, 01 Dec 2020 01:53:02 GMT) Full text and rfc822 format available.

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

From: Mohammed Sadiq <sadiqpkp <at> gmail.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 24533 <at> debbugs.gnu.org
Subject: Re: bug#24533: 25.1; `c-token-at-point` wrong on floating point values
Date: Tue, 1 Dec 2020 07:22:13 +0530
On 11/30/20, Lars Ingebrigtsen <larsi <at> gnus.org> wrote:
> Mohammed Sadik <sadiqpkp <at> gmail.com> writes:
>
> (This bug report unfortunately got no response at the time.)
>
> `c-token-at-point' doesn't seem to exist in Emacs 26 (or later
> versions), and a cursory look at the commit logs doesn't find anything
> about that either.
>
> Is this a function in Emacs, or from an external package?
>

heh, silly me. This function was defined locally. trailing from the
cruft in my personal config written in the past.

Please close the bug.

thanks

> --
> (domestic pets only, the antidote for overdose, milk.)
>    bloggy blog: http://lars.ingebrigtsen.no
>




Information forwarded to bug-gnu-emacs <at> gnu.org, bug-cc-mode <at> gnu.org:
bug#24533; Package emacs,cc-mode. (Tue, 01 Dec 2020 09:02:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Mohammed Sadiq <sadiqpkp <at> gmail.com>
Cc: 24533 <at> debbugs.gnu.org
Subject: Re: bug#24533: 25.1; `c-token-at-point` wrong on floating point values
Date: Tue, 01 Dec 2020 10:01:15 +0100
Mohammed Sadiq <sadiqpkp <at> gmail.com> writes:

> heh, silly me. This function was defined locally. trailing from the
> cruft in my personal config written in the past.

:-)

> Please close the bug.

OK; done.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) notabug. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 01 Dec 2020 09:02:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 24533 <at> debbugs.gnu.org and Mohammed Sadik <sadiqpkp <at> gmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 01 Dec 2020 09:02:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 29 Dec 2020 12:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 169 days ago.

Previous Next


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