From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#69720: 29.2; `shortdoc-copy-function-as-kill' copies the ')' for some functions Date: Sat, 16 Mar 2024 13:08:57 +0200 Message-ID: <865xxm77sm.fsf@gnu.org> References: <8734sx2aav.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5491"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 69720-done@debbugs.gnu.org To: Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 16 12:10:00 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 1rlRvM-0001EJ-0a for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 16 Mar 2024 12:10:00 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rlRuq-00035A-6T; Sat, 16 Mar 2024 07:09:28 -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 1rlRuo-00034U-ON for bug-gnu-emacs@gnu.org; Sat, 16 Mar 2024 07:09:26 -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 1rlRuo-0008WN-Gf for bug-gnu-emacs@gnu.org; Sat, 16 Mar 2024 07:09:26 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rlRvP-0007Q6-A6 for bug-gnu-emacs@gnu.org; Sat, 16 Mar 2024 07:10:03 -0400 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 16 Mar 2024 11:10:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 69720 X-GNU-PR-Package: emacs Mail-Followup-To: 69720@debbugs.gnu.org, eliz@gnu.org, tpeplt@gmail.com Original-Received: via spool by 69720-done@debbugs.gnu.org id=D69720.171058738628463 (code D ref 69720); Sat, 16 Mar 2024 11:10:03 +0000 Original-Received: (at 69720-done) by debbugs.gnu.org; 16 Mar 2024 11:09:46 +0000 Original-Received: from localhost ([127.0.0.1]:54985 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rlRv8-0007P0-AA for submit@debbugs.gnu.org; Sat, 16 Mar 2024 07:09:46 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:45572) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rlRv6-0007On-M5 for 69720-done@debbugs.gnu.org; Sat, 16 Mar 2024 07:09:45 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rlRuP-0008Md-Pa; Sat, 16 Mar 2024 07:09:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=gKDmUF2K8jNUclOvMj7U/vv8dGNBSQxn/Yy+y8bUO1s=; b=Mp/LrcLvG4mPnvoCzNPb M3IUt7iz/FXm6ZvtofOJfucXbAXL5iGEr1W4PGbO3HmMUCPsQCe6o/kHfCSQVLia2Khjo3fCjm3kU WHBoPU3WqtaMPhWiqdX+cAkQfejmuJuToAD3Jd3M5f6EE1xgIHGphvvm248eqGBxAie9uUQOGbYnM gQ4GBZ02dkwYe4dIOhido0AyiDlPFfZt6SAKMHfsfAmVX8CKwslNAMY9L22uvFq4+TRNNu5venejW woIATdxomr6Z2dmFJyCvTsqxEwoY6RzuLuADfpIgHbt6Q3xZLgbVvSn7Ii5h7a8OLqHBTeG/cFnSw rMotwah3adiQuA==; In-Reply-To: <8734sx2aav.fsf@gmail.com> (tpeplt@gmail.com) 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:281719 Archived-At: > From: > Date: Sun, 10 Mar 2024 14:47:52 -0400 > > Emacs Maintainers, > > The function ‘shortdoc-copy-function-as-kill’ copies the > function name of the function of the shortdoc item in > which point is located. This works as expected when a > function has arguments, but when a function does not have > arguments, then ‘shortdoc-copy-function-as-kill’ copies the > trailing parenthesis (that is, the ‘)’). > > So, for example in the shortdoc function summary for > ‘buffer’, when point is in the item for ‘current-buffer’, > then ‘shortdoc-copy-function-as-kill’ (mapped to ‘w’) will > copy the text "current-buffer)", rather than the expected > "current-buffer". The same error occurs for ‘point’, > ‘point-min’, ‘point-max’, and so on. > > In the definition of ‘shortdoc-copy-function-as-kill’, > the specification of the regular expression that is used to > match the function name searches for a space (" ") to find > the end of the name, rather than searching for a space or > right parenthesis (" )"). That is, the expression (in " ") > in the ‘when-let*’ expression: > > (when-let* ((re (rx bol "(" (group (+ (not (in " "))))))... > > A possible fix is to change (in " ") to (in " )"): > > (when-let* ((re (rx bol "(" (group (+ (not (in " )"))))))... Thanks, fixed on the emacs-29 branch, and closing the bug.