From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#64433: 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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7683"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: 64433@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 03 11:53:32 2023 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 1qGGFQ-0001nk-7A for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 03 Jul 2023 11:53:32 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qGGF2-00075r-3i; Mon, 03 Jul 2023 05:53:08 -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 1qGGEx-00073R-3Q for bug-gnu-emacs@gnu.org; Mon, 03 Jul 2023 05:53:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qGGEw-0003Dx-P3 for bug-gnu-emacs@gnu.org; Mon, 03 Jul 2023 05:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qGGEw-0001BB-AH for bug-gnu-emacs@gnu.org; Mon, 03 Jul 2023 05:53:02 -0400 X-Loop: help-debbugs@gnu.org 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-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16883779744516 (code B ref -1); Mon, 03 Jul 2023 09:53:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Jul 2023 09:52:54 +0000 Original-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 Original-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 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 1qGGEd-0006tL-2K for bug-gnu-emacs@gnu.org; Mon, 03 Jul 2023 05:52:45 -0400 Original-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 Original-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 X-Provags-ID: V03:K1:Iyju7+FGq7Yb1P291cAJdbPkeaNiYDSfJRY2cvfz/O5lW/zIZDQ c2mSS4I0SPRtAj6VpN0T9rKcD18DSA4SsLT7nxgZXf95ofKvGx1vc36ZuGJkKls82+zADmK S2D+o/+fDOxEmt/feXD9Le8lrkEArrPboFbTyyVh8mhM1eQ7TgQ0m8MEL4TU/LOpoKd0JcR h4nlRrro1xvspkycARedw== 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+yMOopsWLfoYn0vn1Gy1N0 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-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:264513 Archived-At: 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