From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#69983: Use category for display-buffer-alist Date: Sat, 20 Apr 2024 15:08:32 +0300 Message-ID: <86ttjw8ce7.fsf@gnu.org> References: <86h6gv7e0z.fsf@mail.linkov.net> <867ch7gfa4.fsf@mail.linkov.net> <86bk6iwftq.fsf@gnu.org> <86il0pd8da.fsf@mail.linkov.net> <864jc9wk5r.fsf@gnu.org> <861q7dgla3.fsf@mail.linkov.net> <86il0pulum.fsf@gnu.org> <86cyqwjtpr.fsf@mail.linkov.net> <86y19ktkj2.fsf@gnu.org> <86h6g7m773.fsf@mail.linkov.net> <86sezrrrgh.fsf@gnu.org> <86il0m7ceo.fsf@mail.linkov.net> <86a5lysah3.fsf@gnu.org> <86o7ad2j84.fsf@mail.linkov.net> <86mspxnkyt.fsf@gnu.org> <86bk6c5ke3.fsf@mail.linkov.net> <864jbyeo9y.fsf@gnu.org> <86jzkusidd.fsf@mail.linkov.net> <86h6fyd06g.fsf@gnu.org> <861q71rhtk.fsf@mail.linkov.net> <86ttjxq31i.fsf@mail.linkov.net> <86r0f1zaed.fsf@mail.linkov.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38218"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rudalics@gmx.at, 69983@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Apr 20 14:10:19 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ry9Xv-0009ee-0q for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 20 Apr 2024 14:10:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ry9XU-0007KP-Sm; Sat, 20 Apr 2024 08:09:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ry9XR-0007KA-P8 for bug-gnu-emacs@gnu.org; Sat, 20 Apr 2024 08:09:51 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ry9XR-0005oH-GQ for bug-gnu-emacs@gnu.org; Sat, 20 Apr 2024 08:09:49 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ry9Xf-0004yK-Sm for bug-gnu-emacs@gnu.org; Sat, 20 Apr 2024 08:10:03 -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, 20 Apr 2024 12:10:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69983 X-GNU-PR-Package: emacs Original-Received: via spool by 69983-submit@debbugs.gnu.org id=B69983.171361494918746 (code B ref 69983); Sat, 20 Apr 2024 12:10:03 +0000 Original-Received: (at 69983) by debbugs.gnu.org; 20 Apr 2024 12:09:09 +0000 Original-Received: from localhost ([127.0.0.1]:36032 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ry9Wl-0004rw-Jp for submit@debbugs.gnu.org; Sat, 20 Apr 2024 08:09:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50288) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ry9Wi-0004qT-Vp for 69983@debbugs.gnu.org; Sat, 20 Apr 2024 08:09:06 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ry9WO-0005O9-Bf; Sat, 20 Apr 2024 08:08:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=IrsKCfY4v3bT3vKLXUsvgakL4cDIlq3GQSVtAf4gRV8=; b=jyuudfUynTzT bDAFjO9MyawPXHEYis2R2k3Y9dG6Am6ANN7dLs1VoXw1gBP1Q8tHGvqgFfBBBhOCj1XEj/EXw+ZOe dS61FS8kP3ZF1AfShHih/WD3cp6wsznvbPjNnBnaf7gEDeSi1tTGkQi5/BpNma/z20d8Hf1BHM9Vx Cqux1dclWrgy2vCPZszmzdLuZxSG3z5gfNL3Hyj63Xc/f+XY7yf8GV9TUbyRwBqUyruPLoRJim5I2 trXX2h2cqyf+WmYMebEDi5ytRFKZKPKvz63yBxjmM2l5j/GIZQ0mpP0FBD9gkrupax3wWuXXuJdY6 Pfb+3QhMotc18yGFhGbp0Q==; In-Reply-To: <86r0f1zaed.fsf@mail.linkov.net> (message from Juri Linkov on Fri, 19 Apr 2024 19:17:14 +0300) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:283734 Archived-At: > From: Juri Linkov > Cc: rudalics@gmx.at, 69983@debbugs.gnu.org > Date: Fri, 19 Apr 2024 19:17:14 +0300 > > The reason why a new option is needed is because display-warning > doesn't move point to the bottom line with the last message. > > So when the warning buffer will be displayed at the bottom of > the screen in a narrow window, but the window always stays > displaying the top of the warning buffer, the users will miss > the last unseen message. > > To solve this problem, a new option 'warning-display-at-bottom' > (whose name has the same prefix as all other options in the same file) > will scroll the bottom window, so the last message will always > be visible to the user. Thanks. > + (when warning-display-at-bottom > + (with-selected-window window > + (set-window-point window (point-max)) > + (recenter -1))) Should we perhaps do the same as end-of-buffer does, i.e. (recenter (if (and scroll-minibuffer-conservatively (window-minibuffer-p)) -1 -3))))) (or, if the window here can never be a mini-window, just use -3 instead of -1 in the call to recenter)?