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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs,cc-mode; Reported by: Mohammed Sadik <sadiqpkp@HIDDEN>; dated Sun, 25 Sep 2016 01:50:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 25 Sep 2016 01:49:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Sep 24 21:49:31 2016
Received: from localhost ([127.0.0.1]:34925 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bnyZP-0003JE-Da
	for submit <at> debbugs.gnu.org; Sat, 24 Sep 2016 21:49:31 -0400
Received: from eggs.gnu.org ([208.118.235.92]:45962)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <sadiqpkp@HIDDEN>) id 1bnyZN-0003J2-HC
 for submit <at> debbugs.gnu.org; Sat, 24 Sep 2016 21:49:29 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <sadiqpkp@HIDDEN>) id 1bnyZH-0003wW-28
 for submit <at> debbugs.gnu.org; Sat, 24 Sep 2016 21:49:24 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:36352)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <sadiqpkp@HIDDEN>) id 1bnyZG-0003w7-VZ
 for submit <at> debbugs.gnu.org; Sat, 24 Sep 2016 21:49:22 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:36907)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <sadiqpkp@HIDDEN>) id 1bnyZE-0007LD-DV
 for bug-gnu-emacs@HIDDEN; Sat, 24 Sep 2016 21:49:21 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <sadiqpkp@HIDDEN>) id 1bnyZ9-0003t9-Nj
 for bug-gnu-emacs@HIDDEN; Sat, 24 Sep 2016 21:49:19 -0400
Received: from mail-wm0-f47.google.com ([74.125.82.47]:37838)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <sadiqpkp@HIDDEN>) id 1bnyZ9-0003sp-Hr
 for bug-gnu-emacs@HIDDEN; Sat, 24 Sep 2016 21:49:15 -0400
Received: by mail-wm0-f47.google.com with SMTP id b130so90688774wmc.0
 for <bug-gnu-emacs@HIDDEN>; Sat, 24 Sep 2016 18:49:15 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:from:date:message-id:subject:to;
 bh=Tg7+4lCL6Y4p9gM7DK35Mbt+fZW24KmKqMWFjDR5vN4=;
 b=Mwxeff1dh3ZdWMM7DsQ9HRn2m9WLm2wElJCR0cF831lpK7fCEoDBOM/R+wxcsG2lXg
 Hbwro6tDUaMjGXqop9pmIm9WTz4OG3Gdoh7X1CgQv7Ct0IoZoGEjZySd/I+5JZhdUv8C
 EP6Tzb5CvwH1ddrf1djJ2xQ/aEsWG+0T8iIwX03e+KnGMIj0Fb/YaYEqn6GhtG5wh2sk
 OvFn1AiYsgzKHz/HUt++H4R5zEsUBk24eUTYXxRP2bP4RDrTCQqsEgbzBz9gm445TcL/
 EgNZU4jwZ82xwrhRAt5TlqO4m0USJTQjByitNLelkIbEt529evJvJhuO4h5ybmMRLiRT
 E5qw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=Tg7+4lCL6Y4p9gM7DK35Mbt+fZW24KmKqMWFjDR5vN4=;
 b=GyN0Kmc9QYWMkPlOXLksH+nXXrvNzcl80oS33jv3YYA+Cpx/WFVUncUK8p4UQIb+zu
 05NmCVA0pmKOCe2IuLeUseWKlzqQAqIa+6uPLDthHgHQ7JJU3vU1l66mN5MsYEup5CM4
 KeZ8ljxq7rGKn7ExMRbbsJ2re9WlLLp9/+C+HfocYXw4I5oExiAQrYGLxETP5JfamecO
 e0p412KIwTehXocunkIzK3BlZ5SfL5levjaIWeLwprWlK8eygIgEVE/aZZP/V9tQ9vLA
 G2Rs4+hf/n8MxfddPvFlUsDwgDCiDyiHc3yjs88aq20XCxxOBJgBlldj0l4pRM9T8BE2
 p92A==
X-Gm-Message-State: AA6/9RkH8IeFMh//ln1mC2oUFV1Ola30A4R3yO7sfrIBJAr4O/7GWEVo3DMBy9RKFL/nRhcesbeFeYFzju+0dw==
X-Received: by 10.28.131.199 with SMTP id f190mr9640228wmd.30.1474768094374;
 Sat, 24 Sep 2016 18:48:14 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.194.187.133 with HTTP; Sat, 24 Sep 2016 18:48:14 -0700 (PDT)
From: Mohammed Sadik <sadiqpkp@HIDDEN>
Date: Sun, 25 Sep 2016 07:18:14 +0530
Message-ID: <CANHUxH29ioOXZczF1PbPSH4HPz4LFuN45+4CEM_4pHQOW_73Mw@HIDDEN>
Subject: 25.1; `c-token-at-point` wrong on floating point values
To: bug-gnu-emacs@HIDDEN
Content-Type: text/plain; charset=UTF-8
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)

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]




Acknowledgement sent to Mohammed Sadik <sadiqpkp@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#24533; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

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