From: Stefan Kangas <stefan@marxist.se>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 22451@debbugs.gnu.org, Richard Stallman <rms@gnu.org>
Subject: bug#22451: 24.5; `customize-apropos-options': wrong message
Date: Thu, 11 Jul 2019 06:17:44 +0200 [thread overview]
Message-ID: <CADwFkmmX4SjYEm1QzMvXGiizWKNRH2vPbWXPxrV90qWz7_94RA@mail.gmail.com> (raw)
In-Reply-To: <b78b3672-681b-4b1d-990c-b7a9f7014b89@default>
[-- Attachment #1: Type: text/plain, Size: 1395 bytes --]
tags 22451 + patch
thanks
Lars Ingebrigtsen <larsi@gnus.org> writes:
> Drew Adams <drew.adams@oracle.com> writes:
>
>> emacs -Q
>> M-x customize-apropos-options .* RET
>>
>> You see the message "Resetting customization items...", which is quite
>> wrong. Nothing is being reset. Users will be confused and certainly
>> hope/pray that that no option is actually being "reset".
>
> Richard added those messages in 2005... I'm not quite sure what the
> logic is here, but there does seem to be something... reset... here...
>
> (message "Creating customization items ...done")
> + (message "Resetting customization items...")
> (unless (eq custom-buffer-style 'tree)
> (mapc 'custom-magic-reset custom-options))
> + (message "Resetting customization items...done")
> (message "Creating customization setup...")
>
> Oh, it's just a redrawing thing:
>
> ----------
> custom-magic-reset is a compiled Lisp function in ‘cus-edit.el’.
>
> (custom-magic-reset WIDGET)
>
> Redraw the :custom-magic property of WIDGET.
> ----------
>
> In that case I agree that the message is misleading, and I think it
> should just be removed. That part doesn't seem to take that much time,
> anyway. Richard?
That was three years ago.
I think it's time to get rid of them. See the attached patch, which
does just that.
Thanks,
Stefan Kangas
[-- Attachment #2: 0001-Remove-misleading-message-in-customize.patch --]
[-- Type: application/octet-stream, Size: 994 bytes --]
From 54586c90552ce4d072150a1bf69b0937b78c174b Mon Sep 17 00:00:00 2001
From: Stefan Kangas <stefankangas@gmail.com>
Date: Thu, 11 Jul 2019 05:48:02 +0200
Subject: [PATCH] Remove misleading message in customize
* lisp/cus-edit.el (custom-buffer-create-internal): Remove misleading
message about "Resetting customization items". (Bug#22451)
---
lisp/cus-edit.el | 2 --
1 file changed, 2 deletions(-)
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el
index 0b9fb27a73..8a8bad9113 100644
--- a/lisp/cus-edit.el
+++ b/lisp/cus-edit.el
@@ -1726,10 +1726,8 @@ custom-buffer-create-internal
(unless (eq (preceding-char) ?\n)
(widget-insert "\n"))
(message "Creating customization items ...done")
- (message "Resetting customization items...")
(unless (eq custom-buffer-style 'tree)
(mapc 'custom-magic-reset custom-options))
- (message "Resetting customization items...done")
(message "Creating customization setup...")
(widget-setup)
(buffer-enable-undo)
--
2.21.0
next prev parent reply other threads:[~2019-07-11 4:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-24 1:55 bug#22451: 24.5; `customize-apropos-options': wrong message Drew Adams
2016-02-16 6:53 ` Lars Ingebrigtsen
2019-07-11 4:17 ` Stefan Kangas [this message]
2019-07-11 14:06 ` Lars Ingebrigtsen
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=CADwFkmmX4SjYEm1QzMvXGiizWKNRH2vPbWXPxrV90qWz7_94RA@mail.gmail.com \
--to=stefan@marxist.se \
--cc=22451@debbugs.gnu.org \
--cc=larsi@gnus.org \
--cc=rms@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).