From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Andreas_R=c3=b6hler?= Newsgroups: gmane.emacs.help Subject: Re: Emacs: adding 1 to every number made of 2 digits inside a marked region. Date: Thu, 23 Sep 2021 13:59:21 +0200 Message-ID: <6b520750-5c52-8749-b510-75e54d4b7fe6@easy-emacs.de> References: <0e97aad3-ca78-8a5a-2ecf-2e4f5205477d@easy-emacs.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2078"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux i686; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 Cc: help-gnu-emacs To: Hongyi Zhao Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 23 14:06:30 2021 Return-path: Envelope-to: geh-help-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 1mTNUk-0000Nf-4q for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 23 Sep 2021 14:06:30 +0200 Original-Received: from localhost ([::1]:51762 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mTNUi-0004X8-1n for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 23 Sep 2021 08:06:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44978) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTNNu-0002UK-Jp for help-gnu-emacs@gnu.org; Thu, 23 Sep 2021 07:59:28 -0400 Original-Received: from mout.kundenserver.de ([212.227.126.134]:51259) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTNNs-00064s-Ru for help-gnu-emacs@gnu.org; Thu, 23 Sep 2021 07:59:26 -0400 Original-Received: from [192.168.178.63] ([94.134.177.121]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MOz8O-1mCoSs13QC-00PQkt; Thu, 23 Sep 2021 13:59:22 +0200 In-Reply-To: Content-Language: en-US X-Provags-ID: V03:K1:pwRrt9GAIwtb+GZwXCyN8jtBH2ZAsF1tF6uRiYk/EIS0kM+2Xd0 jAuceYeCSQRD2Y/GlMidH5IffiyI4kEGx1XDlXnzyDmg6h2QvEjzfx77oUI0IgVdVV+i0bF Ie6PlTnMgLN0TnwjLhVgbgtZ0vXBuruV707AT+WYedlcZCsGBXNJp5Of/8pZOfvsf1vSw1e X9uNR3dWrDrhIseLbTs+g== X-UI-Out-Filterresults: notjunk:1;V03:K0:dDs4GPpCdg8=:gyYlqjJrJbIJDY2g62q1EM rnJNKKVdvW+LL9wzqge0TlLuqs60QYA/F4oCV5yOA85cz2e4unJYpSSD+dgsVmX9qwTQNd3pV VeO6X/k9xYGwZ0r/rB49iFyTwAPvLSKhrJYXQJYVdoFq6je1SckzqnfFzdgEnhtgW6NpR4dH9 sih6fwZf6s0gqqElRuLmWAFjt8cgTJziqKNVZwhhwWucUWsp1ogk479scPjsLSolYtYXSmfbd 7h04p01rfVtx/4qVqYMxz2VtkgxSeVDjIuwFZRcfq2F/qrHmxZAgxZubkci7818UfI+GRwKfG DZTcKiTFSfRlUzbPTi/WQ4DLHof151APR6GDjLNOTUhE2mR3g1GcD6FpD9tEpD8djgBOEzvVz z5rg1bk53e5OdnKFMyrfeExcy1e6uxyHuqUaUYG10yEu2VIb0t3vnTUr9JyYKXHKaaBpml7ZP 4Xb/mlGM34s/7eXN8m30uZ2OVeb//KewnNR5qZdzHXblD6Clbl5JUJxW7F8lM1LQp4Mfpm+F5 hgiSCwwa03cr5sCEQwkH1/f+zYD5q+bB2Ped7+BJrLJuNuHFrvn8ypkBNEvAJxlRw1zQHZMK6 ZlGSv5KOhj+VZTlgqhXg+1gUrd5hzR+sEkJ+fkLxfvGJh3rZt4ZxdRPUAZc/KgWtP6gwOXkOb chDliIK28yJmzMwYQLkhIhePpvV3L+gEkWIruZbs9NpHKgfI5H4SgG/b6i55CL+sf8g1Te/54 0Y047BAp5YkUHcNysRapI3Ybz+OAp9Jwk7sKjhyh/SIz4S4v4OlaezsUYwM= Received-SPF: none client-ip=212.227.126.134; envelope-from=andreas.roehler@easy-emacs.de; helo=mout.kundenserver.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, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:133181 Archived-At: On 23.09.21 11:58, Hongyi Zhao wrote: > On Thu, Sep 23, 2021 at 4:38 PM Andreas Röhler > wrote: >> https://github.com/andreas-roehler/numbers-at-point >> >> comes with >> >> ar-raise-in-region-maybe >> >> which should do the trick. > It really does the trick with the following configuration: > > (use-package thingatpt-utils-core > :straight (:host github :type git :repo "andreas-roehler/numbers-at-point") > :config > (load "numbers-at-point.el" nil t t)) > > But how to increase/decrease in steps that are not equal to 1? > > HZ It takes a numerical argument for higher steps the common way: M-[STEP] ar-raise-in-region-maybe RET