+2001-07-31 Katsumi Yamaoka <yamaoka@jpl.org>
+
+ * gnus-msg.el (gnus-post-method): Refer to `gnus-parameters'.
+
+2001-07-31 17:00:00 ShengHuo ZHU <zsh@cs.rochester.edu>
+ Originally from Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
+
+ * gnus-agent.el (gnus-agent-make-mode-line-string): New.
+ (gnus-agent-toggle-plugged): Use it.
+
+2001-07-31 ShengHuo ZHU <zsh@cs.rochester.edu>
+
+ * gnus-start.el (gnus-startup-file-coding-system): Revert to binary.
+ (gnus-ding-file-coding-system): New variable.
+ (gnus-read-newsrc-el-file, gnus-save-newsrc-file)
+ (gnus-slave-save-newsrc): Use it.
+
2001-07-31 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
* gnus-delay.el (gnus-delay-initialize): Use standard define-key
["Add" gnus-agent-add-server t]
["Remove" gnus-agent-remove-server t]))))
+(defun gnus-agent-make-mode-line-string (string mouse2-func)
+ (if (and (fboundp 'propertize)
+ (fboundp 'make-mode-line-mouse2-map))
+ (propertize string 'local-map
+ (make-mode-line-mouse2-map mouse2-func))
+ string))
+
(defun gnus-agent-toggle-plugged (plugged)
"Toggle whether Gnus is unplugged or not."
(interactive (list (not gnus-plugged)))
(setq gnus-plugged plugged)
(gnus-agent-possibly-synchronize-flags)
(gnus-run-hooks 'gnus-agent-plugged-hook)
- (setcar (cdr gnus-agent-mode-status) " Plugged"))
+ (setcar (cdr gnus-agent-mode-status)
+ (gnus-agent-make-mode-line-string " Plugged"
+ 'gnus-agent-toggle-plugged)))
(gnus-agent-close-connections)
(setq gnus-plugged plugged)
(gnus-run-hooks 'gnus-agent-unplugged-hook)
- (setcar (cdr gnus-agent-mode-status) " Unplugged"))
+ (setcar (cdr gnus-agent-mode-status)
+ (gnus-agent-make-mode-line-string " Unplugged"
+ 'gnus-agent-toggle-plugged)))
(force-mode-line-update))
(defun gnus-agent-close-connections ()
(defun gnus-post-method (arg group &optional silent)
"Return the posting method based on GROUP and ARG.
If SILENT, don't prompt the user."
- (let ((group-method (gnus-find-method-for-group group)))
+ (let ((group-method
+ (or (car (gnus-group-find-parameter group 'gnus-post-method t))
+ (gnus-find-method-for-group group))))
(cond
;; If the group-method is nil (which shouldn't happen) we use
;; the default method.
'ctext)
"*Coding system for startup file.")
+(defvar gnus-ding-file-coding-system gnus-startup-file-coding-system
+ "*Coding system for ding file.")
+;; Note that the ding file for T-gnus ought not to have byte-codes.
+
;;; Internal variables
(defvar gnus-newsrc-file-version nil)
(condition-case nil
(progn
(insert-file-contents-as-coding-system
- gnus-startup-file-coding-system ding-file)
+ gnus-ding-file-coding-system ding-file)
(eval-region (point-min) (point-max)))
(error
(ding)
(gnus-message 5 "Saving %s.eld..." gnus-current-startup-file)
(gnus-gnus-to-quick-newsrc-format)
(gnus-run-hooks 'gnus-save-quick-newsrc-hook)
- (save-buffer-as-coding-system gnus-startup-file-coding-system)
+ (save-buffer-as-coding-system gnus-ding-file-coding-system)
(kill-buffer (current-buffer))
(gnus-message
5 "Saving %s.eld...done" gnus-current-startup-file))
(make-temp-name (concat gnus-current-startup-file "-slave-")))
(modes (ignore-errors
(file-modes (concat gnus-current-startup-file ".eld")))))
- (gnus-write-buffer-as-coding-system
- gnus-startup-file-coding-system slave-name)
+ (gnus-write-buffer-as-coding-system gnus-ding-file-coding-system
+ slave-name)
(when modes
(set-file-modes slave-name modes)))))
mail-aliases-setup mm-copy-tree
mule-write-region-no-coding-system put-image
ring-elements
+ propertize make-mode-line-mouse2-map
rmail-select-summary rmail-summary-exists rmail-update-summary
sc-cite-regexp set-font-family set-font-size temp-directory
string-as-multibyte
(let ((functions-variables
(cond
((featurep 'xemacs)
- '((propertize xml-parse-region)))
+ '((xml-parse-region)))
((>= emacs-major-version 21)
'((function-max-args smiley-encode-buffer)))
((boundp 'MULE)
'((charsetp
coding-system-get compose-mail file-name-extension
find-coding-systems-region function-max-args get-charset-property
- propertize shell-command-to-string smiley-encode-buffer
- xml-parse-region)))
+ shell-command-to-string smiley-encode-buffer xml-parse-region)))
(t
- '((function-max-args
- propertize smiley-encode-buffer
- xml-parse-region))))))
+ '((function-max-args smiley-encode-buffer xml-parse-region))))))
(maybe-fbind (car functions-variables))
(maybe-bind (car (cdr functions-variables))))