unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: tpeplt <tpeplt@gmail.com>
To: 69720@debbugs.gnu.org
Subject: bug#69720: 29.2; `shortdoc-copy-function-as-kill' copies the ')' for some functions
Date: Thu, 14 Mar 2024 12:16:06 -0400	[thread overview]
Message-ID: <87bk7gvlfd.fsf@gmail.com> (raw)
In-Reply-To: <8734sx2aav.fsf@gmail.com> (tpeplt@gmail.com's message of "Sun, 10 Mar 2024 14:47:52 -0400")


Here is a recipe for reproducing this error:

1. Start Emacs from a shell prompt with ‘emacs -Q’.

2. Run the ‘shortdoc’ 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 ‘current-buffer’ entry, (current-buffer).

5. Type ‘w’ to copy the name of the function (w runs the command
‘shortdoc-copy-function-as-kill’).

6. Switch to the *scratch* buffer.

7. Type C-y to yank the name of the function ‘current-buffer’ 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
‘point’, ‘point-min’, and so on).  Note that when the function name is
yanked into the *scratch* buffer, a trailing parenthesis is
(incorrectly) included in the text.

--





  reply	other threads:[~2024-03-14 16:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-10 18:47 bug#69720: 29.2; `shortdoc-copy-function-as-kill' copies the ')' for some functions tpeplt
2024-03-14 16:16 ` tpeplt [this message]
2024-03-16 11:08 ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bk7gvlfd.fsf@gmail.com \
    --to=tpeplt@gmail.com \
    --cc=69720@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).