all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stephen Leake <stephen_leake@stephe-leake.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: doc improvements for bug-reference.el
Date: Sun, 27 Jun 2021 08:39:19 -0700	[thread overview]
Message-ID: <86o8brxqoo.fsf@stephe-leake.org> (raw)
In-Reply-To: <83v95zq1jj.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 27 Jun 2021 09:12:00 +0300")

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Stephen Leake <stephen_leake@stephe-leake.org>
>> Date: Sat, 26 Jun 2021 16:04:09 -0700
>> 
>> I just customized bug-reference-mode for emacs debbugs. I had to read
>> the code to figure out what to set, so I have some suggestions for
>> improving the documentation; see attached patch.
>
> Thanks.
>
>> -;; the other operates only on comments and strings.
>> +;; the other operates only on comments and strings. By default, the
>> +;; URL link is followed by invoking C-c RET or mouse-2.
>
> Two spaces between sentences, please.
>
>> +  (when (null bug-reference-url-format)
>> +    (user-error
>> + "You must customize `bug-reference-url-format', then restart
>> bug-reference-mode."))
>
> Is this really a user-error?

From the doc string of user-error:

    is intended to report errors on the part of the
    user, rather than errors in the code itself

I think that fits here; the user must take some action to make this
work; it's not a bug to be reported.

> Also, does anything need to be improved in maintaining.texi?

I was not aware of that; I'll add a reference to it in bug-reference.el,
and change the user-error message to refer to it instead.

maintaining.texi does not mention the default key-binding; perhaps it
should? I'm not sure what the emacs manual convention on this is.
Otherwise it looks ok.

Also, I'll try to create a function for
bug-reference-auto-setup-functions to handle references in the
emacs-devel mailing list.

-- 
-- Stephe



  reply	other threads:[~2021-06-27 15:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-26 23:04 doc improvements for bug-reference.el Stephen Leake
2021-06-27  6:12 ` Eli Zaretskii
2021-06-27 15:39   ` Stephen Leake [this message]
2021-06-27 15:54     ` Stephen Leake
2021-06-27 17:44       ` Eli Zaretskii
2021-06-28  5:24       ` Tassilo Horn
2021-06-27 17:43     ` Eli Zaretskii
2021-06-28  5:21     ` Tassilo Horn

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=86o8brxqoo.fsf@stephe-leake.org \
    --to=stephen_leake@stephe-leake.org \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@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 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.