From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Howard Melman Newsgroups: gmane.emacs.bugs Subject: bug#56496: 28.1; add-abbrev should respect active region Date: Mon, 11 Jul 2022 08:43:53 -0400 Message-ID: Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.100.31\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29352"; mail-complaints-to="usenet@ciao.gmane.io" To: 56496@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 11 14:45:48 2022 Return-path: Envelope-to: geb-bug-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 1oAsnL-0007Or-DY for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Jul 2022 14:45:47 +0200 Original-Received: from localhost ([::1]:37606 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oAsnK-00026F-1Y for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Jul 2022 08:45:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50048) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oAsmc-00022P-9r for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2022 08:45:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44858) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oAsmb-0001Uf-VK for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2022 08:45:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oAsmb-0004Zb-Qq for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2022 08:45:01 -0400 X-Loop: help-debbugs@gnu.org 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-Debbugs-Original-To: GNU Emacs Original-Received: via spool by submit@debbugs.gnu.org id=B.165754345417465 (code B ref -1); Mon, 11 Jul 2022 12:45:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Jul 2022 12:44:14 +0000 Original-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 Original-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 Original-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 Original-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 Original-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) Original-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) 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:236672 Archived-At: 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