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: Mark for refontification Date: Fri, 09 Apr 2010 20:57:05 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1270861036 23197 80.91.229.12 (10 Apr 2010 00:57:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 10 Apr 2010 00:57:16 +0000 (UTC) Cc: Emacs-Devel devel To: Lennart Borgman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 10 02:57:14 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O0P0c-0003oW-BB for ged-emacs-devel@m.gmane.org; Sat, 10 Apr 2010 02:57:14 +0200 Original-Received: from localhost ([127.0.0.1]:60801 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O0P0b-0000k4-VZ for ged-emacs-devel@m.gmane.org; Fri, 09 Apr 2010 20:57:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O0P0X-0000jG-A5 for emacs-devel@gnu.org; Fri, 09 Apr 2010 20:57:09 -0400 Original-Received: from [140.186.70.92] (port=51678 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O0P0W-0000iV-7q for emacs-devel@gnu.org; Fri, 09 Apr 2010 20:57:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O0P0U-0003zL-VI for emacs-devel@gnu.org; Fri, 09 Apr 2010 20:57:08 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183]:44849 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O0P0U-0003z8-Sk for emacs-devel@gnu.org; Fri, 09 Apr 2010 20:57:06 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEALtpv0tMCqWu/2dsb2JhbACbQXK6P4UJBIs9 X-IronPort-AV: E=Sophos;i="4.52,180,1270440000"; d="scan'208";a="60569216" Original-Received: from 76-10-165-174.dsl.teksavvy.com (HELO pastel.home) ([76.10.165.174]) by ironport2-out.pppoe.ca with ESMTP; 09 Apr 2010 20:57:05 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 1744781AE; Fri, 9 Apr 2010 20:57:05 -0400 (EDT) In-Reply-To: (Lennart Borgman's message of "Fri, 9 Apr 2010 08:42:32 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:123408 Archived-At: >>> (defun mumamo-mark-for-refontification (min max) >>> =A0 "Mark region between MIN and MAX for refontification." >>> =A0 =A0 (save-restriction >>> =A0 =A0 =A0 (widen) >>> =A0 =A0 =A0 ;;(mumamo-with-buffer-prepared-for-jit-lock >>> =A0 =A0 =A0 (mumamo-save-buffer-state nil >>> =A0 =A0 =A0 =A0 (put-text-property min max 'fontified nil) >>> =A0 =A0 =A0 =A0 ))) >>=20 >> Why widen? > You mean it is not necessary for put-text-property? No, my question doesn't have anything to do with put-text-property. It's just that usually Elisp functions don't take buffer positions outside of point-min...point-max and I see no reason why this one should be an exception. Stefan