From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#13745: c1-acronyms Date: Wed, 24 Feb 2016 16:48:39 +1100 Message-ID: <877fhufyko.fsf@gnus.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1456293023 6969 80.91.229.3 (24 Feb 2016 05:50:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Feb 2016 05:50:23 +0000 (UTC) Cc: 13745@debbugs.gnu.org To: starback@stp.lingfil.uu.se (Per =?UTF-8?Q?Starb=C3=A4ck?=) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 24 06:50:12 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aYSKx-0008Rc-Kd for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Feb 2016 06:50:11 +0100 Original-Received: from localhost ([::1]:33700 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYSKw-0000oM-Tm for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Feb 2016 00:50:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40798) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYSKs-0000ka-SK for bug-gnu-emacs@gnu.org; Wed, 24 Feb 2016 00:50:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYSKo-0003wG-7n for bug-gnu-emacs@gnu.org; Wed, 24 Feb 2016 00:50:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45121) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYSKo-0003wC-5S for bug-gnu-emacs@gnu.org; Wed, 24 Feb 2016 00:50:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aYSKn-00063t-Rc for bug-gnu-emacs@gnu.org; Wed, 24 Feb 2016 00:50:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 24 Feb 2016 05:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13745 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 13745-submit@debbugs.gnu.org id=B13745.145629294823233 (code B ref 13745); Wed, 24 Feb 2016 05:50:01 +0000 Original-Received: (at 13745) by debbugs.gnu.org; 24 Feb 2016 05:49:08 +0000 Original-Received: from localhost ([127.0.0.1]:42248 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYSJw-00062f-9m for submit@debbugs.gnu.org; Wed, 24 Feb 2016 00:49:08 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:45983) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYSJu-00062X-Lj for 13745@debbugs.gnu.org; Wed, 24 Feb 2016 00:49:07 -0500 Original-Received: from cpe-60-225-211-161.nsw.bigpond.net.au ([60.225.211.161] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aYSJX-0002EV-Hq; Wed, 24 Feb 2016 06:48:44 +0100 In-Reply-To: ("Per \=\?iso-8859-1\?Q\?S\?\= \=\?iso-8859-1\?Q\?tarb\=E4ck\=22's\?\= message of "Mon, 18 Feb 2013 18:00:45 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-MailScanner-ID: 1aYSJX-0002EV-Hq MailScanner-NULL-Check: 1456897724.31845@rDMYxUJGspt8b7Kui4PvuA 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: 208.118.235.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:113669 Archived-At: starback@stp.lingfil.uu.se (Per Starb=E4ck) writes: > In GNU Emacs 24.2.93.1. > > char-acronym-table has three entries with "XXX". They are from > lisp/international/characters.el : > >> (let ((c1-acronyms '("XXX" "XXX" "BPH" "NBH" "IND" "NEL" "SSA" "ESA" >> "HTS" "HTJ" "VTS" "PLD" "PLU" "R1" "SS2" "SS1" >> "DCS" "PU1" "PU2" "STS" "CCH" "MW" "SPA" "EPA" >> "SOS" "XXX" "SC1" "CSI" "ST" "OSC" "PM" "APC"))) > > These are the three C1 control characters that are listed with no name > in Unicode and that aren't part of ISO/IEC 6429. > > These had the acros PAD, HOP, SGCI in draft DIS 10646, but weren't > standardized (not accepted to ISO 10646). > > http://en.wikipedia.org/wiki/C0_and_C1_control_codes#C1_set > http://www.aivosto.com/vbtips/control-characters.html > > I don't like the acronym feature showing different characters the same, > so I suggest that "XXX" is replaced by the inofficial PAD, HOP, SGCI > here. If this list is automatically generated from the C1 control code list, then perhaps that generating function should be removed? If not, I think your patch is OK, if I understand what it's doing here. (I may very well be not.) > ! (let ((c1-acronyms '("XXX" "XXX" "BPH" "NBH" "IND" "NEL" "SSA" "ESA" > "HTS" "HTJ" "VTS" "PLD" "PLU" "R1" "SS2" "SS1" > "DCS" "PU1" "PU2" "STS" "CCH" "MW" "SPA" "EPA" > ! "SOS" "XXX" "SC1" "CSI" "ST" "OSC" "PM" "APC"))) > (dotimes (i 32) > (aset char-acronym-table (+ #x0080 i) (car c1-acronyms)) > (setq c1-acronyms (cdr c1-acronyms)))) > --- 1354,1363 ---- > (aset char-acronym-table i (car c0-acronyms)) > (setq c0-acronyms (cdr c0-acronyms)))) > > ! (let ((c1-acronyms '("PAD" "HOP" "BPH" "NBH" "IND" "NEL" "SSA" "ESA" > "HTS" "HTJ" "VTS" "PLD" "PLU" "R1" "SS2" "SS1" > "DCS" "PU1" "PU2" "STS" "CCH" "MW" "SPA" "EPA" > ! "SOS" "SGCI" "SC1" "CSI" "ST" "OSC" "PM" "APC"))) > (dotimes (i 32) > (aset char-acronym-table (+ #x0080 i) (car c1-acronyms)) > (setq c1-acronyms (cdr c1-acronyms)))) > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no