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, 13 Jun 2019 20:48:42 +0200 Message-ID: References: <83lfy5zcqb.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000c9fedd058b38fc61" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="64463"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 36193@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 13 20:53:45 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 1hbUr2-000Gcp-Qn for geb-bug-gnu-emacs@m.gmane.org; Thu, 13 Jun 2019 20:53:44 +0200 Original-Received: from localhost ([::1]:43880 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbUr1-0007fc-R9 for geb-bug-gnu-emacs@m.gmane.org; Thu, 13 Jun 2019 14:53:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37119) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbUnU-0003mT-5n for bug-gnu-emacs@gnu.org; Thu, 13 Jun 2019 14:50:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hbUnS-00079N-D3 for bug-gnu-emacs@gnu.org; Thu, 13 Jun 2019 14:50:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50789) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hbUnS-00079J-9e for bug-gnu-emacs@gnu.org; Thu, 13 Jun 2019 14:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hbUnS-0004Du-6k for bug-gnu-emacs@gnu.org; Thu, 13 Jun 2019 14:50:02 -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, 13 Jun 2019 18:50:02 +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.156045176816178 (code B ref 36193); Thu, 13 Jun 2019 18:50:02 +0000 Original-Received: (at 36193) by debbugs.gnu.org; 13 Jun 2019 18:49:28 +0000 Original-Received: from localhost ([127.0.0.1]:36099 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hbUmt-0004Cs-PC for submit@debbugs.gnu.org; Thu, 13 Jun 2019 14:49:28 -0400 Original-Received: from mail-pl1-f170.google.com ([209.85.214.170]:35871) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hbUmr-0004Cd-22 for 36193@debbugs.gnu.org; Thu, 13 Jun 2019 14:49:26 -0400 Original-Received: by mail-pl1-f170.google.com with SMTP id d21so8519623plr.3 for <36193@debbugs.gnu.org>; Thu, 13 Jun 2019 11:49:24 -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=rkczLtM5sNZh+W95IsnMvWmBiB0WalFhEOlEVRCZlqY=; b=hwF3pWaGgQEw5Vkcwb6Jrr7zokXy43AdckpcUhOmZsAL+s4I6pzFOYqhudSrVB9cec qq0adZAXX+BVzvY6aYF79WpXy1qB5oIeA8S5QpgpTGNDuYvnrto1Si7g24T5WB+D1gQu VPDwJer1YMYexRZPbSg1xlI6RkoeppuX2NE7q8En/AVIHCelnjwKLefWeea/3I44saNU GyKxUrZDbQ05XIo/6YCmCy/+kbtx5yxjIO5ElwSwXN150IKxAuVi9fteWnMgoNMTf8QH x/NUoxw2BsPqSKYr/cgeQXOBMVW3AN+ygitBzCKAfkJDRkFcEe0RP2FslnKuEuH/fbGu sEGw== 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=rkczLtM5sNZh+W95IsnMvWmBiB0WalFhEOlEVRCZlqY=; b=bugFrjC4AdJl+Syqu+OvT0bWeomeHl8PYEjw3P3EVJGEX9+KxeZM3OK+oJhnEGAitY 7+NxKFuBmT1KQowx1kMwzfbJIR/RCgeZfDKD9X+ww6wMYVoijuxIlIAjK5j5ZfLseJeN PMUMWM9xS13SBL1ZuBK9oHLv2AQiE1QOi7cpuzBt6XSlrUhmsxvvos4aq5BIe+5xmOQR spNy75y6EYQVqWTCLpIIMVYxlxdSbHaecczwTkwI4lwJLu5NyoQ9pwVRMGA+7Kufo3WY To4Z7anvJXZxS4UgNF/r4dbwAC3T2yJqSnEErqEfm3B3zgBpVlFfB+aqGVhk2/XDBP/J Kr5g== X-Gm-Message-State: APjAAAVvlIm3vb1iTj0HYkNzBQDms8GGIpePA/7WLLgrVR8kxJhgakBR VcVUiDGPvFMwJtzWK/N6dYDrrsANskGz272U80c= X-Google-Smtp-Source: APXvYqxEUrfbCAUFB7vNZq3oHK5MN5kzLwiz016HBfIXEhXJ7M3YaHlKC5VhlI04ssh1jH88Qaq/+nvTz+GaSK6y9Xw= X-Received: by 2002:a17:902:25ab:: with SMTP id y40mr33148556pla.268.1560451759077; Thu, 13 Jun 2019 11:49:19 -0700 (PDT) In-Reply-To: <83lfy5zcqb.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: 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:160510 Archived-At: --000000000000c9fedd058b38fc61 Content-Type: text/plain; charset="UTF-8" > Are you starting Emacs as daemon? Yep. Trying to follow your suggestion I've written (defun hide-minibuffer-scrollbar (frame) (with-selected-frame frame (set-window-scroll-bars (minibuffer-window) 0 nil))) (if (daemonp) (add-hook 'after-make-frame-functions #'hide-minibuffer-scrollbar) ; Only for client sessions (set-window-scroll-bars (minibuffer-window) 0 nil)) Now client sessions start without the minibuffer scrollbar, but as soon as I use the minibuffer it comes back and it isn't removed afterwards. On Thu, 13 Jun 2019 at 18:12, Eli Zaretskii wrote: > > From: Andrea Greselin > > Date: Thu, 13 Jun 2019 16:57:36 +0200 > > > > I use > > (set-window-scroll-bars (minibuffer-window) 0 nil) > > to disable the minibuffer scroll bar. This works if Emacs is launched > with > > $ emacs > > but it doesn't in emacsclient sessions, though it takes effect if > evaluated in the running session (e.g. with > > 'eval-expression'). I tried delaying the evaluation with > 'window-setup-hook', to no avail. > > > > $ cat ~/.emacs.d/init.el > > (set-window-scroll-bars (minibuffer-window) 0 nil) > > Are you starting Emacs as daemon? If so, disable the scroll bars in > after-make-frame-functions instead of directly in your init file. > --000000000000c9fedd058b38fc61 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
> Are you starting Emacs as daemon?
= Yep.

