From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Matthew Smiglarski Newsgroups: gmane.emacs.bugs Subject: bug#18490: 24.3.93; Narrowing in other window no longer redisplays until a call to other-window. Date: Wed, 17 Sep 2014 19:50:46 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1410982942 23518 80.91.229.3 (17 Sep 2014 19:42:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Sep 2014 19:42:22 +0000 (UTC) To: 18490@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 17 21:42:15 2014 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 1XUL7F-0003nm-GX for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Sep 2014 21:42:13 +0200 Original-Received: from localhost ([::1]:47007 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUL7F-0003Ag-4r for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Sep 2014 15:42:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59003) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUL7A-0003AU-KT for bug-gnu-emacs@gnu.org; Wed, 17 Sep 2014 15:42:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XUL79-0001YQ-7N for bug-gnu-emacs@gnu.org; Wed, 17 Sep 2014 15:42:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52042) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUL79-0001X8-4N for bug-gnu-emacs@gnu.org; Wed, 17 Sep 2014 15:42:07 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XUL73-0006Aa-Qf for bug-gnu-emacs@gnu.org; Wed, 17 Sep 2014 15:42:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Matthew Smiglarski Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 17 Sep 2014 19:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18490 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.141098287923641 (code B ref -1); Wed, 17 Sep 2014 19:42:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 17 Sep 2014 19:41:19 +0000 Original-Received: from localhost ([127.0.0.1]:43602 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XUL6M-00069D-3o for submit@debbugs.gnu.org; Wed, 17 Sep 2014 15:41:19 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44721) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XUKJk-0004t5-BL for submit@debbugs.gnu.org; Wed, 17 Sep 2014 14:51:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XUKJi-0004vF-GI for submit@debbugs.gnu.org; Wed, 17 Sep 2014 14:51:04 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:50132) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUKJi-0004tl-D5 for submit@debbugs.gnu.org; Wed, 17 Sep 2014 14:51:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46404) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUKJb-0001Vy-Ft for bug-gnu-emacs@gnu.org; Wed, 17 Sep 2014 14:50:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XUKJZ-0004t2-Va for bug-gnu-emacs@gnu.org; Wed, 17 Sep 2014 14:50:55 -0400 Original-Received: from mail-ie0-x244.google.com ([2607:f8b0:4001:c03::244]:42839) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUKJZ-0004s8-Pn for bug-gnu-emacs@gnu.org; Wed, 17 Sep 2014 14:50:53 -0400 Original-Received: by mail-ie0-f196.google.com with SMTP id y20so482490ier.7 for ; Wed, 17 Sep 2014 11:50:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=MQa1CheNKmERohjycAJXbdcwnu58XmOXhgN6wjtbPv4=; b=R3hlMacEstxGty1ZypAEMujomMLx4ThEb6aoYMbe4PVL7R3DkuLJlxObzoiFmkiNfw /vEVWc/qs5v0DPVCxQVoVPZXxsbKwuwYxnl4MWwHNSsu5kJm3Yk7LVNU9XYWzvLCa0eq r2EwJtjw9tx6YghZ10s3qUtuTzd26douqg//kMZyI+AILKYk/beDR5IouFMsQXA5tZLy 7aK8WWdnrmWnjzs/E3LOB+LLrWxK/PFQF9/hlSAmD3e5OoBINaemfB61QVg0CpVSqp0I TXRSvNRPRvgAA47Ttyqt2fJu2bUsDKAIgdHEqfG6ogEbvQzSM47gMTdumxxG8DA8LCpv ouBQ== X-Received: by 10.42.137.194 with SMTP id z2mr3760908ict.85.1410979846672; Wed, 17 Sep 2014 11:50:46 -0700 (PDT) Original-Received: by 10.64.223.12 with HTTP; Wed, 17 Sep 2014 11:50:46 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Wed, 17 Sep 2014 15:41:16 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:93431 Archived-At: Hello, When a buffer has narrowing applied the window does not update until other-window is called. This is not the case on 24.3. To reproduce: 1. Start emacs $ emacs -Q 2. Enter the following into some buffer (defun bug-redisplay-narrowing-on-other-window () (interactive) (widen) (search-forward-regexp "[a-z]+") (narrow-to-region (match-beginning 0) (match-end 0))) (global-set-key (kbd "M-n") 'bug-redisplay-narrowing-on-other-window) ;; Create 3 windows (split-window-below) (split-window-below) 3. M-x eval-buffer 4. Execute the bug function defined above a few times, mixing it up with the odd call to #'other-window. M-x beginning-of-buffer M-n M-n C-x 4 o M-n M-n C-x 4 o M-n M-n What happens is the narrowing is only apparent to the poor user when another window is selected, and this was not the case previously. Apologies if this is an intended change but to me it seems that the redisplay should occur immediately? Also, if anyone is able to git-bisect this I would be interested to know how to determine when the window is redisplayed. Thanks, Mat In GNU Emacs 24.3.93.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.9) of 2014-08-15 on gj97d5j Windowing system distributor `Fedora Project', version 11.0.11404000 Configured using: `configure 'CFLAGS=-g3 -O0'' Important settings: value of $LC_CTYPE: en_GB.UTF-8 value of $LANG: en_GB.UTF-8 value of $XMODIFIERS: @im=none locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-x C-f t m p / b u g M-x e v a l - b u f M-n M-n M-n C-x o M-n M-n M-n M-n C-x o M-n M-n M-n C-x o M-x r e - e - b Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Mark set byte-code: Window # too small for splitting 2 Making completion list... Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils help-mode easymenu edmacro kmacro cl-loaddefs cl-lib time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 76340 5345) (symbols 48 18077 0) (miscs 40 46 150) (strings 32 10594 4007) (string-bytes 1 310823) (vectors 16 10083) (vector-slots 8 391572 12958) (floats 8 73 246) (intervals 56 414 19) (buffers 960 13) (heap 1024 37165 1064))