Gnus development mailing list
 help / color / mirror / Atom feed
* gnus-score-customize should accept universal argument
@ 2001-02-09 19:42 Alex Schroeder
  2001-02-09 19:51 ` Kai Großjohann
  0 siblings, 1 reply; 12+ messages in thread
From: Alex Schroeder @ 2001-02-09 19:42 UTC (permalink / raw)


I just decided that I want to change my all.SCORE file.  There seems
no way to do this using V C.  How about making gnus-score-customize
detect a universal argument and then prompt the user for a file (with
completion?).

Here's my feeble attempt...

Alex.

cd /home/alex/tmp/
diff -c /home/alex/tmp/gnus-cus.el\~ /home/alex/tmp/gnus-cus.el
*** /home/alex/tmp/gnus-cus.el~	Fri Feb  9 20:10:50 2001
--- /home/alex/tmp/gnus-cus.el	Fri Feb  9 20:11:23 2001
***************
*** 683,689 ****
  
  (defun gnus-score-customize (file)
    "Customize score file FILE."
!   (interactive (list gnus-current-score-file))
    (let ((scores (gnus-score-load file))
  	(types (mapcar (lambda (entry)
  			 `(group :format "%v%h\n"
--- 683,700 ----
  
  (defun gnus-score-customize (file)
    "Customize score file FILE."
!   (interactive "P")
!   ;; (interactive (list gnus-current-score-file))
!   (if (equal file '(4))
!       (setq file 
! 	    (expand-file-name
! 	     (read-file-name (concat "Score File ("
! 				     (file-name-nondirectory gnus-current-score-file)
! 				     ") ")
! 			     (file-name-directory gnus-current-score-file)
! 			     gnus-current-score-file)))
!     (when (null file)
!       (setq file gnus-current-score-file)))
    (let ((scores (gnus-score-load file))
  	(types (mapcar (lambda (entry)
  			 `(group :format "%v%h\n"

Diff finished at Fri Feb  9 20:12:01



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2001-02-12 13:57 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-09 19:42 gnus-score-customize should accept universal argument Alex Schroeder
2001-02-09 19:51 ` Kai Großjohann
2001-02-09 20:55   ` Andreas Fuchs
2001-02-09 23:48     ` Kai Großjohann
2001-02-10 17:27       ` Per Abrahamsen
2001-02-10 18:00         ` Kai Großjohann
2001-02-10 19:59         ` Karl Kleinpaste
2001-02-12 13:57           ` Per Abrahamsen
2001-02-10 23:59   ` Alex Schroeder
2001-02-11 21:16     ` Kai Großjohann
2001-02-12  3:04       ` Alex Schroeder
2001-02-12  8:57         ` Kai Großjohann

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).