From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Greselin Newsgroups: gmane.emacs.bugs Subject: bug#36193: 26.2; 'set-window-scroll-bars' setting doesn't take effect in emacsclient session Date: Thu, 18 Jul 2019 10:12:35 +0200 Message-ID: References: <83lfy5zcqb.fsf@gnu.org> <095ad324-1ba2-253d-9d5d-bb576f722966@gmx.at> <26c7d41f-e54f-1cf4-9266-ecbd268f0888@gmx.at> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000046e15a058df02e68" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="148831"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 36193@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 18 10:14:13 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 esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ho1YI-000cRA-UM for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Jul 2019 10:14:11 +0200 Original-Received: from localhost ([::1]:35264 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1ho1YH-0002PQ-U5 for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Jul 2019 04:14:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46481) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1ho1YE-0002Ku-Ff for bug-gnu-emacs@gnu.org; Thu, 18 Jul 2019 04:14:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ho1YC-0006mu-Id for bug-gnu-emacs@gnu.org; Thu, 18 Jul 2019 04:14:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44527) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ho1YA-0006jM-25 for bug-gnu-emacs@gnu.org; Thu, 18 Jul 2019 04:14:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ho1Y9-000259-RH for bug-gnu-emacs@gnu.org; Thu, 18 Jul 2019 04:14:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Greselin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 18 Jul 2019 08:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36193 X-GNU-PR-Package: emacs Original-Received: via spool by 36193-submit@debbugs.gnu.org id=B36193.15634376007806 (code B ref 36193); Thu, 18 Jul 2019 08:14:01 +0000 Original-Received: (at 36193) by debbugs.gnu.org; 18 Jul 2019 08:13:20 +0000 Original-Received: from localhost ([127.0.0.1]:53348 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ho1XU-00021p-Cn for submit@debbugs.gnu.org; Thu, 18 Jul 2019 04:13:20 -0400 Original-Received: from mail-pl1-f174.google.com ([209.85.214.174]:38771) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ho1XR-000215-Iy for 36193@debbugs.gnu.org; Thu, 18 Jul 2019 04:13:18 -0400 Original-Received: by mail-pl1-f174.google.com with SMTP id az7so13458731plb.5 for <36193@debbugs.gnu.org>; Thu, 18 Jul 2019 01:13:17 -0700 (PDT) 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=GU55xrOzhAKDAVcoocvVTxvT9SKTimk8DU6cciX90q0=; b=V7tJ+wp13k3E8qUCKbn3zfRfz60Y5aiY96gyQG2ln0cZXzR9t4psYeeRLzM/RR4+QX WrvqNkRzDlihLdTXLg+Q+F5Aj5lLanWN79S+qVQBrZmqM5A+FHAP5kLj+WUvkSOdzDM7 1tPOcDoc7FAIwDQoryviJ38jyia8ENgZCJ9UBHHY77IGuAA446rkuCHEpsnwq09K/ANn Mii6lqRNYV6UPEjWmRu4NduuPBACjtuJo1Cu4RGCWaeQtqUmb8JGncej3tgLGHb3b142 WoV1sFrhBXmytXNiXRPEvwZmsQsq9uQNGBF2yTuH3+B5/4M6CWjowcrrCR7AWOX3fgBq OZYg== 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=GU55xrOzhAKDAVcoocvVTxvT9SKTimk8DU6cciX90q0=; b=kiHFXY9IqlT7IJ1R8PP8vXfPrC6FbnGP0lv+4s70t5rijPBHAmfW/cZnYJejCibCnL Gkq0arIKRilaUC8h49GmK1Naf3BXmBU6zZRcun9Ns1pM4d2egcpOlOtIQ5s502dRxs/a FZWy1+ofpjF09gPSzclF/pas23DN0T78uRxoQ2RmhKzaFXknKLARYg/QhIoBhIG2aA7h VsHHvJIdlTnxgxAKNUS5rzmUKqC5Jm7xcfOUl5SiJMZ2PCZ1MMi5cBBweBef13SpnTKT advPzVCR9lfY66JA3aMhqeQxOflj43AtPKXrksavPpWQiES1mAvTcK1P/5ufnAVaRVZh xzPw== X-Gm-Message-State: APjAAAWSNp9lNU4exWMxrBdd5Jw4K+8GCIzm3cClOPZuNDDngPWOs02y BPHzOiR6sXzQu2iSIUt/htVbhnarOq8qL5azAMM= X-Google-Smtp-Source: APXvYqz89WQ4wi1ordRMPixA19oINjyBrO0oYxSivMma5RN0o5j5rKgeMDcThFo7XzDdaAYosSMYUB4MtBhLZokiti0= X-Received: by 2002:a17:902:b48f:: with SMTP id y15mr49413954plr.268.1563437591616; Thu, 18 Jul 2019 01:13:11 -0700 (PDT) In-Reply-To: <26c7d41f-e54f-1cf4-9266-ecbd268f0888@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:163287 Archived-At: --00000000000046e15a058df02e68 Content-Type: text/plain; charset="UTF-8" > Have you ever tried that workaround? Sorry, I missed it. It works! > If you build Emacs yourself, please try it. I wouldn't know how to test it, I'm sorry. I don't build my Emacs. Thank you, Andrea On Wed, 17 Jul 2019 at 10:38, martin rudalics wrote: > > As a temporary workaround you can try to set the buffer local values > > of 'scroll-bar-width' to zero in all buffers that might eventually > > show up in the minibuffer window, for example, thusly > > > > (progn > > (set-window-scroll-bars (minibuffer-window) 0 nil) > > (with-current-buffer (get-buffer-create " *Echo Area 0*") > > (setq scroll-bar-width 0)) > > (with-current-buffer (get-buffer-create " *Echo Area 1*") > > (setq scroll-bar-width 0)) > > (with-current-buffer (get-buffer-create " *Minibuf-0*") > > (setq scroll-bar-width 0)) > > (with-current-buffer (get-buffer-create " *Minibuf-1*") > > (setq scroll-bar-width 0))) > > > > This should work as long as you don't enable recursive minibuffers. > > Have you ever tried that workaround? > > I now attach a patch that should address this problem with the help of > an additional argument PERSISTENT for 'set-window-scroll-bars' and > 'set-window-fringes'. If set, the requested settings should survive > subsequent invocations of 'set-window-buffer' for the window (in > particular the minibuffer window) in question. If you build Emacs > yourself, please try it. > > Thanks, martin > --00000000000046e15a058df02e68 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
> Have you ever tried that workaround?
<= /div>
Sorry, I missed it. It works!

