all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#24533: 25.1; `c-token-at-point` wrong on floating point values
@ 2016-09-25  1:48 Mohammed Sadik
  2020-11-30 12:21 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 4+ messages in thread
From: Mohammed Sadik @ 2016-09-25  1:48 UTC (permalink / raw)
  To: 24533

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]





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#24533: 25.1; `c-token-at-point` wrong on floating point values
  2016-09-25  1:48 bug#24533: 25.1; `c-token-at-point` wrong on floating point values Mohammed Sadik
@ 2020-11-30 12:21 ` Lars Ingebrigtsen
  2020-12-01  1:52   ` Mohammed Sadiq
  0 siblings, 1 reply; 4+ messages in thread
From: Lars Ingebrigtsen @ 2020-11-30 12:21 UTC (permalink / raw)
  To: Mohammed Sadik; +Cc: 24533

Mohammed Sadik <sadiqpkp@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





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#24533: 25.1; `c-token-at-point` wrong on floating point values
  2020-11-30 12:21 ` Lars Ingebrigtsen
@ 2020-12-01  1:52   ` Mohammed Sadiq
  2020-12-01  9:01     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 4+ messages in thread
From: Mohammed Sadiq @ 2020-12-01  1:52 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 24533

On 11/30/20, Lars Ingebrigtsen <larsi@gnus.org> wrote:
> Mohammed Sadik <sadiqpkp@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
>





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#24533: 25.1; `c-token-at-point` wrong on floating point values
  2020-12-01  1:52   ` Mohammed Sadiq
@ 2020-12-01  9:01     ` Lars Ingebrigtsen
  0 siblings, 0 replies; 4+ messages in thread
From: Lars Ingebrigtsen @ 2020-12-01  9:01 UTC (permalink / raw)
  To: Mohammed Sadiq; +Cc: 24533

Mohammed Sadiq <sadiqpkp@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





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-12-01  9:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-25  1:48 bug#24533: 25.1; `c-token-at-point` wrong on floating point values Mohammed Sadik
2020-11-30 12:21 ` Lars Ingebrigtsen
2020-12-01  1:52   ` Mohammed Sadiq
2020-12-01  9:01     ` Lars Ingebrigtsen

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.