all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefan@marxist.se>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 39436@debbugs.gnu.org, pieter@vanoostrum.org
Subject: bug#39436: closed (Re: bug#39436: 27.0.60; Documentaion error for package-menu-hide-package)
Date: Wed, 11 Mar 2020 03:07:48 +0100	[thread overview]
Message-ID: <87y2s73aq3.fsf@stefankangas.se> (raw)
In-Reply-To: <83d0agntpc.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 15 Feb 2020 10:25:03 +0200")

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

Eli Zaretskii <eliz@gnu.org> writes:

>> > I've removed "Permanently" and made the description more detailed.
>> 
>> Thanks.  But in the new text, there seems to be no indication that the
>> hidden status is saved for future sessions.
>> 
>> I'm not sure how to best describe that, if we feel that "permanently"
>> is not clear enough.  Maybe we could say something along the lines of
>> "for all future sessions" or somesuch.  It's probably also a good idea
>> to mention the variable package-hidden-regexps.
>> 
>> WDYT?
>
> Feel free to make such a change, although I don't particularly see why
> we need to emphasize the "future sessions" part here.  We don't
> actually say anywhere anything to the contrary, and there are no other
> commands that hide stuff only temporarily, do we?

Well, the filter commands in the package menu only work in the current
buffer.  If you close the buffer and open it again, the filters are
gone.  That is, to my mind, temporary.

In this case, the filter is saved using customize-save-variable and
will therefore be there even if you restart Emacs.  So I think it can
be a bit surprising if it's not documented.

I would suggest the attached patch.

Best regards,
Stefan Kangas


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Clarify-package-menu-hide-package-docstring.patch --]
[-- Type: text/x-diff, Size: 1244 bytes --]

From a0250312753fa4a31e1861561570d56c6843aa39 Mon Sep 17 00:00:00 2001
From: Stefan Kangas <stefankangas@gmail.com>
Date: Wed, 11 Mar 2020 03:05:12 +0100
Subject: [PATCH] Clarify package-menu-hide-package docstring

* lisp/emacs-lisp/package.el (package-menu-hide-package): Clarify in
docstring that hiding is saved in a user option.  (Bug#39436)
---
 lisp/emacs-lisp/package.el | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index 43eb038a86..7dbb99684f 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -3190,8 +3190,11 @@ 'package-menu-refresh
 
 (defun package-menu-hide-package ()
   "Hide in Package Menu packages that match a regexp.
-Prompts for the regexp to match against package names.
-The default regexp will hide only the package whose name is at point."
+Prompt for the regexp to match against package names.
+The default regexp will hide only the package whose name is at point.
+
+The regexp is saved for future Emacs sessions in the user option
+`package-hidden-regexps'."
   (interactive)
   (package--ensure-package-menu-mode)
   (declare (interactive-only "change `package-hidden-regexps' instead."))
-- 
2.25.1


  parent reply	other threads:[~2020-03-11  2:07 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-05 15:10 bug#39436: 27.0.60; Documentaion error for package-menu-hide-package Pieter van Oostrum
2020-02-08  9:41 ` Eli Zaretskii
2020-02-08 13:58   ` Pieter van Oostrum
2020-02-08 14:32     ` Eli Zaretskii
2020-02-09 16:08       ` Pieter van Oostrum
2020-02-09 16:50         ` Eli Zaretskii
2020-02-09 20:50           ` Stefan Kangas
2020-02-15  8:16             ` Eli Zaretskii
2020-02-09 16:52         ` Pieter van Oostrum
2020-02-09 17:32           ` Eli Zaretskii
2020-02-09 19:44             ` Pieter van Oostrum
2020-02-09 20:28               ` Pieter van Oostrum
2020-02-09 20:36                 ` Stefan Kangas
2020-02-09 20:30               ` Stefan Kangas
     [not found] ` <handler.39436.D39436.158115493214005.notifdone@debbugs.gnu.org>
2020-02-09 21:00   ` bug#39436: closed (Re: bug#39436: 27.0.60; Documentaion error for package-menu-hide-package) Stefan Kangas
2020-02-15  8:25     ` Eli Zaretskii
2020-02-15 10:31       ` Pieter van Oostrum
2020-03-11  2:07       ` Stefan Kangas [this message]
2020-03-11  7:36         ` Pieter van Oostrum
2020-03-11 20:37           ` Stefan Kangas
2020-03-11 22:10             ` Pieter van Oostrum
2020-03-14  9:05               ` Stefan Kangas

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=87y2s73aq3.fsf@stefankangas.se \
    --to=stefan@marxist.se \
    --cc=39436@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=pieter@vanoostrum.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.