From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#24902: 25.1; C-x = for Unicode Date: Wed, 26 Jan 2022 18:02:46 +0100 Message-ID: <537072BC-F9DF-4B7B-BA88-02320A731013@acm.org> References: <87a6fl5w11.fsf@gnus.org> <14F24EE3-901E-4622-8210-6C4F2134E9BA@acm.org> <87czkh1jqo.fsf@gnus.org> <87pmoh3xdk.fsf@gnus.org> <877dap3uea.fsf@gnus.org> <4CEFB383-E7C8-4AA8-9B43-6267E5523DC3@acm.org> <87lez2tzfz.fsf@gnus.org> <87a6fihaku.fsf@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Content-Type: multipart/mixed; boundary="Apple-Mail=_86DE42E5-38C5-48DE-800A-9972452272EF" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33321"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , Ulrich Windl , 24902@debbugs.gnu.org To: Robert Pluim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 26 18:14:39 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nClsV-0008OV-Hg for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 26 Jan 2022 18:14:39 +0100 Original-Received: from localhost ([::1]:46418 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nClsU-0005iE-62 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 26 Jan 2022 12:14:38 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37688) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nClhX-0003Ks-0C for bug-gnu-emacs@gnu.org; Wed, 26 Jan 2022 12:03:19 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60418) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nClhG-0008PT-4E for bug-gnu-emacs@gnu.org; Wed, 26 Jan 2022 12:03:18 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nClhG-0005fK-2W for bug-gnu-emacs@gnu.org; Wed, 26 Jan 2022 12:03:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 Jan 2022 17:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24902 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix Original-Received: via spool by 24902-submit@debbugs.gnu.org id=B24902.164321657521766 (code B ref 24902); Wed, 26 Jan 2022 17:03:02 +0000 Original-Received: (at 24902) by debbugs.gnu.org; 26 Jan 2022 17:02:55 +0000 Original-Received: from localhost ([127.0.0.1]:53321 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nClh9-0005f0-51 for submit@debbugs.gnu.org; Wed, 26 Jan 2022 12:02:55 -0500 Original-Received: from mail73c50.megamailservers.eu ([91.136.10.83]:50342 helo=mail92c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nClh6-0005eq-TX for 24902@debbugs.gnu.org; Wed, 26 Jan 2022 12:02:54 -0500 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1643216570; bh=eoPycC1hOKA/BpBf26kFngRt0isVIJFG8hv/9nxIOg8=; h=From:Subject:Date:In-Reply-To:Cc:To:References:From; b=qbUEmFYg//CBun17sl9vbmksl/0wg7yg6RAobuwCE24e8bbYbVKp00icSqNhjCd0G pA+wJYiDm9C2NFG/PLu59pLv0O1w+zSLSHul3vCbj5k59YwzVBXNotQjK4Qc2p3+UB dEEXfB2HOSfiCUeephp5HX5Mh3RIJ1h/vSFgL2fY= Feedback-ID: mattiase@acm.or Original-Received: from smtpclient.apple (c-b952e353.032-75-73746f71.bbcust.telenor.se [83.227.82.185]) (authenticated bits=0) by mail92c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id 20QH2l99022850; Wed, 26 Jan 2022 17:02:48 +0000 In-Reply-To: <87a6fihaku.fsf@gmail.com> X-Mailer: Apple Mail (2.3654.120.0.1.13) X-CTCH-RefID: str=0001.0A742F2A.61F17EBA.0001, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-Origin-Country: SE X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:225292 Archived-At: --Apple-Mail=_86DE42E5-38C5-48DE-800A-9972452272EF Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii 26 jan. 2022 kl. 14.48 skrev Robert Pluim : > U+006F 'LATIN SMALL LETTER O' point=3D2938 of 2942 col=3D52 The single quotes are mostly noise; a comma after the name seems to work = just as well and is less intrusive (and shorter). The syntax "U+1234 = NAME IN CAPS" is Unicode standard and the user is likely to have = encountered it before. Here is an updated patch. --Apple-Mail=_86DE42E5-38C5-48DE-800A-9972452272EF Content-Disposition: attachment; filename=0001-Cleaner-what-cursor-position-format.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="0001-Cleaner-what-cursor-position-format.patch" Content-Transfer-Encoding: quoted-printable =46rom=20a4d4eaf9fcb83b98277959083028aa2a20489a1c=20Mon=20Sep=2017=20= 00:00:00=202001=0AFrom:=20=3D?UTF-8?q?Mattias=3D20Engdeg=3DC3=3DA5rd?=3D=20= =0ADate:=20Mon,=2024=20Jan=202022=2016:49:08=20+0100=0A= Subject:=20[PATCH]=20Cleaner=20`what-cursor-position`=20format=0A=0AAdd=20= a=20new=20`C-x=20=3D`=20output=20format,=20under=20the=20control=20of=20= the=20new=0A`what-cursor-format`=20user=20option,=20that=20uses=20more=20= modern=20formatting=0Aand=20omits=20noise=20syntax=20and=20rarely=20used=20= information.=20=20It=20always=0Aincludes=20the=20character=20name.=0A=0A= *=20lisp/simple.el=20(what-cursor-format):=20New.=0A= (what-cursor-show-names):=20Explain=20relation=20to=20= `what-cursor-format`.=0A(what-cursor-position--default,=0A= what-cursor-position--traditional):=20New=20functions.=0A= (what-cursor-position):=20Reduce=20to=20calling=20the=20right=20back-end=20= function.=0A*=20etc/NEWS:=20Announce.=0A---=0A=20etc/NEWS=20=20=20=20=20=20= =20|=20=206=20++++=0A=20lisp/simple.el=20|=2078=20= ++++++++++++++++++++++++++++++++++++++------------=0A=202=20files=20= changed,=2065=20insertions(+),=2019=20deletions(-)=0A=0Adiff=20--git=20= a/etc/NEWS=20b/etc/NEWS=0Aindex=20abef1019ac..68fb9110f1=20100644=0A---=20= a/etc/NEWS=0A+++=20b/etc/NEWS=0A@@=20-183,6=20+183,12=20@@=20wheel=20= reports.=20=20Unlike=20'pixel-scroll-mode',=20this=20mode=20scrolls=20= the=0A=20display=20pixel-by-pixel,=20as=20opposed=20to=20only=20= animating=20line-by-line=0A=20scrolls.=0A=20=0A+**=20New=20user=20option=20= 'what-cursor-format'=0A+It=20governs=20the=20output=20format=20of=20= 'what-cursor-position',=20normally=0A+bound=20to=20'C-x=20=3D'.=20=20= When=20'traditional',=20the=20output=20is=20identical=0A+to=20that=20of=20= Emacs=2028;=20when=20'default',=20a=20simpler,=20briefer=20format=0A= +that=20always=20includes=20the=20character=20name=20is=20used.=0A+=0A=20= **=20Terminal=20Emacs=0A=20=0A=20---=0Adiff=20--git=20a/lisp/simple.el=20= b/lisp/simple.el=0Aindex=20801a3c992c..2cc90426e2=20100644=0A---=20= a/lisp/simple.el=0A+++=20b/lisp/simple.el=0A@@=20-1564,27=20+1564,57=20= @@=20count-lines=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= (1-=20(line-number-at-pos))=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20(line-number-at-pos)))))))=0A=20=0A+(defcustom=20what-cursor-format=20= 'default=0A+=20=20"What=20to=20show=20in=20the=20echo=20area=20in=20= `what-cursor-position'.=0A+The=20`default'=20format=20gives=20the=20hex=20= code=20and=20name=20of=20the=20character=0A+after=20point,=20the=20= cursor=20position,=20buffer=20size,=20and=20column=20number.=0A+=0A+The=20= `traditional'=20format=20also=20displays=20the=20code=20in=20decimal=20= and=20octal,=0A+and=20only=20includes=20the=20name=20if=20= `what-cursor-show-name'=20is=20non-nil.=0A+For=20a=20non-ASCII=20= multibyte=20character,=20it=20also=20gives=20the=20encoding=20in=20the=0A= +buffer's=20selected=20coding=20system=20if=20the=20coding=20system=20= encodes=20the=0A+character=20safely.=20=20If=20the=20character=20is=20= encoded=20into=20one=20byte,=20that=0A+code=20is=20shown=20in=20hex.=20=20= If=20the=20character=20is=20encoded=20into=20more=20than=20one=0A+byte,=20= just=20\"...\"=20is=20shown."=0A+=20=20:type=20'(choice=20(const=20:tag=20= "Default"=20default)=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= (const=20:tag=20"Traditional"=20traditional))=0A+=20=20:version=20"29.1"=0A= +=20=20:group=20'editing-basics)=0A+=0A=20(defcustom=20= what-cursor-show-names=20nil=0A-=20=20"Whether=20to=20show=20character=20= names=20in=20`what-cursor-position'."=0A+=20=20"Whether=20to=20show=20= character=20names=20in=20`what-cursor-position'.=0A+It=20only=20applies=20= when=20`what-cursor-format'=20is=20`traditional'."=0A=20=20=20:type=20= 'boolean=0A=20=20=20:version=20"27.1"=0A=20=20=20:group=20= 'editing-basics)=0A=20=0A-(defun=20what-cursor-position=20(&optional=20= detail)=0A-=20=20"Print=20info=20on=20cursor=20position=20(on=20screen=20= and=20within=20buffer).=0A-Also=20describe=20the=20character=20after=20= point,=20and=20give=20its=20character=0A-code=20in=20octal,=20decimal=20= and=20hex.=20=20If=20`what-cursor-show-names'=20is=0A-non-nil,=20= additionally=20show=20the=20name=20of=20the=20character.=0A-=0A-For=20a=20= non-ASCII=20multibyte=20character,=20also=20give=20its=20encoding=20in=20= the=0A-buffer's=20selected=20coding=20system=20if=20the=20coding=20= system=20encodes=20the=0A-character=20safely.=20=20If=20the=20character=20= is=20encoded=20into=20one=20byte,=20that=0A-code=20is=20shown=20in=20= hex.=20=20If=20the=20character=20is=20encoded=20into=20more=20than=20one=0A= -byte,=20just=20\"...\"=20is=20shown.=0A-=0A-In=20addition,=20with=20= prefix=20argument,=20show=20details=20about=20that=20character=0A-in=20= *Help*=20buffer.=20=20See=20also=20the=20command=20`describe-char'."=0A-=20= =20(interactive=20"P")=0A+(defun=20what-cursor-position--default=20()=0A= +=20=20"Default=20echo=20area=20output=20of=20`what-cursor-position'."=0A= +=20=20(let*=20((char=20(char-after))=0A+=20=20=20=20=20=20=20=20=20= (char-info=0A+=20=20=20=20=20=20=20=20=20=20(cond=0A+=20=20=20=20=20=20=20= =20=20=20=20((null=20char)=20"")=0A+=20=20=20=20=20=20=20=20=20=20=20= ((<=3D=20#x3fff80=20char=20#x3fffff)=0A+=20=20=20=20=20=20=20=20=20=20=20= =20(format=20"#x%02X=20(raw=20byte)=20"=20(logand=20char=20#xff)))=0A+=20= =20=20=20=20=20=20=20=20=20=20(t=0A+=20=20=20=20=20=20=20=20=20=20=20=20= (format=20"U+%04X=20%s,=20"=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20char=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20(or=20(get-char-code-property=20char=20'name)=0A+=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= (get-char-code-property=20char=20'old-name)=0A+=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20"(undefined)")))))=0A+=20=20= =20=20=20=20=20=20=20(beg=20(point-min))=0A+=20=20=20=20=20=20=20=20=20= (end=20(point-max))=0A+=20=20=20=20=20=20=20=20=20(narrow=20(if=20(and=20= (=3D=20beg=201)=20(=3D=20(1-=20end)=20(buffer-size)))=0A+=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20""=0A+=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20(format=20"=20(narrowed=20to=20%d-%d)"=20= beg=20end))))=0A+=20=20=20=20(message=20"%spoint=3D%d/%d%s=20col=3D%d"=0A= +=20=20=20=20=20=20=20=20=20=20=20=20=20char-info=0A+=20=20=20=20=20=20=20= =20=20=20=20=20=20(point)=20(buffer-size)=0A+=20=20=20=20=20=20=20=20=20=20= =20=20=20narrow=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20= (current-column))))=0A+=0A+(defun=20what-cursor-position--traditional=20= ()=0A+=20=20"Traditional=20echo=20area=20output=20of=20= `what-cursor-position'."=0A=20=20=20(let*=20((char=20(following-char))=0A= =20=20=20=20=20=20=20=20=20=20(char-name=20(and=20what-cursor-show-names=0A= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20(or=20(get-char-code-property=20char=20'name)=0A@@=20-1671,9=20= +1701,6=20@@=20what-cursor-position=0A=20=09=09=09=09=20=20"..."=0A=20=09= =09=09=09(encoded-string-description=20encoded=20coding)))=0A=20=09=09=20= =20=20=20(format=20"(%d,=20#o%o,=20#x%x%s)"=20char=20char=20char=20= char-name-fmt)))))=0A-=09(if=20detail=0A-=09=20=20=20=20;;=20We=20show=20= the=20detailed=20information=20about=20CHAR.=0A-=09=20=20=20=20= (describe-char=20(point)))=0A=20=09(if=20(or=20(/=3D=20beg=201)=20(/=3D=20= end=20(1+=20total)))=0A=20=09=20=20=20=20(message=20"Char:=20%s%s=20%s=20= point=3D%d=20of=20%d=20(%d%%)=20<%d-%d>=20column=3D%d%s"=0A=20=09=09=20=20= =20=20=20(if=20(<=20char=20256)=0A@@=20-1688,6=20+1715,19=20@@=20= what-cursor-position=0A=20=09=09=09=20(buffer-substring-no-properties=20= (point)=20(1+=20(point))))=0A=20=09=09=20=20=20=20=20= (single-key-description=20char))=0A=20=09=09=20=20=20bidi-fixer=20= encoding-msg=20pos=20total=20percent=20col=20hscroll))))))=0A+=0A+(defun=20= what-cursor-position=20(&optional=20detail)=0A+=20=20"Print=20info=20on=20= cursor=20position=20(on=20screen=20and=20within=20buffer).=0A+Also=20= describe=20the=20character=20after=20point=20according=20to=20= `what-cursor-format'.=0A+=0A+In=20addition,=20with=20prefix=20argument,=20= show=20details=20about=20that=20character=0A+in=20*Help*=20buffer.=20=20= See=20also=20the=20command=20`describe-char'."=0A+=20=20(interactive=20= "P")=0A+=20=20(when=20detail=0A+=20=20=20=20(describe-char=20(point)))=0A= +=20=20(cond=0A+=20=20=20((eq=20what-cursor-format=20'default)=20=20=20=20= =20(what-cursor-position--default))=0A+=20=20=20((eq=20= what-cursor-format=20'traditional)=20= (what-cursor-position--traditional))))=0A=20=0C=0A=20;;=20Initialize=20= read-expression-map.=20=20It=20is=20defined=20at=20C=20level.=0A=20= (defvar=20read-expression-map=0A--=20=0A2.32.0=20(Apple=20Git-132)=0A=0A= --Apple-Mail=_86DE42E5-38C5-48DE-800A-9972452272EF--