From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] master c1d18b1: Tidy up fix to debbugs#20240. Date: Sun, 05 Apr 2015 23:55:08 -0400 Message-ID: References: <20150405144249.31512.26967@vcs.savannah.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1428292543 5933 80.91.229.3 (6 Apr 2015 03:55:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 6 Apr 2015 03:55:43 +0000 (UTC) Cc: Alan Mackenzie To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 06 05:55:34 2015 Return-path: Envelope-to: ged-emacs-devel@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 1Yey8L-0001Y3-4r for ged-emacs-devel@m.gmane.org; Mon, 06 Apr 2015 05:55:33 +0200 Original-Received: from localhost ([::1]:38238 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yey8K-0005Tz-JL for ged-emacs-devel@m.gmane.org; Sun, 05 Apr 2015 23:55:32 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59415) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yey81-0005Tj-NA for emacs-devel@gnu.org; Sun, 05 Apr 2015 23:55:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yey7y-0005ne-I0 for emacs-devel@gnu.org; Sun, 05 Apr 2015 23:55:13 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:58492) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yey7y-0005nU-D2 for emacs-devel@gnu.org; Sun, 05 Apr 2015 23:55:10 -0400 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id t363t8x6026746; Sun, 5 Apr 2015 23:55:09 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id E7BCAAE0B5; Sun, 5 Apr 2015 23:55:08 -0400 (EDT) In-Reply-To: (Alan Mackenzie's message of "Sun, 05 Apr 2015 14:42:49 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5267=0 X-NAI-Spam-Version: 2.3.0.9393 : core <5267> : inlines <2614> : streams <1417728> : uri <1899469> 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.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:184989 Archived-At: > - (save-restriction > - (widen) > - (run-hook-with-args 'jit-lock-after-change-extend-region-functions > - start end old-len) > - ;; Make sure we change at least one char (in case of deletions). > - (setq jit-lock-end (min (max jit-lock-end (1+ start)) (point-max))) > - ;; Request refontification. > - (put-text-property jit-lock-start jit-lock-end 'fontified nil))) > + (run-hook-with-args 'jit-lock-after-change-extend-region-functions > + start end old-len) > + ;; Make sure we change at least one char (in case of deletions). > + (setq jit-lock-end (min (max jit-lock-end (1+ start)) (point-max))) > + ;; Request refontification. > + (save-restriction > + (widen) > + (put-text-property jit-lock-start jit-lock-end 'fontified nil))) Thanks, Alan, Stefan