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.devel Subject: Re: [PATCH] customizing initial sequence number in cua-rectangle Date: Thu, 13 Jan 2022 10:56:50 +0200 Message-ID: <834k683tf1.fsf@gnu.org> References: <875yqob2fv.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9969"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Daniel Fleischer Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jan 13 09:58:07 2022 Return-path: Envelope-to: ged-emacs-devel@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 1n7vvr-0002P0-2w for ged-emacs-devel@m.gmane-mx.org; Thu, 13 Jan 2022 09:58:07 +0100 Original-Received: from localhost ([::1]:53822 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n7vvo-0007Ta-Bl for ged-emacs-devel@m.gmane-mx.org; Thu, 13 Jan 2022 03:58:04 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56580) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7vuf-00065Z-6o for emacs-devel@gnu.org; Thu, 13 Jan 2022 03:56:53 -0500 Original-Received: from [2001:470:142:3::e] (port=39916 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7vue-0002vD-RU; Thu, 13 Jan 2022 03:56:52 -0500 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=Pq8yo/rJe0MGDQ9jFIUGn0GQ6zXeijoRFfTd6EaWxkM=; b=gg0fKyMa3Vj5 rpTF6qraJjWjBOrab4a0nI6IJD0xrU7hH8SZXW4I6Ld3ZhllzTIJ7QBiL5+bogK4/JjAoW9QAXxcE gZrAi9RzsOk5W+sLg0THGlox1sQTHFawVABqOikoKGMZMQHrBWjmkJta3hfRyTaEqSKMIkQSlAVff h42fiSJvpFGXf245hkZh2HNpvXZpUt22HEahF34NmzMhez1oh6LuP99gV009h+7fqe7dkh3MvxOlN N7YuGTr3O2r4AC7wKuqwADd2bw5wbJKW2upIHgPewXYZUuRLECWW35dZrsFT9jKACgKxpH7kDXFMb +5wrNvHPGlvQGFFY5FiS4w==; Original-Received: from [87.69.77.57] (port=4416 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7vud-0005Zf-Ul; Thu, 13 Jan 2022 03:56:53 -0500 In-Reply-To: (message from Daniel Fleischer on Thu, 13 Jan 2022 08:32:09 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:284689 Archived-At: > From: Daniel Fleischer > Date: Thu, 13 Jan 2022 08:32:09 +0200 > > Lars Ingebrigtsen writes: > > > What's the use case for that? (cua-sequence-rectangle isn't a command > > I've used before.) > > I'm using CUA rectangle mode a lot, mainly for fixing indentation and to > insert sequence of numbers for converting texts into numbered lists in > orgmode. The default initial number is 0 and you can input 1. > > But then you do it a bunch of times and wonder why is it not > customizable. For example there is a format variable for the sequence > "%d" and it has a history mechanism so if you change it, it's ready for > the next time in a given session. Would it make sense to allow specifying the initial value via the prefix arg?