From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 25 04:07:26 2014 Received: (at submit) by debbugs.gnu.org; 25 Feb 2014 09:07:26 +0000 Received: from localhost ([127.0.0.1]:38579 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WIDz2-000427-9J for submit@debbugs.gnu.org; Tue, 25 Feb 2014 04:07:26 -0500 Received: from eggs.gnu.org ([208.118.235.92]:38309) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WIDyx-00041n-2A for submit@debbugs.gnu.org; Tue, 25 Feb 2014 04:07:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WIDym-0001Uf-Uj for submit@debbugs.gnu.org; Tue, 25 Feb 2014 04:07:13 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:60498) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIDym-0001Ub-Ra for submit@debbugs.gnu.org; Tue, 25 Feb 2014 04:07:08 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39929) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIDyh-0006k1-Vj for bug-gnu-emacs@gnu.org; Tue, 25 Feb 2014 04:07:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WIDyb-0001Ri-Q5 for bug-gnu-emacs@gnu.org; Tue, 25 Feb 2014 04:07:03 -0500 Received: from mail-we0-x229.google.com ([2a00:1450:400c:c03::229]:62055) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIDyb-0001QO-AI for bug-gnu-emacs@gnu.org; Tue, 25 Feb 2014 04:06:57 -0500 Received: by mail-we0-f169.google.com with SMTP id t61so82958wes.28 for ; Tue, 25 Feb 2014 01:06:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type; bh=D1sn9hAakXl6FgnCMUFoP9czaUwGwb68Ix6D+lezizk=; b=BmXptcPXO86p4qZvl0ty2gqT4/Xz0WHRmIjYfGIswDhgtN84k8Ro2yY3buF7KSFFQo MRGkmBwi96v9vBvtkfiEaQQK071uTLsgMWciHtfogAY4Ndk6MZcnQtTNB0s7QSEQ816W 2og+zt42mqimh9sRmjK2PB48C6pGVxHxyC7F1ngGwH6p2COTaNdalgIv2TMgUDMGCW35 hti+qWHBiI0LT0twajcurf6zG9VYkkv6O5MCiVp09NFeAcysOgxg0cKlR0fTp+/csIlW pHRUF2BylDezfwfF2vHAtjjUYUX5Bfd1ZtKrdFsdJcUyadjTIr/GWkgr3jjwm1PqTLvK VvXg== X-Received: by 10.180.188.169 with SMTP id gb9mr1500992wic.17.1393319211420; Tue, 25 Feb 2014 01:06:51 -0800 (PST) Received: from luz3 ([193.51.236.124]) by mx.google.com with ESMTPSA id de3sm48980555wjb.8.2014.02.25.01.06.49 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 25 Feb 2014 01:06:50 -0800 (PST) From: Damien Cassou To: bug-gnu-emacs@gnu.org Subject: 24.3.50; Regression in active window detection Date: Tue, 25 Feb 2014 10:06:49 +0100 Message-ID: <87eh2rftna.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain 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-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) The following piece of code, from the milkypostman/powerline github repository, used to detect if the current window is active or not: (defun powerline-selected-window-active () "Return whether the current window is active." (or (eq (frame-selected-window) (selected-window)) (and (minibuffer-window-active-p (frame-selected-window)) (eq (pl/minibuffer-selected-window) (selected-window))))) This works fine in released Emacs 24 but does not work anymore in emacs-snapshot (see below for details about the version I used to test). Is this an Emacs regression or a problem in the implementation of this function that is revealed by some recent changes in Emacs? More about this issue: https://github.com/milkypostman/powerline/issues/37 In GNU Emacs 24.3.50.2 (x86_64-pc-linux-gnu, GTK+ Version 3.8.6) of 2014-02-23 on peryton Windowing system distributor `The X.Org Foundation', version 11.0.11405000 System Description: Ubuntu 13.10 Configured using: `configure --build=x86_64-linux-gnu --prefix=/usr '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' --sysconfdir=/etc --localstatedir=/var '--libdir=${prefix}/lib/x86_64-linux-gnu' '--libexecdir=${prefix}/lib/x86_64-linux-gnu' --disable-maintainer-mode --disable-dependency-tracking --prefix=/usr --sharedstatedir=/var/lib --program-suffix=-snapshot --with-x=yes --with-x-toolkit=gtk3 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security' CPPFLAGS=-D_FORTIFY_SOURCE=2 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro'' Important settings: value of $LC_MONETARY: fr_FR.UTF-8 value of $LC_NUMERIC: fr_FR.UTF-8 value of $LC_TIME: fr_FR.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: shell-switcher-mode: t diff-auto-refine-mode: t auto-revert-mode: t outline-minor-mode: t shell-dirtrack-mode: t yas-global-mode: t yas-minor-mode: t ido-ubiquitous-mode: t global-auto-complete-mode: t auto-complete-mode: t global-smart-tab-mode: t smart-tab-mode: t eldoc-mode: t paredit-mode: t ido-vertical-mode: t global-discover-mode: t discover-mode: t projectile-global-mode: t projectile-mode: t guide-key-mode: t global-undo-tree-mode: t undo-tree-mode: t global-ethan-wspace-mode: t ethan-wspace-mode: t ethan-wspace-clean-many-nls-eof-mode: t ethan-wspace-clean-no-nl-eof-mode: t ethan-wspace-clean-eol-mode: t ethan-wspace-highlight-tabs-mode: t drag-stuff-global-mode: t drag-stuff-mode: t override-global-mode: t winner-mode: t show-paren-mode: t recentf-mode: t ido-everywhere: t icomplete-mode: t global-hl-line-mode: t electric-indent-mode: t mouse-wheel-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 column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-f C-f C-f C-k f l y c k h e c k SPC m u s t SPC u s e SPC C a s k SPC w h e n SPC p r e s e n t SPC f o r SPC d e p e n d e n c i e s C-x C-s M-b M-b M-b M-b M-b M-b C-x C-s C-M-' c a s k C-x b i n i t M-i f l y c h C-n C-n C-e C-b : c o n f i g ( p r o g n ( a d d - h o o C-a C-o ( u s e - p a c SPC f l y c h e c k - c a s k C-n C-a C-n C-M-k C-p C-e M-j C-b : c o n f i g ( p r o g n ( a d d - h o o k SPC ' f l y c h e c k - m o - h o o k C-h v C-g M-x f l y c M-x C-h v C-g SPC # ' f l y c h - c a s k - s e t u p s C-h f C-g C-h v C-g - s e t u p C-x C-s M-< C-M-f C-M-f C-M-f C-M-f C-M-f C-' e x i t C-x C-e C-l C-u C-SPC C-u C-g C-e C-x C-e C-b C-x C-e C-b C-x C-e C-e M-x r e p o r t - e m a Recent messages: t Quit Configuring package flycheck... Loading package flycheck-cask...done Configuring package flycheck...done t Loading package flycheck-cask...done t Loading package flycheck-cask...done t Load-path shadows: /usr/share/emacs/site-lisp/dictionaries-common/flyspell hides /usr/share/emacs/24.3.50/lisp/textmodes/flyspell /usr/share/emacs/site-lisp/dictionaries-common/ispell hides /usr/share/emacs/24.3.50/lisp/textmodes/ispell /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ob-python hides /usr/share/emacs/24.3.50/lisp/org/ob-python /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ob-matlab hides /usr/share/emacs/24.3.50/lisp/org/ob-matlab /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ox-org hides /usr/share/emacs/24.3.50/lisp/org/ox-org /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ob-octave hides /usr/share/emacs/24.3.50/lisp/org/ob-octave /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ob-perl hides /usr/share/emacs/24.3.50/lisp/org/ob-perl /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ob-comint hides /usr/share/emacs/24.3.50/lisp/org/ob-comint /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ob-ruby hides /usr/share/emacs/24.3.50/lisp/org/ob-ruby /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/org-irc hides /usr/share/emacs/24.3.50/lisp/org/org-irc /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/org-list hides /usr/share/emacs/24.3.50/lisp/org/org-list /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/org-mouse hides /usr/share/emacs/24.3.50/lisp/org/org-mouse /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/org-id hides /usr/share/emacs/24.3.50/lisp/org/org-id /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/org-compat hides /usr/share/emacs/24.3.50/lisp/org/org-compat /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ob-R hides /usr/share/emacs/24.3.50/lisp/org/ob-R /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ox hides /usr/share/emacs/24.3.50/lisp/org/ox /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ob-ref hides /usr/share/emacs/24.3.50/lisp/org/ob-ref /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ob-screen hides /usr/share/emacs/24.3.50/lisp/org/ob-screen /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ob-css hides /usr/share/emacs/24.3.50/lisp/org/ob-css /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/org-table hides /usr/share/emacs/24.3.50/lisp/org/org-table /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/org-bbdb hides /usr/share/emacs/24.3.50/lisp/org/org-bbdb /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ob-lilypond hides /usr/share/emacs/24.3.50/lisp/org/ob-lilypond /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ob-ledger hides /usr/share/emacs/24.3.50/lisp/org/ob-ledger /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/org-indent hides /usr/share/emacs/24.3.50/lisp/org/org-indent /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/org-footnote hides /usr/share/emacs/24.3.50/lisp/org/org-footnote /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/org-protocol hides /usr/share/emacs/24.3.50/lisp/org/org-protocol /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/org-capture hides /usr/share/emacs/24.3.50/lisp/org/org-capture /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/org-rmail hides /usr/share/emacs/24.3.50/lisp/org/org-rmail /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/org-w3m hides /usr/share/emacs/24.3.50/lisp/org/org-w3m /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/org-mobile hides /usr/share/emacs/24.3.50/lisp/org/org-mobile /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ox-ascii hides /usr/share/emacs/24.3.50/lisp/org/ox-ascii /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/org-inlinetask hides /usr/share/emacs/24.3.50/lisp/org/org-inlinetask /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ox-texinfo hides /usr/share/emacs/24.3.50/lisp/org/ox-texinfo /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/org-pcomplete hides /usr/share/emacs/24.3.50/lisp/org/org-pcomplete /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/org-colview hides /usr/share/emacs/24.3.50/lisp/org/org-colview /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ob-awk hides /usr/share/emacs/24.3.50/lisp/org/ob-awk /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/org-src hides /usr/share/emacs/24.3.50/lisp/org/org-src /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ob-scala hides /usr/share/emacs/24.3.50/lisp/org/ob-scala /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/org-timer hides /usr/share/emacs/24.3.50/lisp/org/org-timer /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ob-shen hides /usr/share/emacs/24.3.50/lisp/org/ob-shen /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ob-plantuml hides /usr/share/emacs/24.3.50/lisp/org/ob-plantuml /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/org-docview hides /usr/share/emacs/24.3.50/lisp/org/org-docview /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ob-sass hides /usr/share/emacs/24.3.50/lisp/org/ob-sass /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ob-calc hides /usr/share/emacs/24.3.50/lisp/org/ob-calc /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/org-agenda hides /usr/share/emacs/24.3.50/lisp/org/org-agenda /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ob-sqlite hides /usr/share/emacs/24.3.50/lisp/org/ob-sqlite /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ob-lob hides /usr/share/emacs/24.3.50/lisp/org/ob-lob /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ox-odt hides /usr/share/emacs/24.3.50/lisp/org/ox-odt /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/org-macro hides /usr/share/emacs/24.3.50/lisp/org/org-macro /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ob-mscgen hides /usr/share/emacs/24.3.50/lisp/org/ob-mscgen /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ob-picolisp hides /usr/share/emacs/24.3.50/lisp/org/ob-picolisp /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ob-io hides /usr/share/emacs/24.3.50/lisp/org/ob-io /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ob-dot hides /usr/share/emacs/24.3.50/lisp/org/ob-dot /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ob-haskell hides /usr/share/emacs/24.3.50/lisp/org/ob-haskell /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ob-exp hides /usr/share/emacs/24.3.50/lisp/org/ob-exp /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/org-macs hides /usr/share/emacs/24.3.50/lisp/org/org-macs /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ob-clojure hides /usr/share/emacs/24.3.50/lisp/org/ob-clojure /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/org-element hides /usr/share/emacs/24.3.50/lisp/org/org-element /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/org-faces hides /usr/share/emacs/24.3.50/lisp/org/org-faces /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/org-mhe hides /usr/share/emacs/24.3.50/lisp/org/org-mhe /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/org-gnus hides /usr/share/emacs/24.3.50/lisp/org/org-gnus /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/org-plot hides /usr/share/emacs/24.3.50/lisp/org/org-plot /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ox-html hides /usr/share/emacs/24.3.50/lisp/org/ox-html /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ob-fortran hides /usr/share/emacs/24.3.50/lisp/org/ob-fortran /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/org-attach hides /usr/share/emacs/24.3.50/lisp/org/org-attach /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/org-bibtex hides /usr/share/emacs/24.3.50/lisp/org/org-bibtex /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ox-icalendar hides /usr/share/emacs/24.3.50/lisp/org/ox-icalendar /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ob-ocaml hides /usr/share/emacs/24.3.50/lisp/org/ob-ocaml /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ob-emacs-lisp hides /usr/share/emacs/24.3.50/lisp/org/ob-emacs-lisp /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ob-sh hides /usr/share/emacs/24.3.50/lisp/org/ob-sh /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ob-maxima hides /usr/share/emacs/24.3.50/lisp/org/ob-maxima /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/org-crypt hides /usr/share/emacs/24.3.50/lisp/org/org-crypt /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/org-install hides /usr/share/emacs/24.3.50/lisp/org/org-install /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ob-js hides /usr/share/emacs/24.3.50/lisp/org/ob-js /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/org-eshell hides /usr/share/emacs/24.3.50/lisp/org/org-eshell /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ox-beamer hides /usr/share/emacs/24.3.50/lisp/org/ox-beamer /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ob-gnuplot hides /usr/share/emacs/24.3.50/lisp/org/ob-gnuplot /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ob-keys hides /usr/share/emacs/24.3.50/lisp/org/ob-keys /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/org-version hides /usr/share/emacs/24.3.50/lisp/org/org-version /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ob-latex hides /usr/share/emacs/24.3.50/lisp/org/ob-latex /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/org hides /usr/share/emacs/24.3.50/lisp/org/org /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ob-core hides /usr/share/emacs/24.3.50/lisp/org/ob-core /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ob-scheme hides /usr/share/emacs/24.3.50/lisp/org/ob-scheme /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/org-clock hides /usr/share/emacs/24.3.50/lisp/org/org-clock /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ox-publish hides /usr/share/emacs/24.3.50/lisp/org/ox-publish /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ob-lisp hides /usr/share/emacs/24.3.50/lisp/org/ob-lisp /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/org-feed hides /usr/share/emacs/24.3.50/lisp/org/org-feed /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ox-man hides /usr/share/emacs/24.3.50/lisp/org/ox-man /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ob-sql hides /usr/share/emacs/24.3.50/lisp/org/ob-sql /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ob-ditaa hides /usr/share/emacs/24.3.50/lisp/org/ob-ditaa /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ob hides /usr/share/emacs/24.3.50/lisp/org/ob /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ob-eval hides /usr/share/emacs/24.3.50/lisp/org/ob-eval /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ob-table hides /usr/share/emacs/24.3.50/lisp/org/ob-table /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ob-java hides /usr/share/emacs/24.3.50/lisp/org/ob-java /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/org-loaddefs hides /usr/share/emacs/24.3.50/lisp/org/org-loaddefs /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/org-archive hides /usr/share/emacs/24.3.50/lisp/org/org-archive /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ob-makefile hides /usr/share/emacs/24.3.50/lisp/org/ob-makefile /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ob-asymptote hides /usr/share/emacs/24.3.50/lisp/org/ob-asymptote /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ob-C hides /usr/share/emacs/24.3.50/lisp/org/ob-C /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/org-entities hides /usr/share/emacs/24.3.50/lisp/org/org-entities /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ox-latex hides /usr/share/emacs/24.3.50/lisp/org/ox-latex /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/org-datetree hides /usr/share/emacs/24.3.50/lisp/org/org-datetree /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ob-tangle hides /usr/share/emacs/24.3.50/lisp/org/ob-tangle /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ob-org hides /usr/share/emacs/24.3.50/lisp/org/ob-org /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/org-habit hides /usr/share/emacs/24.3.50/lisp/org/org-habit /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/org-info hides /usr/share/emacs/24.3.50/lisp/org/org-info /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/org-ctags hides /usr/share/emacs/24.3.50/lisp/org/org-ctags /home/cassou/.emacs.d/.cask/24.3.50.2/elpa/org-plus-contrib-20140224/ox-md hides /usr/share/emacs/24.3.50/lisp/org/ox-md Features: (shadow sort mail-extr emacsbug sendmail flycheck-cask flycheck rx idomenu dabbrev misearch multi-isearch diary-lib diary-loaddefs cal-iso org-agenda tramp-cache mule-util git-auto-commit-mode eieio-opt speedbar sb-image ezimage dframe files-x vc-git em-unix em-term term disp-table ehelp em-script em-prompt em-ls em-hist em-pred em-glob em-dirs em-cmpl em-basic em-banner em-alias esh-var esh-io esh-cmd esh-opt esh-ext esh-proc esh-arg esh-groups eshell esh-module esh-mode esh-util shell-switcher rswitcher magit-svn magit-key-mode magit view epa derived epg epg-config diff-mode autorevert filenotify git-rebase-mode git-commit-mode log-edit message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log smex flyspell ispell org-element org-pomodoro-pidgin org-pomodoro alert org-timer org-clock org-bookmark bookmark pp org-w3m org-wl org-vm org-rmail org-protocol org-mhe org-mew org-irc org-info org-capture org-gnus org-docview doc-view jka-compr image-mode dired-imenu imenu runner dired-aux dired-x dired org-bibtex bibtex org-bbdb org org-macro org-footnote org-pcomplete org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob ob-tangle org-src ob-ref ob-lob ob-table ob-keys ob-exp ob-comint ob-core ob-eval org-compat org-macs org-loaddefs cal-menu calendar cal-loaddefs tramp-sh tramp tramp-compat auth-source eieio eieio-core gnus-util mm-util mail-prsvr password-cache tramp-loaddefs trampver shell pcomplete format-spec yasnippet help-mode server ido-ubiquitous warnings auto-complete-config auto-complete popup pos-tip smart-tab eldoc paredit iso-transl ido-vertical-mode discover makey projectile pkg-info find-func grep compile thingatpt guide-key face-remap popwin undo-tree diff ethan-wspace drag-stuff byte-opt browse-kill-ring calc-prog calc-ext calc calc-loaddefs calc-macs python comint ansi-color wombat-theme use-package diminish bytecomp byte-compile cconv bind-key easy-mmode tex-site info powerline powerline-separators color powerline-themes advice edmacro kmacro cask help-fns cl-macs gv cl cask-bootstrap epl git commander f dash s package saveplace winner ring paren recentf tree-widget wid-edit cl-loaddefs cl-lib easymenu ido icomplete hl-line cus-start cus-load 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) From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 25 11:18:26 2014 Received: (at 16874) by debbugs.gnu.org; 25 Feb 2014 16:18:26 +0000 Received: from localhost ([127.0.0.1]:39585 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WIKiA-0001dC-64 for submit@debbugs.gnu.org; Tue, 25 Feb 2014 11:18:26 -0500 Received: from mtaout22.012.net.il ([80.179.55.172]:51895) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WIKi8-0001cw-7D for 16874@debbugs.gnu.org; Tue, 25 Feb 2014 11:18:25 -0500 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0N1K005007RIJC00@a-mtaout22.012.net.il> for 16874@debbugs.gnu.org; Tue, 25 Feb 2014 18:18:17 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N1K0052A7YFK000@a-mtaout22.012.net.il>; Tue, 25 Feb 2014 18:18:16 +0200 (IST) Date: Tue, 25 Feb 2014 18:18:09 +0200 From: Eli Zaretskii Subject: Re: bug#16874: 24.3.50; Regression in active window detection In-reply-to: <87eh2rftna.fsf@gmail.com> X-012-Sender: halo1@inter.net.il To: Damien Cassou Message-id: <8361o317zy.fsf@gnu.org> References: <87eh2rftna.fsf@gmail.com> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 16874 Cc: 16874@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Damien Cassou > Date: Tue, 25 Feb 2014 10:06:49 +0100 > > > The following piece of code, from the milkypostman/powerline github > repository, used to detect if the current window is active or not: > > (defun powerline-selected-window-active () > "Return whether the current window is active." > (or (eq (frame-selected-window) > (selected-window)) > (and (minibuffer-window-active-p > (frame-selected-window)) > (eq (pl/minibuffer-selected-window) > (selected-window))))) > > This works fine in released Emacs 24 but does not work anymore in > emacs-snapshot (see below for details about the version I used to test). > Is this an Emacs regression or a problem in the implementation of this > function that is revealed by some recent changes in Emacs? It's a deliberate change in Emacs that breaks functions which assume that the window whose mode line is being redrawn is selected at that time. From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 25 11:29:27 2014 Received: (at 16874) by debbugs.gnu.org; 25 Feb 2014 16:29:27 +0000 Received: from localhost ([127.0.0.1]:39604 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WIKso-0001wc-Ic for submit@debbugs.gnu.org; Tue, 25 Feb 2014 11:29:27 -0500 Received: from mail-oa0-f50.google.com ([209.85.219.50]:63641) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WIKsl-0001wO-Ra for 16874@debbugs.gnu.org; Tue, 25 Feb 2014 11:29:24 -0500 Received: by mail-oa0-f50.google.com with SMTP id i11so655769oag.23 for <16874@debbugs.gnu.org>; Tue, 25 Feb 2014 08:29:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=+9sY/FhQtOrmHgGo+f3q/iL7z8FOsWoPc5/MfblzqhQ=; b=kIskow462dCQfHX7BubyQW9+WA7/OOKmc2nM9ZWLL24mM11ZXAGrnVJlo8lIkY02sp 5BI8iUPI30hDnj+aBzw+UK9VGVio7adejjynqECUPghjaYPvhtcV2S2nhrQALCWv3p49 3DX8l1Urply0LBOPLwuiKn6TTCeT4zo5i8LQKK0BJLxBNVZbuqBVwxjg4nMikujXqTZe YuT/ti/Ndb/yk4MKplBwkLcVYQ5Yfb+pZb603GQlvvkVtb3WSwAQsS1+AGj0kG2ncw6q RvE6UOomNtKObk1VxtvBzgvUXzGtGg/eFrdE7/XCBwqJ7SABQF4yvTV/b2/xtR6d1foW zpPQ== X-Received: by 10.60.130.234 with SMTP id oh10mr2103481oeb.60.1393345757907; Tue, 25 Feb 2014 08:29:17 -0800 (PST) MIME-Version: 1.0 Received: by 10.182.81.133 with HTTP; Tue, 25 Feb 2014 08:28:57 -0800 (PST) In-Reply-To: <8361o317zy.fsf@gnu.org> References: <87eh2rftna.fsf@gmail.com> <8361o317zy.fsf@gnu.org> From: Damien Cassou Date: Tue, 25 Feb 2014 17:28:57 +0100 Message-ID: Subject: Re: bug#16874: 24.3.50; Regression in active window detection To: Eli Zaretskii Content-Type: text/plain; charset=ISO-8859-1 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 16874 Cc: 16874@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Tue, Feb 25, 2014 at 5:18 PM, Eli Zaretskii wrote: > It's a deliberate change in Emacs that breaks functions which assume > that the window whose mode line is being redrawn is selected at that > time. is there anything we can do about that? -- Damien Cassou http://damiencassou.seasidehosting.st "Success is the ability to go from one failure to another without losing enthusiasm." Winston Churchill From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 25 12:48:15 2014 Received: (at 16874) by debbugs.gnu.org; 25 Feb 2014 17:48:15 +0000 Received: from localhost ([127.0.0.1]:39695 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WIM74-0006js-Pf for submit@debbugs.gnu.org; Tue, 25 Feb 2014 12:48:15 -0500 Received: from mtaout29.012.net.il ([80.179.55.185]:42309) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WIM72-0006jZ-3B for 16874@debbugs.gnu.org; Tue, 25 Feb 2014 12:48:12 -0500 Received: from conversion-daemon.mtaout29.012.net.il by mtaout29.012.net.il (HyperSendmail v2007.08) id <0N1K00700C4Y4Y00@mtaout29.012.net.il> for 16874@debbugs.gnu.org; Tue, 25 Feb 2014 19:50:55 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout29.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N1K00NA0C8URC80@mtaout29.012.net.il>; Tue, 25 Feb 2014 19:50:54 +0200 (IST) Date: Tue, 25 Feb 2014 19:47:58 +0200 From: Eli Zaretskii Subject: Re: bug#16874: 24.3.50; Regression in active window detection In-reply-to: X-012-Sender: halo1@inter.net.il To: Damien Cassou Message-id: <83ppmbytgx.fsf@gnu.org> References: <87eh2rftna.fsf@gmail.com> <8361o317zy.fsf@gnu.org> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 16874 Cc: 16874@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Damien Cassou > Date: Tue, 25 Feb 2014 17:28:57 +0100 > Cc: 16874@debbugs.gnu.org > > On Tue, Feb 25, 2014 at 5:18 PM, Eli Zaretskii wrote: > > It's a deliberate change in Emacs that breaks functions which assume > > that the window whose mode line is being redrawn is selected at that > > time. > > is there anything we can do about that? What kind of thing did you have in mind? FWIW, I think code that relies on implementation details of the display engine runs a high risk of becoming broken. I'd rather have application programmers request features that will allow them to do what they want using some documented public interfaces, instead of looking high and low for how to trick Emacs into revealing some of its internals. So perhaps you could explain what feature/API/hook would you want to be added to Emacs so that powerline, whatever it is, could do its job reliably? Who knows, it might even be that such a feature already exists, or is easy to implement. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 26 05:16:52 2014 Received: (at 16874) by debbugs.gnu.org; 26 Feb 2014 10:16:52 +0000 Received: from localhost ([127.0.0.1]:40399 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WIbXn-0007E1-BI for submit@debbugs.gnu.org; Wed, 26 Feb 2014 05:16:51 -0500 Received: from mout.gmx.net ([212.227.17.22]:55244) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WIbXl-0007Dp-Qc for 16874@debbugs.gnu.org; Wed, 26 Feb 2014 05:16:50 -0500 Received: from [62.47.38.172] ([62.47.38.172]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0LlV71-1WqphX1J9L-00bHYX for <16874@debbugs.gnu.org>; Wed, 26 Feb 2014 11:16:48 +0100 Message-ID: <530DBF07.9000707@gmx.at> Date: Wed, 26 Feb 2014 11:16:39 +0100 From: martin rudalics MIME-Version: 1.0 To: Damien Cassou Subject: Re: bug#16874: 24.3.50; Regression in active window detection References: <87eh2rftna.fsf@gmail.com> In-Reply-To: <87eh2rftna.fsf@gmail.com> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:vUv8JhML7Fen43wJ/fjD5BKPeL044ArxUHhJAIvMxqpql8c65LK ucWaZ0kmnP5kLGU22kvU6oO7T4uRUYtONunxO2ZOzY5afBaIf8ZUASmgdGDwp3ZUC0A74q6 t4qQgX+esE4iJHQCQXBb8SS4QcnrhKY2GjrTIDt+d9KVmvXXyqBgs63wWEVBh3hMUvr/0Bp mQq0KuwYaKKYvYz+p0p8A== X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 16874 Cc: 16874@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Damien Cassou schrieb: > The following piece of code, from the milkypostman/powerline github > repository, used to detect if the current window is active or not: > > (defun powerline-selected-window-active () > "Return whether the current window is active." > (or (eq (frame-selected-window) > (selected-window)) > (and (minibuffer-window-active-p > (frame-selected-window)) > (eq (pl/minibuffer-selected-window) > (selected-window))))) > > This works fine in released Emacs 24 but does not work anymore in > emacs-snapshot (see below for details about the version I used to test). > Is this an Emacs regression or a problem in the implementation of this > function that is revealed by some recent changes in Emacs? > > > More about this issue: https://github.com/milkypostman/powerline/issues/37 From the discussion in that thread I wasn't able to understand what that function is needed for. Could you describe that? For example, why is > (or (eq (frame-selected-window) > (selected-window)) needed? What does `pl/minibuffer-selected-window' return? And why does > (and (minibuffer-window-active-p > (frame-selected-window)) > (eq (pl/minibuffer-selected-window) > (selected-window))))) one time call `frame-selected-window' and one time `selected-window'? martin From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 07 01:35:39 2014 Received: (at 16874) by debbugs.gnu.org; 7 Mar 2014 06:35:39 +0000 Received: from localhost ([127.0.0.1]:54137 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WLoNd-0002HC-Te for submit@debbugs.gnu.org; Fri, 07 Mar 2014 01:35:38 -0500 Received: from mail-la0-f51.google.com ([209.85.215.51]:35319) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WLoKR-0002BP-GY for 16874@debbugs.gnu.org; Fri, 07 Mar 2014 01:32:20 -0500 Received: by mail-la0-f51.google.com with SMTP id pv20so2466439lab.38 for <16874@debbugs.gnu.org>; Thu, 06 Mar 2014 22:32:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:message-id:subject:to:cc:content-type; bh=NUDYjHbikq3Mnh3yxsemgkZkPzrsDHI0VBW4KzDNrBs=; b=ptyhn2ATOUn43AYOuaVgfDuLR1vpyCDY9n1sb+v1mVM+EkMEVu6AQnjkKuLRKtDX6C EYw+j9rSXHM3fBmJ36XzN62bxy278tAxiW37f8mgKA0zo4WW60P4m2gGG0Gd3Ho2nTsW 08zgEoAbGV87PlwBkqY3yUV+rS/G+sL8arBOlyr8VXXzacz6lhJeHfhe+m2hP/+WM16T RpM8vZv/lJUWEoBSOctjUCHqlEtnIejBApt/kwO/Hg1D9KWePcQnqoYbFSmMLayjPrYx C8k2qK3L0/ZXu63sM0MoNt0l01NQHce/Dw2zk0RbopK1CJz/IUS28ZPsCJaYEM/GtmS9 4oNA== X-Received: by 10.152.23.169 with SMTP id n9mr327515laf.45.1394173938127; Thu, 06 Mar 2014 22:32:18 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.33.47 with HTTP; Thu, 6 Mar 2014 22:31:37 -0800 (PST) From: Donald Curtis Date: Thu, 6 Mar 2014 22:31:37 -0800 X-Google-Sender-Auth: rBUwonYMyCO4I_u39KB9HKwUGtM Message-ID: Subject: Re: bug#16874: 24.3.50; Regression in active window detection To: rudalics@gmx.at Content-Type: multipart/alternative; boundary=089e0160b99a56576904f3fe6acb X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 16874 X-Mailman-Approved-At: Fri, 07 Mar 2014 01:35:34 -0500 Cc: 16874@debbugs.gnu.org, damien.cassou@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --089e0160b99a56576904f3fe6acb Content-Type: text/plain; charset=UTF-8 apologies for taking my sweet time in responding. so what I am trying to do is set the modeline to be a bit different depending on which window is currently selected. as it stands, there is a `mode-line` face and a `mode-line-inactive face`. somehow emacs changes the default face for each mode-line depending on whether it is for the "active" window or not. I want to be able to customize other parts of the mode-line depending on whether it is selected or not. for example, you cannot make the `mode-line-buffer-id` face different depending on whether its being displayed in the active window or not. so the code I had written was able to detect whether the mode-line was being displayed in the active window or not. now that things have changed, my code falls on its face. the currently suggested method is to wrap advice around the "select-window" function and add a few hooks. --089e0160b99a56576904f3fe6acb Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
apologies for taking my sweet time in responding.

