Gnus development mailing list
 help / color / mirror / Atom feed
* gnus-batch-score should run in slave mode
@ 1996-11-04 15:04 jeff (j.d.) sparkes
  0 siblings, 0 replies; 2+ messages in thread
From: jeff (j.d.) sparkes @ 1996-11-04 15:04 UTC (permalink / raw)


Running gnus-batch-score in slave mode should reduce the possibilty of
collision between a running gnus and a batch mode one.  I also added a
variable so your .gnus can tell if its running in batch mode.

Obviously, no one has been using gnus-batch-score since it didn't work
right.  I have commented out one line since i don't know the proper
fix.

*** gnus-kill.el	1996/11/04 14:40:26	1.1
--- gnus-kill.el	1996/11/04 14:44:05
***************
*** 684,689 ****
--- 684,690 ----
  	 (gnus-expert-user t)
  	 (nnmail-spool-file nil)
  	 (gnus-use-dribble-file nil)
+ 	 (gnus-batch-mode t)
  	 group newsrc entry
  	 ;; Disable verbose message.
  	 gnus-novice-user gnus-large-newsgroup
***************
*** 691,706 ****
  	 gnus-options-not-subscribe)
      ;; Eat all arguments.
      (setq command-line-args-left nil)
!     (gnus)
      ;; Apply kills to specified newsgroups in command line arguments.
      (setq newsrc (cdr gnus-newsrc-alist))
      (while (setq group (car (pop newsrc)))
        (setq entry (gnus-gethash group gnus-newsrc-hashtb))
!       (when (and (<= (nth 1 (car newsrc)) gnus-level-subscribed)
  		 (and (car entry)
  		      (or (eq (car entry) t)
  			  (not (zerop (car entry)))))
! 		 (eq (gnus-matches-options-n group) 'subscribe))
  	(gnus-summary-read-group group nil t nil t)
  	(when (eq (current-buffer) (get-buffer gnus-summary-buffer))
  	  (gnus-summary-exit))))
--- 692,708 ----
  	 gnus-options-not-subscribe)
      ;; Eat all arguments.
      (setq command-line-args-left nil)
!     (gnus-slave)
      ;; Apply kills to specified newsgroups in command line arguments.
      (setq newsrc (cdr gnus-newsrc-alist))
      (while (setq group (car (pop newsrc)))
        (setq entry (gnus-gethash group gnus-newsrc-hashtb))
!       (when (and (<= (gnus-info-level (car newsrc)) gnus-level-subscribed)
  		 (and (car entry)
  		      (or (eq (car entry) t)
  			  (not (zerop (car entry)))))
! 		 ;;(eq (gnus-matches-options-n group) 'subscribe)
! 		 )
  	(gnus-summary-read-group group nil t nil t)
  	(when (eq (current-buffer) (get-buffer gnus-summary-buffer))
  	  (gnus-summary-exit))))
*** gnus.el	1996/11/04 14:43:10	1.1
--- gnus.el	1996/11/04 14:43:53
***************
*** 758,763 ****
--- 758,766 ----
  (defvar gnus-slave nil
    "Whether this Gnus is a slave or not.")
  
+ (defvar gnus-batch-mode nil
+   "Whether this Gnus is running in batch mode or not.")
+ 
  (defvar gnus-variable-list
    '(gnus-newsrc-options gnus-newsrc-options-n
      gnus-newsrc-last-checked-date

-- 
Jeff Sparkes jsparkes@nortel.ca	  		Nortel, Ottawa (613)765-2503
"Egad Brain, you astound me!"  "I'm afraid I always will, Pinky."

--
Jeff Sparkes
jsparkes@nortel.ca    Nortel, Ottawa, Ontario, Canada 	613-765-2503


^ permalink raw reply	[flat|nested] 2+ messages in thread
[parent not found: <"29270 Mon Nov  4 10:05:31 1996"@bnr.ca>]

end of thread, other threads:[~1996-11-04 20:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-11-04 15:04 gnus-batch-score should run in slave mode jeff (j.d.) sparkes
     [not found] <"29270 Mon Nov  4 10:05:31 1996"@bnr.ca>
1996-11-04 20:02 ` Sten Drescher

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 NNTP newsgroup(s).