From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#27122: 26.0.50; [PATCH] Add customizable to display unprintables as hex Date: Mon, 29 May 2017 22:52:37 +0300 Message-ID: <834lw3fnju.fsf@gnu.org> References: <20170528204250.wjbrm2pul6cf6xam@odonien.localdomain> <83o9ucfl37.fsf@gnu.org> <20170529062859.mwoveygr5oh5iphz@odonien.localdomain> <87y3tfqz6c.fsf@SoraLaptop> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1496087694 24398 195.159.176.226 (29 May 2017 19:54:54 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 29 May 2017 19:54:54 +0000 (UTC) Cc: 27122@debbugs.gnu.org, v.schneidermann@gmail.com To: Robert Cochran Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 29 21:54:50 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dFQkb-00069Y-Qy for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 May 2017 21:54:49 +0200 Original-Received: from localhost ([::1]:50319 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dFQkh-0005qF-9I for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 May 2017 15:54:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45372) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dFQiw-0004oD-V1 for bug-gnu-emacs@gnu.org; Mon, 29 May 2017 15:53:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dFQis-0006KB-Bi for bug-gnu-emacs@gnu.org; Mon, 29 May 2017 15:53:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41117) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dFQis-0006K7-8F for bug-gnu-emacs@gnu.org; Mon, 29 May 2017 15:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dFQis-0004Ed-2u for bug-gnu-emacs@gnu.org; Mon, 29 May 2017 15:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 May 2017 19:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27122 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 27122-submit@debbugs.gnu.org id=B27122.149608756516256 (code B ref 27122); Mon, 29 May 2017 19:53:02 +0000 Original-Received: (at 27122) by debbugs.gnu.org; 29 May 2017 19:52:45 +0000 Original-Received: from localhost ([127.0.0.1]:43794 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dFQib-0004E8-Ea for submit@debbugs.gnu.org; Mon, 29 May 2017 15:52:45 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54227) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dFQiZ-0004Dv-SV for 27122@debbugs.gnu.org; Mon, 29 May 2017 15:52:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dFQiP-00064h-W5 for 27122@debbugs.gnu.org; Mon, 29 May 2017 15:52:38 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37660) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dFQiP-00064W-Sh; Mon, 29 May 2017 15:52:33 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1059 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dFQiO-0004bm-OL; Mon, 29 May 2017 15:52:33 -0400 In-reply-to: <87y3tfqz6c.fsf@SoraLaptop> (message from Robert Cochran on Mon, 29 May 2017 11:46:03 -0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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" Xref: news.gmane.org gmane.emacs.bugs:133005 Archived-At: > From: Robert Cochran > Cc: Eli Zaretskii , 27122@debbugs.gnu.org > Date: Mon, 29 May 2017 11:46:03 -0700 > > what is wrong with adding what is clearly an option, so it can be > changed in one place and be done with it? Complexity and maintainability. The code which handles special characters is already almost 140 lines of terse C, controlled by 2 obscure variables (ever heard of printable-chars, for example?) and 2 special faces. And that's excluding the glyphless-char-display stuff, which adds even more. It's almost impossible to tell in advance how will some specific codepoint be displayed if the terminal cannot handle it "normally". At least I need to read the involved code every time I have to answer such questions. I'd rather not add to this any more complexity, unless it's really needed. That is why I'd like to understand the details of the use case: to see whether we already have a reasonable solution for it.