+2003-04-02 Reiner Steib <Reiner.Steib@gmx.de>
+
+ * gnus-score.el (gnus-score-find-trace): Changed behavior of `q'.
+ (gnus-score-edit-file-at-point): Goto first match when using `e'.
+
2003-04-01 Reiner Steib <Reiner.Steib@gmx.de>
* gnus-art.el (gnus-button-ctan-directory-regexp): New variable.
(defun gnus-score-edit-file-at-point ()
"Edit score file at point. Useful especially after `V t'."
(interactive)
- (gnus-score-edit-file (ffap-string-at-point)))
+ (let* ((string (ffap-string-at-point))
+ ;; FIXME: Should be the full `match element', not just string at
+ ;; point.
+ file)
+ (save-excursion
+ (end-of-line)
+ (setq file (ffap-string-at-point)))
+ (gnus-score-edit-file file)
+ (unless (string= string file)
+ (goto-char (point-min))
+ ;; Goto first match
+ (search-forward string nil t))))
(defun gnus-score-load-file (file)
;; Load score file FILE. Returns a list a retrieved score-alists.
(local-set-key "q"
(lambda ()
(interactive)
- (kill-buffer nil)
- (gnus-article-show-summary)))
+ (bury-buffer nil)
+ (gnus-summary-expand-window)))
(local-set-key "e" 'gnus-score-edit-file-at-point)
(setq truncate-lines t)
(while trace