From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#27091: Request: Toggle scroll bar on each window separately Date: Sat, 27 May 2017 13:35:28 +0300 Message-ID: <83bmqeio3z.fsf@gnu.org> References: <87vaonp99v.fsf@gmail.com> <592935EB.7090001@gmx.at> <83inkmitkt.fsf@gnu.org> <592941B2.9060304@gmx.at> <83fufqir81.fsf@gnu.org> <59294DA4.3040700@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1495881376 32433 195.159.176.226 (27 May 2017 10:36:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 27 May 2017 10:36:16 +0000 (UTC) Cc: agrambot@gmail.com, 27091@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 27 12:36:08 2017 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 1dEZ4p-0008Ho-W4 for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 May 2017 12:36:08 +0200 Original-Received: from localhost ([::1]:40181 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dEZ4v-0001ul-EV for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 May 2017 06:36:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48842) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dEZ4p-0001uU-4x for bug-gnu-emacs@gnu.org; Sat, 27 May 2017 06:36:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dEZ4k-0001Ec-Lz for bug-gnu-emacs@gnu.org; Sat, 27 May 2017 06:36:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37241) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dEZ4k-0001EY-BD for bug-gnu-emacs@gnu.org; Sat, 27 May 2017 06:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dEZ4k-0005jl-4m for bug-gnu-emacs@gnu.org; Sat, 27 May 2017 06:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 May 2017 10:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27091 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 27091-submit@debbugs.gnu.org id=B27091.149588134122026 (code B ref 27091); Sat, 27 May 2017 10:36:02 +0000 Original-Received: (at 27091) by debbugs.gnu.org; 27 May 2017 10:35:41 +0000 Original-Received: from localhost ([127.0.0.1]:39918 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dEZ4P-0005jA-0F for submit@debbugs.gnu.org; Sat, 27 May 2017 06:35:41 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57826) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dEZ4M-0005iy-RH for 27091@debbugs.gnu.org; Sat, 27 May 2017 06:35:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dEZ4D-00019O-6w for 27091@debbugs.gnu.org; Sat, 27 May 2017 06:35:33 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58577) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dEZ4D-00019F-3A; Sat, 27 May 2017 06:35:29 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2566 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dEZ4C-00030w-3l; Sat, 27 May 2017 06:35:28 -0400 In-reply-to: <59294DA4.3040700@gmx.at> (message from martin rudalics on Sat, 27 May 2017 11:57:56 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:132913 Archived-At: > Date: Sat, 27 May 2017 11:57:56 +0200 > From: martin rudalics > CC: agrambot@gmail.com, 27091@debbugs.gnu.org > > > I think this should be added to the documentation in the ELisp manual. > > The doc-string of ‘set-window-buffer’ has this: > > Optional third argument KEEP-MARGINS non-nil means that WINDOW's current > display margins, fringe widths, and scroll bar settings are preserved; > the default is to reset these from the local settings for BUFFER-OR-NAME > or the frame defaults. > > The Elisp doc of ‘set-window-buffer’ has this: > > By default, this function resets WINDOW's position, display > margins, fringe widths, and scroll bar settings, based on the local > variables in the specified buffer. However, if the optional > argument KEEP-MARGINS is non-`nil', it leaves the display margins > and fringe widths unchanged. > > I can amend the last sentence. What else do you want to add? The above are just fine. The problem is on the other end: the set-window-scroll-bars function doesn't mention that switching buffers in the window for which that function was called will reinstate the scroll bar. (It also doesn't say what is the meaning of VERTICAL-TYPE's nil value.) And neither does the manual.