Gnus development mailing list
 help / color / mirror / Atom feed
From: Alex Schroeder <alex@gnu.org>
Subject: gnus-score-customize should accept universal argument
Date: 09 Feb 2001 20:42:57 +0100	[thread overview]
Message-ID: <m2bssb1w3i.fsf@snail.nowhere.ch> (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



             reply	other threads:[~2001-02-09 19:42 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-09 19:42 Alex Schroeder [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2bssb1w3i.fsf@snail.nowhere.ch \
    --to=alex@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).