]> code.delx.au - gnu-emacs/blobdiff - lisp/gnuspost.el
(mark-c-function): Activate the mark.
[gnu-emacs] / lisp / gnuspost.el
index d40982d1defef80ca070428029fa29329401cd35..9c00482c095377d99cc6dd98c6adbdfdc5dc23bf 100644 (file)
@@ -1,26 +1,28 @@
-;;; Post news commands for GNUS newsreader
-;; Copyright (C) 1989 Fujitsu Laboratories LTD.
-;; Copyright (C) 1989, 1990 Masanobu UMEDA
-;; $Header: gnuspost.el,v 1.2 90/03/23 13:25:16 umerin Locked $
+;;; gnuspost.el --- post news commands for GNUS newsreader
+
+;; Copyright (C) 1989, 1990, 1993 Free Software Foundation, Inc.
+
+;; Author: Masanobu UMEDA <umerin@flab.flab.fujitsu.junet>
+;; Keywords: news
 
 ;; This file is part of GNU Emacs.
 
+;; GNU Emacs is free software; you can redistribute it and/or modify
+;; it under the terms of the GNU General Public License as published by
+;; the Free Software Foundation; either version 2, or (at your option)
+;; any later version.
+
 ;; GNU Emacs is distributed in the hope that it will be useful,
-;; but WITHOUT ANY WARRANTY.  No author or distributor
-;; accepts responsibility to anyone for the consequences of using it
-;; or for whether it serves any particular purpose or works at all,
-;; unless he says so in writing.  Refer to the GNU Emacs General Public
-;; License for full details.
-
-;; Everyone is granted permission to copy, modify and redistribute
-;; GNU Emacs, but only under the conditions described in the
-;; GNU Emacs General Public License.   A copy of this license is
-;; supposed to have been given to you along with GNU Emacs so you
-;; can know your rights and responsibilities.  It should be in a
-;; file named COPYING.  Among other things, the copyright notice
-;; and this notice must be preserved on all copies.
+;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;; GNU General Public License for more details.
+
+;; 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, 675 Mass Ave, Cambridge, MA 02139, USA.
+
+;;; Code:
 
-(provide 'gnuspost)
 (require 'gnus)
 
 (defvar gnus-organization-file "/usr/lib/news/organization"
@@ -113,9 +115,9 @@ If prefix argument YANK is non-nil, original article is yanked automatically."
 ;;; Post a News using NNTP
 
 ;;;###autoload
-(fset 'sendnews 'gnus-post-news)
+(defalias 'sendnews 'gnus-post-news)
 ;;;###autoload
-(fset 'postnews 'gnus-post-news)
+(defalias 'postnews 'gnus-post-news)
 ;;;###autoload
 (defun gnus-post-news ()
   "Begin editing a new USENET news article to be posted.
@@ -642,6 +644,8 @@ containing the organization."
   (let ((organization (or (getenv "ORGANIZATION")
                          gnus-your-organization
                          (expand-file-name "~/.organization" nil))))
+    (if (equal organization "")
+       (setq organization nil))
     (and (stringp organization)
         (string-equal (substring organization 0 1) "/")
         ;; Get it from the user and system file.
@@ -670,3 +674,7 @@ containing the organization."
               )))
          (t organization))
     ))
+
+(provide 'gnuspost)
+
+;;; gnuspost.el ends here