From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao 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 17:58:36 +0800 Message-ID: References: <0e97aad3-ca78-8a5a-2ecf-2e4f5205477d@easy-emacs.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12517"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: =?UTF-8?Q?Andreas_R=C3=B6hler?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 23 12:00:09 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 1mTLWT-00032N-5g for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 23 Sep 2021 12:00:09 +0200 Original-Received: from localhost ([::1]:47308 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mTLWO-0002Cp-Vf for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 23 Sep 2021 06:00:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52464) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTLVC-00027U-IH for help-gnu-emacs@gnu.org; Thu, 23 Sep 2021 05:58:50 -0400 Original-Received: from mail-qk1-x72e.google.com ([2607:f8b0:4864:20::72e]:40754) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mTLVA-0003DE-UI for help-gnu-emacs@gnu.org; Thu, 23 Sep 2021 05:58:50 -0400 Original-Received: by mail-qk1-x72e.google.com with SMTP id 72so20022260qkk.7 for ; Thu, 23 Sep 2021 02:58:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=7TjdMfF/PTtg0F73X7riA9MOD+0wREtGEYl/TEwRgaM=; b=kj2BORDmAXgfZbtz4/y7BGaxIGjAOlnxqlkjl8KKr31OOTsNCpjCdGDQx2c+uLCbCu 5shPCBJWs4CO2vRgNx0/nI/QhdWV/7KVu8ZcyIHpA6dnfX9VoxR2USrTShlATk9th1fn VQ50thYrEvDTyx7PINK9h7L8+Z2HmOJ3jLpqc+VEtE6kwnm6CKCK82gLayK4xXakXhaX pk/8RGfm21XWIZJ1eT3CBJLal6lI8/T50x5ZNB0/UpajLoLG21Ham6QHEBRL9Sx9i5jG rdu7T4zyyFxM6Dz9Lo+3vvm+f/JXXIBD25e0f0VWsaP0Oo0JUyFJNzkovmXDK6Q38iZB +tRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=7TjdMfF/PTtg0F73X7riA9MOD+0wREtGEYl/TEwRgaM=; b=5wxsfPaB50QQiAL5JGeBKuxG3tbQDnoSwz9uvJRYmsUvb/PCATALx/U8KPhJ6VOuhQ sJvQS53HAStkHsWKLwxe3H68mzQTkCvAgmLLItj8q5CpLuA0/MQ2BzbWNyv0EsTcPEus yM4fQDH9IF9YnnUUgMZH7LUHwLLOacLBwKRMib0ZlZsB0hgPMr6CCoPCBGYPWxhVZre1 b6ba6V4HFiJScVbcz7TPRJmKQH61FlMyrmR7l6p8NSWh5AjUeR3KiYHF6NbDvcI5YrXz 6sWGfjfJeHLoGp743JeLguoTOn/ZimFZez+0lRHw7Ty6Lu+VQ3qhSMpmFk55xWOPjULM 6m0Q== X-Gm-Message-State: AOAM532Jn9dj3GCxt5SJ4k/ycUhW5RG8tZZGv/YPCtdK+jRYY+sGmBvX IkwId2caus9tcW66EBTdO5CeenQ23nb0UdRLKvyEEoroLhVtXboA X-Google-Smtp-Source: ABdhPJxUKXd9dwN49wUv/v6dqLN1xsM6cTfoLW8aSLxoaAstGJnan3xFZg6wmf0qr9D8sgqDhLZOXwnKRGCB6Eu4p+A= X-Received: by 2002:a25:1a07:: with SMTP id a7mr4570804yba.522.1632391127924; Thu, 23 Sep 2021 02:58:47 -0700 (PDT) In-Reply-To: <0e97aad3-ca78-8a5a-2ecf-2e4f5205477d@easy-emacs.de> Received-SPF: pass client-ip=2607:f8b0:4864:20::72e; envelope-from=hongyi.zhao@gmail.com; helo=mail-qk1-x72e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-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:133173 Archived-At: On Thu, Sep 23, 2021 at 4:38 PM Andreas R=C3=B6hler 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