From: "Alex Bennée" <kernel-hacker@bennee.com>
To: 16834@debbugs.gnu.org
Subject: bug#16834: 24.3.50; num3-mode detects long hex numbers as decimal
Date: Fri, 21 Feb 2014 17:12:00 +0000 [thread overview]
Message-ID: <87k3cobdb3.fsf@linaro.org> (raw)
When dealing with large hex numbers the default regex of num3-mode can
detect them as decimals. For example given:
V28 : 00000000000000000007fc0000000000 vs 0000000000000000000bfc000000000
the follow is high-lighted
V28 : __xxx___xxx___xxx_____x___xxx___ vs _xxx___xxx___xxx_________xxx___
which is obviously wrong.
In the end I just reset num3--number-re to:
(setq num3--number-re "\\([[:xdigit:]]+\\)\\|\\([0-9]+\\)\\|\\.\\([0-9]+\\)")
but perhaps a slightly more clever solution that maintains old behaviour
for very long decimal numbers unless there is a hex digit in there would
be better.
It wouldn't hurt to have customisable faces as well as the default can
look quite harsh depending on the theme.
Regards,
--
Alex Bennée
next reply other threads:[~2014-02-21 17:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-21 17:12 Alex Bennée [this message]
2014-02-21 18:05 ` bug#16834: 24.3.50; num3-mode detects long hex numbers as decimal Stefan Monnier
2014-02-21 19:49 ` Michal Nazarewicz
2014-02-21 20:52 ` Stefan Monnier
2014-02-24 0:31 ` Michal Nazarewicz
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k3cobdb3.fsf@linaro.org \
--to=kernel-hacker@bennee.com \
--cc=16834@debbugs.gnu.org \
/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 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.