Trying to follow your s= uggestion I've written

= =C2=A0 (defun hide-minibuffer-scrollbar (frame)
=C2=A0 =C2=A0 (with-sele= cted-frame frame
=C2=A0 =C2=A0 =C2=A0 (set-window-scroll-bars (minibuffe= r-window) 0 nil)))
=C2=A0 (if (daemonp)
=C2=A0 =C2=A0 =C2=A0 (add-hoo= k 'after-make-frame-functions #'hide-minibuffer-scrollbar) ; Only f= or client sessions
=C2=A0 =C2=A0 (set-window-scroll-bars (minibuffer-win= dow) 0 nil))

Now client sess= ions start without the minibuffer scrollbar, but as soon as I use the minib= uffer it comes back and it isn't removed afterwards.
On Thu, 1= 3 Jun 2019 at 18:12, Eli Zaretskii <eliz= @gnu.org> wrote:
> From: Andrea Greselin <greselin.andrea@gmail.com>
> Date: Thu, 13 Jun 2019 16:57:36 +0200
>
> I use
>=C2=A0 =C2=A0(set-window-scroll-bars (minibuffer-window) 0 nil)
> to disable the minibuffer scroll bar. This works if Emacs is launched = with
>=C2=A0 =C2=A0$ emacs
> but it doesn't in emacsclient sessions, though it takes effect if = evaluated in the running session (e.g. with
> 'eval-expression'). I tried delaying the evaluation with=C2=A0= 'window-setup-hook', to no avail.
>
> $ cat ~/.emacs.d/init.el
> (set-window-scroll-bars (minibuffer-window) 0 nil)

Are you starting Emacs as daemon?=C2=A0 If so, disable the scroll bars in after-make-frame-functions instead of directly in your init file.
--000000000000c9fedd058b38fc61--