> If yo= u build Emacs yourself, please try it.
I wouldn't = know how to test it, I'm sorry. I don't build my Emacs.
<= br>
Thank you,
Andrea

On Wed, 17 Jul 2019 at 1= 0:38, martin rudalics <rudalics@gmx.a= t> wrote:
=C2=A0> As a temporary workaround you can try to set the buffer local v= alues
=C2=A0> of 'scroll-bar-width' to zero in all buffers that might = eventually
=C2=A0> show up in the minibuffer window, for example, thusly
=C2=A0>
=C2=A0> (progn
=C2=A0>=C2=A0 =C2=A0 (set-window-scroll-bars (minibuffer-window) 0 nil)<= br> =C2=A0>=C2=A0 =C2=A0 (with-current-buffer (get-buffer-create " *Ech= o Area 0*")
=C2=A0>=C2=A0 =C2=A0 =C2=A0 (setq scroll-bar-width 0))
=C2=A0>=C2=A0 =C2=A0 (with-current-buffer (get-buffer-create " *Ech= o Area 1*")
=C2=A0>=C2=A0 =C2=A0 =C2=A0 (setq scroll-bar-width 0))
=C2=A0>=C2=A0 =C2=A0 (with-current-buffer (get-buffer-create " *Min= ibuf-0*")
=C2=A0>=C2=A0 =C2=A0 =C2=A0 (setq scroll-bar-width 0))
=C2=A0>=C2=A0 =C2=A0 (with-current-buffer (get-buffer-create " *Min= ibuf-1*")
=C2=A0>=C2=A0 =C2=A0 =C2=A0 (setq scroll-bar-width 0)))
=C2=A0>
=C2=A0> This should work as long as you don't enable recursive minib= uffers.

Have you ever tried that workaround?

I now attach a patch that should address this problem with the help of
an additional argument PERSISTENT for 'set-window-scroll-bars' and<= br> 'set-window-fringes'.=C2=A0 If set, the requested settings should s= urvive
subsequent invocations of 'set-window-buffer' for the window (in particular the minibuffer window) in question.=C2=A0 If you build Emacs
yourself, please try it.

Thanks, martin
--00000000000046e15a058df02e68--