From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: tpeplt Newsgroups: gmane.emacs.bugs Subject: bug#69720: 29.2; `shortdoc-copy-function-as-kill' copies the ')' for some functions Date: Thu, 14 Mar 2024 12:16:06 -0400 Message-ID: <87bk7gvlfd.fsf@gmail.com> References: <8734sx2aav.fsf@gmail.com> 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="7744"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: 69720@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 14 17:23:52 2024 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 1rkns0-0001ne-5o for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Mar 2024 17:23:52 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rknri-0005Pq-FB; Thu, 14 Mar 2024 12:23:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rknrb-0005OU-4m for bug-gnu-emacs@gnu.org; Thu, 14 Mar 2024 12:23:29 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rknra-0005z2-NX for bug-gnu-emacs@gnu.org; Thu, 14 Mar 2024 12:23:26 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rknsA-00081K-Dm for bug-gnu-emacs@gnu.org; Thu, 14 Mar 2024 12:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: tpeplt Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Mar 2024 16:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69720 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.171043343830816 (code B ref -1); Thu, 14 Mar 2024 16:24:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Mar 2024 16:23:58 +0000 Original-Received: from localhost ([127.0.0.1]:50479 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rkns5-00080x-AS for submit@debbugs.gnu.org; Thu, 14 Mar 2024 12:23:57 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:37804) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rknlG-0007p9-J8 for submit@debbugs.gnu.org; Thu, 14 Mar 2024 12:16:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rknkc-0003wG-1K for bug-gnu-emacs@gnu.org; Thu, 14 Mar 2024 12:16:16 -0400 Original-Received: from mail-qk1-x736.google.com ([2607:f8b0:4864:20::736]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rknka-0004sy-86 for bug-gnu-emacs@gnu.org; Thu, 14 Mar 2024 12:16:13 -0400 Original-Received: by mail-qk1-x736.google.com with SMTP id af79cd13be357-7882b1e87c4so51961785a.1 for ; Thu, 14 Mar 2024 09:16:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710432969; x=1711037769; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:to:from:from:to:cc:subject:date :message-id:reply-to; bh=oML9NuGt7JyqIpHRzGVRj8d4jtvCRB773U7x1ZVow3A=; b=hflP8EQ2XCfF0uQy9qi+mtePbefcLwjIjUnIenxyMLi0CK+fy6gu5rjZCJgIpmw+Ox Mdh/5mT6zoykl7Veg0sJ5WVYDMGDS01Bc41Vp/zsNVC4pg9/VB7KH4amhhSenC38pl2m uuOX40+CzPT2/5n02VETRnT9YpZ2or4yO5v/oJKRPRz41hCkB2e2cIwcFNFS/u+ZoFsC pfUVyJAoX/dC7UGmPlSpMrm2n1ZktG5JOxAEU5l3DfjO8mLdoyYG5Y/lorg18NX4al3s W3eY34Ag9SJwPJPGf0b6MT6xYrDBKaw/D/sKng9f6OlhJGC/5sH/e1QRv2eb2habFm0R b5Qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710432969; x=1711037769; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:to:from:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=oML9NuGt7JyqIpHRzGVRj8d4jtvCRB773U7x1ZVow3A=; b=L6WxK+Thd4pWqiwYXGL/3M8K3x5Hkt2lgBuPGc0v9U3zAUzvbSmXW7iB3grzUFbU6f nmdxSzk2+I5ycDI8icWCZCpoakJ0yjWfi7/TINqNCWegdh+lW9wfi/Bx9XMs5rcdGulr yvb0ZtKDpq3oSuNHlDiMsASq46MdLGt4DeCdULg4gu2F4guB8WWelYGnU9LMmq26KmHg LaagGfk9TMHUkbvsWSu8WC4ugd+G2ziWNuCEpfx10BkzjAmfxmtZq397XYpr7d+CinE8 5i0pcWstp6hEtiysn2k6j2ksssh8xTQwA4U+wr19Nwm4PuWvbyxz4L/wDbe6N9XY1xYM Mkuw== X-Gm-Message-State: AOJu0YxQdYb8tQ27IOOaczv62T03aCwqjv8SlVkgRnQNnOo4LHxrIATz 9SPonWEiiL3KaSudIrdUwtXz2jqGqxUvMa9VnROQebF85cbP7dKnvVUR368A X-Google-Smtp-Source: AGHT+IEq+Ij9HL7OGDL/+rW4TWLtClUyTj7nIhNVLJKict5KJjJlwwFqwxaYG+hWg4nZPNuGfHaPdQ== X-Received: by 2002:a05:620a:2a02:b0:789:e127:e3ff with SMTP id o2-20020a05620a2a0200b00789e127e3ffmr1114961qkp.67.1710432969352; Thu, 14 Mar 2024 09:16:09 -0700 (PDT) Original-Received: from t530.local ([2600:8806:a821:2b00::f46]) by smtp.gmail.com with ESMTPSA id o5-20020ae9f505000000b0078812b73ea1sm999172qkg.28.2024.03.14.09.16.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 09:16:08 -0700 (PDT) In-Reply-To: <8734sx2aav.fsf@gmail.com> (tpeplt@gmail.com's message of "Sun, 10 Mar 2024 14:47:52 -0400") Received-SPF: pass client-ip=2607:f8b0:4864:20::736; envelope-from=tpeplt@gmail.com; helo=mail-qk1-x736.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-Mailman-Approved-At: Thu, 14 Mar 2024 12:23:56 -0400 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:281622 Archived-At: Here is a recipe for reproducing this error: 1. Start Emacs from a shell prompt with =E2=80=98emacs -Q=E2=80=99. 2. Run the =E2=80=98shortdoc=E2=80=99 command: M-x shortdoc 3. At the prompt "Show summary for functions in: ", type: buffer RET 4. In the buffer "*Shortdoc buffer*", position point on the line that begins description of the =E2=80=98current-buffer=E2=80=99 entry, (current-= buffer). 5. Type =E2=80=98w=E2=80=99 to copy the name of the function (w runs the co= mmand =E2=80=98shortdoc-copy-function-as-kill=E2=80=99). 6. Switch to the *scratch* buffer. 7. Type C-y to yank the name of the function =E2=80=98current-buffer=E2=80= =99 into the buffer. Note that the text that is inserted is "current-buffer)", with a trailing parenthesis instead of "current-buffer". 8. Repeat the sequence of operations above to copy the names of functions that have at least one argument. The function name is copied correctly. 9. Repeat the sequence of operations above to copy the names of other functions in the *Shortdoc buffer* that have no arguments (such as =E2=80=98point=E2=80=99, =E2=80=98point-min=E2=80=99, and so on). Note tha= t when the function name is yanked into the *scratch* buffer, a trailing parenthesis is (incorrectly) included in the text. --