From unknown Fri Jun 20 07:13:32 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#55260 <55260@debbugs.gnu.org> To: bug#55260 <55260@debbugs.gnu.org> Subject: Status: [PATCH] Avoid resizing mini buffer when displaying page numbers Reply-To: bug#55260 <55260@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:13:32 +0000 retitle 55260 [PATCH] Avoid resizing mini buffer when displaying page numbe= rs reassign 55260 emacs submitter 55260 Philip Kaludercic severity 55260 normal tag 55260 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Wed May 04 08:30:33 2022 Received: (at submit) by debbugs.gnu.org; 4 May 2022 12:30:33 +0000 Received: from localhost ([127.0.0.1]:42028 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nmE9J-000248-5W for submit@debbugs.gnu.org; Wed, 04 May 2022 08:30:33 -0400 Received: from lists.gnu.org ([209.51.188.17]:44798) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nmE9H-000240-Q5 for submit@debbugs.gnu.org; Wed, 04 May 2022 08:30:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41936) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nmE98-0006Qb-7n for bug-gnu-emacs@gnu.org; Wed, 04 May 2022 08:30:24 -0400 Received: from mout02.posteo.de ([185.67.36.66]:59023) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nmE95-0004h6-8v for bug-gnu-emacs@gnu.org; Wed, 04 May 2022 08:30:21 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id B95BD240107 for ; Wed, 4 May 2022 14:30:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1651667414; bh=mZWnsxthx4+nNHP5IDLZE3SPbrLyRRxNFORCZ8z2pIw=; h=From:To:Subject:Autocrypt:Date:From; b=S1NyGoUWX+gIw5QEPw3Ej0fHTCFg7DXMQsqhb/9L0GiyEy0q/tqCnlatBQcg+vLgH fTahOumaW5RjCmwVctzNQKrFR4PVXLNEJ3bFiRTXBQAPvZ3pqhB8q+pGju2jqRoHIe 9qPhei7htpNdNSqm+/q0IU1HhyzSY6uLfcmHcaX8oYetbavk+P70/QlH8ZwIerdHmh fwG+rxFZczvISdUsD2kksXEU9dfmi3t1zIvGnnu8TlJRIz9p9LGtst7xBthUQ9GSao j1d0rbyEApZYw23GnhCq0eJxI4DtQOK2qViH/mvfSNxmzCqnz1RMVCB5KztjMuHhpd AyGUrb0okX8IA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Ktbkt1C3Kz9rxF for ; Wed, 4 May 2022 14:30:13 +0200 (CEST) From: Philip Kaludercic To: bug-gnu-emacs@gnu.org Subject: [PATCH] Avoid resizing mini buffer when displaying page numbers Autocrypt: addr=philipk@posteo.net; prefer-encrypt=nopreference; keydata= mDMEYHHqUhYJKwYBBAHaRw8BAQdAp3GdmYJ6tm5McweY6dEvIYIiry+Oz9rU4MH6NHWK0Ee0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiQBBMWCAA4FiEEDM2H44ZoPt9Ms0eHtVrAHPRh1FwFAmBx6lICGwMFCwkIBwIGFQoJ CAsCBBYCAwECHgECF4AACgkQtVrAHPRh1FyTkgEAjlbGPxFchvMbxzAES3r8QLuZgCxeAXunM9gh io0ePtUBALVhh9G6wIoZhl0gUCbQpoN/UJHI08Gm1qDob5zDxnIHuDgEYHHqUhIKKwYBBAGXVQEF AQEHQNcRB+MUimTMqoxxMMUERpOR+Q4b1KgncDZkhrO2ql1tAwEIB4h4BBgWCAAgFiEEDM2H44Zo Pt9Ms0eHtVrAHPRh1FwFAmBx6lICGwwACgkQtVrAHPRh1Fw1JwD/Qo7kvtib8jy7puyWrSv0MeTS g8qIxgoRWJE/KKdkCLEA/jb9b9/g8nnX+UcwHf/4VfKsjExlnND3FrBviXUW6NcB Date: Wed, 04 May 2022 12:30:08 +0000 Message-ID: <874k25tr8v.fsf@posteo.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=185.67.36.66; envelope-from=philipk@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --=-=-= Content-Type: text/plain Tags: patch When viewing a document using doc-view, an idle timer indicates the current page number after a short while. Since this message ends with a newline, the minibuffer is senselessly resized, producing unecessary visual noise. This patch avoids adding a newline if not necessary, circumventing the issue when possible. In GNU Emacs 29.0.50 (build 7, x86_64-pc-linux-gnu, GTK+ Version 3.24.30, cairo version 1.16.0) of 2022-04-25 built on viero Repository revision: 91175a1fae92d521377bde8687d96b17556d1458 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12011000 System Description: Guix System Configured using: 'configure PKG_CONFIG_PATH=/home/philip/.guix-profile/lib/pkgconfig:/home/philip/.guix-profile/share/pkgconfig' --=-=-= Content-Type: text/patch Content-Disposition: attachment; filename=0001-Avoid-resizing-mini-buffer-when-displaying-page-numb.patch >From e91f9a0767d0b9d749b91b86fa2d9000db8d211c Mon Sep 17 00:00:00 2001 From: Philip Kaludercic Date: Wed, 4 May 2022 14:24:31 +0200 Subject: [PATCH] Avoid resizing mini buffer when displaying page numbers * doc-view.el (doc-view-goto-page): Do not insert a newline at the end of the "current info" if not necessary. --- lisp/doc-view.el | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/lisp/doc-view.el b/lisp/doc-view.el index e8698fad7e..22570dd510 100644 --- a/lisp/doc-view.el +++ b/lisp/doc-view.el @@ -632,17 +632,16 @@ doc-view-goto-page (propertize (format "Page %d of %d." page len) 'face 'bold) ;; Tell user if converting isn't finished yet - (if doc-view--current-converter-processes - " (still converting...)\n" - "\n") - ;; Display context infos if this page matches the last search - (when (and doc-view--current-search-matches - (assq page doc-view--current-search-matches)) - (concat (propertize "Search matches:\n" 'face 'bold) + (and doc-view--current-converter-processes + " (still converting...)") + ;; Display context infos if this page matches the last search + (when (and doc-view--current-search-matches + (assq page doc-view--current-search-matches)) + (concat "\n" (propertize "Search matches:" 'face 'bold) (let ((contexts "")) (dolist (m (cdr (assq page doc-view--current-search-matches))) - (setq contexts (concat contexts " - \"" m "\"\n"))) + (setq contexts (concat contexts "\n - \"" m "\""))) contexts))))) ;; Update the buffer ;; We used to find the file name from doc-view--current-files but -- 2.35.1 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu May 05 07:13:37 2022 Received: (at 55260) by debbugs.gnu.org; 5 May 2022 11:13:37 +0000 Received: from localhost ([127.0.0.1]:44502 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nmZQP-0004R6-Di for submit@debbugs.gnu.org; Thu, 05 May 2022 07:13:37 -0400 Received: from quimby.gnus.org ([95.216.78.240]:52256) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nmZQN-0004Qo-SB for 55260@debbugs.gnu.org; Thu, 05 May 2022 07:13:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Y9vomTRtRs5n48ea3ucZb1/3ipe7wV66mErYaE9sbnM=; b=OVDm5pqoD6C9qEZNiHS3kCCXA+ zKVJxDYl5zb0yBnK8thpsiuTm0qOTTKW+MZdoQdc2kgijUeL9pTv/HBdyI39wr+tE1f4Y0LlqWbsA Cec4unMnrMKSpTBR16qpn0JlYWOgqToVirsE944EauzoLR7A7oB+si2EKdYCT9fvyHZY=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nmZQF-0000nP-Px; Thu, 05 May 2022 13:13:29 +0200 From: Lars Ingebrigtsen To: Philip Kaludercic Subject: Re: bug#55260: [PATCH] Avoid resizing mini buffer when displaying page numbers References: <874k25tr8v.fsf@posteo.net> X-Now-Playing: Weather Report's _Heavy Weather_: "Birdland" Date: Thu, 05 May 2022 13:13:25 +0200 In-Reply-To: <874k25tr8v.fsf@posteo.net> (Philip Kaludercic's message of "Wed, 04 May 2022 12:30:08 +0000") Message-ID: <87o80ctep6.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Philip Kaludercic writes: > This patch avoids adding a newline if not necessary, circumventing the > issue when possible. Makes sense to me; go ahead and push. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 55260 Cc: 55260@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Philip Kaludercic writes: > This patch avoids adding a newline if not necessary, circumventing the > issue when possible. Makes sense to me; go ahead and push. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu May 05 07:15:54 2022 Received: (at 55260-done) by debbugs.gnu.org; 5 May 2022 11:15:54 +0000 Received: from localhost ([127.0.0.1]:44517 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nmZSc-0005ND-8f for submit@debbugs.gnu.org; Thu, 05 May 2022 07:15:54 -0400 Received: from mout01.posteo.de ([185.67.36.65]:36429) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nmZSb-0005GF-Ek for 55260-done@debbugs.gnu.org; Thu, 05 May 2022 07:15:53 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 7362A240027 for <55260-done@debbugs.gnu.org>; Thu, 5 May 2022 13:15:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1651749347; bh=urys+bqqjJAVukXHonvVnvWMRxkKn7LLmAHl8mI3Smo=; h=From:To:Cc:Subject:Autocrypt:Date:From; b=oUaB2ihcjHsHYPNOaYTLfJdo1jn24ZY3Iz3vaj4lxtLO9fKXstEMiMu+gjiuVDCIg RzDADFq7sBXgX9yDS9/1+Ktx/Mdt5CM4zhvwCGvBDYlmCtRAIgY6NFij5x68pVjoGX gLVstTFqOIckt+PFA+EEUtCMb6FM3WFy+1A4q78h38hfm67rq5U2ut0P9rAw1qOMl4 9ZhmAmmQlxEk2ffSQC7l0cHMmaptNsumNA/wfZiiWcw6OmwQOaut2ZgkjXiVuVOR0f BFCKR8rc3kbKzsi2KROoNgPZKVWkN+AxCkwAeGl+Y6uT5wq6qwlzDAVpkAVB7fPxW9 7gHtzPOhF9rlg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4KvB2V5T9lz9rxL; Thu, 5 May 2022 13:15:46 +0200 (CEST) From: Philip Kaludercic To: Lars Ingebrigtsen Subject: Re: bug#55260: [PATCH] Avoid resizing mini buffer when displaying page numbers References: <874k25tr8v.fsf@posteo.net> <87o80ctep6.fsf@gnus.org> Autocrypt: addr=philipk@posteo.net; prefer-encrypt=nopreference; keydata= mDMEYHHqUhYJKwYBBAHaRw8BAQdAp3GdmYJ6tm5McweY6dEvIYIiry+Oz9rU4MH6NHWK0Ee0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiQBBMWCAA4FiEEDM2H44ZoPt9Ms0eHtVrAHPRh1FwFAmBx6lICGwMFCwkIBwIGFQoJ CAsCBBYCAwECHgECF4AACgkQtVrAHPRh1FyTkgEAjlbGPxFchvMbxzAES3r8QLuZgCxeAXunM9gh io0ePtUBALVhh9G6wIoZhl0gUCbQpoN/UJHI08Gm1qDob5zDxnIHuDgEYHHqUhIKKwYBBAGXVQEF AQEHQNcRB+MUimTMqoxxMMUERpOR+Q4b1KgncDZkhrO2ql1tAwEIB4h4BBgWCAAgFiEEDM2H44Zo Pt9Ms0eHtVrAHPRh1FwFAmBx6lICGwwACgkQtVrAHPRh1Fw1JwD/Qo7kvtib8jy7puyWrSv0MeTS g8qIxgoRWJE/KKdkCLEA/jb9b9/g8nnX+UcwHf/4VfKsjExlnND3FrBviXUW6NcB Date: Thu, 05 May 2022 11:15:46 +0000 In-Reply-To: <87o80ctep6.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 05 May 2022 13:13:25 +0200") Message-ID: <87wnf0cjrx.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 55260-done Cc: 55260-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Lars Ingebrigtsen writes: > Philip Kaludercic writes: > >> This patch avoids adding a newline if not necessary, circumventing the >> issue when possible. > > Makes sense to me; go ahead and push. Done! From unknown Fri Jun 20 07:13:32 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 02 Jun 2022 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator