* [patch] run hook after gnus-score-edit-done
@ 2004-01-27 14:21 Jari Aalto+mail.emacs
0 siblings, 0 replies; only message in thread
From: Jari Aalto+mail.emacs @ 2004-01-27 14:21 UTC (permalink / raw)
Here is patches to make this user option possible. Usually I want to
to flush cache after editing the score files and not press separate
key V f.
(add-hook 'gnus-score-edit-done-hook 'gnus-score-flush-cache)
Jari
2004-01-27 Jari Aalto <jari.aalto <AT> poboxes.com>
* gnus-score.el (gnus-score-edit-done): Added
`gnus-score-edit-done-hook'
* score-mode.el (gnus-score-edit-done-hook): New user variable.
--- gnus-score.el.7.6 2004-01-27 16:10:18.000000000 +0200
+++ gnus-score.el 2004-01-27 16:10:48.000000000 +0200
@@ -2360,7 +2360,8 @@
(when winconf
(set-window-configuration winconf))
(gnus-score-remove-from-cache bufnam)
- (gnus-score-load-file bufnam)))
+ (gnus-score-load-file bufnam)
+ (run-hook 'gnus-score-edit-done-hook)))
(defun gnus-score-find-trace ()
"Find all score rules that applies to the current article."
--- score-mode.el.7.1 2004-01-27 16:13:30.000000000 +0200
+++ score-mode.el 2004-01-27 16:13:36.000000000 +0200
@@ -29,7 +29,6 @@
(eval-when-compile (require 'cl))
(require 'mm-util) ; for mm-universal-coding-system
-
(defvar gnus-score-edit-done-hook nil
"*Hook run at the end of closing the score buffer.")
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-01-27 14:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-27 14:21 [patch] run hook after gnus-score-edit-done Jari Aalto+mail.emacs
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).