From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andrea Cardaci Newsgroups: gmane.emacs.bugs Subject: bug#31312: Segmentation fault with doom-emacs, NeoTree and Zoom Date: Wed, 2 May 2018 17:14:04 +0200 Message-ID: References: <87r2mvo6c8.fsf@gmail.com> <5AE87AA3.6050602@gmx.at> <87o9hznfam.fsf@gmail.com> <5AE957BA.6000809@gmx.at> <87fu3ant8k.fsf@gmail.com> <0DFE6C67-38C5-45EE-B658-8BEF80B595FF@gnu.org> <83zi1ip054.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000a1fba7056b3a899e" X-Trace: blaine.gmane.org 1525274015 998 195.159.176.226 (2 May 2018 15:13:35 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 2 May 2018 15:13:35 +0000 (UTC) Cc: Noam Postavsky , 31312@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 02 17:13:31 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fDtRd-00005F-8A for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 May 2018 17:13:25 +0200 Original-Received: from localhost ([::1]:51034 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fDtTk-0003b9-BN for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 May 2018 11:15:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40324) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fDtTF-00039M-Lu for bug-gnu-emacs@gnu.org; Wed, 02 May 2018 11:15:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fDtTC-0008B0-Dw for bug-gnu-emacs@gnu.org; Wed, 02 May 2018 11:15:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39291) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fDtTC-0008Ag-A4 for bug-gnu-emacs@gnu.org; Wed, 02 May 2018 11:15:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fDtTB-0003Sp-Tm for bug-gnu-emacs@gnu.org; Wed, 02 May 2018 11:15:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Cardaci Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 May 2018 15:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31312 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 31312-submit@debbugs.gnu.org id=B31312.152527405413236 (code B ref 31312); Wed, 02 May 2018 15:15:01 +0000 Original-Received: (at 31312) by debbugs.gnu.org; 2 May 2018 15:14:14 +0000 Original-Received: from localhost ([127.0.0.1]:47188 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fDtSP-0003RQ-Lp for submit@debbugs.gnu.org; Wed, 02 May 2018 11:14:13 -0400 Original-Received: from mail-qt0-f177.google.com ([209.85.216.177]:38329) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fDtSM-0003RB-J6 for 31312@debbugs.gnu.org; Wed, 02 May 2018 11:14:11 -0400 Original-Received: by mail-qt0-f177.google.com with SMTP id z23-v6so18840630qti.5 for <31312@debbugs.gnu.org>; Wed, 02 May 2018 08:14:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=WRDNkFug7xCx+JqLbgJ/n9ti1/Wyk9RNdhOEMyIKvlY=; b=O7pZzLO/z+XYVKtp/aQTVrGgnflhSoOVF8v2aRG9xaKRsyYLYkAigKNnnM1DAzNXzS bij+fxhNd06JgRTFWUjVuqHfdrdC9KZ4fcBiVxDgWf9BHArWJbS5lST1PJLRsyxRMaO4 BfOgTrHXRZJ3v1ypYWpuuQcjEN2bB4u6Fa4fGH0lLASz6cSu3bnHHnRj75cORneWozOb DOF9epr5ydlh98KHTLS83HX4rbZQepTrG7pL43RB32JtILiZxMHaZjNhv7uZRQCHjfcs rHRhQ5LrXqeWXPD+oH/Hhjz/JPtp3U9xXVXbhOae2Nt/sSBCdXcDvcJbHg7iuLRI6Qp7 MC+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=WRDNkFug7xCx+JqLbgJ/n9ti1/Wyk9RNdhOEMyIKvlY=; b=HPUITaq9sIOqpXELzXXi6cYLu6KoJaTIFu+IV2G29/Gkgvu5vMDhLv0Z7i1cEXyX7S jU4hB4cymE+f9yvuozgE67Gip3lzkIDGMwC+mioH3T8JaYaeeUVE9Tpe2cIUPvdMcnTb 1iLEl8rWMcNGog/FQ8oH6VuK9o1wtrskX7RjWa4lomnv7xZc/wUBJQV4r/b9hQgBxnW/ mLXry/rX93jeW8YJcSQkEgKuLdUJ2+qNfqX3bbFurddQBzfSywDAbRbV7O56hQeojZt9 XI3C+cQQuRzdQnuJqDeJhX3AhBSuyf6RqY7rX7C2f2exKHOgPHXFm3rc/9njqLH8HHa3 3SNg== X-Gm-Message-State: ALQs6tBUFFpZdaXU7A/Eoa8Jipypn2I6xA2B7dU+dFW1G+z88ATWi//L bAnCWXQITgnVEA3zOComXX2w/R8zG8nzLJqX1BA= X-Google-Smtp-Source: AB8JxZpZC/ASqnHGbfC25Gt2dlSpLMA6+nwVkWRifhf4iw1O6UV42bJUkLtW0wM1Y1ysnsI1u2c3vwP/LjI6nlZXi3A= X-Received: by 2002:ac8:3f72:: with SMTP id w47-v6mr16841511qtk.318.1525274044921; Wed, 02 May 2018 08:14:04 -0700 (PDT) Original-Received: by 10.200.63.210 with HTTP; Wed, 2 May 2018 08:14:04 -0700 (PDT) In-Reply-To: <83zi1ip054.fsf@gnu.org> 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: 208.118.235.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:145932 Archived-At: --000000000000a1fba7056b3a899e Content-Type: text/plain; charset="UTF-8" > If what Martin suggested somehow doesn't fit the bill It doesn't, because it deals with advising `select-window` while the main issue here is that I resize windows in the `window-size-change-functions` hook (albeit using a guard to avoid infinite recursion) and I can't come up any workarounds for that. On 2 May 2018 at 17:06, Eli Zaretskii wrote: > > From: Andrea Cardaci > > Date: Wed, 2 May 2018 15:27:12 +0200 > > Cc: bug-gnu-emacs@gnu.org, Noam Postavsky , > > martin rudalics , 31312@debbugs.gnu.org > > > > Any advice on this part? I needed to force the size of windows and > hooking `select-window` (via `advice-add`) > > is apparently not enough to catch all the cases. > > > > Is there a better way to achieve what I want? > > If what Martin suggested somehow doesn't fit the bill, and no other > ideas are brought up, then I prefer to discuss new features or > infrastructure to satisfy similar needs, rather than force > applications to use such fragile techniques. E.g., we could provide > some customizable controls in the code that resizes windows when > needed. > --000000000000a1fba7056b3a899e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
>=C2=A0If what Martin sugges= ted somehow doesn't fit the bill
=
It doesn't, because it= deals with advising `select-window` while the main issue here is that I re= size windows in the `window-size-change-functions` hook (albeit using a gua= rd to avoid infinite recursion) and I can't come up any workarounds for= that.

On 2 May 2018 at 17:06, Eli Zaretskii <eliz@gnu.org> wrot= e:
> From: Andrea Cardaci <cyrus.and@gmail.com>
> Date: Wed, 2 May 2018 15:27:12 +0200
> Cc: bug-gnu-emacs@gnu.org= , Noam Postavsky <npostavs@gmail.c= om>,
>=C2=A0 =C2=A0 =C2=A0 =C2=A0martin rudalics <rudalics@gmx.at>, 31312@debbugs.gnu.org
>
> Any advice on this part? I needed to force the size of windows and hoo= king `select-window` (via `advice-add`)
> is apparently not enough to catch all the cases.
>
> Is there a better way to achieve what I want?

If what Martin suggested somehow doesn't fit the bill, and no ot= her
ideas are brought up, then I prefer to discuss new features or
infrastructure to satisfy similar needs, rather than force
applications to use such fragile techniques.=C2=A0 E.g., we could provide some customizable controls in the code that resizes windows when
needed.

--000000000000a1fba7056b3a899e--