Trailing whitespace deleted.
[bpt/emacs.git] / lisp / vms-patch.el
index 93edaa8..09c44bf 100644 (file)
@@ -1,4 +1,4 @@
-;;; vms-patch.el --- override parts of files.el for VMS.
+;;; vms-patch.el --- override parts of files.el for VMS
 
 ;; Copyright (C) 1986, 1992 Free Software Foundation, Inc.
 
 ;; 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.
+;; 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.
+
+;;; Commentary:
 
 ;;; Code:
 
+(setq auto-mode-alist (cons '(("\\.com\\'" . dcl-mode)) auto-mode-alist))
+
 ;;; Functions that need redefinition
 
 ;;; VMS file names are upper case, but buffer names are more
@@ -54,10 +59,11 @@ otherwise a string <2> or <3> or ... is appended to get an unused name."
 
 (defun make-auto-save-file-name ()
   "Return file name to use for auto-saves of current buffer.
-Does not consider auto-save-visited-file-name; that is checked
-before calling this function.
-This is a separate function so your .emacs file or site-init.el can redefine it.
-See also auto-save-file-name-p."
+This function does not consider `auto-save-visited-file-name';
+the caller should check that before calling this function.
+This is a separate function so that your `.emacs' file or the site's
+`site-init.el' can redefine it.
+See also `auto-save-file-name-p'."
   (if buffer-file-name
       (concat (file-name-directory buffer-file-name)
              "_$"
@@ -66,9 +72,10 @@ See also auto-save-file-name-p."
     (expand-file-name (concat "_$_" (make-legal-file-name (buffer-name)) "$"))))
 
 (defun auto-save-file-name-p (filename)
-  "Return t if FILENAME can be yielded by make-auto-save-file-name.
+  "Return t if FILENAME can be yielded by `make-auto-save-file-name'.
 FILENAME should lack slashes.
-This is a separate function so your .emacs file or site-init.el can redefine it."
+This is a separate function so that your `.emacs' file or the site's
+`site-init.el' can redefine it."
   (string-match "^_\\$.*\\$" filename))
 
 ;;;
@@ -140,7 +147,7 @@ spawned Emacs and doing things like \"emacs -l myfile.el -f doit\""
                        (< 32 (setq this-char (aref args end)))
                        (> 127 this-char))
              (setq end (1+ end)))
-           (setq command-line-args (append 
+           (setq command-line-args (append
                                     command-line-args
                                     (list (substring args beg end))))
            (setq beg (1+ end)))
@@ -163,7 +170,7 @@ spawned Emacs and doing things like \"emacs -l myfile.el -f doit\""
       "/SIZE/DATE/OWNER/WIDTH=(FILENAME=32,SIZE=5)")
 
 (setq print-region-function
-      '(lambda (start end command ign1 ign2 ign3 &rest switches)
+      (lambda (start end command ign1 ign2 ign3 &rest switches)
         (write-region start end "sys$login:delete-me.txt")
         (send-command-to-subprocess
          1