Change the Gnus default to use `#' to toggle the process mark

* doc/misc/gnus.texi (Marking Groups, Topic Commands):
(Setting Process Marks, Pick and Read): Document the new default.
* lisp/gnus/gnus-group.el (gnus-group-make-menu-bar): Update menu.

* lisp/gnus/gnus-sum.el (gnus-summary-make-menu-bar): Update menu.

* lisp/gnus/gnus-topic.el (gnus-topic-make-menu-bar): Update menu.

* lisp/gnus/gnus.el (gnus-process-mark-toggle): Change default.
This commit is contained in:
Alex Bochannek 2021-06-08 13:34:24 +02:00 committed by Lars Ingebrigtsen
parent 0d42c92978
commit 4888addd30
6 changed files with 29 additions and 23 deletions

View file

@ -2583,27 +2583,28 @@ with the process mark and then execute the command.
@itemx M m
@kindex M m @r{(Group)}
@findex gnus-group-mark-group
Set the mark on the current group (@code{gnus-group-mark-group}).@*
If @code{gnus-process-mark-toggle} is non-@code{nil}, toggle the
existing process mark for the current group.
Toggle the process mark for the current group
(@code{gnus-group-mark-group}).@*
If @code{gnus-process-mark-toggle} is @code{nil}, set the process mark
for the current group.
@item M-#
@kindex M-# @r{(Group)}
@itemx M u
@kindex M u @r{(Group)}
@findex gnus-group-unmark-group
Remove the mark from the current group
Remove the process mark, if any, from the current group
(@code{gnus-group-unmark-group}).
@item M U
@kindex M U @r{(Group)}
@findex gnus-group-unmark-all-groups
Remove the mark from all groups (@code{gnus-group-unmark-all-groups}).
Remove the process mark from all groups (@code{gnus-group-unmark-all-groups}).
@item M w
@kindex M w @r{(Group)}
@findex gnus-group-mark-region
Mark all groups between point and mark (@code{gnus-group-mark-region}).
Mark groups in region (@code{gnus-group-mark-region}).
@item M b
@kindex M b @r{(Group)}
@ -4043,11 +4044,11 @@ Toggle hiding empty topics
@item T #
@kindex T # @r{(Topic)}
@findex gnus-topic-mark-topic
Mark all groups in the current topic with the process mark
Toggle the process mark for all groups in the current topic
(@code{gnus-topic-mark-topic}). This command works recursively on
sub-topics unless given a prefix.@*
If @code{gnus-process-mark-toggle} is non-@code{nil}, toggle the
existing process mark for the current topic.
If @code{gnus-process-mark-toggle} is @code{nil}, set the process mark
for the current topic.
@item T M-#
@kindex T M-# @r{(Topic)}
@ -6621,10 +6622,10 @@ articles into the cache. For more information,
@kindex # @r{(Summary)}
@kindex M P p @r{(Summary)}
@findex gnus-summary-mark-as-processable
Mark the current article with the process mark
Toggle the process mark for the current article
(@code{gnus-summary-mark-as-processable}).@*
If @code{gnus-process-mark-toggle} is non-@code{nil}, toggle the
existing process mark for the current article.
If @code{gnus-process-mark-toggle} is @code{nil}, set the process mark
for the current article.
@item M P u
@itemx M-#
@ -10568,15 +10569,15 @@ Here are the available keystrokes when using pick mode:
@item .
@kindex . @r{(Pick)}
@findex gnus-pick-article-or-thread
Pick the article or thread on the current line
(@code{gnus-pick-article-or-thread}). If the variable
Pick the article or thread on the current line or unpick it if is
already picked (@code{gnus-pick-article-or-thread}). If the variable
@code{gnus-thread-hide-subtree} is true, then this key selects the
entire thread when used at the first article of the thread. Otherwise,
it selects just the article. If given a numerical prefix, go to that
thread or article and pick it. (The line number is normally displayed
at the beginning of the summary pick lines.) If
@code{gnus-process-mark-toggle} is non-@code{nil}, this key will
unpick an already picked article.
@code{gnus-process-mark-toggle} is @code{nil}, this key will pick an
article or thread.
@item @key{SPC}
@kindex SPC @r{(Pick)}

View file

@ -882,10 +882,15 @@ tags to be considered as well.
** Gnus
+++
*** The '#' command in the Group and Summary buffer now toggles,
instead of sets, the process mark.
+++
*** New user option 'gnus-process-mark-toggle'.
If non-nil, the `#' command in the Group and Summary buffers will
toggle instead of setting the process mark.
If non-nil (the default), the `#' command in the Group and Summary
buffers will toggle, instead of set, the process mark.
+++
*** New user option 'gnus-registry-register-all'.

View file

@ -894,7 +894,7 @@ simple manner."
["Sort by real name" gnus-group-sort-selected-groups-by-real-name
(not (gnus-topic-mode-p))])
("Mark"
["Set/Toggle mark" gnus-group-mark-group
["Toggle/Set mark" gnus-group-mark-group
(and (gnus-group-group-name)
(not (memq (gnus-group-group-name) gnus-group-marked)))]
["Remove mark" gnus-group-unmark-group

View file

@ -2774,7 +2774,7 @@ gnus-summary-show-article-from-menu-as-charset-%s" cs))))
["Hide marked" gnus-summary-limit-exclude-marks t]
["Show expunged" gnus-summary-limit-include-expunged t])
("Process Mark"
["Set/Toggle mark" gnus-summary-mark-as-processable t]
["Toggle/Set mark" gnus-summary-mark-as-processable t]
["Remove mark" gnus-summary-unmark-as-processable t]
["Remove all marks" gnus-summary-unmark-all-processable t]
["Invert marks" gnus-uu-invert-processable t]

View file

@ -1112,7 +1112,7 @@ articles in the topic and its subtopics."
["Delete" gnus-topic-delete t]
["Rename..." gnus-topic-rename t]
["Create..." gnus-topic-create-topic t]
["Set/Toggle mark" gnus-topic-mark-topic t]
["Toggle/Set mark" gnus-topic-mark-topic t]
["Indent" gnus-topic-indent t]
["Sort" gnus-topic-sort-topics t]
["Previous topic" gnus-topic-goto-previous-topic t]

View file

@ -1183,8 +1183,8 @@ newsgroups."
:group 'gnus-summary-marks
:type 'character)
(defcustom gnus-process-mark-toggle nil
"If non-nil the process mark command toggles the process mark."
(defcustom gnus-process-mark-toggle t
"If nil the process mark command only sets the process mark."
:version "28.1"
:group 'gnus-summary
:group 'gnus-group-various