From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: [kzeitler@sfsws1.de.lucent.com: Buffer sometimes changes to modified with truncate-partial-width-windows set to nil] Date: Wed, 16 Aug 2006 09:50:46 +0200 Message-ID: <44E2CE56.5010602@gmx.at> References: <877j19lh93.fsf@stupidchicken.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1155714705 24288 80.91.229.2 (16 Aug 2006 07:51:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 16 Aug 2006 07:51:45 +0000 (UTC) Cc: monnier@iro.umontreal.ca, kifer@cs.sunysb.edu, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 16 09:51:42 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GDGBg-0007R9-T3 for ged-emacs-devel@m.gmane.org; Wed, 16 Aug 2006 09:51:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GDGBf-000107-OI for ged-emacs-devel@m.gmane.org; Wed, 16 Aug 2006 03:51:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GDGBD-0000zs-3f for emacs-devel@gnu.org; Wed, 16 Aug 2006 03:51:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GDGBA-0000zZ-4Q for emacs-devel@gnu.org; Wed, 16 Aug 2006 03:51:09 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GDGB9-0000zW-Tn for emacs-devel@gnu.org; Wed, 16 Aug 2006 03:51:07 -0400 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.52) id 1GDGHM-00017I-SL for emacs-devel@gnu.org; Wed, 16 Aug 2006 03:57:33 -0400 Original-Received: (qmail invoked by alias); 16 Aug 2006 07:51:05 -0000 Original-Received: from N959P023.adsl.highway.telekom.at (EHLO [62.47.63.215]) [62.47.63.215] by mail.gmx.net (mp028) with SMTP; 16 Aug 2006 09:51:05 +0200 X-Authenticated: #14592706 User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en Original-To: Chong Yidong In-Reply-To: <877j19lh93.fsf@stupidchicken.com> X-Y-GMX-Trusted: 0 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:58435 Archived-At: > Even more bizaarely, tweaking set-buffer-modified-p inside the > `with-buffer-prepared-for-jit-lock' block, as shown below, also causes > the bug to go away. By right, it should do nothing. The > set-buffer-modified-p call can be put later in `jit-lock-fontify-now', > but putting it any earlier causes the bug to resurface. Anyone have > any idea what's going on here? Would the following handle it? *** jit-lock.el.~1.53.~ Tue Aug 15 10:00:50 2006 --- jit-lock.el Wed Aug 16 09:40:26 2006 *************** *** 391,399 **** (buf (current-buffer))) (run-with-timer 0 nil (lambda () ! (with-buffer-prepared-for-jit-lock ! (put-text-property start orig-start ! 'fontified t buf)))))) ;; Find the start of the next chunk, if any. (setq start (text-property-any next end 'fontified nil)))))))) --- 391,400 ---- (buf (current-buffer))) (run-with-timer 0 nil (lambda () ! (with-current-buffer buf ! (with-buffer-prepared-for-jit-lock ! (put-text-property start orig-start ! 'fontified t))))))) ;; Find the start of the next chunk, if any. (setq start (text-property-any next end 'fontified nil))))))))