From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Gary Fredericks Newsgroups: gmane.emacs.bugs Subject: bug#32720: term-mode ignores certain window size changes Date: Wed, 16 Jan 2019 11:44:06 -0600 Message-ID: References: <5C1F9038.30604@gmx.at> <5C1FCDD0.4070303@gmx.at> <5C21FD94.8070005@gmx.at> <5C289582.5010700@gmx.at> <5C2A24AA.5060908@gmx.at> <5C2BA293.3080303@gmx.at> <5C2BA9A5.1050801@gmx.at> <5C3860C8.8080805@gmx.at> <5C3F6A21.5040907@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000cbd812057f96d33a" X-Trace: blaine.gmane.org 1547660588 29811 195.159.176.226 (16 Jan 2019 17:43:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 16 Jan 2019 17:43:08 +0000 (UTC) Cc: 32720@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 16 18:43:04 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gjpDU-0007dE-1k for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 Jan 2019 18:43:04 +0100 Original-Received: from localhost ([127.0.0.1]:59582 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gjpFa-0001Ky-Rc for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 Jan 2019 12:45:14 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:36667) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gjpFQ-0001JJ-0i for bug-gnu-emacs@gnu.org; Wed, 16 Jan 2019 12:45:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gjpFO-0005JZ-Up for bug-gnu-emacs@gnu.org; Wed, 16 Jan 2019 12:45:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34562) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gjpFO-0005JT-Rq for bug-gnu-emacs@gnu.org; Wed, 16 Jan 2019 12:45:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gjpFO-000143-PL for bug-gnu-emacs@gnu.org; Wed, 16 Jan 2019 12:45:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Gary Fredericks Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 16 Jan 2019 17:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32720 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32720-submit@debbugs.gnu.org id=B32720.15476606664012 (code B ref 32720); Wed, 16 Jan 2019 17:45:02 +0000 Original-Received: (at 32720) by debbugs.gnu.org; 16 Jan 2019 17:44:26 +0000 Original-Received: from localhost ([127.0.0.1]:33839 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gjpEn-00012e-If for submit@debbugs.gnu.org; Wed, 16 Jan 2019 12:44:25 -0500 Original-Received: from mail-it1-f179.google.com ([209.85.166.179]:50216) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gjpEm-00012R-J8 for 32720@debbugs.gnu.org; Wed, 16 Jan 2019 12:44:25 -0500 Original-Received: by mail-it1-f179.google.com with SMTP id z7so4383821iti.0 for <32720@debbugs.gnu.org>; Wed, 16 Jan 2019 09:44:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=AQ8h9puvUn0Lo2Abfpc5R5FVuIDWqMiVUnO3MQ6ibN8=; b=gnlmUUiDCDR4KaRsTa4gDfqUpomE65MxhjBW6IkCa47muni2x0BkxikxpP5U8FE5k1 wULO46x000txsZmhEAtO+J2tWdG6qI2GrIO90ePrO5Mqd2xDl73aa0FUD2azKe8nEqSX twzYJdM4GVnePvFwbpTVfBPo+mbkNPT0IV0icRw7WmNCpCkRIWSOoGB/Ttd848cvHXz2 z3uOvgsfTMq01GI9pq2DUqi+CLYrQr3pkK/miGjik8r+Q4jbflZ1okwsLnjfQsxUz+Sr 7CXoKuFKA0mVER39ctBEB0sh6PKbhFzc6oUoXgebpFH9nZmribTU/QjqS1+KRXmDqZQ+ JF5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=AQ8h9puvUn0Lo2Abfpc5R5FVuIDWqMiVUnO3MQ6ibN8=; b=OTLbkNByzAUyFKaNubZhlOa4JYVRItzSrbSftCs5UO+y3s4wQuorUSYV0ci9g7QT/p 9LiKSZrXLt6X6WKQs+aGolNLh9ZSfrW7k7yu8tAafmhl3sIvvD9A4g1NY6TaczhVosRq nan4YNw2xrnwk336Vk5m21AJr/zKhRJjc0GyznDe1UHW5mDgKJFb9U70prTqdv3FuQqi 1jLnApCovBYlwKEp/K336IWBCWOHoar5w9BeegZKKwWOlG2aNCvXx+81eh4NdEU25tu6 CKfIwzWnv32Opta7wY9xekGY2pJbk9iTvMe3+3RtilY7X/AmieYAbaQli7Z5s1aJj/x8 dK+A== X-Gm-Message-State: AJcUukdBRG1Atkqwe88zqX6ikoXj7NPRZHVEbKDvUo7I8rXRsHlMPoeM y8MK4Qi+pWISyHnB+3k9z5O0bkFIWDmngDrS2+A= X-Google-Smtp-Source: ALg8bN41f21Yv852GfMjmCf8vsme7ExBisqRyBH70dXAVX13QDM/Q94aUW+EDlVbyzk5xHPAmiMnUEgieEAa/LGMKRc= X-Received: by 2002:a02:4f88:: with SMTP id r8mr5968278jad.69.1547660658725; Wed, 16 Jan 2019 09:44:18 -0800 (PST) In-Reply-To: <5C3F6A21.5040907@gmx.at> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.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" Xref: news.gmane.org gmane.emacs.bugs:154489 Archived-At: --000000000000cbd812057f96d33a Content-Type: text/plain; charset="UTF-8" That sounds plausible, I'll try that out. Thanks! Gary Fredericks (803)-295-0195 fredericksgary@gmail.com gfredericks.com On Wed, Jan 16, 2019 at 11:30 AM martin rudalics wrote: > > I tracked down my issue to this line in my configuration: > > > > > https://github.com/gfredericks/dotfiles/blob/48c503319046517fc1767735d09fbb232ace12ba/base/.emacs.d/user/gfredericks-longrunning.el.symlink#L34 > > > > I can see how it's related, since it's adding a > > window-configuration-change-hook, but I can't tell at a glance what's > wrong > > with it. It's a function that tries to save the current window > > configuration to a variable each time it changes. > > ... > > >> > it complains about the minibuffer being active). > > The error seems to come from this wg function: > > (defun wg-error-on-active-minibuffer () > "Throw an error when the minibuffer is active." > (when (active-minibuffer-window) > (error "Workgroup operations aren't permitted while the \ > minibuffer is active."))) > > 'window-configuration-change-hook' now conceptually runs after any > resize operation which includes states where the minibuffer window is > active. FWIW the call sequence you encounter is > > stash-my-working-config -> wg-make-wconfig -> wg-ewtree->wtree -> > wg-error-on-active-minibuffer > > so maybe you should not stash your working configuration when the > minibuffer is active. > > martin > --000000000000cbd812057f96d33a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
That sounds plausible, I'll try that out.

