From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#12600: 24.2.50; linum-mode: line numbers in fringe do not refresh when resizing frame Date: Fri, 12 Oct 2012 17:43:01 +0200 Message-ID: <50783A85.1080808@gmx.at> References: <50720A4F.2010200@gmail.com> <83391p5sjc.fsf@gnu.org> <50729A38.8000800@gmx.at> <83haq53qy8.fsf@gnu.org> <5073F029.4040201@gmx.at> <83y5jfziey.fsf@gnu.org> <50754C80.7010809@gmx.at> <83ehl6z5y0.fsf@gnu.org> <50767172.4060807@gmx.at> <83a9vtkkvl.fsf@gnu.org> <5077C771.1000208@gmx.at> <837gqw843w.fsf@gnu.org> <5077E47D.4080300@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1350056656 3018 80.91.229.3 (12 Oct 2012 15:44:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Oct 2012 15:44:16 +0000 (UTC) Cc: 12600@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 12 17:44:22 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 1TMhPS-0003sK-8r for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Oct 2012 17:44:22 +0200 Original-Received: from localhost ([::1]:40716 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMhPL-0005Vb-QC for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Oct 2012 11:44:15 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41937) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMhPJ-0005VL-8K for bug-gnu-emacs@gnu.org; Fri, 12 Oct 2012 11:44:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TMhPI-0005sS-57 for bug-gnu-emacs@gnu.org; Fri, 12 Oct 2012 11:44:13 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59219) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMhPI-0005sN-0o for bug-gnu-emacs@gnu.org; Fri, 12 Oct 2012 11:44:12 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TMhQ6-000129-EN for bug-gnu-emacs@gnu.org; Fri, 12 Oct 2012 11:45:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Oct 2012 15:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12600 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12600-submit@debbugs.gnu.org id=B12600.13500566463895 (code B ref 12600); Fri, 12 Oct 2012 15:45:02 +0000 Original-Received: (at 12600) by debbugs.gnu.org; 12 Oct 2012 15:44:06 +0000 Original-Received: from localhost ([127.0.0.1]:41237 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TMhPC-00010m-59 for submit@debbugs.gnu.org; Fri, 12 Oct 2012 11:44:06 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:47821) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1TMhPA-000105-3Z for 12600@debbugs.gnu.org; Fri, 12 Oct 2012 11:44:04 -0400 Original-Received: (qmail invoked by alias); 12 Oct 2012 15:43:07 -0000 Original-Received: from 62-47-32-76.adsl.highway.telekom.at (EHLO [62.47.32.76]) [62.47.32.76] by mail.gmx.net (mp002) with SMTP; 12 Oct 2012 17:43:07 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1/iZJl4JqDi7J674ncfNlNPWm5bWC0JMd5YYEsjB8 0OAa+7WAjnSImE In-Reply-To: X-Y-GMX-Trusted: 0 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:65529 Archived-At: >> When last_modifed_flag is set, the window must be redisplayed. > > No: last_modifed_flag is (normally) only set at the end of redisplay, so > the in the future you can check if redisplay is needed by comparing it > with the buffer's modiff. last_modifed_flag is a fictitious variable I would set when the window changes. When it's set, redisplay must redisplay the window. >> assignment. OTOH when the buffer iself is modified it has to be >> redisplayed anyway because we hardly know where the change happened. > > But instead of going through all the windows that display this buffer, > we just change the buffer's modiff, so it will cause all the > (last_modifed_flag == modiff) checks to fail in the windows that display > this buffer. We'd obviously have an independent buffer_modified_flag. A window must be redisplayed if either buffer_modified_flag is set (modulo any optimizations which I won't dispute here) or its last_modifed_flag is set. martin