From: "積丹尼 Dan Jacobson" <jidanni@jidanni.org>
To: 35704@debbugs.gnu.org
Cc: rms@gnu.org
Subject: bug#35704: Allow showing Unicode
Date: Mon, 13 May 2019 05:53:05 +0800 [thread overview]
Message-ID: <87imufxrum.8.fsf@jidanni.org> (raw)
X-Debbugs-Cc: rms@gnu.org
PROPOSAL:
Add a variable the user could set in his .emacs, so so many lines of docstring
would at least mention the word "Unicode" once:
1 C-x = runs the command what-cursor-position (found in global-map),
2 which is an interactive compiled Lisp function in ‘simple.el’.
3
4 It is bound to C-x =.
5
6 (what-cursor-position &optional DETAIL)
7
8 Print info on cursor position (on screen and within buffer).
9 Also describe the character after point, and give its character code
10 in octal, decimal and hex.
11
12 For a non-ASCII multibyte character, also give its encoding in the
13 buffer’s selected coding system if the coding system encodes the
14 character safely. If the character is encoded into one byte, that
15 code is shown in hex. If the character is encoded into more than one
16 byte, just "..." is shown.
17
18 In addition, with prefix argument, show details about that character
19 in *Help* buffer. See also the command ‘describe-char’.
And so so many lines of output:
1 position: 801 of 1900 (42%), column: 164
2 character: 「 (displayed as 「) (codepoint 12300, #o30014, #x300c)
3 preferred charset: chinese-big5-1 (Frequently used part (A141-C67E) of Big5 (Chinese traditional))
4 code point in charset: 0x2156
5 script: cjk-misc
6 syntax: (」 which means: open, matches 」
7 category: .:Base, <:Not at eol, c:Chinese, h:Korean, j:Japanese, |:line breakable
8 to input: type "C-x 8 RET 300c" or "C-x 8 RET LEFT CORNER BRACKET"
9 buffer code: #xE3 #x80 #x8C
10 file code: #xE3 #x80 #x8C (encoded by coding system raw-text-unix)
11 display: by this font (glyph code)
12 x:-eten-fixed-medium-r-normal--16-150-75-75-c-160-big5.eten-0 (#xA175)
13
14 Character code properties: customize what to show
15 name: LEFT CORNER BRACKET
16 old-name: OPENING CORNER BRACKET
17 general-category: Ps (Punctuation, Open)
18 decomposition: (12300) ('「')
19
20 There is an overlay here:
21 From 801 to 802
22 face show-paren-mismatch
23 priority 1000
24
25
26 There are text properties here:
27 face variable-pitch
would also at least mention the "U+XXXX" once, yes with a real "U+"
once, yes, even on a wasteful additional line, and even if one can infer
what line it is currently hiding on above from reading
A few common Unicode characters can be inserted via a command
starting with ‘C-x 8’. For example, ‘C-x 8 [’ inserts ‘ which is
Unicode code-point ‘U+2018’ LEFT SINGLE QUOTATION MARK, sometimes called
a left single “curved quote” or “curly quote”. Similarly, ‘C-x 8 ]’,
‘C-x 8 {’ and ‘C-x 8 }’ insert the curved quotes ’, “ and ”,
respectively. Also, a working Alt key acts like ‘C-x 8’; e.g., ‘A-[’
acts like ‘C-x 8 [’ and inserts ‘. To see which characters have ‘C-x 8’
shorthands, type ‘C-x 8 C-h’.
in the manual. Yes we discussed this before.
reply other threads:[~2019-05-12 21:53 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87imufxrum.8.fsf@jidanni.org \
--to=jidanni@jidanni.org \
--cc=35704@debbugs.gnu.org \
--cc=rms@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).