From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#17671: 24.3.91; RET on a link in *Help* buffer resizes *Help* Date: Tue, 03 Jun 2014 09:21:56 +0200 Message-ID: <538D7794.7050303@gmx.at> References: <83k38z9mlr.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1401780211 19280 80.91.229.3 (3 Jun 2014 07:23:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Jun 2014 07:23:31 +0000 (UTC) To: Eli Zaretskii , 17671@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 03 09:23:23 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Wrj44-0002mw-UG for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Jun 2014 09:23:21 +0200 Original-Received: from localhost ([::1]:50736 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wrj44-0003TM-89 for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Jun 2014 03:23:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54613) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wrj3u-0003T3-7A for bug-gnu-emacs@gnu.org; Tue, 03 Jun 2014 03:23:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wrj3m-0005LJ-K8 for bug-gnu-emacs@gnu.org; Tue, 03 Jun 2014 03:23:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42689) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wrj3m-0005L9-GE for bug-gnu-emacs@gnu.org; Tue, 03 Jun 2014 03:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Wrj3m-0007HI-1F for bug-gnu-emacs@gnu.org; Tue, 03 Jun 2014 03:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 03 Jun 2014 07:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17671 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17671-submit@debbugs.gnu.org id=B17671.140178013227880 (code B ref 17671); Tue, 03 Jun 2014 07:23:01 +0000 Original-Received: (at 17671) by debbugs.gnu.org; 3 Jun 2014 07:22:12 +0000 Original-Received: from localhost ([127.0.0.1]:41566 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wrj2x-0007Fb-DS for submit@debbugs.gnu.org; Tue, 03 Jun 2014 03:22:11 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:57376) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wrj2v-0007FH-7I for 17671@debbugs.gnu.org; Tue, 03 Jun 2014 03:22:10 -0400 Original-Received: from [194.118.136.225] ([194.118.136.225]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0LuOYx-1Wi7zR3OND-011mIK; Tue, 03 Jun 2014 09:22:02 +0200 In-Reply-To: <83k38z9mlr.fsf@gnu.org> X-Provags-ID: V03:K0:s3iSSn5a+P9ZwMNvqxj6B8QVphOfmoKqN6HCWn6YzdGchRMK8e8 x+TMxXzVUXb7V9lhx66DK1volNDsXtCzi8zLbdT5uT/YKXzmQIiwsJFJokQQLxibYS86OoL joWOaOvviuRl4jySPmmxZubmm/NUK+KJ9SAhpS98A2tC3HZeSS8pUOABqWZc/z77JdK/a6R dD2YVaKpyvixP8C4s5WPw== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:89929 Archived-At: > C-h f line-move-visual RET > C-x o > move to the link under "simple.el" and type RET > drag the mode line so that the lower window showing *Help* becomes > smaller `temp-buffer-resize-mode' would do that automatically. > move cursor to the first call to vertical-motion > C-h f RET > C-x o > move to the link under "C source code" and type RET > the window showing *Help* is resized back to half the frame It's due to this code in `display-buffer-use-some-window': ;; If the window was used by `display-buffer' before, try to ;; resize it to its old height but don't signal an error. (when (and (listp quad) (integerp (nth 3 quad)) (/= (nth 3 quad) (window-total-height window))) (condition-case nil (window-resize window (- (nth 3 quad) (window-total-height window))) (error nil))) > This is annoying. I like my *Help* windows to be small, but many > times (but not always) they are resized when I need to request > documentation of something else. In the case at hand the *Help* window gets resized _implicitly_ because the _other_ window is resized so the behavior is not tied to using help. > Why cannot Emacs keep the size of that window? I can't remember. Maybe to assure that the window used for displaying `vertical-motion' is reasonably large (after all you could have dragged the mode line to make the window showing *Help* larger). Maybe simply to assure that when the same or a similar buffer is displayed in that window again, one can continue to work with its previous size (I vaguely remember that you requested something similar once wrt the position of `point' in such case). Maybe it was also completlely unmotivated. We can either remove that part or make it customizable. Since I never use `display-buffer-use-some-window' I can't judge how offending the behavior is. martin