From: MON KEY <monkey@sandpframing.com>
To: 7006@debbugs.gnu.org
Subject: bug#7006: Reader oddity after ?\^ --- should signal error if invalid instead of being garbage
Date: Thu, 9 Sep 2010 22:51:32 -0400 [thread overview]
Message-ID: <AANLkTi=wKrTdY8cmx4AVW=3z8uWUZk59o=O=wE5=Shzz@mail.gmail.com> (raw)
In-Reply-To: <AANLkTi=5FKPxGh3-5S2WzYKZeZNoP=Gv2ZD-+FCRr6A1@mail.gmail.com>
,----
| Currently, the reader outputs a nonsense value in this case.
| Instead, the reader ought to signal an error.
`----
Not entirely nonsensical.
(let ((^5 (get-buffer-create "#^")))
(with-current-buffer (get-buffer ^5)
(save-excursion
(erase-buffer)
(princ "#@4 ?\\^5" (current-buffer))))
(unwind-protect
(char-to-string
(- (read (get-buffer ^5)) (expt 2 26)))
(with-current-buffer (get-buffer ^5)
(kill-buffer (current-buffer)))))
;=> "5"
:NOTE :bit 27 :byte 4 :2^ 26 :bit-weight 67108864
:bit-oct #o400000000 :bit-hex #x4000000
--
/s_P\
next prev parent reply other threads:[~2010-09-10 2:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-09 21:25 bug#7006: Reader oddity after ?\^ --- should signal error if invalid instead of being garbage Daniel Colascione
2010-09-10 2:51 ` MON KEY [this message]
2011-07-14 13:57 ` Lars Magne Ingebrigtsen
2011-07-14 14:50 ` Andreas Schwab
2011-07-17 2:16 ` Stefan Monnier
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='AANLkTi=wKrTdY8cmx4AVW=3z8uWUZk59o=O=wE5=Shzz@mail.gmail.com' \
--to=monkey@sandpframing.com \
--cc=7006@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.