all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Matt Armstrong <matt@rfc20.org>
To: Howard Melman <hmelman@gmail.com>, 47051@debbugs.gnu.org
Subject: bug#47051: 27.1; Incorrect backward-button signature in elisp manual
Date: Wed, 10 Mar 2021 09:39:34 -0800	[thread overview]
Message-ID: <87ft127vs9.fsf@rfc20.org> (raw)
In-Reply-To: <4155E250-6192-4A25-ABD6-C9F6BD366F1B@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 676 bytes --]

tags 47051 patch confirmed
quit

Thanks for the report Howard.  I've attached a patch to fix this below.


Howard Melman <hmelman@gmail.com> writes:

> In the Emacs 27.1 lispref manual node Button Buffer Commands:
>
> The documentation of backward-button mentions the last
> argument NO-ERROR but doesn't include it on the command
> signature.
>
> Also the last sentence of the descriptions for both
> backward-button and forward-button says:
>
>     If NO-ERROR in non-‘nil’
>
> and I think both should be:
>
>     If NO-ERROR is non-‘nil’
>
> I believe these are still problems in master.
>
> The docstrings of both commands seem fine.



[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Fix-typos-and-omissions-for-elisp-Button-Buffer-Comm.patch --]
[-- Type: text/x-diff, Size: 1860 bytes --]

From f3f283f7783abcc08416fbbaf144f662c7e517c6 Mon Sep 17 00:00:00 2001
From: Matt Armstrong <matt@rfc20.org>
Date: Wed, 10 Mar 2021 09:24:43 -0800
Subject: [PATCH] Fix typos and omissions for (elisp)Button Buffer Commands

* doc/lispref/display.texi (Button Buffer Commands): Minor
typo and omission fixes `backward-button' and
`forward-button'.
---
 doc/lispref/display.texi | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi
index 131ad2d9c8..5ff1aab44b 100644
--- a/doc/lispref/display.texi
+++ b/doc/lispref/display.texi
@@ -7041,11 +7041,11 @@ Button Buffer Commands
 @var{display-message} is non-@code{nil}, the button's help-echo string
 is displayed.  Any button with a non-@code{nil} @code{skip} property
 is skipped over.  Returns the button found, and signals an error if no
-buttons can be found.  If @var{no-error} in non-@code{nil}, return nil
+buttons can be found.  If @var{no-error} is non-@code{nil}, return nil
 instead of signaling the error.
 @end deffn
 
-@deffn Command backward-button n &optional wrap display-message
+@deffn Command backward-button n &optional wrap display-message no-error
 Move to the @var{n}th previous button, or @var{n}th next button if
 @var{n} is negative.  If @var{n} is zero, move to the start of any
 button at point.  If @var{wrap} is non-@code{nil}, moving past either
@@ -7053,7 +7053,7 @@ Button Buffer Commands
 @var{display-message} is non-@code{nil}, the button's help-echo string
 is displayed.  Any button with a non-@code{nil} @code{skip} property
 is skipped over.  Returns the button found, and signals an error if no
-buttons can be found.  If @var{no-error} in non-@code{nil}, return nil
+buttons can be found.  If @var{no-error} is non-@code{nil}, return nil
 instead of signaling the error.
 @end deffn
 
-- 
2.30.1


  parent reply	other threads:[~2021-03-10 17:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-10 15:47 bug#47051: 27.1; Incorrect backward-button signature in elisp manual Howard Melman
2021-03-10 17:29 ` Matt Armstrong
2021-03-10 17:39 ` Matt Armstrong [this message]
2021-03-13  9:53   ` 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

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

  git send-email \
    --in-reply-to=87ft127vs9.fsf@rfc20.org \
    --to=matt@rfc20.org \
    --cc=47051@debbugs.gnu.org \
    --cc=hmelman@gmail.com \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.