all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: search and replace codepoints
Date: Fri, 24 Oct 2014 22:33:32 +0300	[thread overview]
Message-ID: <83k33p5kkz.fsf@gnu.org> (raw)
In-Reply-To: <87mw8le1zk.fsf@bach.histomat.net>

> From: Haines Brown <haines@histomat.net>
> Date: Fri, 24 Oct 2014 14:50:23 -0400
> 
> The pasted hyphen that LaTeX can't compile looks like this:
> 
>   character: ­ (displayed as ­) (codepoint 173, #o255, #xad)
>   preferred charset: unicode (Unicode (ISO10646))
>   code point in charset: 0xAD
>   category: b:Arabic, h:Korean, j:Japanese, l:Latin
>   buffer code: #xC2 #xAD
>   file code: #xC2 #xAD (encoded by coding system utf-8-unix)
> 
> How do I do a search/replace to replace instances of the latter with the
> former?

Just replace it with M-%, as you would any other character.

> What values should I use?

The one shown above, of course.

> Why is the unicode character not identified with the usual U+...?

The codepoint #xad _is_ the Unicode codepoint, u+00AD.




  reply	other threads:[~2014-10-24 19:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-24 18:50 search and replace codepoints Haines Brown
2014-10-24 19:33 ` Eli Zaretskii [this message]
     [not found] ` <mailman.11972.1414179242.1147.help-gnu-emacs@gnu.org>
2014-10-24 20:15   ` Haines Brown
2014-10-24 21:11     ` Álvar Ibeas
2014-10-25  6:27     ` 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=83k33p5kkz.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-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.