From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Troubleshooting window-toggle-side-windows command with olivetti Date: Sun, 24 Sep 2023 15:58:31 +0300 Message-ID: <83o7hr3eyw.fsf@gnu.org> References: <89a804939082c1c6a1e8aa6f5d839144@purelymail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10955"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 24 14:59:49 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qkOiC-0002fl-7r for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 24 Sep 2023 14:59:48 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qkOhT-0000Kb-OH; Sun, 24 Sep 2023 08:59:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qkOhS-0000K9-DW for help-gnu-emacs@gnu.org; Sun, 24 Sep 2023 08:59:02 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qkOhS-0005HJ-5K for help-gnu-emacs@gnu.org; Sun, 24 Sep 2023 08:59:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=3kbGw4wqekJ6gS/DMHHd7Zq9P0ejBWCs980IQ2aqY5A=; b=oscZF86gUp1U DrZehDUKvRTnnETboosdSovpc1gR8GmtxvfxPi3hmwj3RN/47lfJUHmvp1Ts77Nlhh5olg/KevpT7 Xa/wMDsJyAdjo+OCRprffhYI595uzM2EIJzT8wES5nqg8vLBhJRnbaYSeKRe+0SzV+GHzMJrLhzNs eCwZvd8DzHaeE0Bp9PP2DIQ/b2WTS44ubS3nC8EaBtYkCjRYxXgKkKOEMu15vC5XjJ/3H1ukZtGha cwgoccWVd4HoJin1TQ/WJHjMg0BKJDQbmKfGZw/XK0y2ZSR8RSmq8GrgQWHg2AQ+zrCPQdUFCQmmv KCyFfjcJO/ZR0NBlHNjBmQ==; In-Reply-To: <89a804939082c1c6a1e8aa6f5d839144@purelymail.com> (help-gnu-emacs@gnu.org) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:145159 Archived-At: > Date: Sun, 24 Sep 2023 16:53:44 +1000 > From: "Paul W. Rankin" via Users list for the GNU Emacs text editor > > 1. emacs -Q > 2. M-x load-file RET path/to/olivetti.el > 3. M-x olivetti-mode > 4. M-: (display-buffer-in-side-window (get-buffer-create "side") '((side > . left))) > 5. M-x window-toggle-side-windows [2 times] > > Results: > > Error backtrace: > > Debugger entered--Lisp error: (wrong-type-argument window-live-p nil) > select-window(nil) > window--state-put-2(t 855) > window-state-put((((min-height . 4) (min-width . 70) > (min-height-ignore . 3) (min-width-ignore . 62) (min-height-safe . 1) > (min-width-safe . 4) (min-pixel-height . 60) (min-pixel-width . 560) > (min-pixel-height-ignore . 45) (min-pixel-width-ignore . 496) > (min-pixel-height-safe . 15) (min-pixel-width-safe . 32)) hc > (pixel-width . 1408) (pixel-height . 855) (total-width . 176) > (total-height . 57) (normal-height . 1.0) (normal-width . 1.0) > (combination-limit . t) (parameters (clone-of . #)) (leaf > (pixel-width . 352) (pixel-height . 855) (total-width . 44) > (total-height . 57) (normal-height . 1.0) (normal-width . 0.25) > (parameters (clone-of . #) (window-side . left) (window-slot . > 0)) (buffer # (selected) (hscroll . 0) (fringes 0 0 nil > nil) (margins nil) (scroll-bars nil 0 t nil 0 t nil) (vscroll . 0) > (dedicated . side) (point . #) (start . # 1 in side>))) (leaf (last . t) (pixel-width . 1056) (pixel-height . 855) > (total-width . 132) (total-height . 57) (normal-height . 1.0) > (normal-width . 0.75) (parameters (clone-of . #)) (buffer > # (selected . t) (hscroll . 0) (fringes 168 168 t nil) > (margins 8 . 8) (scroll-bars nil 0 t nil 0 t nil) (vscroll . 0) > (dedicated) (point . #) (start . # in *scratch*>)))) # t) > window-toggle-side-windows() > funcall-interactively(window-toggle-side-windows) > call-interactively(window-toggle-side-windows record nil) > command-execute(window-toggle-side-windows record) > execute-extended-command(nil "window-toggle-side-windows" nil) > funcall-interactively(execute-extended-command nil > "window-toggle-side-windows" nil) > call-interactively(execute-extended-command nil nil) > command-execute(execute-extended-command) > > > I've followed the debugger to `window--state-put-2' where it retrieves > `window-state-put-list' and seems to want a live window as the car of > that list, however when olivetti is enabled it is getting nil. I don't > know why. Crystal ball says this has something to do with the fact that olivetti.el does (set-window-parameter window 'split-window 'olivetti-split-window) and window-state-put calls split-window.