From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#11822: 24.1; emacsclient terminal mode captures escape characters as text Date: Fri, 25 Sep 2015 16:29:44 +0300 Message-ID: <83612yiq47.fsf@gnu.org> References: <6eipe9fypj.fsf@just-testing.permabit.com> <83r3m97bzs.fsf@gnu.org> <37C523EE-3D76-40F7-B7B2-99D6F0BD7B97@permabit.com> <83bndc7r5b.fsf@gnu.org> <6ea8swr8ja.fsf@just-testing.permabit.com> <83si6n65ld.fsf@gnu.org> <6e613irc91.fsf@just-testing.permabit.com> <83bnda5lso.fsf@gnu.org> <6ezj0tphtd.fsf@just-testing.permabit.com> <83h9n14e04.fsf@gnu.org> <6esi6kpn4t.fsf@just-testing.permabit.com> <834miv92nm.fsf@gnu.org> <83a8sjreso.fsf@gnu.org> <838u80nm2e.fsf@gnu.org> <83k2rhj67q.fsf@gnu.org> <83h9mjhu1n.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1443187835 18899 80.91.229.3 (25 Sep 2015 13:30:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Sep 2015 13:30:35 +0000 (UTC) Cc: raeburn@permabit.com, 11822@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 25 15:30:23 2015 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 1ZfT4v-000473-3P for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 Sep 2015 15:30:21 +0200 Original-Received: from localhost ([::1]:39802 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfT4u-0004D3-Dg for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 Sep 2015 09:30:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58010) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfT4k-00049G-Gc for bug-gnu-emacs@gnu.org; Fri, 25 Sep 2015 09:30:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZfT4h-0000JL-8O for bug-gnu-emacs@gnu.org; Fri, 25 Sep 2015 09:30:10 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53646) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfT4h-0000J9-6Q for bug-gnu-emacs@gnu.org; Fri, 25 Sep 2015 09:30:07 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZfT4g-0004OB-9a for bug-gnu-emacs@gnu.org; Fri, 25 Sep 2015 09:30:06 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Sep 2015 13:30:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11822 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11822-submit@debbugs.gnu.org id=B11822.144318779516825 (code B ref 11822); Fri, 25 Sep 2015 13:30:05 +0000 Original-Received: (at 11822) by debbugs.gnu.org; 25 Sep 2015 13:29:55 +0000 Original-Received: from localhost ([127.0.0.1]:42617 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZfT4T-0004NJ-Uf for submit@debbugs.gnu.org; Fri, 25 Sep 2015 09:29:54 -0400 Original-Received: from mtaout26.012.net.il ([80.179.55.182]:43219) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZfT4M-0004N5-Ty for 11822@debbugs.gnu.org; Fri, 25 Sep 2015 09:29:48 -0400 Original-Received: from conversion-daemon.mtaout26.012.net.il by mtaout26.012.net.il (HyperSendmail v2007.08) id <0NV800N00IJWCG00@mtaout26.012.net.il> for 11822@debbugs.gnu.org; Fri, 25 Sep 2015 16:32:26 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout26.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NV800ORLIY24000@mtaout26.012.net.il>; Fri, 25 Sep 2015 16:32:26 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:106907 Archived-At: > From: Stefan Monnier > Cc: Ken Raeburn , 11822@debbugs.gnu.org > Date: Fri, 25 Sep 2015 08:09:55 -0400 > > >> But I know of no way to do just the pattern matching and > >> existence test without fetching all the other data. The amount of wasted > >> allocations are dependent on the content of my directory, of course. > > > Did you look at that directory lately? It should be cleaned from time > > to time, to avoid having there auto-save files from years ago. > > Arguable, Emacs should fins a way to do it automatically for you. Do what? clean up that directory? That's not the issue here. The issue is that startup.el wants to know whether there are _any_ auto-save files, so that it could suggest recover-session. But the only way of doing that is call directory-files and look at the length of the list it returns, which ends up consing a long list that's thrown away. I thought of proposing to expose to Lisp an fnmatch-like function for this purpose, but it sounds like manually cleaning up that directory is a much easier solution.