From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Alfred M. Szmidt" Newsgroups: gmane.emacs.devel Subject: Re: replacing hexl-mode with nhexl-mode? Date: Wed, 23 Mar 2022 03:07:25 -0400 Message-ID: References: <83tubpeuly.fsf@gnu.org> <83sfr9eov4.fsf@gnu.org> <83r16ten4w.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20757"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Mar 23 08:08:37 2022 Return-path: Envelope-to: ged-emacs-devel@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 1nWv6h-0005Dq-Km for ged-emacs-devel@m.gmane-mx.org; Wed, 23 Mar 2022 08:08:35 +0100 Original-Received: from localhost ([::1]:59902 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nWv6g-0000DG-4R for ged-emacs-devel@m.gmane-mx.org; Wed, 23 Mar 2022 03:08:34 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:38748) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nWv5a-0007nq-0w for emacs-devel@gnu.org; Wed, 23 Mar 2022 03:07:26 -0400 Original-Received: from [2001:470:142:3::e] (port=59474 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nWv5Z-0001ET-NJ for emacs-devel@gnu.org; Wed, 23 Mar 2022 03:07:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=n5yNpmbgjrfojeMDsKcnGokQSdnxoXHpDXpGZ+bJktY=; b=oUqldrIubMxm 5uYdV6uG/1bmgPmoQVxO6hEZGcwMBZG0gOutIUO6mrEk3h5fXb5Sh9H1cHrlHpHLjeXFlbq4mbHj+ 3i5PGEqGmFYQwKec838WNQT8t8s+M3Zb3vSqErmB76NGHS9PDL3/E8WD5ih/Lwz8HwA6384PS391r UX1ZM3C5EljQgPNeGQcLY/iA3INQZBYwkJaWX+yEyxW81emsRVPDvNi8Wq3NmRXM4MrO86HF0O4TX 0V5fGBvCRKfcNhjlLeOM4OoUcoiETs/aKwJv3bs9V/+YFLJa8cmeLwUHRfS24F7IYyAGrNiBC7FpZ Jhxm4tBXfEvBlcib+hzL5A==; Original-Received: from ams by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1nWv5Z-0001wx-Eq; Wed, 23 Mar 2022 03:07:25 -0400 In-Reply-To: <83r16ten4w.fsf@gnu.org> (message from Eli Zaretskii on Tue, 22 Mar 2022 22:41:03 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:287380 Archived-At: Btw, some problems can be seen almost right away. Try this: C-x C-f etc/HELLO M-x nhexl-mode RET The display is much less tidy, to say the least, than with hexl.el. It looks like the fancy display of LF is the culprit, at least on my system (font issues?) Now try scrolling with C-n, and you will see stuttering that isn't there with hexl. There's a also a larger, more subtle problem: nhexl shows you the internal representation of the buffer text, not what's in the file on disk; this matters a lot when the file has non-ASCII text. You need to be aware of that and visit the file literally if you want to avoid this issue (there's no nhexl-find-file command). Finally, nhexl causes display problems when invoked in buffers text using bidirectional scripts. Try this: C-x C-f etc/tutorials/TUTORIAL.he RET M-x nhexl-mode RET These both seem to be because of not visiting the file literally; something that hexl-mode will do automatically. That shouldn't be to hard to fix. Lots of fun! I'm not sure I follow.