[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Special Characters

From: Emanuel Berg
Subject: Re: Special Characters
Date: Tue, 11 Aug 2015 04:33:22 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Emanuel Berg <address@hidden> writes:

> Ian Baylis <address@hidden> writes:
>> I have a file that has special characters in it.
>> When I open the file in Emacs an ' is represented
>> like: \200\231 or just \231 What type of characters
>> are they and is there a list of those characters
>> I can use as reference for the future.
> Move point, then use `describe-char' - I have
>     (defalias 'what-char 'describe-char)
> (OT: should that be sharp-quoted as well?)
> I think "what-char" is neat as it is faster to type
> and consistent with `what-face' etc.

    (defun what-face (pos)
      (interactive "d")
      (let*((point (point))
            (face (or (get-char-property point 'face)
                      (get-char-property point 'read-cf-name) )))
        (if face (message " Face: %s" face)
          (message " No face at %d." pos) )))

underground experts united

reply via email to

[Prev in Thread] Current Thread [Next in Thread]