From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#36085: 26.2; find-dired octal escapes instead of Cyrillic text Date: Sun, 9 Jun 2019 14:39:32 +0200 Message-ID: <377032D3-8461-4E82-9CB5-319DE2E9C1F6@acm.org> References: <83o938nl9j.fsf@gnu.org> <83h88zcozi.fsf@gnu.org> <83pnnnauvy.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="31037"; mail-complaints-to="usenet@blaine.gmane.org" Cc: grindeg@yandex.ru, 36085@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 09 14:40:11 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hZx7L-0007xf-5s for geb-bug-gnu-emacs@m.gmane.org; Sun, 09 Jun 2019 14:40:11 +0200 Original-Received: from localhost ([::1]:35646 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hZx7J-00043d-Ot for geb-bug-gnu-emacs@m.gmane.org; Sun, 09 Jun 2019 08:40:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42069) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hZx7D-00043L-JJ for bug-gnu-emacs@gnu.org; Sun, 09 Jun 2019 08:40:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hZx7C-0003Kc-Ij for bug-gnu-emacs@gnu.org; Sun, 09 Jun 2019 08:40:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40879) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hZx7C-0003K9-Fv for bug-gnu-emacs@gnu.org; Sun, 09 Jun 2019 08:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hZx7C-000633-Bs for bug-gnu-emacs@gnu.org; Sun, 09 Jun 2019 08:40:02 -0400 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: Sun, 09 Jun 2019 12:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36085 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 36085-submit@debbugs.gnu.org id=B36085.156008398523222 (code B ref 36085); Sun, 09 Jun 2019 12:40:02 +0000 Original-Received: (at 36085) by debbugs.gnu.org; 9 Jun 2019 12:39:45 +0000 Original-Received: from localhost ([127.0.0.1]:54423 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hZx6v-00062T-Cb for submit@debbugs.gnu.org; Sun, 09 Jun 2019 08:39:45 -0400 Original-Received: from mail1424c50.megamailservers.eu ([91.136.14.24]:33858 helo=mail102c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hZx6s-00062D-CV for 36085@debbugs.gnu.org; Sun, 09 Jun 2019 08:39:43 -0400 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1560083975; bh=Jegiuq4sW3Kw8Lhl6SKV4EaWKPfW17UBMZsK4YhHI8I=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=gkvVm0VSe977QbA54YSluacbC2KYuFN0PLKUAW7N6VSJ288EfeCQKGEZfksO8osIV EwHV4w8lQKxlG0q3pJOQK8tqA8omh96qActWzQj6MYJYYEjYkoz/ZdNKu0TLthwLzP PmXVctJav8K1A1bwfzIT5aRbed+i81Gpxf/lS078= Feedback-ID: mattiase@acm.or Original-Received: from [192.168.0.4] ([188.150.171.71]) (authenticated bits=0) by mail102c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id x59CdXGm025393; Sun, 9 Jun 2019 12:39:34 +0000 In-Reply-To: <83pnnnauvy.fsf@gnu.org> X-Mailer: Apple Mail (2.3445.104.11) X-CTCH-RefID: str=0001.0A0B0213.5CFCFE07.001E, 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-CSC: 0 X-CHA: v=2.3 cv=F7x5iJpN c=1 sm=1 tr=0 a=SF+I6pRkHZhrawxbOkkvaA==:117 a=SF+I6pRkHZhrawxbOkkvaA==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=mDV3o1hIAAAA:8 a=r5nI36mXk4gAHC_GvlYA:9 a=CjuIK1q_8ugA:10 a=_FVE-zBwftR9WsbkzFJk:22 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: 209.51.188.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:160275 Archived-At: 9 juni 2019 kl. 12.57 skrev Eli Zaretskii : >=20 >> Maybe we can trust -print0 to work everywhere (BSD find has it). >=20 > That's orthogonal, isn't it? It is only needed to make sure we don't > get confused by file names with embedded newlines, AFAIU. Not quite orthogonal as the -ls quoting also takes care of newlines, but = I have no strong opinion on the matter. >> It's probably a quaint notion, but I wish Emacs were be able to do = without the help of external programs for something as basic as listing = directories. >=20 > We have such capabilities, see directory-files-and-attributes and > directory-files-recursively. We also have find-lisp.el. I just > assumed these alternatives will be significantly slower, but maybe > that's not the case? You are right, they are slower, but need not be. The directory listing = functions are slow because they throw away information, leading to lots = of unnecessary syscalls and, on remote file systems, network roundtrips. = This is true both on Unix and Windows. Fixing this is not difficult but the elisp interface design requires = care, and this goes beyond the scope of this bug. Your suggestions sound = more realistic in the short term. > One other consideration is that for large directory trees the current > implementation of find-dired updates the buffer in parallel with > 'find' still running, whereas the alternatives will not return until > the whole listing has been generated, which might take a long time. This concern is definitely valid. I don't know to what extent = parallelism is possible in the current thread implementation. Again, = improvements in this respect would have benefits beyond find-dired.