X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=lisp%2Fscore-mode.el;h=25a5f47588063e24c421a5ccf5e976db47b63976;hb=27688c4fe73986a46e3f2cb9051170f41ef82f4c;hp=dd8eba34b3868ff7aae520a92905ea94f7cb8ba7;hpb=ee70a66fb20ed12d43960dd3933c7f416257ef42;p=elisp%2Fgnus.git- diff --git a/lisp/score-mode.el b/lisp/score-mode.el index dd8eba3..25a5f47 100644 --- a/lisp/score-mode.el +++ b/lisp/score-mode.el @@ -1,5 +1,6 @@ ;;; score-mode.el --- mode for editing Gnus score files -;; Copyright (C) 1996 Free Software Foundation, Inc. + +;; Copyright (C) 1996, 2001, 2004, 2005 Free Software Foundation, Inc. ;; Author: Lars Magne Ingebrigtsen ;; Keywords: news, mail @@ -18,8 +19,8 @@ ;; You should have received a copy of the GNU General Public License ;; along with GNU Emacs; see the file COPYING. If not, write to the -;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, -;; Boston, MA 02111-1307, USA. +;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +;; Boston, MA 02110-1301, USA. ;;; Commentary: @@ -27,7 +28,7 @@ (eval-when-compile (require 'cl)) (eval-when-compile (require 'static)) -(require 'easymenu) +(require 'gnus-util) ; for gnus-pp, gnus-run-mode-hooks (defvar gnus-score-mode-hook nil "*Hook run in score mode buffers.") @@ -52,9 +53,7 @@ table) "Syntax table used in score-mode buffers.") -(defvar score-mode-coding-system (static-if (boundp 'MULE) - '*ctext* - 'ctext)) +(defvar score-mode-coding-system 'ctext) ;;;###autoload (defun gnus-score-mode () @@ -71,7 +70,7 @@ This mode is an extended emacs-lisp mode. (setq mode-name "Score") (lisp-mode-variables nil) (make-local-variable 'gnus-score-edit-exit-function) - (run-hooks 'emacs-lisp-mode-hook 'gnus-score-mode-hook)) + (gnus-run-mode-hooks 'emacs-lisp-mode-hook 'gnus-score-mode-hook)) (defun gnus-score-make-menu-bar () (unless (boundp 'gnus-score-menu) @@ -95,7 +94,7 @@ This mode is an extended emacs-lisp mode. (let ((form (read (current-buffer)))) (erase-buffer) (let ((emacs-lisp-mode-syntax-table score-mode-syntax-table)) - (pp form (current-buffer)))) + (gnus-pp form))) (goto-char (point-min))) (defun gnus-score-edit-exit ()