From unknown Sun Aug 10 07:30:38 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#66386 <66386@debbugs.gnu.org> To: bug#66386 <66386@debbugs.gnu.org> Subject: Status: 28.2; RFE: Provide global key bindings for increasing/decreasing numbers at point Reply-To: bug#66386 <66386@debbugs.gnu.org> Date: Sun, 10 Aug 2025 14:30:38 +0000 retitle 66386 28.2; RFE: Provide global key bindings for increasing/decreas= ing numbers at point reassign 66386 emacs submitter 66386 Tim Landscheidt severity 66386 wishlist thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 07 06:58:07 2023 Received: (at submit) by debbugs.gnu.org; 7 Oct 2023 10:58:07 +0000 Received: from localhost ([127.0.0.1]:53467 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qp50Z-0001bh-CK for submit@debbugs.gnu.org; Sat, 07 Oct 2023 06:58:07 -0400 Received: from lists.gnu.org ([2001:470:142::17]:42790) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qp50X-0001b4-Jh for submit@debbugs.gnu.org; Sat, 07 Oct 2023 06:58:06 -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 1qp508-0001PB-No for bug-gnu-emacs@gnu.org; Sat, 07 Oct 2023 06:57:40 -0400 Received: from gavdos.tim-landscheidt.de ([2a01:4f8:1c0c:4bd6::1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qp507-0006ud-4G for bug-gnu-emacs@gnu.org; Sat, 07 Oct 2023 06:57:40 -0400 Received: from port-62-145-29-194.static.as20676.net ([62.145.29.194]:49074 helo=vagabond) by gavdos.tim-landscheidt.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1qp503-0025ms-1S for bug-gnu-emacs@gnu.org; Sat, 07 Oct 2023 10:57:35 +0000 From: Tim Landscheidt To: bug-gnu-emacs@gnu.org Subject: 28.2; RFE: Provide global key bindings for increasing/decreasing numbers at point Organization: https://www.tim-landscheidt.de/ Date: Sat, 07 Oct 2023 10:57:34 +0000 Message-ID: <87zg0un1i9.fsf@vagabond.tim-landscheidt.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a01:4f8:1c0c:4bd6::1; envelope-from=tim@tim-landscheidt.de; helo=gavdos.tim-landscheidt.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) 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: -0.1 (/) Package: emacs Version: 28.2 Severity: wishlist When entering a number with read-number or skeleton-read or just editing text, it can be very useful to increase/de- crease the number at point. For Org, Emacs ships the func- tions org-increase-number-at-point and org-decrease-number-at-point for this purpose and binds them to C-M-S- and C-M-S-, respectively, in org-mode-map. It would be nice if these functions or some variant could be bound to global key bindings that are active by default in all modes. From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 07 07:04:10 2023 Received: (at 66386) by debbugs.gnu.org; 7 Oct 2023 11:04:10 +0000 Received: from localhost ([127.0.0.1]:53475 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qp56Q-0001ng-7P for submit@debbugs.gnu.org; Sat, 07 Oct 2023 07:04:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39210) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qp56N-0001n2-Lj for 66386@debbugs.gnu.org; Sat, 07 Oct 2023 07:04:08 -0400 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 1qp55y-00088m-Oc; Sat, 07 Oct 2023 07:03:42 -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=QXqPalkruR95NcBqOuRHNsrhgJclND7LcfJ/bN9Zgv4=; b=PoKlHrrsZyI1 mCvUVdq65ersTxMCT9ESqiSqWA+HV+9cZyAQliF9HbIhitw6igLqMfhfx6vLe0yd1z+wm9qn0AC2Q ZZEDuGAEvaK8jVVLGih7ixcg+wh+uxldZ1p/mL0yC9pTU2duP730kcP8iIHGVgSWPQqQ/91PfmYeW /HW896U+dlcQ1MpGnEF7bd8fb6IDubf1MSfIRo+46JPwQ67abb+OkPJqFgy0n/cUqFHx1D5Dxes2M 032wT5WdEPokP9868zcSLmNKzgI0+VWM3VyoI+0fNaGwC+Kiq5BB8/lPaohF7uGpz8HN4Vp/D1oTZ oTOI6hc4O30vmudikFhBVQ==; Date: Sat, 07 Oct 2023 14:03:55 +0300 Message-Id: <8334ym1yp0.fsf@gnu.org> From: Eli Zaretskii To: Tim Landscheidt In-Reply-To: <87zg0un1i9.fsf@vagabond.tim-landscheidt.de> (message from Tim Landscheidt on Sat, 07 Oct 2023 10:57:34 +0000) Subject: Re: bug#66386: 28.2; RFE: Provide global key bindings for increasing/decreasing numbers at point References: <87zg0un1i9.fsf@vagabond.tim-landscheidt.de> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 66386 Cc: 66386@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 (---) > From: Tim Landscheidt > Date: Sat, 07 Oct 2023 10:57:34 +0000 > > Package: emacs > Version: 28.2 > Severity: wishlist > > When entering a number with read-number or skeleton-read or > just editing text, it can be very useful to increase/de- > crease the number at point. For Org, Emacs ships the func- > tions org-increase-number-at-point and > org-decrease-number-at-point for this purpose and binds them > to C-M-S- and C-M-S-, respectively, in > org-mode-map. > > It would be nice if these functions or some variant could be > bound to global key bindings that are active by default in > all modes. These are trivial functions that everyone who needs them can easily code, and bind to any keys they want. For example, I'd prefer to bind them to S- and S- instead. Is it really justified to have these in Emacs by default, let alone usurp some global key bindings for them? Why not keep them available only in modes where they are really needed? From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 07 10:28:50 2023 Received: (at 66386) by debbugs.gnu.org; 7 Oct 2023 14:28:50 +0000 Received: from localhost ([127.0.0.1]:55606 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qp8IU-00050O-1Q for submit@debbugs.gnu.org; Sat, 07 Oct 2023 10:28:50 -0400 Received: from gavdos.tim-landscheidt.de ([2a01:4f8:1c0c:4bd6::1]:39808) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qp8IR-00050E-8l for 66386@debbugs.gnu.org; Sat, 07 Oct 2023 10:28:48 -0400 Received: from port-62-145-29-194.static.as20676.net ([62.145.29.194]:39826 helo=vagabond) by gavdos.tim-landscheidt.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1qp8I5-0026Jb-2C; Sat, 07 Oct 2023 14:28:25 +0000 From: Tim Landscheidt To: Eli Zaretskii Subject: Re: bug#66386: 28.2; RFE: Provide global key bindings for increasing/decreasing numbers at point Organization: https://www.tim-landscheidt.de/ References: <87zg0un1i9.fsf@vagabond.tim-landscheidt.de> <8334ym1yp0.fsf@gnu.org> Date: Sat, 07 Oct 2023 14:28:24 +0000 In-Reply-To: <8334ym1yp0.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 07 Oct 2023 14:03:55 +0300") Message-ID: <87sf6mbj7b.fsf@vagabond.tim-landscheidt.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 66386 Cc: 66386@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: -1.0 (-) Eli Zaretskii wrote: >> When entering a number with read-number or skeleton-read or >> just editing text, it can be very useful to increase/de- >> crease the number at point. For Org, Emacs ships the func- >> tions org-increase-number-at-point and >> org-decrease-number-at-point for this purpose and binds them >> to C-M-S- and C-M-S-, respectively, in >> org-mode-map. >> It would be nice if these functions or some variant could be >> bound to global key bindings that are active by default in >> all modes. > These are trivial functions that everyone who needs them can easily > code, and bind to any keys they want. For example, I'd prefer to bind > them to S- and S- instead. Is it really > justified to have these in Emacs by default, let alone usurp some > global key bindings for them? Why not keep them available only in > modes where they are really needed? For me, part of the charm of Emacs is that some concepts are "universal". For example, forward-sexp (C-M-) will move forward one "balanced expression" in an Emacs Lisp buf- fer, and it will do so in a Python buffer as well. I do not have to learn different key bindings (or look them up) be- cause a "balanced expression" is something that exists in many/most modes. I probably would have missed that the Python mode had such a function if I had not known it from Emacs Lisp mode and just intuitively used it. I would neither have written and main- tained some code to add this functionality just for Python mode. The same reasoning applies to the concept of "numbers": They exist in many/most modes, writing personal code is a dupli- cation of effort, and I had never realized that org-mode provides such functions because I have never had the need to increase/decrease numbers in Org buffers, but instead at prompts and in (other) programming languages.