so what I am trying to do is set the modeline to be a= bit different depending on which window is currently selected. as it stand= s, there is a `mode-line` face and a `mode-line-inactive face`. somehow ema= cs changes the default face for each mode-line depending on whether it is f= or the "active" window or not. I want to be able to customize oth= er parts of the mode-line depending on whether it is selected or not.

for example, you cannot make the `mode-line-buffer-id` = face different depending on whether its being displayed in the active windo= w or not.

so the code I had written was able to de= tect whether the mode-line was being displayed in the active window or not.=

now that things have changed, my code falls on its face= . the currently suggested method is to wrap advice around the "select-= window" function and add a few hooks.

--089e0160b99a56576904f3fe6acb-- From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 07 19:25:15 2014 Received: (at 16874) by debbugs.gnu.org; 8 Mar 2014 00:25:15 +0000 Received: from localhost ([127.0.0.1]:55350 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WM54k-0001Tp-Tn for submit@debbugs.gnu.org; Fri, 07 Mar 2014 19:25:15 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:22631) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WM54j-0001Th-7N for 16874@debbugs.gnu.org; Fri, 07 Mar 2014 19:25:13 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EABK/CFFMCppy/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCwsOJhIUGA0kiB4GwS2RCgOIYZwZgV6DFQ X-IPAS-Result: Av8EABK/CFFMCppy/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCwsOJhIUGA0kiB4GwS2RCgOIYZwZgV6DFQ X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="50841007" Received: from 76-10-154-114.dsl.teksavvy.com (HELO ceviche.home) ([76.10.154.114]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 07 Mar 2014 19:25:12 -0500 Received: by ceviche.home (Postfix, from userid 20848) id 4BE9C660A5; Fri, 7 Mar 2014 19:25:11 -0500 (EST) From: Stefan Monnier To: Donald Curtis Subject: Re: bug#16874: 24.3.50; Regression in active window detection Message-ID: References: <87eh2rftna.fsf@gmail.com> Date: Fri, 07 Mar 2014 19:25:11 -0500 In-Reply-To: (Donald Curtis's message of "Thu, 6 Mar 2014 22:31:37 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 16874 Cc: rudalics@gmx.at, 16874@debbugs.gnu.org, damien.cassou@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > so the code I had written was able to detect whether the mode-line was > being displayed in the active window or not. IIUC your old code was not correct in some circumstance (maybe in the presence of multiple frames, can't remember), but indeed the change in Emacs-24.4 (which was made to fix another problem) breaks such hacks. The best I can offer so far goes along the following lines: 1- use post-command-hook (or better yet pre-redisplay-function) to set a global variable `my-selected-window'. 2- use that variable instead of (selected-window) in your modeline :eval code. Stefan From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 07 20:53:43 2014 Received: (at 16874) by debbugs.gnu.org; 8 Mar 2014 01:53:43 +0000 Received: from localhost ([127.0.0.1]:55391 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WM6SN-0004ok-3b for submit@debbugs.gnu.org; Fri, 07 Mar 2014 20:53:43 -0500 Received: from mail-la0-f43.google.com ([209.85.215.43]:45176) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WM6SK-0004oa-F9 for 16874@debbugs.gnu.org; Fri, 07 Mar 2014 20:53:41 -0500 Received: by mail-la0-f43.google.com with SMTP id e16so3307827lan.16 for <16874@debbugs.gnu.org>; Fri, 07 Mar 2014 17:53:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=5fq4P4UzlltbmuiSjJQaWWup10KKVkj3lwc0CvC/rwM=; b=suJp+XMb3JneqzFP3BSx0TkpQzczuQT0DObFEaRr4rzEpSAcgDxG5XlNqbhRD9eJnv a26/9r1N+r9fw5oGE++hfLp6c7gzQsNnc1xvvqqkxmj4oAfcXzsR1iE7NtfEsV5PMIK/ aeFc0cQvxTKR3Bd8y6bJsGyW/L14IRAruPw4/VHQxMWUocgEpkiaKqhVE8kiM8HERKXq LGEFJKz8fbQ+dKO0i1ynYVUI+FSJHoOTgNPe1D9x9siUruoKnlAchAdSKlTzEleip9KH aLg/7O6pGTEFAHBOQNJlLesqODIkVXdMTShicz/RJz/lz4tFQh9gLB70dAktEy0U0IY2 F9sg== MIME-Version: 1.0 X-Received: by 10.152.9.65 with SMTP id x1mr13912440laa.6.1394243619209; Fri, 07 Mar 2014 17:53:39 -0800 (PST) Received: by 10.112.33.47 with HTTP; Fri, 7 Mar 2014 17:53:39 -0800 (PST) Received: by 10.112.33.47 with HTTP; Fri, 7 Mar 2014 17:53:39 -0800 (PST) In-Reply-To: References: <87eh2rftna.fsf@gmail.com> Date: Fri, 7 Mar 2014 17:53:39 -0800 X-Google-Sender-Auth: cgfh9cAwFY80udIGHzIoiqIihPk Message-ID: Subject: Re: bug#16874: 24.3.50; Regression in active window detection From: Donald Curtis To: Stefan Monnier Content-Type: multipart/alternative; boundary=089e0158b8eaa746aa04f40ea373 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 16874 Cc: rudalics@gmx.at, 16874@debbugs.gnu.org, damien.cassou@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --089e0158b8eaa746aa04f40ea373 Content-Type: text/plain; charset=UTF-8 Cool thanks for the pre redisplay suggestion. On Mar 7, 2014 4:26 PM, "Stefan Monnier" wrote: > > so the code I had written was able to detect whether the mode-line was > > being displayed in the active window or not. > > IIUC your old code was not correct in some circumstance (maybe in the > presence of multiple frames, can't remember), but indeed the change in > Emacs-24.4 (which was made to fix another problem) breaks such hacks. > > The best I can offer so far goes along the following lines: > > 1- use post-command-hook (or better yet pre-redisplay-function) to set > a global variable `my-selected-window'. > 2- use that variable instead of (selected-window) in your modeline :eval > code. > > > Stefan > --089e0158b8eaa746aa04f40ea373 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Cool thanks for the pre redisplay suggestion.

On Mar 7, 2014 4:26 PM, "Stefan Monnier&quo= t; <monnier@iro.umontreal.ca= > wrote:
> so the code I had written was able to detect whether the mode-line was=
> being displayed in the active window or not.

IIUC your old code was not correct in some circumstance (maybe in the
presence of multiple frames, can't remember), but indeed the change in<= br> Emacs-24.4 (which was made to fix another problem) breaks such hacks.

The best I can offer so far goes along the following lines:

1- use post-command-hook (or better yet pre-redisplay-function) to set
=C2=A0 =C2=A0a global variable `my-selected-window'.
2- use that variable instead of (selected-window) in your modeline :eval co= de.


=C2=A0 =C2=A0 =C2=A0 =C2=A0 Stefan
--089e0158b8eaa746aa04f40ea373-- From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 18 18:19:23 2014 Received: (at 16874) by debbugs.gnu.org; 18 Mar 2014 22:19:23 +0000 Received: from localhost ([127.0.0.1]:40479 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WQ2Ly-0006sx-ML for submit@debbugs.gnu.org; Tue, 18 Mar 2014 18:19:22 -0400 Received: from mail-yh0-f48.google.com ([209.85.213.48]:35802) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WQ2Ls-0006sV-Ub for 16874@debbugs.gnu.org; Tue, 18 Mar 2014 18:19:18 -0400 Received: by mail-yh0-f48.google.com with SMTP id z6so7661997yhz.35 for <16874@debbugs.gnu.org>; Tue, 18 Mar 2014 15:19:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=eEAWyxRJpi2Lf0FI02vj4IUuBnvH51n4zPnEA7Rf4ko=; b=ESwgXgCFqZaWiqmM+MY4ix2OK+xyEr/2EB23K89i0R7sxwhFnU5X8tDjQwSYzoFiIX ymee5fhdk586YlRqx07Esq+OXkMeWVxP7WFo+QlbQpu1B8ms5rhFhrOaY2kQ6C5Y44cx 7b/nxqtWc5ORvPBna+8RfMeI0Xrd+uR/aG4JXF6J+tNplVxbCNp7sClpRnOlCcACsnrA LpwVUSfUCxdf2nnpImO7CHEFr7S4fOASstQ32bmwlAQBJcacwHze+QU+DTUHLu1ztX7w DvXRVDiG5ov2EqkA0GmHW4rehgSKZEQQX+kg/XGp7c733xBseK6MoMTKsPndZlvuiYLi MuVw== X-Received: by 10.236.51.71 with SMTP id a47mr5869355yhc.100.1395181156288; Tue, 18 Mar 2014 15:19:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.170.163.3 with HTTP; Tue, 18 Mar 2014 15:18:36 -0700 (PDT) In-Reply-To: References: <87eh2rftna.fsf@gmail.com> From: Juanma Barranquero Date: Tue, 18 Mar 2014 23:18:36 +0100 Message-ID: Subject: Re: bug#16874: 24.3.50; Regression in active window detection To: Donald Curtis Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 16874 Cc: Stefan Monnier , Damien Cassou , 16874@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) tags 16874 notabug close 16874 quit Closing, as seems is not a bug and there's nothing to be done. From unknown Tue Jun 24 19:08:24 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 16 Apr 2014 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator