From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: bug#35704: Allow showing Unicode Date: Mon, 13 May 2019 05:53:05 +0800 Message-ID: <87imufxrum.8.fsf@jidanni.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="3831"; mail-complaints-to="usenet@blaine.gmane.org" Cc: rms@gnu.org To: 35704@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 12 23:54:17 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hPwQC-0000re-Ci for geb-bug-gnu-emacs@m.gmane.org; Sun, 12 May 2019 23:54:16 +0200 Original-Received: from localhost ([127.0.0.1]:47689 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hPwQB-0001u1-ES for geb-bug-gnu-emacs@m.gmane.org; Sun, 12 May 2019 17:54:15 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58221) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hPwQ0-0001tI-W4 for bug-gnu-emacs@gnu.org; Sun, 12 May 2019 17:54:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hPwPy-0002Mx-QA for bug-gnu-emacs@gnu.org; Sun, 12 May 2019 17:54:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58255) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hPwPy-0002M7-Mg; Sun, 12 May 2019 17:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hPwPy-0007SI-K1; Sun, 12 May 2019 17:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: rms@gnu.org, bug-gnu-emacs@gnu.org Resent-Date: Sun, 12 May 2019 21:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35704 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org X-Debbugs-Original-Xcc: rms@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.155769801328617 (code B ref -1); Sun, 12 May 2019 21:54:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 May 2019 21:53:33 +0000 Original-Received: from localhost ([127.0.0.1]:43566 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hPwPU-0007RV-Nw for submit@debbugs.gnu.org; Sun, 12 May 2019 17:53:33 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:43713) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hPwPS-0007RF-MH for submit@debbugs.gnu.org; Sun, 12 May 2019 17:53:31 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:49746) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hPwPM-0008Fr-Fl for submit@debbugs.gnu.org; Sun, 12 May 2019 17:53:24 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58071) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hPwPG-0001q6-Id for bug-gnu-emacs@gnu.org; Sun, 12 May 2019 17:53:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hPwPB-0007bA-Sx for bug-gnu-emacs@gnu.org; Sun, 12 May 2019 17:53:17 -0400 Original-Received: from bird.maple.relay.mailchannels.net ([23.83.214.17]:35448) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hPwPB-0007Ja-CT for bug-gnu-emacs@gnu.org; Sun, 12 May 2019 17:53:13 -0400 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 7845E124E96 for ; Sun, 12 May 2019 21:53:09 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a65.g.dreamhost.com (unknown [100.96.28.64]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 3066C124E36 for ; Sun, 12 May 2019 21:53:09 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from pdx1-sub0-mail-a65.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.2); Sun, 12 May 2019 21:53:09 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Callous-Inform: 69d0581431bd5d2a_1557697989273_2978514510 X-MC-Loop-Signature: 1557697989273:2200991741 X-MC-Ingress-Time: 1557697989273 Original-Received: from pdx1-sub0-mail-a65.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a65.g.dreamhost.com (Postfix) with ESMTP id E44C980547 for ; Sun, 12 May 2019 14:53:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=jidanni.org; bh=DLy2F3HC3c4BhIQNgo wGwdRxzug=; b=Luh7fo51uVXYS5KgBkEL8g62qRMP6c6niCzdT2aeySN8BJEfMI rdWfrAJHIuVjUKm6P84+f7xNcZLxi64INCEVg8lROjjYWOZSXee3wSkwM2qXuP69 nNd13QTlxCl7+zpvdiowngzHMC85/Wq37okoL5VLHupMaxmCPfZH7VShE= Original-Received: from jidanni.org (114-41-36-170.dynamic-ip.hinet.net [114.41.36.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a65.g.dreamhost.com (Postfix) with ESMTPSA id 04B1780546 for ; Sun, 12 May 2019 14:53:07 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a65 X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduuddrleefgddtudcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfggtgfgsehtkeertddttdejnecuhfhrohhmpejnnjjnucffrghnucflrggtohgsshhonhcuoehjihgurghnnhhisehjihgurghnnhhirdhorhhgqeenucfkphepuddugedrgedurdefiedrudejtdenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepjhhiuggrnhhnihdrohhrghdpihhnvghtpeduudegrdeguddrfeeirddujedtpdhrvghtuhhrnhdqphgrthhhpeeprehuthhfqdekreeureehiehmpfehnfhiheehsgevkeerpecuffgrnhculfgrtghosghsohhnuceojhhiuggrnhhnihesjhhiuggrnhhnihdrohhrgheqpdhmrghilhhfrhhomhepjhhiuggrnhhnihesjhhiuggrnhhnihdrohhrghdpnhhrtghpthhtohepsghughdqghhnuhdqvghmrggtshesghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpedt X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:159161 Archived-At: X-Debbugs-Cc: rms@gnu.org PROPOSAL: Add a variable the user could set in his .emacs, so so many lines of docs= tring would at least mention the word "Unicode" once: 1 C-x =3D runs the command what-cursor-position (found in global-map= ), 2 which is an interactive compiled Lisp function in =E2=80=98simple.= el=E2=80=99. 3=09 4 It is bound to C-x =3D. 5=09 6 (what-cursor-position &optional DETAIL) 7=09 8 Print info on cursor position (on screen and within buffer). 9 Also describe the character after point, and give its character co= de 10 in octal, decimal and hex. 11=09 12 For a non-ASCII multibyte character, also give its encoding in the 13 buffer=E2=80=99s selected coding system if the coding system encod= es 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=09 18 In addition, with prefix argument, show details about that charact= er 19 in *Help* buffer. See also the command =E2=80=98describe-char=E2=80= =99. And so so many lines of output: 1 position: 801 of 1900 (42%), column: 164 2 character: =E3=80=8C (displayed as =E3=80=8C) (codepoi= nt 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: (=E3=80=8D which means: open, matches =E3=80= =8D 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 CO= RNER BRACKET" 9 buffer code: #xE3 #x80 #x8C 10 file code: #xE3 #x80 #x8C (encoded by coding system ra= w-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=09 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) ('=E3=80=8C') 19=09 20 There is an overlay here: 21 From 801 to 802 22 face show-paren-mismatch 23 priority 1000 24=09 25=09 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 =E2=80=98C-x 8=E2=80=99. For example, =E2=80=98C-x 8 [= =E2=80=99 inserts =E2=80=98 which is Unicode code-point =E2=80=98U+2018=E2=80=99 LEFT SINGLE QUOTATION MAR= K, sometimes called a left single =E2=80=9Ccurved quote=E2=80=9D or =E2=80=9Ccurly quote=E2= =80=9D. Similarly, =E2=80=98C-x 8 ]=E2=80=99, =E2=80=98C-x 8 {=E2=80=99 and =E2=80=98C-x 8 }=E2=80=99 insert the cu= rved quotes =E2=80=99, =E2=80=9C and =E2=80=9D, respectively. Also, a working Alt key acts like =E2=80=98C-x 8=E2=80= =99; e.g., =E2=80=98A-[=E2=80=99 acts like =E2=80=98C-x 8 [=E2=80=99 and inserts =E2=80=98. To see wh= ich characters have =E2=80=98C-x 8=E2=80=99 shorthands, type =E2=80=98C-x 8 C-h=E2=80=99. in the manual. Yes we discussed this before.