From: "Eli Zaretskii" <eliz@is.elta.co.il>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: user sees \xxx but is thwarted from searching for them
Date: Tue, 16 Apr 2002 15:21:18 +0300 [thread overview]
Message-ID: <6048-Tue16Apr2002152118+0300-eliz@is.elta.co.il> (raw)
In-Reply-To: <vafn0w329rj.fsf@lucy.cs.uni-dortmund.de> (Kai.Grossjohann@CS.Uni-Dortmund.DE)
> From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-1?q?Gro=DFjohann?=)
> Newsgroups: gnu.emacs.bug
> Date: Tue, 16 Apr 2002 12:55:12 +0200
>
> eliz@is.elta.co.il (Eli Zaretskii) writes:
>
> > `M-: (skip-chars-forward "\000-\177") RET' will do.
>
> This command finds \x7f, too, even if it is displayed without \ on
> screen. I presume it will also find a lot of other nonascii
> characters.
More accurately, if finds _any_ non-ASCII character. That's what it
is supposed to do.
> Suppose you have a file which is mostly in the foo encoding, but
> contains some bytes that are invalid in that encoding. I think this
> is the situation Dan is talking about. He wants to find the invalid
> bytes, IIUC.
Perhaps I don't understand the original request, but if I do, it is
very hard to do that (AFAIK) without knowing what--i.e. which
character sets--are you looking for. Recall that, once the file is
visited by a buffer, there are no bytes, just characters. What you
want is to find characters that don't belong to some set of
characters, without actually telling Emacs what are those ``good''
sets. This might be relatively easy if your buffer holds characters
from a single charset, but I doubt that Emacs users can be charged
with the burden of knowing about such technicalities.
> Maybe it helps to try to save the buffer to a file, and let Emacs
> complain about the character that couldn't be encoded using the
> current coding system. But I'm not sure if that does the trick,
> though.
It doesn't; see my other mail.
next prev parent reply other threads:[~2002-04-16 12:21 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-16 2:24 user sees \xxx but is thwarted from searching for them Dan Jacobson
2002-04-16 8:41 ` Eli Zaretskii
2002-04-16 10:55 ` Kai Großjohann
2002-04-16 11:57 ` Heinrich Rommerskirchen
2002-04-16 13:52 ` Kai Großjohann
2002-04-16 14:08 ` Eli Zaretskii
2002-04-16 14:41 ` Heinrich Rommerskirchen
2002-04-16 18:19 ` Eli Zaretskii
2002-04-17 16:04 ` Richard Stallman
2002-04-17 17:04 ` Stefan Monnier
2002-04-17 17:18 ` Eli Zaretskii
2002-04-16 12:21 ` Eli Zaretskii [this message]
2002-04-16 13:56 ` Kai Großjohann
2002-04-18 2:15 ` Dan Jacobson
2002-04-18 9:42 ` Kai Großjohann
2002-04-16 11:36 ` David Kastrup
2002-04-16 11:57 ` Kai Großjohann
2002-04-16 14:07 ` Eli Zaretskii
2002-04-16 12:32 ` Eli Zaretskii
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=6048-Tue16Apr2002152118+0300-eliz@is.elta.co.il \
--to=eliz@is.elta.co.il \
--cc=bug-gnu-emacs@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.