From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: MON KEY Newsgroups: gmane.emacs.bugs Subject: bug#6283: doc/lispref/searching.texi reference to octal code `0377' correct? Date: Thu, 27 May 2010 18:59:13 -0400 Message-ID: References: <83vda9md09.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1275002858 10865 80.91.229.12 (27 May 2010 23:27:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 27 May 2010 23:27:38 +0000 (UTC) To: 6283@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 28 01:27:37 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OHmUD-0002jN-2k for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 May 2010 01:27:37 +0200 Original-Received: from localhost ([127.0.0.1]:57628 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OHmUC-0001Nh-AE for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 May 2010 19:27:36 -0400 Original-Received: from [140.186.70.92] (port=35296 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OHmU3-0001Jf-6K for bug-gnu-emacs@gnu.org; Thu, 27 May 2010 19:27:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OHmU2-0001ny-3Q for bug-gnu-emacs@gnu.org; Thu, 27 May 2010 19:27:27 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57326) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OHmU2-0001nr-09 for bug-gnu-emacs@gnu.org; Thu, 27 May 2010 19:27:26 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OHm3X-0008VU-Kb; Thu, 27 May 2010 19:00:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: MON KEY Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 May 2010 23:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6283 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6283-submit@debbugs.gnu.org id=B6283.127500116132675 (code B ref 6283); Thu, 27 May 2010 23:00:03 +0000 Original-Received: (at 6283) by debbugs.gnu.org; 27 May 2010 22:59:21 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OHm2q-0008Uy-27 for submit@debbugs.gnu.org; Thu, 27 May 2010 18:59:20 -0400 Original-Received: from mail-yw0-f172.google.com ([209.85.211.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OHm2o-0008Us-H2 for 6283@debbugs.gnu.org; Thu, 27 May 2010 18:59:19 -0400 Original-Received: by ywh2 with SMTP id 2so198223ywh.0 for <6283@debbugs.gnu.org>; Thu, 27 May 2010 15:59:14 -0700 (PDT) Original-Received: by 10.151.95.12 with SMTP id x12mr640231ybl.268.1275001153648; Thu, 27 May 2010 15:59:13 -0700 (PDT) Original-Received: by 10.151.143.21 with HTTP; Thu, 27 May 2010 15:59:13 -0700 (PDT) In-Reply-To: <83vda9md09.fsf@gnu.org> X-Google-Sender-Auth: zHGoWCsfoH4bu5X1lILqlSx0DWc X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 27 May 2010 19:00:03 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:37349 Archived-At: On Thu, May 27, 2010 at 2:10 PM, Eli Zaretskii wrote: >> `---- :FILE doc/lispref/searching.texi =C2=A0(info "(elisp)Regexp Specia= l") >> >> Shouldn't that be: >> >> "characters have codes above octal #o377" > > What's the difference between what's written and what you suggest? > (string-equal "0377" "#o377") =3D> nil (string-equal "0377" "0377") =3D> t (string-equal "#o377" "#o377") =3D> t The latter forms read syntax being more in keeping with how the lisp reader would interpret what the info docs are referring to as `octal 0377', and is at in keeping with what is presented in (info "(elisp)Integer Basics"): (eval #o377) =3D> 255 What isn't at all clear in the infos in general is that the octal (or FTM decimal, hex, etc. representations) for the literal raw-byte \255 is arrived at with something more like: (insert (char-to-string #o17777655)) (insert (char-to-string #x3fffad)) (insert (char-to-string 4194221)) e.g. decimal 4194221 -> octal #o17777655 -> hex #x3fffad Without knowing what do with that octal value simply referencing \255 as octal 0377 or hex X3FFFAD isn't all that informative of itself. FWIW It took me a coupla years to figure out what how to frob those values into a raw-byte and I still require to relearn it from the docs whenever I need to manually revert some raw-bytes or improperly encoded bit-rotted text using regexps. --=20 /s_P\