From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#36193: 26.2; 'set-window-scroll-bars' setting doesn't take effect in emacsclient session Date: Wed, 19 Jun 2019 11:14:04 +0200 Message-ID: <659801cd-2b07-32b2-db96-de4470078f7d@gmx.at> References: <83lfy5zcqb.fsf@gnu.org> <095ad324-1ba2-253d-9d5d-bb576f722966@gmx.at> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="80607"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 36193@debbugs.gnu.org To: Andrea Greselin Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 19 11:15:26 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 1hdWgg-000Krb-0U for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Jun 2019 11:15:26 +0200 Original-Received: from localhost ([::1]:36026 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hdWge-00022z-UJ for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Jun 2019 05:15:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:32887) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hdWgO-0001m3-6S for bug-gnu-emacs@gnu.org; Wed, 19 Jun 2019 05:15:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hdWgJ-0002AR-AZ for bug-gnu-emacs@gnu.org; Wed, 19 Jun 2019 05:15:08 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60704) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hdWgJ-0002A9-6I for bug-gnu-emacs@gnu.org; Wed, 19 Jun 2019 05:15:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hdWgJ-00031W-1w for bug-gnu-emacs@gnu.org; Wed, 19 Jun 2019 05:15:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 Jun 2019 09:15: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.156093565711521 (code B ref 36193); Wed, 19 Jun 2019 09:15:02 +0000 Original-Received: (at 36193) by debbugs.gnu.org; 19 Jun 2019 09:14:17 +0000 Original-Received: from localhost ([127.0.0.1]:46011 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hdWfY-0002zl-QC for submit@debbugs.gnu.org; Wed, 19 Jun 2019 05:14:17 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:46925) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hdWfW-0002zT-01 for 36193@debbugs.gnu.org; Wed, 19 Jun 2019 05:14:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1560935643; bh=8U5WrNy0K9ajoDUIEl86wm4CCpwEVpqBIXcu/8fCEC0=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=Z483ejv0FgTBpmukgd+yHpXO8O2hUVgNxXJ41O8Gei4kd7HYhnP+dJWcdZgo3hRuM xecfNMJIcD9rg2vyRGNV52HMRgXpTb+BnTxn04IEkJiHmhlKcruKbhotRq8SLHCCEW mATKU9ZHfKOYvKKulgXKjoalwpsDGbww92iXgkEI= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.101] ([212.95.5.75]) by mail.gmx.com (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MvsEx-1iVUOi2jH5-00szPW; Wed, 19 Jun 2019 11:14:03 +0200 In-Reply-To: Content-Language: de-DE X-Provags-ID: V03:K1:H/u8T3Mn7d1B7QUBe83K+ZxZPOJ53yhrk0SC3cl7f5yDagv9Lup PBb+TSdPhvov1lvv+NPciJ/WWDIJUUbamQPe+bJHsxSPa+aDqunT//d9EOApdKLdMLNvGoD 38BMydmcK7Qp7quPdbwYL9c25721yaae7Nrlzbxt5Cn204NVnA8V46AzrmJt0N1ewY0nFgG 6Dcrn+E5whe5ySfDXKgEA== X-UI-Out-Filterresults: notjunk:1;V03:K0:GWutTXyeEyA=:E2ptw/wrn1vSEKNnJ3VA22 1YcG3YP6iiMdpsMUxyIPDXvN81xAio1OqZTA6FU7QPE+mbDXFBKa01Xn0Px5Wlyx7DD5na9P4 oUUqfAN3qij/JS48dVkZ2cppm4MSalGOVj8f68Acg3ZCVB7Qn2azUUQgSC8zcbh0Iv3CaL6WD nth+LPp55Qn88M136NZnSo4TcAW5SMyfJ4fW6R+HCnhSIyR2jCxkdq5H41hge7RhLGxeu7dMz XYQp/dXSxW8bSymBwiwOJEbG0ED8u1yT3NZl838Irje9e9abt51cm4igxHjqqDsE9QrQmmMjn +PR7/cUHAvq6oKkhrBj/jzAOB1im489T21Cjuy34KTQvq9c0YVrk5zXFHi7NhSOdWAfkC9ESt hWrF60uxBhhIPcF31yAgRI7tuD9VLXG9EWgrfvvDFtEsjvuL0/TJDFfZMlJDxCtrpqR+fY3Hv ypP8RaQVffXkHqYPSV5zgpu5Tifm84tLdU1Xl58ek0W/VBXKzPIlhkY9A82e8mYbmVVANxoGJ msKZJahegxBq+HeRfPoXjURdd98fJQaiI4F39zuEmhlBYM/hQOpJSHnETdRJlUveamebQ6zaf 1BlZ277A00+rWPSPGUfueAz59XOwQD+yCZDPguiiHIPnIRa0G5d7a2YFIWbIJ2utto0Gx6LJr 8gM/QwlGgMs4nm4EKiYJf1OjqrQCYJw3bL1GqW0nSYk7IkDJ4Vr+8pnGe1gwPmWK7R9eI9b4S k89UgjTHzBoWD4rqt/K2jE/qq912oSd+cXXE/beHh6Y4DZg+PSklXc96rjEnbLIrYWTcsr/C 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:160832 Archived-At: >> That is if I evaluate with emacs -Q >> (set-window-scroll-bars (minibuffer-window) 0 nil) >> and then type M-x, I get the scroll bars back just as you do. > > The behaviour is different in my case: when I use > 'after-make-frame-functions' as in the snippet in my second message, This one, I suppose (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)) > the > scroll bar persists after doing M-x. If I evaluate > (set-window-scroll-bars (minibuffer-window) 0 nil) > in a running session, they are displayed only as long as the minibuffer is > active, and then they are turned off again. Since I never use emacsclient I can't tell and have no idea how this is supposed to work. It could be caused by this part in minibuf.c if ((noninteractive /* In case we are running as a daemon, only do this before detaching from the terminal. */ || (IS_DAEMON && DAEMON_RUNNING)) && NILP (Vexecuting_kbd_macro)) { val = read_minibuf_noninteractive (prompt, expflag, defalt); return unbind_to (count, val); } which avoids saving and restoring the window configuration and thus removing the scroll bar when restoring. Maybe someone else can clarify how this is supposed to work. In a normal session the scroll bar gets removed after M-x is done so apparently restoring the old window configuration also removes the scroll bar. martin