From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Vasilij Schneidermann Newsgroups: gmane.emacs.bugs Subject: bug#27122: 26.0.50; [PATCH] Add customizable to display unprintables as hex Date: Mon, 29 May 2017 22:20:21 +0200 Message-ID: <20170529202021.ax4reeivfvlijkqv@odonien.localdomain> References: <20170528204250.wjbrm2pul6cf6xam@odonien.localdomain> <83o9ucfl37.fsf@gnu.org> <20170529062859.mwoveygr5oh5iphz@odonien.localdomain> <87y3tfqz6c.fsf@SoraLaptop> <834lw3fnju.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Trace: blaine.gmane.org 1496089273 14659 195.159.176.226 (29 May 2017 20:21:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 29 May 2017 20:21:13 +0000 (UTC) User-Agent: NeoMutt/20170428-45-01e908 (1.8.2) Cc: 27122@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 29 22:21:09 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 1dFRA5-0003Yc-6B for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 May 2017 22:21:09 +0200 Original-Received: from localhost ([::1]:50389 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dFRA9-0002Vy-5J for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 May 2017 16:21:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50210) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dFRA3-0002Ud-8O for bug-gnu-emacs@gnu.org; Mon, 29 May 2017 16:21:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dFR9z-0005oD-40 for bug-gnu-emacs@gnu.org; Mon, 29 May 2017 16:21:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41150) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dFR9y-0005o4-PB for bug-gnu-emacs@gnu.org; Mon, 29 May 2017 16:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dFR9y-0008VC-HY for bug-gnu-emacs@gnu.org; Mon, 29 May 2017 16:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Vasilij Schneidermann Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 May 2017 20:21: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.149608922932623 (code B ref 27122); Mon, 29 May 2017 20:21:02 +0000 Original-Received: (at 27122) by debbugs.gnu.org; 29 May 2017 20:20:29 +0000 Original-Received: from localhost ([127.0.0.1]:43827 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dFR9R-0008U7-FA for submit@debbugs.gnu.org; Mon, 29 May 2017 16:20:29 -0400 Original-Received: from mail-wm0-f67.google.com ([74.125.82.67]:34515) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dFR9Q-0008Ts-Ex for 27122@debbugs.gnu.org; Mon, 29 May 2017 16:20:28 -0400 Original-Received: by mail-wm0-f67.google.com with SMTP id d127so20285831wmf.1 for <27122@debbugs.gnu.org>; Mon, 29 May 2017 13:20:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=j/IhIxz8rbt5g3/JQfBnlFinv7PjIKBqk48i6Sg2Vwg=; b=WscL36NH2Bv7qGHbqpU3wivGngqG9qpN/VSuq8Zsf+UhlMplcdWU5nkhzgF9qP0vn+ DK1+Ul0AcP0zMIZ56zBrK8tH6mhCLta+0n16Nkv9PD/iR1r+sLFygqLDvSJnfDn2RTgP oqgyYn8YPdwJSREf7YUr8TMTkMPfQ0H0bmSB46ThT87peh583L0pNeOnn/SWSkDgtogi 0WEbGFNnpPbhujm6O9P2n1+pt0lQ3JVyPMNhDFoJhOKfs95cdkjMpDcFT9FsvNF1JHLr QC2OHguYd7g100OwxCn6BF3I8PiuwpHwaT5liQ2ev2jNLfXQgAC3qPVAnlDnNSwQHh0V Aaqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=j/IhIxz8rbt5g3/JQfBnlFinv7PjIKBqk48i6Sg2Vwg=; b=G6QqKfj9UsXs69VkgH2ko3tcICaj++Szn0R/sDbP7ED7RA1g8NA74w/cRHAFm4NDMx Ajn5Hx+IozEWnM/QNf+m9IbNia46rkZGEsI0RtBdKn5w0sLJn2/2wB/TVu72y30qHbdA ELTCOMu/inn5MrUpttDGggSRBSgFJd3O2upzX07xp62/IvmsWgo4r5XqWM8mbS/cePuf haN9XhOPuJgaOYC8ZfNiwZLWwh1n3yUZxVXEQY4emBftcOcpojqjDZzwC9AOhDvRK/rP AoVuMVU2oP7MN4sRugOhgv1A4AzvHjJkWNCauSiToDnMFw2QUruyDLWoa3YZUHe2Pcnz ePOA== X-Gm-Message-State: AODbwcDeM4tQtfUfHhuwK8bYom1pEfMSjSILu/jsO/WSIOitgJrf+CJ4 RIHcpuzGLSaBAovNgbA= X-Received: by 10.80.131.135 with SMTP id 7mr13716746edi.14.1496089222829; Mon, 29 May 2017 13:20:22 -0700 (PDT) Original-Received: from localhost (2001-4dd0-2019-913-a11-96ff-fea9-8754.ipv6dyn.netcologne.de. [2001:4dd0:2019:913:a11:96ff:fea9:8754]) by smtp.gmail.com with ESMTPSA id k17sm5794331eda.61.2017.05.29.13.20.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 29 May 2017 13:20:22 -0700 (PDT) Content-Disposition: inline In-Reply-To: <834lw3fnju.fsf@gnu.org> 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:133008 Archived-At: > 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. While this is unfortunate, I find it more instructive to look at it in terms of how much complexity is added (an extra conditional and a customizable), not how much lurks in the existing code. If you constantly went by that argument, you would have to refrain from any kind of Emacs hacking given its impenetrable code base. The easiest way to solve this without adding any extra complexity would be simply replacing the format string by the hex one. I wouldn't want to be involved in the ensuing discussion though...