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, 10 Aug 2012 11:08:21 +0300 Message-ID: <838vdndv9m.fsf@gnu.org> References: <6eipe9fypj.fsf@just-testing.permabit.com> <83d34h739a.fsf@gnu.org> <501848BE.10702@permabit.com> <5021D940.8050401@permabit.com> <415962DC-9BF5-4595-8180-7BE8DB545206@permabit.com> <502427D2.3080003@permabit.com> <83ipcre0fm.fsf@gnu.org> <2AB38709-2307-437E-A242-70B8A358BE4F@permabit.com> <83a9y3dwa8.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1344586143 28425 80.91.229.3 (10 Aug 2012 08:09:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Aug 2012 08:09:03 +0000 (UTC) Cc: 11822@debbugs.gnu.org To: raeburn@permabit.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 10 10:09:01 2012 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 1SzkH8-0004Ua-RW for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Aug 2012 10:08:54 +0200 Original-Received: from localhost ([::1]:36598 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SzkH7-0008QR-K3 for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Aug 2012 04:08:53 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38057) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SzkH3-0008QH-6k for bug-gnu-emacs@gnu.org; Fri, 10 Aug 2012 04:08:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SzkH2-00087N-0D for bug-gnu-emacs@gnu.org; Fri, 10 Aug 2012 04:08:49 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36386) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SzkH1-00087I-Sw for bug-gnu-emacs@gnu.org; Fri, 10 Aug 2012 04:08:47 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SzkOz-0004zO-Jv for bug-gnu-emacs@gnu.org; Fri, 10 Aug 2012 04:17:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Aug 2012 08:17:01 +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.134458660419149 (code B ref 11822); Fri, 10 Aug 2012 08:17:01 +0000 Original-Received: (at 11822) by debbugs.gnu.org; 10 Aug 2012 08:16:44 +0000 Original-Received: from localhost ([127.0.0.1]:45932 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SzkOi-0004yn-An for submit@debbugs.gnu.org; Fri, 10 Aug 2012 04:16:44 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:58831) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SzkOg-0004yg-CZ for 11822@debbugs.gnu.org; Fri, 10 Aug 2012 04:16:43 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0M8J00100544CL00@a-mtaout20.012.net.il> for 11822@debbugs.gnu.org; Fri, 10 Aug 2012 11:08:15 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M8J000BH59QHXE0@a-mtaout20.012.net.il>; Fri, 10 Aug 2012 11:08:15 +0300 (IDT) In-reply-to: <83a9y3dwa8.fsf@gnu.org> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.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:62992 Archived-At: > Date: Fri, 10 Aug 2012 10:46:23 +0300 > From: Eli Zaretskii > Cc: 11822@debbugs.gnu.org > > > Is there a reason recompute_basic_faces can't just clear the cache for its own frame and leave the others alone? > > Are you saying that the used flag of the frame's cache is not a > sufficient condition for clearing the face caches? According to my reading of the code: The used flag being zero means there are no cached faces in the cache. So clearing the cache in that case doesn't sound like we are losing anything. Moreover, clear_face_cache does not necessarily clear all the caches of all frames, it does that only conditionally on this test: if (clear_fonts_p || ++clear_font_table_count == CLEAR_FONT_TABLE_COUNT) Otherwise, it only clears the GC of each face: else { /* Clear GCs of realized faces. */ FOR_EACH_FRAME (tail, frame) { struct frame *f = XFRAME (frame); if (FRAME_WINDOW_P (f)) clear_face_gcs (FRAME_FACE_CACHE (f)); } clear_image_caches (Qnil); } Which of these happens for you? Also, can you show the backtraces of each call to recompute_basic_faces? In any case, it is only worth our while to talk about the call to recompute_basic_faces if you time these calls and see that they indeed take a significant amount of time. Do they?