From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Recent diff-mode changes feel slow with TRAMP Date: Sun, 20 Jan 2019 09:38:10 -0500 Message-ID: References: <87r2di5x4r.fsf@secretsauce.net> <87va2sb6ai.fsf@mail.linkov.net> <87h8e4idd9.fsf@mail.linkov.net> NNTP-Posting-Host: ciao.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ciao.gmane.org 1547995352 59917 195.159.176.228 (20 Jan 2019 14:42:32 GMT) X-Complaints-To: usenet@ciao.gmane.org NNTP-Posting-Date: Sun, 20 Jan 2019 14:42:32 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 20 15:42:30 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1glEIw-000FaA-K9 for ged-emacs-devel@m.gmane.org; Sun, 20 Jan 2019 15:42:30 +0100 Original-Received: from localhost ([127.0.0.1]:40699 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1glEJ5-0007Hm-Pl for ged-emacs-devel@m.gmane.org; Sun, 20 Jan 2019 09:42:39 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59407) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1glEEs-0004jf-T8 for emacs-devel@gnu.org; Sun, 20 Jan 2019 09:38:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1glEEp-0004NX-9P for emacs-devel@gnu.org; Sun, 20 Jan 2019 09:38:17 -0500 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:41311) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1glEEo-0004Ll-7U for emacs-devel@gnu.org; Sun, 20 Jan 2019 09:38:15 -0500 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id x0KEcBNJ009860; Sun, 20 Jan 2019 09:38:11 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 5B5856ABB6; Sun, 20 Jan 2019 09:38:10 -0500 (EST) In-Reply-To: <87h8e4idd9.fsf@mail.linkov.net> (Juri Linkov's message of "Sat, 19 Jan 2019 23:04:14 +0200") X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered EDT_SA_DN_PASS=0, RV6464=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6464> : inlines <6998> : streams <1810636> : uri <2782896> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:232538 Archived-At: > Also I don't know how to detect a partial string Reliably you can't. > because if there are two unterminated strings (i.e. two quotes) in the > same hunk they might be interpreted as one "inside-out" string. I was thinking of a heuristic to try and catch common cases. Stefan