aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2020-07-17 01:46:57 +0200
committerLars Ingebrigtsen2020-07-17 01:46:57 +0200
commit55e858d7cde85e65ecfbcb4e474a9d9f5a09bc1a (patch)
tree5a870a290564bdf97d5bd967cad4e6a4b4ecf81e
parenta2a4588110eafcfaf20f346d9ce277019f2d0b30 (diff)
downloademacs-55e858d7cde85e65ecfbcb4e474a9d9f5a09bc1a.tar.gz
emacs-55e858d7cde85e65ecfbcb4e474a9d9f5a09bc1a.zip
Adjust naming convention for dependent Gnus sessions
* doc/misc/gnus.texi (Child Gnusae): Rename node from "Slave Gnusae" and adjust wording. Also remove at least one joke. * lisp/gnus/gnus-start.el (gnus-no-server-1, gnus-1) (gnus-setup-news, gnus-save-newsrc-file): Adjust parameter names. (gnus-child-mode): Rename and add alias. (gnus-child-save-newsrc): Rename. (gnus-parent-read-child-newsrc): Ditto. * lisp/gnus/gnus-group.el (gnus-group-mode) (gnus-group-get-new-news): Ditto. * lisp/gnus/gnus-agent.el (gnus-child-unplugged): Rename function from gnus-slave-unplugged (and add the latter as an obsolete alias). * lisp/gnus/gnus.el (gnus-other-frame-function): Adjust function names in the defcustom to new naming scheme. (gnus-other-frame-resume-function): Ditto. (gnus): Adjust parameter names.
-rw-r--r--doc/misc/gnus.texi52
-rw-r--r--etc/NEWS6
-rw-r--r--lisp/gnus/gnus-agent.el13
-rw-r--r--lisp/gnus/gnus-group.el10
-rw-r--r--lisp/gnus/gnus-kill.el2
-rw-r--r--lisp/gnus/gnus-start.el88
-rw-r--r--lisp/gnus/gnus.el38
7 files changed, 116 insertions, 93 deletions
diff --git a/doc/misc/gnus.texi b/doc/misc/gnus.texi
index 718e269fc86..294d9590bc9 100644
--- a/doc/misc/gnus.texi
+++ b/doc/misc/gnus.texi
@@ -436,7 +436,7 @@ Starting Gnus
436 436
437* Finding the News:: Choosing a method for getting news. 437* Finding the News:: Choosing a method for getting news.
438* The Server is Down:: How can I read my mail then? 438* The Server is Down:: How can I read my mail then?
439* Slave Gnusae:: You can have more than one Gnus active at a time. 439* Child Gnusae:: You can have more than one Gnus active at a time.
440* Fetching a Group:: Starting Gnus just to read a group. 440* Fetching a Group:: Starting Gnus just to read a group.
441* New Groups:: What is Gnus supposed to do with new groups? 441* New Groups:: What is Gnus supposed to do with new groups?
442* Changing Servers:: You may want to move from one server to another. 442* Changing Servers:: You may want to move from one server to another.
@@ -976,7 +976,7 @@ terminology section (@pxref{Terminology}).
976@menu 976@menu
977* Finding the News:: Choosing a method for getting news. 977* Finding the News:: Choosing a method for getting news.
978* The Server is Down:: How can I read my mail then? 978* The Server is Down:: How can I read my mail then?
979* Slave Gnusae:: You can have more than one Gnus active at a time. 979* Child Gnusae:: You can have more than one Gnus active at a time.
980* New Groups:: What is Gnus supposed to do with new groups? 980* New Groups:: What is Gnus supposed to do with new groups?
981* Changing Servers:: You may want to move from one server to another. 981* Changing Servers:: You may want to move from one server to another.
982* Startup Files:: Those pesky startup files---@file{.newsrc}. 982* Startup Files:: Those pesky startup files---@file{.newsrc}.
@@ -1090,9 +1090,9 @@ your primary server---instead, it will just activate all groups on level
1090levels.) Also @pxref{Group Levels}. 1090levels.) Also @pxref{Group Levels}.
1091 1091
1092 1092
1093@node Slave Gnusae 1093@node Child Gnusae
1094@section Slave Gnusae 1094@section Child Gnusae
1095@cindex slave 1095@cindex child
1096 1096
1097You might want to run more than one Emacs with more than one Gnus at the 1097You might want to run more than one Emacs with more than one Gnus at the
1098same time. If you are using different @file{.newsrc} files (e.g., if you 1098same time. If you are using different @file{.newsrc} files (e.g., if you
@@ -1103,31 +1103,27 @@ The problem appears when you want to run two Gnusae that use the same
1103@file{.newsrc} file. 1103@file{.newsrc} file.
1104 1104
1105To work around that problem some, we here at the Think-Tank at the Gnus 1105To work around that problem some, we here at the Think-Tank at the Gnus
1106Towers have come up with a new concept: @dfn{Masters} and 1106Towers have come up with a new concept: @dfn{Parents} and
1107@dfn{slaves}. (We have applied for a patent on this concept, and have 1107@dfn{children}.
1108taken out a copyright on those words. If you wish to use those words in 1108
1109conjunction with each other, you have to send $1 per usage instance to 1109@findex gnus-child
1110me. Usage of the patent (@dfn{Master/Slave Relationships In Computer
1111Applications}) will be much more expensive, of course.)
1112
1113@findex gnus-slave
1114Anyway, you start one Gnus up the normal way with @kbd{M-x gnus} (or 1110Anyway, you start one Gnus up the normal way with @kbd{M-x gnus} (or
1115however you do it). Each subsequent slave Gnusae should be started with 1111however you do it). Each subsequent child Gnusae should be started with
1116@kbd{M-x gnus-slave}. These slaves won't save normal @file{.newsrc} 1112@kbd{M-x gnus-child}. These children won't save normal @file{.newsrc}
1117files, but instead save @dfn{slave files} that contain information only 1113files, but instead save @dfn{child files} that contain information only
1118on what groups have been read in the slave session. When a master Gnus 1114on what groups have been read in the child session. When a parent Gnus
1119starts, it will read (and delete) these slave files, incorporating all 1115starts, it will read (and delete) these child files, incorporating all
1120information from them. (The slave files will be read in the sequence 1116information from them. (The child files will be read in the sequence
1121they were created, so the latest changes will have precedence.) 1117they were created, so the latest changes will have precedence.)
1122 1118
1123Information from the slave files has, of course, precedence over the 1119Information from the child files has, of course, precedence over the
1124information in the normal (i.e., master) @file{.newsrc} file. 1120information in the normal (i.e., parent) @file{.newsrc} file.
1125 1121
1126If the @file{.newsrc*} files have not been saved in the master when the 1122If the @file{.newsrc*} files have not been saved in the parent when the
1127slave starts, you may be prompted as to whether to read an auto-save 1123child starts, you may be prompted as to whether to read an auto-save
1128file. If you answer ``yes'', the unsaved changes to the master will be 1124file. If you answer ``yes'', the unsaved changes to the parent will be
1129incorporated into the slave. If you answer ``no'', the slave may see some 1125incorporated into the child. If you answer ``no'', the child may see some
1130messages as unread that have been read in the master. 1126messages as unread that have been read in the parent.
1131 1127
1132 1128
1133 1129
@@ -28487,9 +28483,9 @@ entry.
28487The format spec @code{%C} for positioning point has changed to @code{%*}. 28483The format spec @code{%C} for positioning point has changed to @code{%*}.
28488 28484
28489@item 28485@item
28490@code{gnus-slave-unplugged} 28486@code{gnus-child-unplugged}
28491 28487
28492A new command which starts Gnus offline in slave mode. 28488A new command which starts Gnus offline in child mode.
28493 28489
28494@end itemize 28490@end itemize
28495 28491
diff --git a/etc/NEWS b/etc/NEWS
index 2afd4dee34f..4fdfcf95512 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -207,6 +207,12 @@ Bookmark locations can refer to VC directory buffers.
207 207
208** Gnus 208** Gnus
209 209
210+++
211*** The name of dependent Gnus sessions has changed from "slave" to "child".
212The names of the commands 'gnus-slave', 'gnus-slave-no-server' and
213'gnus-slave-unplugged' have changed to 'gnus-child',
214'gnus-child-no-server' and 'gnus-child-unplugged' respectively.
215
210--- 216---
211*** Change to default value of 'message-draft-headers' user option. 217*** Change to default value of 'message-draft-headers' user option.
212The 'Date' symbol has been removed from the default value, meaning that 218The 'Date' symbol has been removed from the default value, meaning that
diff --git a/lisp/gnus/gnus-agent.el b/lisp/gnus/gnus-agent.el
index 1ed5000eb36..a617429de13 100644
--- a/lisp/gnus/gnus-agent.el
+++ b/lisp/gnus/gnus-agent.el
@@ -603,11 +603,18 @@ manipulated as follows:
603 (gnus)) 603 (gnus))
604 604
605;;;###autoload 605;;;###autoload
606(defun gnus-slave-unplugged (&optional arg) 606(defun gnus-child-unplugged (&optional arg)
607 "Read news as a slave unplugged." 607 "Read news as a child unplugged."
608 (interactive "P") 608 (interactive "P")
609 (setq gnus-plugged nil) 609 (setq gnus-plugged nil)
610 (gnus arg nil 'slave)) 610 (gnus arg nil 'child))
611
612;;;###autoload
613(define-obsolete-function-alias 'gnus-slave-unplugged #'gnus-child-unplugged
614 "28.1")
615
616
617
611 618
612;;;###autoload 619;;;###autoload
613(defun gnus-agentize () 620(defun gnus-agentize ()
diff --git a/lisp/gnus/gnus-group.el b/lisp/gnus/gnus-group.el
index da7db589ec3..b207c4f1e06 100644
--- a/lisp/gnus/gnus-group.el
+++ b/lisp/gnus/gnus-group.el
@@ -1129,8 +1129,8 @@ The following commands are available:
1129 (gnus-update-group-mark-positions) 1129 (gnus-update-group-mark-positions)
1130 (when gnus-use-undo 1130 (when gnus-use-undo
1131 (gnus-undo-mode 1)) 1131 (gnus-undo-mode 1))
1132 (when gnus-slave 1132 (when gnus-child
1133 (gnus-slave-mode))) 1133 (gnus-child-mode)))
1134 1134
1135(defun gnus-update-group-mark-positions () 1135(defun gnus-update-group-mark-positions ()
1136 (save-excursion 1136 (save-excursion
@@ -4024,9 +4024,9 @@ otherwise all levels below ARG will be scanned too."
4024 (gnus-run-hooks 'gnus-get-top-new-news-hook) 4024 (gnus-run-hooks 'gnus-get-top-new-news-hook)
4025 (gnus-run-hooks 'gnus-get-new-news-hook) 4025 (gnus-run-hooks 'gnus-get-new-news-hook)
4026 4026
4027 ;; Read any slave files. 4027 ;; Read any child files.
4028 (unless gnus-slave 4028 (unless gnus-child
4029 (gnus-master-read-slave-newsrc)) 4029 (gnus-parent-read-child-newsrc))
4030 4030
4031 (gnus-get-unread-articles (gnus-group-default-level arg t) 4031 (gnus-get-unread-articles (gnus-group-default-level arg t)
4032 nil one-level) 4032 nil one-level)
diff --git a/lisp/gnus/gnus-kill.el b/lisp/gnus/gnus-kill.el
index 5edbaaf201b..a772281d4c3 100644
--- a/lisp/gnus/gnus-kill.el
+++ b/lisp/gnus/gnus-kill.el
@@ -653,7 +653,7 @@ Usage: emacs -batch -l ~/.emacs -l gnus -f gnus-batch-score"
653 gnus-options-not-subscribe) 653 gnus-options-not-subscribe)
654 ;; Eat all arguments. 654 ;; Eat all arguments.
655 (setq command-line-args-left nil) 655 (setq command-line-args-left nil)
656 (gnus-slave) 656 (gnus-child)
657 ;; Apply kills to specified newsgroups in command line arguments. 657 ;; Apply kills to specified newsgroups in command line arguments.
658 (setq newsrc (cdr gnus-newsrc-alist)) 658 (setq newsrc (cdr gnus-newsrc-alist))
659 (while (setq info (pop newsrc)) 659 (while (setq info (pop newsrc))
diff --git a/lisp/gnus/gnus-start.el b/lisp/gnus/gnus-start.el
index 873923e6c57..78e07498de7 100644
--- a/lisp/gnus/gnus-start.el
+++ b/lisp/gnus/gnus-start.el
@@ -730,7 +730,7 @@ the first newsgroup."
730 ;; Remove Gnus frames. 730 ;; Remove Gnus frames.
731 (gnus-kill-gnus-frames)) 731 (gnus-kill-gnus-frames))
732 732
733(defun gnus-no-server-1 (&optional arg slave) 733(defun gnus-no-server-1 (&optional arg child)
734 "Read network news. 734 "Read network news.
735If ARG is a positive number, Gnus will use that as the startup 735If ARG is a positive number, Gnus will use that as the startup
736level. If ARG is nil, Gnus will be started at level 2 736level. If ARG is nil, Gnus will be started at level 2
@@ -739,11 +739,11 @@ and not a positive number, Gnus will prompt the user for the name
739of an NNTP server to use. As opposed to \\[gnus], this command 739of an NNTP server to use. As opposed to \\[gnus], this command
740will not connect to the local server." 740will not connect to the local server."
741 (let ((val (or arg (1- gnus-level-default-subscribed)))) 741 (let ((val (or arg (1- gnus-level-default-subscribed))))
742 (gnus val t slave) 742 (gnus val t child)
743 (make-local-variable 'gnus-group-use-permanent-levels) 743 (make-local-variable 'gnus-group-use-permanent-levels)
744 (setq gnus-group-use-permanent-levels val))) 744 (setq gnus-group-use-permanent-levels val)))
745 745
746(defun gnus-1 (&optional arg dont-connect slave) 746(defun gnus-1 (&optional arg dont-connect child)
747 "Read network news. 747 "Read network news.
748If ARG is non-nil and a positive number, Gnus will use that as the 748If ARG is non-nil and a positive number, Gnus will use that as the
749startup level. If ARG is non-nil and not a positive number, Gnus will 749startup level. If ARG is non-nil and not a positive number, Gnus will
@@ -761,7 +761,7 @@ prompt the user for the name of an NNTP server to use."
761 (gnus-splash) 761 (gnus-splash)
762 (gnus-run-hooks 'gnus-before-startup-hook) 762 (gnus-run-hooks 'gnus-before-startup-hook)
763 (nnheader-init-server-buffer) 763 (nnheader-init-server-buffer)
764 (setq gnus-slave slave) 764 (setq gnus-child child)
765 (gnus-read-init-file) 765 (gnus-read-init-file)
766 766
767 ;; Add "native" to gnus-predefined-server-alist just to have a 767 ;; Add "native" to gnus-predefined-server-alist just to have a
@@ -790,7 +790,7 @@ prompt the user for the name of an NNTP server to use."
790 (gnus-make-newsrc-file gnus-startup-file)) 790 (gnus-make-newsrc-file gnus-startup-file))
791 791
792 ;; Read the dribble file. 792 ;; Read the dribble file.
793 (when (or gnus-slave gnus-use-dribble-file) 793 (when (or gnus-child gnus-use-dribble-file)
794 (gnus-dribble-read-file)) 794 (gnus-dribble-read-file))
795 795
796 ;; Do the actual startup. 796 ;; Do the actual startup.
@@ -1008,11 +1008,11 @@ If LEVEL is non-nil, the news will be set up at level LEVEL."
1008 1008
1009 ;; Possibly eval the dribble file. 1009 ;; Possibly eval the dribble file.
1010 (and init 1010 (and init
1011 (or gnus-use-dribble-file gnus-slave) 1011 (or gnus-use-dribble-file gnus-child)
1012 (gnus-dribble-eval-file)) 1012 (gnus-dribble-eval-file))
1013 1013
1014 ;; Slave Gnusii should then clear the dribble buffer. 1014 ;; Child Gnusii should then clear the dribble buffer.
1015 (when (and init gnus-slave) 1015 (when (and init gnus-child)
1016 (gnus-dribble-clear)) 1016 (gnus-dribble-clear))
1017 1017
1018 (gnus-update-format-specifications) 1018 (gnus-update-format-specifications)
@@ -1030,7 +1030,7 @@ If LEVEL is non-nil, the news will be set up at level LEVEL."
1030 ;; Find new newsgroups and treat them. 1030 ;; Find new newsgroups and treat them.
1031 (when (and init gnus-check-new-newsgroups (not level) 1031 (when (and init gnus-check-new-newsgroups (not level)
1032 (gnus-check-server gnus-select-method) 1032 (gnus-check-server gnus-select-method)
1033 (not gnus-slave) 1033 (not gnus-child)
1034 gnus-plugged) 1034 gnus-plugged)
1035 (gnus-find-new-newsgroups)) 1035 (gnus-find-new-newsgroups))
1036 1036
@@ -1040,8 +1040,8 @@ If LEVEL is non-nil, the news will be set up at level LEVEL."
1040 (gnus-server-opened gnus-select-method)) 1040 (gnus-server-opened gnus-select-method))
1041 (gnus-check-bogus-newsgroups)) 1041 (gnus-check-bogus-newsgroups))
1042 1042
1043 ;; Read any slave files. 1043 ;; Read any child files.
1044 (gnus-master-read-slave-newsrc) 1044 (gnus-parent-read-child-newsrc)
1045 1045
1046 ;; Find the number of unread articles in each non-dead group. 1046 ;; Find the number of unread articles in each non-dead group.
1047 (let ((gnus-read-active-file (and (not level) gnus-read-active-file))) 1047 (let ((gnus-read-active-file (and (not level) gnus-read-active-file)))
@@ -2737,15 +2737,15 @@ values from `gnus-newsrc-hashtb', and write a new value of
2737 (gnus-agent-save-local force)) 2737 (gnus-agent-save-local force))
2738 2738
2739 (save-excursion 2739 (save-excursion
2740 (if (and (or gnus-use-dribble-file gnus-slave) 2740 (if (and (or gnus-use-dribble-file gnus-child)
2741 (not force) 2741 (not force)
2742 (or (not (buffer-live-p gnus-dribble-buffer)) 2742 (or (not (buffer-live-p gnus-dribble-buffer))
2743 (zerop (with-current-buffer gnus-dribble-buffer 2743 (zerop (with-current-buffer gnus-dribble-buffer
2744 (buffer-size))))) 2744 (buffer-size)))))
2745 (gnus-message 4 "(No changes need to be saved)") 2745 (gnus-message 4 "(No changes need to be saved)")
2746 (gnus-run-hooks 'gnus-save-newsrc-hook) 2746 (gnus-run-hooks 'gnus-save-newsrc-hook)
2747 (if gnus-slave 2747 (if gnus-child
2748 (gnus-slave-save-newsrc) 2748 (gnus-child-save-newsrc)
2749 ;; Save .newsrc only if the select method is an NNTP method. 2749 ;; Save .newsrc only if the select method is an NNTP method.
2750 ;; The .newsrc file is for interoperability with other 2750 ;; The .newsrc file is for interoperability with other
2751 ;; newsreaders, so saving non-NNTP groups there doesn't make 2751 ;; newsreaders, so saving non-NNTP groups there doesn't make
@@ -2988,55 +2988,61 @@ SPECIFIC-VARIABLES, or those in `gnus-variable-list'."
2988 2988
2989 2989
2990;;; 2990;;;
2991;;; Slave functions. 2991;;; Child functions.
2992;;; 2992;;;
2993 2993
2994(defvar gnus-slave-mode nil) 2994(defvar gnus-child-mode nil)
2995 2995
2996(defun gnus-slave-mode () 2996(defun gnus-child-mode ()
2997 "Minor mode for slave Gnusae." 2997 "Minor mode for child Gnusae."
2998 ;; FIXME: gnus-slave-mode appears to never be set (i.e. it'll always be nil): 2998 ;; FIXME: gnus-child-mode appears to never be set (i.e. it'll always be nil):
2999 ;; Remove, or fix and use define-minor-mode. 2999 ;; Remove, or fix and use define-minor-mode.
3000 (add-minor-mode 'gnus-slave-mode " Slave" (make-sparse-keymap)) 3000 (add-minor-mode 'gnus-child-mode " Child" (make-sparse-keymap))
3001 (gnus-run-hooks 'gnus-slave-mode-hook)) 3001 (gnus-run-hooks 'gnus-child-mode-hook))
3002 3002
3003(defun gnus-slave-save-newsrc () 3003(define-obsolete-function-alias 'gnus-slave-mode #'gnus-child-mode "28.1")
3004(define-obsolete-variable-alias 'gnus-slave-mode-hook 'gnus-child-mode-hook
3005 "28.1")
3006
3007(defun gnus-child-save-newsrc ()
3004 (with-current-buffer gnus-dribble-buffer 3008 (with-current-buffer gnus-dribble-buffer
3005 (with-file-modes (or (ignore-errors 3009 (with-file-modes (or (ignore-errors
3006 (file-modes 3010 (file-modes
3007 (concat gnus-current-startup-file ".eld"))) 3011 (concat gnus-current-startup-file ".eld")))
3008 (default-file-modes)) 3012 (default-file-modes))
3009 (let ((slave-name 3013 (let ((child-name
3010 (make-temp-file (concat gnus-current-startup-file "-slave-")))) 3014 (make-temp-file (concat gnus-current-startup-file "-child-"))))
3011 (let ((coding-system-for-write gnus-ding-file-coding-system)) 3015 (let ((coding-system-for-write gnus-ding-file-coding-system))
3012 (gnus-write-buffer slave-name)))))) 3016 (gnus-write-buffer child-name))))))
3013 3017
3014(defun gnus-master-read-slave-newsrc () 3018(defun gnus-parent-read-child-newsrc ()
3015 (let ((slave-files 3019 (let ((child-files
3016 (directory-files 3020 (directory-files
3017 (file-name-directory gnus-current-startup-file) 3021 (file-name-directory gnus-current-startup-file)
3018 t (concat 3022 t (concat
3019 "^" (regexp-quote 3023 "^" (regexp-quote
3020 (concat 3024 (file-name-nondirectory gnus-current-startup-file))
3021 (file-name-nondirectory gnus-current-startup-file) 3025 ;; When the obsolete variables like
3022 "-slave-"))) 3026 ;; `gnus-slave-mode-hook' etc are removed, the "slave"
3027 ;; bit of this regexp should also be removed.
3028 "\\(-child-\\|-slave-\\)")
3023 t)) 3029 t))
3024 file) 3030 file)
3025 (if (not slave-files) 3031 (if (not child-files)
3026 () ; There are no slave files to read. 3032 () ; There are no child files to read.
3027 (gnus-message 7 "Reading slave newsrcs...") 3033 (gnus-message 7 "Reading child newsrcs...")
3028 (with-current-buffer (gnus-get-buffer-create " *gnus slave*") 3034 (with-current-buffer (gnus-get-buffer-create " *gnus child*")
3029 (setq slave-files 3035 (setq child-files
3030 (sort (mapcar (lambda (file) 3036 (sort (mapcar (lambda (file)
3031 (list (file-attribute-modification-time 3037 (list (file-attribute-modification-time
3032 (file-attributes file)) 3038 (file-attributes file))
3033 file)) 3039 file))
3034 slave-files) 3040 child-files)
3035 (lambda (f1 f2) 3041 (lambda (f1 f2)
3036 (time-less-p (car f1) (car f2))))) 3042 (time-less-p (car f1) (car f2)))))
3037 (while slave-files 3043 (while child-files
3038 (erase-buffer) 3044 (erase-buffer)
3039 (setq file (nth 1 (car slave-files))) 3045 (setq file (nth 1 (car child-files)))
3040 (nnheader-insert-file-contents file) 3046 (nnheader-insert-file-contents file)
3041 (when (condition-case () 3047 (when (condition-case ()
3042 (progn 3048 (progn
@@ -3045,12 +3051,12 @@ SPECIFIC-VARIABLES, or those in `gnus-variable-list'."
3045 (error 3051 (error
3046 (gnus-error 3.2 "Possible error in %s" file) 3052 (gnus-error 3.2 "Possible error in %s" file)
3047 nil)) 3053 nil))
3048 (unless gnus-slave ; Slaves shouldn't delete these files. 3054 (unless gnus-child ; Children shouldn't delete these files.
3049 (ignore-errors 3055 (ignore-errors
3050 (delete-file file)))) 3056 (delete-file file))))
3051 (setq slave-files (cdr slave-files)))) 3057 (setq child-files (cdr child-files))))
3052 (gnus-dribble-touch) 3058 (gnus-dribble-touch)
3053 (gnus-message 7 "Reading slave newsrcs...done")))) 3059 (gnus-message 7 "Reading child newsrcs...done"))))
3054 3060
3055 3061
3056;;; 3062;;;
diff --git a/lisp/gnus/gnus.el b/lisp/gnus/gnus.el
index caeab7f55af..f40ce0c7926 100644
--- a/lisp/gnus/gnus.el
+++ b/lisp/gnus/gnus.el
@@ -2226,8 +2226,8 @@ Disabling the agent may result in noticeable loss of performance."
2226 :group 'gnus-start 2226 :group 'gnus-start
2227 :type '(choice (function-item gnus) 2227 :type '(choice (function-item gnus)
2228 (function-item gnus-no-server) 2228 (function-item gnus-no-server)
2229 (function-item gnus-slave) 2229 (function-item gnus-child)
2230 (function-item gnus-slave-no-server))) 2230 (function-item gnus-child-no-server)))
2231 2231
2232(declare-function gnus-group-get-new-news "gnus-group") 2232(declare-function gnus-group-get-new-news "gnus-group")
2233 2233
@@ -2238,8 +2238,8 @@ Disabling the agent may result in noticeable loss of performance."
2238 :type '(choice (function-item gnus) 2238 :type '(choice (function-item gnus)
2239 (function-item gnus-group-get-new-news) 2239 (function-item gnus-group-get-new-news)
2240 (function-item gnus-no-server) 2240 (function-item gnus-no-server)
2241 (function-item gnus-slave) 2241 (function-item gnus-child)
2242 (function-item gnus-slave-no-server))) 2242 (function-item gnus-child-no-server)))
2243 2243
2244(defcustom gnus-other-frame-parameters nil 2244(defcustom gnus-other-frame-parameters nil
2245 "Frame parameters used by `gnus-other-frame' to create a Gnus frame." 2245 "Frame parameters used by `gnus-other-frame' to create a Gnus frame."
@@ -2417,8 +2417,8 @@ such as a mark that says whether an article is stored in the cache
2417(defvar gnus-article-buffer "*Article*") 2417(defvar gnus-article-buffer "*Article*")
2418(defvar gnus-server-buffer "*Server*") 2418(defvar gnus-server-buffer "*Server*")
2419 2419
2420(defvar gnus-slave nil 2420(defvar gnus-child nil
2421 "Whether this Gnus is a slave or not.") 2421 "Whether this Gnus is a child or not.")
2422 2422
2423(defvar gnus-batch-mode nil 2423(defvar gnus-batch-mode nil
2424 "Whether this Gnus is running in batch mode or not.") 2424 "Whether this Gnus is running in batch mode or not.")
@@ -4034,13 +4034,17 @@ Allow completion over sensible values."
4034;;; User-level commands. 4034;;; User-level commands.
4035 4035
4036;;;###autoload 4036;;;###autoload
4037(defun gnus-slave-no-server (&optional arg) 4037(defun gnus-child-no-server (&optional arg)
4038 "Read network news as a slave, without connecting to the local server." 4038 "Read network news as a child, without connecting to the local server."
4039 (interactive "P") 4039 (interactive "P")
4040 (gnus-no-server arg t)) 4040 (gnus-no-server arg t))
4041 4041
4042;;;###autoload 4042;;;###autoload
4043(defun gnus-no-server (&optional arg slave) 4043(define-obsolete-function-alias 'gnus-slave-no-server #'gnus-child-no-server
4044 "28.1")
4045
4046;;;###autoload
4047(defun gnus-no-server (&optional arg child)
4044 "Read network news. 4048 "Read network news.
4045If ARG is a positive number, Gnus will use that as the startup level. 4049If ARG is a positive number, Gnus will use that as the startup level.
4046If ARG is nil, Gnus will be started at level 2. If ARG is non-nil 4050If ARG is nil, Gnus will be started at level 2. If ARG is non-nil
@@ -4049,13 +4053,17 @@ an NNTP server to use.
4049As opposed to `gnus', this command will not connect to the local 4053As opposed to `gnus', this command will not connect to the local
4050server." 4054server."
4051 (interactive "P") 4055 (interactive "P")
4052 (gnus-no-server-1 arg slave)) 4056 (gnus-no-server-1 arg child))
4053 4057
4054;;;###autoload 4058;;;###autoload
4055(defun gnus-slave (&optional arg) 4059(defun gnus-child (&optional arg)
4056 "Read news as a slave." 4060 "Read news as a child."
4057 (interactive "P") 4061 (interactive "P")
4058 (gnus arg nil 'slave)) 4062 (gnus arg nil 'child))
4063
4064;;;###autoload
4065(define-obsolete-function-alias 'gnus-slave #'gnus-child "28.1")
4066
4059 4067
4060(defun gnus-delete-gnus-frame () 4068(defun gnus-delete-gnus-frame ()
4061 "Delete gnus frame unless it is the only one. 4069 "Delete gnus frame unless it is the only one.
@@ -4116,7 +4124,7 @@ current display is used."
4116 (add-hook 'gnus-suspend-gnus-hook #'gnus-delete-gnus-frame))))) 4124 (add-hook 'gnus-suspend-gnus-hook #'gnus-delete-gnus-frame)))))
4117 4125
4118;;;###autoload 4126;;;###autoload
4119(defun gnus (&optional arg dont-connect slave) 4127(defun gnus (&optional arg dont-connect child)
4120 "Read network news. 4128 "Read network news.
4121If ARG is non-nil and a positive number, Gnus will use that as the 4129If ARG is non-nil and a positive number, Gnus will use that as the
4122startup level. If ARG is non-nil and not a positive number, Gnus will 4130startup level. If ARG is non-nil and not a positive number, Gnus will
@@ -4130,7 +4138,7 @@ prompt the user for the name of an NNTP server to use."
4130 (message "You should byte-compile Gnus") 4138 (message "You should byte-compile Gnus")
4131 (sit-for 2)) 4139 (sit-for 2))
4132 (let ((gnus-action-message-log (list nil))) 4140 (let ((gnus-action-message-log (list nil)))
4133 (gnus-1 arg dont-connect slave) 4141 (gnus-1 arg dont-connect child)
4134 (gnus-final-warning))) 4142 (gnus-final-warning)))
4135 4143
4136(declare-function debbugs-gnu "ext:debbugs-gnu" 4144(declare-function debbugs-gnu "ext:debbugs-gnu"