Thanks!

Gary Fredericks
(803)-295-0195
fredericksgary@gmail.com
gfredericks.com


On = Wed, Jan 16, 2019 at 11:30 AM martin rudalics <rudalics@gmx.at> wrote:
=C2=A0> I tracked down my issue to this line in= my configuration:
=C2=A0>
=C2=A0> https://github.com/gf= redericks/dotfiles/blob/48c503319046517fc1767735d09fbb232ace12ba/base/.emac= s.d/user/gfredericks-longrunning.el.symlink#L34
=C2=A0>
=C2=A0> I can see how it's related, since it's adding a
=C2=A0> window-configuration-change-hook, but I can't tell at a glan= ce what's wrong
=C2=A0> with it. It's a function that tries to save the current wind= ow
=C2=A0> configuration to a variable each time it changes.

...

=C2=A0>>=C2=A0 =C2=A0> it complains about the minibuffer being act= ive).

The error seems to come from this wg function:

(defun wg-error-on-active-minibuffer ()
=C2=A0 =C2=A0"Throw an error when the minibuffer is active."
=C2=A0 =C2=A0(when (active-minibuffer-window)
=C2=A0 =C2=A0 =C2=A0(error "Workgroup operations aren't permitted = while the \
minibuffer is active.")))

'window-configuration-change-hook' now conceptually runs after any<= br> resize operation which includes states where the minibuffer window is
active.=C2=A0 FWIW the call sequence you encounter is

stash-my-working-config -> wg-make-wconfig -> wg-ewtree->wtree -&g= t;
wg-error-on-active-minibuffer

so maybe you should not stash your working configuration when the
minibuffer is active.

martin
--000000000000cbd812057f96d33a--