aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Bochannek2021-06-08 13:34:24 +0200
committerLars Ingebrigtsen2021-06-08 13:34:24 +0200
commit4888addd3061c2034ce0ef8bfdb2ce879fb355b0 (patch)
tree92aef152ea91fb4203dee1b4302cae3185382146
parent0d42c92978491588a3ad67ec59a5e105e8f1ab3a (diff)
downloademacs-4888addd3061c2034ce0ef8bfdb2ce879fb355b0.tar.gz
emacs-4888addd3061c2034ce0ef8bfdb2ce879fb355b0.zip
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.
-rw-r--r--doc/misc/gnus.texi33
-rw-r--r--etc/NEWS9
-rw-r--r--lisp/gnus/gnus-group.el2
-rw-r--r--lisp/gnus/gnus-sum.el2
-rw-r--r--lisp/gnus/gnus-topic.el2
-rw-r--r--lisp/gnus/gnus.el4
6 files changed, 29 insertions, 23 deletions
diff --git a/doc/misc/gnus.texi b/doc/misc/gnus.texi
index 11bcfc16aef..32ba5aee92f 100644
--- a/doc/misc/gnus.texi
+++ b/doc/misc/gnus.texi
@@ -2583,27 +2583,28 @@ with the process mark and then execute the command.
2583@itemx M m 2583@itemx M m
2584@kindex M m @r{(Group)} 2584@kindex M m @r{(Group)}
2585@findex gnus-group-mark-group 2585@findex gnus-group-mark-group
2586Set the mark on the current group (@code{gnus-group-mark-group}).@* 2586Toggle the process mark for the current group
2587If @code{gnus-process-mark-toggle} is non-@code{nil}, toggle the 2587(@code{gnus-group-mark-group}).@*
2588existing process mark for the current group. 2588If @code{gnus-process-mark-toggle} is @code{nil}, set the process mark
2589for the current group.
2589 2590
2590@item M-# 2591@item M-#
2591@kindex M-# @r{(Group)} 2592@kindex M-# @r{(Group)}
2592@itemx M u 2593@itemx M u
2593@kindex M u @r{(Group)} 2594@kindex M u @r{(Group)}
2594@findex gnus-group-unmark-group 2595@findex gnus-group-unmark-group
2595Remove the mark from the current group 2596Remove the process mark, if any, from the current group
2596(@code{gnus-group-unmark-group}). 2597(@code{gnus-group-unmark-group}).
2597 2598
2598@item M U 2599@item M U
2599@kindex M U @r{(Group)} 2600@kindex M U @r{(Group)}
2600@findex gnus-group-unmark-all-groups 2601@findex gnus-group-unmark-all-groups
2601Remove the mark from all groups (@code{gnus-group-unmark-all-groups}). 2602Remove the process mark from all groups (@code{gnus-group-unmark-all-groups}).
2602 2603
2603@item M w 2604@item M w
2604@kindex M w @r{(Group)} 2605@kindex M w @r{(Group)}
2605@findex gnus-group-mark-region 2606@findex gnus-group-mark-region
2606Mark all groups between point and mark (@code{gnus-group-mark-region}). 2607Mark groups in region (@code{gnus-group-mark-region}).
2607 2608
2608@item M b 2609@item M b
2609@kindex M b @r{(Group)} 2610@kindex M b @r{(Group)}
@@ -4043,11 +4044,11 @@ Toggle hiding empty topics
4043@item T # 4044@item T #
4044@kindex T # @r{(Topic)} 4045@kindex T # @r{(Topic)}
4045@findex gnus-topic-mark-topic 4046@findex gnus-topic-mark-topic
4046Mark all groups in the current topic with the process mark 4047Toggle the process mark for all groups in the current topic
4047(@code{gnus-topic-mark-topic}). This command works recursively on 4048(@code{gnus-topic-mark-topic}). This command works recursively on
4048sub-topics unless given a prefix.@* 4049sub-topics unless given a prefix.@*
4049If @code{gnus-process-mark-toggle} is non-@code{nil}, toggle the 4050If @code{gnus-process-mark-toggle} is @code{nil}, set the process mark
4050existing process mark for the current topic. 4051for the current topic.
4051 4052
4052@item T M-# 4053@item T M-#
4053@kindex T M-# @r{(Topic)} 4054@kindex T M-# @r{(Topic)}
@@ -6621,10 +6622,10 @@ articles into the cache. For more information,
6621@kindex # @r{(Summary)} 6622@kindex # @r{(Summary)}
6622@kindex M P p @r{(Summary)} 6623@kindex M P p @r{(Summary)}
6623@findex gnus-summary-mark-as-processable 6624@findex gnus-summary-mark-as-processable
6624Mark the current article with the process mark 6625Toggle the process mark for the current article
6625(@code{gnus-summary-mark-as-processable}).@* 6626(@code{gnus-summary-mark-as-processable}).@*
6626If @code{gnus-process-mark-toggle} is non-@code{nil}, toggle the 6627If @code{gnus-process-mark-toggle} is @code{nil}, set the process mark
6627existing process mark for the current article. 6628for the current article.
6628 6629
6629@item M P u 6630@item M P u
6630@itemx M-# 6631@itemx M-#
@@ -10568,15 +10569,15 @@ Here are the available keystrokes when using pick mode:
10568@item . 10569@item .
10569@kindex . @r{(Pick)} 10570@kindex . @r{(Pick)}
10570@findex gnus-pick-article-or-thread 10571@findex gnus-pick-article-or-thread
10571Pick the article or thread on the current line 10572Pick the article or thread on the current line or unpick it if is
10572(@code{gnus-pick-article-or-thread}). If the variable 10573already picked (@code{gnus-pick-article-or-thread}). If the variable
10573@code{gnus-thread-hide-subtree} is true, then this key selects the 10574@code{gnus-thread-hide-subtree} is true, then this key selects the
10574entire thread when used at the first article of the thread. Otherwise, 10575entire thread when used at the first article of the thread. Otherwise,
10575it selects just the article. If given a numerical prefix, go to that 10576it selects just the article. If given a numerical prefix, go to that
10576thread or article and pick it. (The line number is normally displayed 10577thread or article and pick it. (The line number is normally displayed
10577at the beginning of the summary pick lines.) If 10578at the beginning of the summary pick lines.) If
10578@code{gnus-process-mark-toggle} is non-@code{nil}, this key will 10579@code{gnus-process-mark-toggle} is @code{nil}, this key will pick an
10579unpick an already picked article. 10580article or thread.
10580 10581
10581@item @key{SPC} 10582@item @key{SPC}
10582@kindex SPC @r{(Pick)} 10583@kindex SPC @r{(Pick)}
diff --git a/etc/NEWS b/etc/NEWS
index eadf3e79486..60226f0a3ec 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -883,9 +883,14 @@ tags to be considered as well.
883** Gnus 883** Gnus
884 884
885+++ 885+++
886*** The '#' command in the Group and Summary buffer now toggles,
887instead of sets, the process mark.
888
889+++
886*** New user option 'gnus-process-mark-toggle'. 890*** New user option 'gnus-process-mark-toggle'.
887If non-nil, the `#' command in the Group and Summary buffers will 891If non-nil (the default), the `#' command in the Group and Summary
888toggle instead of setting the process mark. 892buffers will toggle, instead of set, the process mark.
893
889 894
890+++ 895+++
891*** New user option 'gnus-registry-register-all'. 896*** New user option 'gnus-registry-register-all'.
diff --git a/lisp/gnus/gnus-group.el b/lisp/gnus/gnus-group.el
index 06d1313d379..c8b95d91856 100644
--- a/lisp/gnus/gnus-group.el
+++ b/lisp/gnus/gnus-group.el
@@ -894,7 +894,7 @@ simple manner."
894 ["Sort by real name" gnus-group-sort-selected-groups-by-real-name 894 ["Sort by real name" gnus-group-sort-selected-groups-by-real-name
895 (not (gnus-topic-mode-p))]) 895 (not (gnus-topic-mode-p))])
896 ("Mark" 896 ("Mark"
897 ["Set/Toggle mark" gnus-group-mark-group 897 ["Toggle/Set mark" gnus-group-mark-group
898 (and (gnus-group-group-name) 898 (and (gnus-group-group-name)
899 (not (memq (gnus-group-group-name) gnus-group-marked)))] 899 (not (memq (gnus-group-group-name) gnus-group-marked)))]
900 ["Remove mark" gnus-group-unmark-group 900 ["Remove mark" gnus-group-unmark-group
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
index 3279c3221ea..bcd76dda29f 100644
--- a/lisp/gnus/gnus-sum.el
+++ b/lisp/gnus/gnus-sum.el
@@ -2774,7 +2774,7 @@ gnus-summary-show-article-from-menu-as-charset-%s" cs))))
2774 ["Hide marked" gnus-summary-limit-exclude-marks t] 2774 ["Hide marked" gnus-summary-limit-exclude-marks t]
2775 ["Show expunged" gnus-summary-limit-include-expunged t]) 2775 ["Show expunged" gnus-summary-limit-include-expunged t])
2776 ("Process Mark" 2776 ("Process Mark"
2777 ["Set/Toggle mark" gnus-summary-mark-as-processable t] 2777 ["Toggle/Set mark" gnus-summary-mark-as-processable t]
2778 ["Remove mark" gnus-summary-unmark-as-processable t] 2778 ["Remove mark" gnus-summary-unmark-as-processable t]
2779 ["Remove all marks" gnus-summary-unmark-all-processable t] 2779 ["Remove all marks" gnus-summary-unmark-all-processable t]
2780 ["Invert marks" gnus-uu-invert-processable t] 2780 ["Invert marks" gnus-uu-invert-processable t]
diff --git a/lisp/gnus/gnus-topic.el b/lisp/gnus/gnus-topic.el
index c0484622f40..b974dff372b 100644
--- a/lisp/gnus/gnus-topic.el
+++ b/lisp/gnus/gnus-topic.el
@@ -1112,7 +1112,7 @@ articles in the topic and its subtopics."
1112 ["Delete" gnus-topic-delete t] 1112 ["Delete" gnus-topic-delete t]
1113 ["Rename..." gnus-topic-rename t] 1113 ["Rename..." gnus-topic-rename t]
1114 ["Create..." gnus-topic-create-topic t] 1114 ["Create..." gnus-topic-create-topic t]
1115 ["Set/Toggle mark" gnus-topic-mark-topic t] 1115 ["Toggle/Set mark" gnus-topic-mark-topic t]
1116 ["Indent" gnus-topic-indent t] 1116 ["Indent" gnus-topic-indent t]
1117 ["Sort" gnus-topic-sort-topics t] 1117 ["Sort" gnus-topic-sort-topics t]
1118 ["Previous topic" gnus-topic-goto-previous-topic t] 1118 ["Previous topic" gnus-topic-goto-previous-topic t]
diff --git a/lisp/gnus/gnus.el b/lisp/gnus/gnus.el
index 21b5f31c141..7dde799a5b8 100644
--- a/lisp/gnus/gnus.el
+++ b/lisp/gnus/gnus.el
@@ -1183,8 +1183,8 @@ newsgroups."
1183 :group 'gnus-summary-marks 1183 :group 'gnus-summary-marks
1184 :type 'character) 1184 :type 'character)
1185 1185
1186(defcustom gnus-process-mark-toggle nil 1186(defcustom gnus-process-mark-toggle t
1187 "If non-nil the process mark command toggles the process mark." 1187 "If nil the process mark command only sets the process mark."
1188 :version "28.1" 1188 :version "28.1"
1189 :group 'gnus-summary 1189 :group 'gnus-summary
1190 :group 'gnus-group-various 1190 :group 'gnus-group-various