From unknown Sun Jun 22 07:59:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#56496: 28.1; add-abbrev should respect active region Resent-From: Howard Melman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Jul 2022 12:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 56496 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 56496@debbugs.gnu.org X-Debbugs-Original-To: GNU Emacs Received: via spool by submit@debbugs.gnu.org id=B.165754345417465 (code B ref -1); Mon, 11 Jul 2022 12:45:01 +0000 Received: (at submit) by debbugs.gnu.org; 11 Jul 2022 12:44:14 +0000 Received: from localhost ([127.0.0.1]:38755 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oAslq-0004Xd-Hl for submit@debbugs.gnu.org; Mon, 11 Jul 2022 08:44:14 -0400 Received: from lists.gnu.org ([209.51.188.17]:60738) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oAsle-0004XC-1b for submit@debbugs.gnu.org; Mon, 11 Jul 2022 08:44:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49786) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oAslc-00008g-7t for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2022 08:44:01 -0400 Received: from mail-qv1-xf33.google.com ([2607:f8b0:4864:20::f33]:41523) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oAsla-0001Mr-PM for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2022 08:43:59 -0400 Received: by mail-qv1-xf33.google.com with SMTP id v5so254504qvq.8 for ; Mon, 11 Jul 2022 05:43:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=jC/MNskmVy10qcgd9wMG4UeMrofrV3ll69X1p68bRHc=; b=PtlSZ5mEj7h96AK2A6HqcVt1UDmR8NmqsxcvruL+UfxPuX/uvJyqmpzJHiiVWV/3WH FBoG/cccT6ulLITkCeUHyoz2y1DKx+GhY3X2ETBuLcrrJvp4xMkoZ3rQBJZ9JzvZstC6 aADb7mJ2a8bEIetd1ywT2MHfsOiRAgQVNFqg1EGaMxB277f+zidS2bAOW9xTdmDJJ1vS f3N9WZ2gi1n/RLd4GyHyxttS41veSe58HG1sRa2Yz2RnUHX1JCo4/FZ87HEVjSDPlHUW dqB/jxCcbAcY4ODsWg2H1B3c1nUjlThc5lCK8Sfh+J0phAd+h+ch7JHdtcKt6K1QlOtS E6ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=jC/MNskmVy10qcgd9wMG4UeMrofrV3ll69X1p68bRHc=; b=a0QUsHM+PxcAJ+my6s1AJbG9tRLhfawkp3D9u4i0dtmqQYNW2D8FyjkMs2G0ig6afD 7s9u2wcUdrra8Cqf+GtG8vNaqXNWKonDVvIeUyHxPHoNFyWgQOQ+S+04UefMEG2EIxjD NpCM/cd3eYdShq3injEj3Y3n4+YhXMexZWeO0itJV320IvZ9TF5rdLyxPOI0Jy7zhAI/ vO0fFx7MrsLtu1WlPHo0xv6tF2NuHSDU/2sWYi8Y0zEpe5GEVBBLT5x+p6MSBPTBIZf5 scw3EJAcqRwl+NlSHo/vYMMBl9bHKxks5kfhDgaA+1FXhgieWG7x9dei4ik/KYex/ZwX Jj3Q== X-Gm-Message-State: AJIora9CZUt+RgYOwibqrannaFU+Sbbi9fRI5aeBm7t/PGVG5+AVBg6w 3BqGu/dmYUdluyTWujkgpbAY/kE3e0k= X-Google-Smtp-Source: AGRyM1s0wQBy+QyfdX/ZTpLn/X/bP7o9tNpP+M4mDOt3G8Q8VWG8/840hFeMVkExCNcjCD/DVYGFsQ== X-Received: by 2002:a0c:fe02:0:b0:473:1ca:51f1 with SMTP id x2-20020a0cfe02000000b0047301ca51f1mr13039362qvr.5.1657543435731; Mon, 11 Jul 2022 05:43:55 -0700 (PDT) Received: from smtpclient.apple (pool-71-174-239-102.bstnma.fios.verizon.net. [71.174.239.102]) by smtp.gmail.com with ESMTPSA id bk9-20020a05620a1a0900b006af3f3b385csm6423034qkb.98.2022.07.11.05.43.54 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Jul 2022 05:43:54 -0700 (PDT) From: Howard Melman Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.100.31\)) Message-Id: Date: Mon, 11 Jul 2022 08:43:53 -0400 X-Mailer: Apple Mail (2.3696.100.31) Received-SPF: pass client-ip=2607:f8b0:4864:20::f33; envelope-from=hmelman@gmail.com; helo=mail-qv1-xf33.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) 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: -2.3 (--) add-mode-abbrev and add-global-abbrev use the text in the buffer as the expansion and then prompt for an abbrev. If given a numeric argument it's used as the number of words to use as the expansion or if 0 to use the region. I think it would be nice if these commands respected an active region and just used it without having to use a 0 arg. -- Howard From unknown Sun Jun 22 07:59:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#56496: 28.1; add-abbrev should respect active region Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Jul 2022 13:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56496 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Howard Melman Cc: 56496@debbugs.gnu.org Received: via spool by 56496-submit@debbugs.gnu.org id=B56496.16575464747731 (code B ref 56496); Mon, 11 Jul 2022 13:35:01 +0000 Received: (at 56496) by debbugs.gnu.org; 11 Jul 2022 13:34:34 +0000 Received: from localhost ([127.0.0.1]:38883 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oAtYX-00020c-QP for submit@debbugs.gnu.org; Mon, 11 Jul 2022 09:34:33 -0400 Received: from quimby.gnus.org ([95.216.78.240]:51772) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oAtYS-000205-7e for 56496@debbugs.gnu.org; Mon, 11 Jul 2022 09:34:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=3ojy9gN2hdafDDm2K7G82C7Wn5Ui4rUOxUJQdCsx7XU=; b=XhWzyHToVWmlTwn8WWXZ4xcZuM dj9OCOTf7/Idm0xxjWggR8rxoogLBLXJVFv0Ktc+6FGQ58WFRq6UDYR5wvj8WEK14108DCOI3HgUy Tug6eR2YA3AYKTJJhiOPTR1NvFYBIQndn0LBo2JIwITpbGY8VZvxu0Tm1Zx7B4kjE/to=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oAtYJ-0003Na-2w; Mon, 11 Jul 2022 15:34:21 +0200 From: Lars Ingebrigtsen In-Reply-To: (Howard Melman's message of "Mon, 11 Jul 2022 08:43:53 -0400") References: X-Now-Playing: Autechre's _Plus_: "TM1 open" Date: Mon, 11 Jul 2022 15:34:18 +0200 Message-ID: <87v8s3u61x.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Howard Melman writes: > add-mode-abbrev and add-global-abbrev use the text in the > buffer as the expansion and then prompt for an abbrev. If > given a numeric argument it's used as the number of words to > use as the expa [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) 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 (---) Howard Melman writes: > add-mode-abbrev and add-global-abbrev use the text in the > buffer as the expansion and then prompt for an abbrev. If > given a numeric argument it's used as the number of words to > use as the expansion or if 0 to use the region. > > I think it would be nice if these commands respected an > active region and just used it without having to use a 0 arg. Yup. I've now fixed this in Emacs 29. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 11 09:34:34 2022 Received: (at control) by debbugs.gnu.org; 11 Jul 2022 13:34:34 +0000 Received: from localhost ([127.0.0.1]:38885 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oAtYY-00020e-0a for submit@debbugs.gnu.org; Mon, 11 Jul 2022 09:34:34 -0400 Received: from quimby.gnus.org ([95.216.78.240]:51786) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oAtYV-00020C-Mw for control@debbugs.gnu.org; Mon, 11 Jul 2022 09:34:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=FN7Mi5xXXoYOJo63JbpwvVwHHWFuSYbqbbnOQmdVZZs=; b=UkycYH3GB4OWqqAwYgYa6uvvGf QowCNW1PPSm9Osyhms9fvi2enymZTGDeT6l2zMbHQv0mvl4zyyIKNKrHMjRryENNqOc9yz5jgwrWM MYhxEQfnuKNsqFDGUUMIzA3CfQm+/yFUU27x9omTNcihS5oYv76X5V8Hi7A0+u+5+Rg8=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oAtYN-0003Ni-VP for control@debbugs.gnu.org; Mon, 11 Jul 2022 15:34:26 +0200 Date: Mon, 11 Jul 2022 15:34:23 +0200 Message-Id: <87tu7nu61s.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #56496 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 56496 29.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control 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 (---) close 56496 29.1 quit