From unknown Tue Aug 19 01:58:43 2025 X-Loop: help-debbugs@gnu.org Subject: bug#64433: 30.0.50; Fix and improve setting priority of todo-mode items Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Jul 2023 09:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 64433 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 64433@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16883779744516 (code B ref -1); Mon, 03 Jul 2023 09:53:02 +0000 Received: (at submit) by debbugs.gnu.org; 3 Jul 2023 09:52:54 +0000 Received: from localhost ([127.0.0.1]:33187 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qGGEo-0001Am-51 for submit@debbugs.gnu.org; Mon, 03 Jul 2023 05:52:54 -0400 Received: from lists.gnu.org ([209.51.188.17]:58740) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qGGEg-0001AT-Op for submit@debbugs.gnu.org; Mon, 03 Jul 2023 05:52:52 -0400 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 1qGGEd-0006tL-2K for bug-gnu-emacs@gnu.org; Mon, 03 Jul 2023 05:52:45 -0400 Received: from mout.gmx.net ([212.227.15.15]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qGGEa-00034D-GD for bug-gnu-emacs@gnu.org; Mon, 03 Jul 2023 05:52:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=s31663417; t=1688377957; x=1688982757; i=stephen.berman@gmx.net; bh=DPabekbUBwC+Z7eyJU2A84YykYA6ypRMGJV+GdAXSjU=; h=X-UI-Sender-Class:From:To:Subject:Date; b=IOoFbG6ab7hGGeF5vrJpCLbiPjc18eNydoCRM4vWdmUIOkOrWrzm5T5ubBhn+1Rl1W1Yxff Q5lqWdnIQ76xmgTVYQ6YNzDTMaQZoZ3k9YmrpflcKXl7+nFqozmwXwJcLmIUPy9HN7AGIjZ+H JVvelVSSgmi/9WXcw6B+CNxSuygm8SuA/ODYIwrrIwjihIckPSFEWN4ZLWoYwTc2tz2CuD4NL iG7+2kL+yEZeJq9q5pM9or3YSrnRiZfL0+pprxmpcH7ResuMBthVtaa/PuNLHbVerPc1uzmaF GP7ZhVFe0C8L5yfXQer6JIyiF9Xt1V00KLf/z1JZkboCGMX3HNRw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from strobelfssd ([94.134.196.66]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MBDnI-1qAEsl16be-00CfR1 for ; Mon, 03 Jul 2023 11:52:37 +0200 From: Stephen Berman Date: Mon, 03 Jul 2023 11:52:36 +0200 Message-ID: <87h6ql5nkr.fsf@gmx.net> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:Iyju7+FGq7Yb1P291cAJdbPkeaNiYDSfJRY2cvfz/O5lW/zIZDQ c2mSS4I0SPRtAj6VpN0T9rKcD18DSA4SsLT7nxgZXf95ofKvGx1vc36ZuGJkKls82+zADmK S2D+o/+fDOxEmt/feXD9Le8lrkEArrPboFbTyyVh8mhM1eQ7TgQ0m8MEL4TU/LOpoKd0JcR h4nlRrro1xvspkycARedw== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:pgS+Zmu+S+8=;kIwlPJeDbKkNtogB/ahzWMETCXr jfIqnmAMwXdCjs6FML2spyNeXBZUM/jqSoRdk6iPNXANiTGCfAPCiQC24su6LTH4E8M5QmVXR v2AmxY0qrj2Xlk3F0OChUAo3bWfjWbEzKnr2JE7EeX3zro8pZpZh1HjObSAu6UY/+7yjSfGy9 I8+/Uex/ddbJ4NihYXv+wvnH+jAi12CJ8zgqjp/Tq3nYHHXcXmRd7kfrLgYtWmnemn+lPdZx6 fmvKLDyEDYyZCkoJDDGzLS2e+kZOgkEh8GLVEEDyPy2T5YdhKSNATC2xmBZxkKP4ZhzenJiyd vf95zt/UjdpmW9TZWsCYwyMICM5ePTFPyT+cdDuvmqtb6cXNOxP3FwZlju7Nu8BXdazwMTSyH ytzzqEBldZZh5UyUVLjej2qwU3GBmZtx348W7hElyVbjn+Z7rVv+LCScgY1LyPe5j0dQg2cP+ KTtCDjHN9Z69jPQt9ZLiMsW3taitgQmvapO/oTm6+F3XfgUQZy80rWrFcmR6/gxtwbI1MlWC7 Da9OdtOkd/6nS219r6C8pDyAiMP104uUhV2hATFKbHF0GnRATP0fsrRmqW9tqc0l5p872Ch7/ fM5dEp1juY2qau5JqB5S1ebQVs9rkYdfBPkNQBSOUyk6UD05gGkOHd4kT915LBxMDFE7TNCEw BcT9OBw7+Ekeu9jiJrG+u0yYnulWsZoFn2nT/uybZuPa6BDPHAVK/EbMXWq7nyH7DkmSDbJ54 FpwmhbST1jcpoVhTiGl452zYxIYIy3GeTTKA7WSjuax7J3wDup+yMOopsWLfoYn0vn1Gy1N05 5uJJaF1PS8EXF5aawuI/G8Wh4Ty0rJUs+geEftN7AtGGvelh/9wIHDJxTaa/68xZ4qACUwGRt +HvkkizTPNe9CFiDpOesp6yaX3vxRt+EQZ2eJ2CbcDR8ViO2vlAE9jziF9iuHGwpvI8fMZn4R 5k0v8mqRrXdxy8rdAC60fHFLevY= Received-SPF: pass client-ip=212.227.15.15; envelope-from=stephen.berman@gmx.net; helo=mout.gmx.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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-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 (--) There are several bugs in setting the priority of todo items in todo-mode: - On typing `#' you are prompted to enter a priority; for example, in a category with 7 items the prompt is this: Set item priority (1-7) (default 1): If you enter a number outside of this range, there is another prompt: Priority must be an integer between 1 and 7. (default 1) This prompt is infelicitous, occupying two lines and lacking a colon to indicate an expected input. - You can also set the priority by passing a numerical prefix argument, e.g. `C-u 7 #' or simply `7 #' sets the priority to 7 directly without prompting. However, here out-of-range prefix arguments are accepted and the result is at least in two cases odd: typing `0 #' sets the priority in a category with 7 items 1 by default (1 is always the highest priority). And typing `8 #' or e.g. `8761 #' sets the priority to 7, which may seem reasonable; however, with a negative prefix, e.g. `-3 #', the priority is also set to 7. - If, in a category with, say, 7 items, with point on the item with priority 4, you type `#' and at the prompt enter 4, or if you invoke `4 #', then the priority of the item is correctly unchanged, however, the buffer is marked as modified. Since setting the priority to the item's current priority is useless, doing so is probably unintentional, so it would be better for todo-mode to respond with a prompt for a different priority. (An exception is moving an item to another category: it is and should remain possibly to move an item from a category in which it has priority 4 to another category and there give it priority 4.) I have a fix for these bugs and will install it on master when I get a bug number. In addition, I will install a minor improvement in the usability of priority setting: making the minibuffer history for priority setting consist of the range of item numbers (or in the case of adding a new item, the maximum priority number is one more then the last item number). This is useful to quickly invert the default (set by a user option); e.g., with the default priority 1, in a category with 37 items, typing `M-p' at the prompt to enter the priority will insert 37 in the minibuffer (or 38 if a new item is being inserted in the category). In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.17.6) of 2023-07-02 built on strobelfssd Repository revision: f893ace8352d39c95048b143bf01d35973343ea0 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101008 System Description: Linux From Scratch r11.3-100-systemd Configured using: 'configure -C --with-xwidgets 'CFLAGS=-Og -g3' PKG_CONFIG_PATH=/opt/qt5/lib/pkgconfig' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBSYSTEMD LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS WEBP X11 XDBE XIM XINPUT2 XPM XWIDGETS GTK3 ZLIB From unknown Tue Aug 19 01:58:43 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Stephen Berman Subject: bug#64433: closed (Re: bug#64433: 30.0.50; Fix and improve setting priority of todo-mode items) Message-ID: References: <87cz195glv.fsf@gmx.net> <87h6ql5nkr.fsf@gmx.net> X-Gnu-PR-Message: they-closed 64433 X-Gnu-PR-Package: emacs Reply-To: 64433@debbugs.gnu.org Date: Mon, 03 Jul 2023 12:24:01 +0000 Content-Type: multipart/mixed; boundary="----------=_1688387042-30569-1" This is a multi-part message in MIME format... ------------=_1688387042-30569-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #64433: 30.0.50; Fix and improve setting priority of todo-mode items which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 64433@debbugs.gnu.org. --=20 64433: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D64433 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1688387042-30569-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 64433-done) by debbugs.gnu.org; 3 Jul 2023 12:23:19 +0000 Received: from localhost ([127.0.0.1]:33424 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qGIaM-0007w4-NL for submit@debbugs.gnu.org; Mon, 03 Jul 2023 08:23:19 -0400 Received: from mout.gmx.net ([212.227.17.22]:42727) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qGIaK-0007vq-27 for 64433-done@debbugs.gnu.org; Mon, 03 Jul 2023 08:23:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=s31663417; t=1688386990; x=1688991790; i=stephen.berman@gmx.net; bh=QpFilS/B7JFe0j8BMotlQ8MwoC9cI+6X28wc1WFyQ1c=; h=X-UI-Sender-Class:From:To:Subject:In-Reply-To:References:Date; b=R1sK5olD2NqK5tsemLjPnXLmR+/UDm8PaJWgAdEKfg0qW4E45mDgbqGrOHlfLOjMbzb9YDM eWSzL9dnHSRE/qEuBEqBPTwJ9arYc3+zP8E6DbCqaHSkHL0pocuODoo21+u8j3G2JWYgpz/GI 3rUOPGuvnbPKKkgEry4rW7UYH0jqT60FYqZdDEtzng+xAa3fVi0zm3Kdx6u+Oy76s6v7Bi5MG kz9l/tHMXSIBxL1hB5fBVDHDq+FLLX8+p2SwoSfyegVkaLMba4TTZq0A13iisvs51lvXISXIG H0KJ8ES7HbdA+7ukBC+VWJSXpz+yYJbdzq0FXC36Y+s+NpmfPrRA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from strobelfssd ([94.134.196.66]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MQMuX-1qcchA3pNB-00MNoS for <64433-done@debbugs.gnu.org>; Mon, 03 Jul 2023 14:23:10 +0200 From: Stephen Berman To: 64433-done@debbugs.gnu.org Subject: Re: bug#64433: 30.0.50; Fix and improve setting priority of todo-mode items In-Reply-To: <87h6ql5nkr.fsf@gmx.net> (Stephen Berman's message of "Mon, 03 Jul 2023 11:52:36 +0200") References: <87h6ql5nkr.fsf@gmx.net> Date: Mon, 03 Jul 2023 14:23:08 +0200 Message-ID: <87cz195glv.fsf@gmx.net> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:GDTIAopo9ZlxMdFSIW/0AoysVXtB1RLc1lWXLVLQjmrxrJpVTDI Eg/5waaPFc7yU2FDoWictyKaWNqv/VxiS2y5HmptyV72KdVjPFSGY8Znuy+GwbygrcZCPr3 UpE0ICZpNct0nA5tQ1WG0vrBEH22YccN/QWc6G1ZwqM29YPFnmBT31NqANCgZ93P5NI7o0a i3Ya2/nSzRFKPLSZ+HpnA== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:p0rvusRH49Y=;qJIceyLJQhhVUsG0uuawfMxhVAO arByE/TDZBH0K6/sO5DUdGmIuGzrnS0hKfgMhBrwS1vcV66tbRcXASEunYs1HTWMIVtaNPj+o KUWtcS9soha1y5puU+6R3pQxOlvVUpGwSA4xIbv8Y+mC0mgL2u51/WgJuJJXIx5Z4lVcvX3sL +S47qsoJn3XxVpK2UsRWguoONonzVwbwul8GRB6tcU2MX0WgJzecB5e5xGJHolh/3VSJejzgE ji92TgH5WIk51zTG+kb9g2wbQrjQj18PC8c8aUiHdyoZIkAQeuiJcu3RjdoFkAV3PdsXtlPKq p3uHSS+03AAxTTwzRmrb0VaHSEnFeZvEMlZFbpXoly5G/z/HuYVed5rNO41AzakJWu0tbdZuN 154i5ZqHLtAfrv7uvAHjN1cVjRK59QhFQ/S23sKb6Eh6IM4XUi5j4PBnsRgCO3ICZHKknCcXq 023gKf4fGthIH8ZtRQ42CygiODMgHquEMGbonf5BxW41DGDqP/hgzkUZOV3pGpgQj+ydtvcsR Y5VV3M5XERH+4KLPXWPXxIcGkKnG8o+S5U8bXexcexjwXFwDK52TjL47oZg7bwR1n4ysv4+vT /W9pwYxu6JwJmDaUDUsMHcgPrW1aPUh+SYe494tebl+T1VklDfjuvDr7TMGzCrk4rCVPlSWxL nEjC2qXA6H1PhaZBW7lku7rmZRq6Iqk03+7r5y2GdkNAvME9iTqX3tdjpn3S4ktsmQMv1gW9k u5XIlleWlMpyol0J632a8Ig4tDOlHAeHr/zCL2wbhhU9zV/x2rpW3HduLTykRfZgu3aSAEw3x mOYBkFlH/6AKupjIJmfyyIfWFwILiQ/8EHiI5MsI6pv7FElsX4KFBuc7PxG7Rk6TnC/Q8Wet8 DZza7ZXBv0b3rAwuswLtTr7hoBPcOytRjdgbupTrxRZR/Vyk7SgTt+iTF0Xnq5E5p5q8xqHAZ RIJuI8S3H9TmbfgPza2ni8eI3q8= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 64433-done 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: -1.7 (-) On Mon, 03 Jul 2023 11:52:36 +0200 Stephen Berman wrote: > There are several bugs in setting the priority of todo items in > todo-mode: > > - On typing `#' you are prompted to enter a priority; for example, in a > category with 7 items the prompt is this: > Set item priority (1-7) (default 1): > If you enter a number outside of this range, there is another prompt: > Priority must be an integer between 1 and 7. > (default 1) > This prompt is infelicitous, occupying two lines and lacking a colon > to indicate an expected input. > > - You can also set the priority by passing a numerical prefix argument, > e.g. `C-u 7 #' or simply `7 #' sets the priority to 7 directly without > prompting. However, here out-of-range prefix arguments are accepted > and the result is at least in two cases odd: typing `0 #' sets the > priority in a category with 7 items 1 by default (1 is always the > highest priority). And typing `8 #' or e.g. `8761 #' sets the > priority to 7, which may seem reasonable; however, with a negative > prefix, e.g. `-3 #', the priority is also set to 7. > > - If, in a category with, say, 7 items, with point on the item with > priority 4, you type `#' and at the prompt enter 4, or if you invoke > `4 #', then the priority of the item is correctly unchanged, however, > the buffer is marked as modified. Since setting the priority to the > item's current priority is useless, doing so is probably > unintentional, so it would be better for todo-mode to respond with a > prompt for a different priority. (An exception is moving an item to > another category: it is and should remain possibly to move an item > from a category in which it has priority 4 to another category and > there give it priority 4.) > > I have a fix for these bugs and will install it on master when I get a > bug number. > > In addition, I will install a minor improvement in the usability of > priority setting: making the minibuffer history for priority setting > consist of the range of item numbers (or in the case of adding a new > item, the maximum priority number is one more then the last item > number). This is useful to quickly invert the default (set by a user > option); e.g., with the default priority 1, in a category with 37 items, > typing `M-p' at the prompt to enter the priority will insert 37 in the > minibuffer (or 38 if a new item is being inserted in the category). Pushed to master as 14ae2101412, closing bug. Steve Berman ------------=_1688387042-30569-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 3 Jul 2023 09:52:54 +0000 Received: from localhost ([127.0.0.1]:33187 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qGGEo-0001Am-51 for submit@debbugs.gnu.org; Mon, 03 Jul 2023 05:52:54 -0400 Received: from lists.gnu.org ([209.51.188.17]:58740) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qGGEg-0001AT-Op for submit@debbugs.gnu.org; Mon, 03 Jul 2023 05:52:52 -0400 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 1qGGEd-0006tL-2K for bug-gnu-emacs@gnu.org; Mon, 03 Jul 2023 05:52:45 -0400 Received: from mout.gmx.net ([212.227.15.15]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qGGEa-00034D-GD for bug-gnu-emacs@gnu.org; Mon, 03 Jul 2023 05:52:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=s31663417; t=1688377957; x=1688982757; i=stephen.berman@gmx.net; bh=DPabekbUBwC+Z7eyJU2A84YykYA6ypRMGJV+GdAXSjU=; h=X-UI-Sender-Class:From:To:Subject:Date; b=IOoFbG6ab7hGGeF5vrJpCLbiPjc18eNydoCRM4vWdmUIOkOrWrzm5T5ubBhn+1Rl1W1Yxff Q5lqWdnIQ76xmgTVYQ6YNzDTMaQZoZ3k9YmrpflcKXl7+nFqozmwXwJcLmIUPy9HN7AGIjZ+H JVvelVSSgmi/9WXcw6B+CNxSuygm8SuA/ODYIwrrIwjihIckPSFEWN4ZLWoYwTc2tz2CuD4NL iG7+2kL+yEZeJq9q5pM9or3YSrnRiZfL0+pprxmpcH7ResuMBthVtaa/PuNLHbVerPc1uzmaF GP7ZhVFe0C8L5yfXQer6JIyiF9Xt1V00KLf/z1JZkboCGMX3HNRw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from strobelfssd ([94.134.196.66]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MBDnI-1qAEsl16be-00CfR1 for ; Mon, 03 Jul 2023 11:52:37 +0200 From: Stephen Berman To: bug-gnu-emacs@gnu.org Subject: 30.0.50; Fix and improve setting priority of todo-mode items Date: Mon, 03 Jul 2023 11:52:36 +0200 Message-ID: <87h6ql5nkr.fsf@gmx.net> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:Iyju7+FGq7Yb1P291cAJdbPkeaNiYDSfJRY2cvfz/O5lW/zIZDQ c2mSS4I0SPRtAj6VpN0T9rKcD18DSA4SsLT7nxgZXf95ofKvGx1vc36ZuGJkKls82+zADmK S2D+o/+fDOxEmt/feXD9Le8lrkEArrPboFbTyyVh8mhM1eQ7TgQ0m8MEL4TU/LOpoKd0JcR h4nlRrro1xvspkycARedw== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:pgS+Zmu+S+8=;kIwlPJeDbKkNtogB/ahzWMETCXr jfIqnmAMwXdCjs6FML2spyNeXBZUM/jqSoRdk6iPNXANiTGCfAPCiQC24su6LTH4E8M5QmVXR v2AmxY0qrj2Xlk3F0OChUAo3bWfjWbEzKnr2JE7EeX3zro8pZpZh1HjObSAu6UY/+7yjSfGy9 I8+/Uex/ddbJ4NihYXv+wvnH+jAi12CJ8zgqjp/Tq3nYHHXcXmRd7kfrLgYtWmnemn+lPdZx6 fmvKLDyEDYyZCkoJDDGzLS2e+kZOgkEh8GLVEEDyPy2T5YdhKSNATC2xmBZxkKP4ZhzenJiyd vf95zt/UjdpmW9TZWsCYwyMICM5ePTFPyT+cdDuvmqtb6cXNOxP3FwZlju7Nu8BXdazwMTSyH ytzzqEBldZZh5UyUVLjej2qwU3GBmZtx348W7hElyVbjn+Z7rVv+LCScgY1LyPe5j0dQg2cP+ KTtCDjHN9Z69jPQt9ZLiMsW3taitgQmvapO/oTm6+F3XfgUQZy80rWrFcmR6/gxtwbI1MlWC7 Da9OdtOkd/6nS219r6C8pDyAiMP104uUhV2hATFKbHF0GnRATP0fsrRmqW9tqc0l5p872Ch7/ fM5dEp1juY2qau5JqB5S1ebQVs9rkYdfBPkNQBSOUyk6UD05gGkOHd4kT915LBxMDFE7TNCEw BcT9OBw7+Ekeu9jiJrG+u0yYnulWsZoFn2nT/uybZuPa6BDPHAVK/EbMXWq7nyH7DkmSDbJ54 FpwmhbST1jcpoVhTiGl452zYxIYIy3GeTTKA7WSjuax7J3wDup+yMOopsWLfoYn0vn1Gy1N05 5uJJaF1PS8EXF5aawuI/G8Wh4Ty0rJUs+geEftN7AtGGvelh/9wIHDJxTaa/68xZ4qACUwGRt +HvkkizTPNe9CFiDpOesp6yaX3vxRt+EQZ2eJ2CbcDR8ViO2vlAE9jziF9iuHGwpvI8fMZn4R 5k0v8mqRrXdxy8rdAC60fHFLevY= Received-SPF: pass client-ip=212.227.15.15; envelope-from=stephen.berman@gmx.net; helo=mout.gmx.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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 (--) There are several bugs in setting the priority of todo items in todo-mode: - On typing `#' you are prompted to enter a priority; for example, in a category with 7 items the prompt is this: Set item priority (1-7) (default 1): If you enter a number outside of this range, there is another prompt: Priority must be an integer between 1 and 7. (default 1) This prompt is infelicitous, occupying two lines and lacking a colon to indicate an expected input. - You can also set the priority by passing a numerical prefix argument, e.g. `C-u 7 #' or simply `7 #' sets the priority to 7 directly without prompting. However, here out-of-range prefix arguments are accepted and the result is at least in two cases odd: typing `0 #' sets the priority in a category with 7 items 1 by default (1 is always the highest priority). And typing `8 #' or e.g. `8761 #' sets the priority to 7, which may seem reasonable; however, with a negative prefix, e.g. `-3 #', the priority is also set to 7. - If, in a category with, say, 7 items, with point on the item with priority 4, you type `#' and at the prompt enter 4, or if you invoke `4 #', then the priority of the item is correctly unchanged, however, the buffer is marked as modified. Since setting the priority to the item's current priority is useless, doing so is probably unintentional, so it would be better for todo-mode to respond with a prompt for a different priority. (An exception is moving an item to another category: it is and should remain possibly to move an item from a category in which it has priority 4 to another category and there give it priority 4.) I have a fix for these bugs and will install it on master when I get a bug number. In addition, I will install a minor improvement in the usability of priority setting: making the minibuffer history for priority setting consist of the range of item numbers (or in the case of adding a new item, the maximum priority number is one more then the last item number). This is useful to quickly invert the default (set by a user option); e.g., with the default priority 1, in a category with 37 items, typing `M-p' at the prompt to enter the priority will insert 37 in the minibuffer (or 38 if a new item is being inserted in the category). In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.17.6) of 2023-07-02 built on strobelfssd Repository revision: f893ace8352d39c95048b143bf01d35973343ea0 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101008 System Description: Linux From Scratch r11.3-100-systemd Configured using: 'configure -C --with-xwidgets 'CFLAGS=-Og -g3' PKG_CONFIG_PATH=/opt/qt5/lib/pkgconfig' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBSYSTEMD LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS WEBP X11 XDBE XIM XINPUT2 XPM XWIDGETS GTK3 ZLIB ------------=_1688387042-30569-1--